mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-29 18:56:22 +00:00
unify library applet creator CreateProcess with application creator
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
#include "core/hle/service/am/process_creation.h"
|
#include "core/hle/service/am/process_creation.h"
|
||||||
#include "core/hle/service/am/service/library_applet_accessor.h"
|
#include "core/hle/service/am/service/library_applet_accessor.h"
|
||||||
#include "core/hle/service/am/service/library_applet_creator.h"
|
#include "core/hle/service/am/service/library_applet_creator.h"
|
||||||
|
|
||||||
|
#include "core/hle/api_version.h"
|
||||||
#include "core/hle/service/am/service/storage.h"
|
#include "core/hle/service/am/service/storage.h"
|
||||||
#include "core/hle/service/am/window_system.h"
|
#include "core/hle/service/am/window_system.h"
|
||||||
#include "core/hle/service/cmif_serialization.h"
|
#include "core/hle/service/cmif_serialization.h"
|
||||||
@@ -108,21 +110,7 @@ std::shared_ptr<ILibraryAppletAccessor> CreateGuestApplet(Core::System& system,
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: enable other versions of applets
|
auto process = CreateProcess(system, program_id, 1, HLE::ApiVersion::HOS_VERSION_MAJOR);
|
||||||
enum : u8 {
|
|
||||||
Firmware1400 = 14,
|
|
||||||
Firmware1500 = 15,
|
|
||||||
Firmware1600 = 16,
|
|
||||||
Firmware1700 = 17,
|
|
||||||
Firmware1800 = 18,
|
|
||||||
Firmware1900 = 19,
|
|
||||||
Firmware2000 = 20,
|
|
||||||
Firmware2100 = 21,
|
|
||||||
Firmware2200 = 22,
|
|
||||||
Firmware2300 = 23,
|
|
||||||
};
|
|
||||||
|
|
||||||
auto process = CreateProcess(system, program_id, Firmware1400, Firmware2300);
|
|
||||||
if (process) {
|
if (process) {
|
||||||
const auto applet = std::make_shared<Applet>(system, std::move(process), false);
|
const auto applet = std::make_shared<Applet>(system, std::move(process), false);
|
||||||
applet->program_id = program_id;
|
applet->program_id = program_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user