let's use HOS constant for it, else it breaks on every major firmware update

This commit is contained in:
Maufeat
2026-09-10 12:37:25 +02:00
parent 405d294ce2
commit ae602fff3e
2 changed files with 4 additions and 2 deletions
@@ -16,6 +16,7 @@
#include "core/hle/service/cmif_serialization.h"
#include "core/loader/loader.h"
#include "core/launch_timestamp_cache.h"
#include "core/hle/api_version.h"
namespace Service::AM {
@@ -87,7 +88,7 @@ Result IApplicationCreator::CreateSystemApplication(
std::vector<u8> control;
std::unique_ptr<Loader::AppLoader> loader;
auto process = CreateProcess(system, application_id, 1, 22);
auto process = CreateProcess(system, application_id, 1, HLE::ApiVersion::HOS_VERSION_MAJOR);
R_UNLESS(process != nullptr, ResultUnknown);
const auto applet = std::make_shared<Applet>(system, std::move(process), true);
@@ -119,9 +119,10 @@ std::shared_ptr<ILibraryAppletAccessor> CreateGuestApplet(Core::System& system,
Firmware2000 = 20,
Firmware2100 = 21,
Firmware2200 = 22,
Firmware2300 = 23,
};
auto process = CreateProcess(system, program_id, Firmware1400, Firmware2200);
auto process = CreateProcess(system, program_id, Firmware1400, Firmware2300);
if (process) {
const auto applet = std::make_shared<Applet>(system, std::move(process), false);
applet->program_id = program_id;