This commit is contained in:
georgemoralis
2025-12-09 19:28:46 +02:00
parent 868ad608b2
commit a5af64c258

View File

@@ -43,7 +43,7 @@ int main(int argc, char* argv[]) {
bool waitForDebugger = false; bool waitForDebugger = false;
std::optional<int> waitPid; std::optional<int> waitPid;
#if 0
// Map of argument strings to lambda functions // Map of argument strings to lambda functions
std::unordered_map<std::string, std::function<void(int&)>> arg_map = { std::unordered_map<std::string, std::function<void(int&)>> arg_map = {
{"-h", {"-h",
@@ -263,12 +263,11 @@ int main(int argc, char* argv[]) {
if (waitPid.has_value()) { if (waitPid.has_value()) {
Core::Debugger::WaitForPid(waitPid.value()); Core::Debugger::WaitForPid(waitPid.value());
} }
#endif
// Run the emulator with the resolved eboot path // Run the emulator with the resolved eboot path
Core::Emulator* emulator = Common::Singleton<Core::Emulator>::Instance(); Core::Emulator* emulator = Common::Singleton<Core::Emulator>::Instance();
emulator->executableName = argv[0]; emulator->executableName = argv[0];
emulator->waitForDebuggerBeforeRun = waitForDebugger; emulator->waitForDebuggerBeforeRun = waitForDebugger;
const char* const eboot_path = "D:/ps4/shadps4games/CUSA18992/eboot.bin";
emulator->Run(eboot_path, game_args, game_folder); emulator->Run(eboot_path, game_args, game_folder);
return 0; return 0;