Browse Source

some linux debug

Maufeat 7 days ago
parent
commit
b145e6007e
  1. 7
      src/core/core.cpp

7
src/core/core.cpp

@ -330,11 +330,13 @@ struct System::Impl {
} }
LOG_INFO(Core, "Loading {} ({:016X}) ...", name, params.program_id); LOG_INFO(Core, "Loading {} ({:016X}) ...", name, params.program_id);
LOG_ERROR(Core, "MakeApplicationProcess");
// Make the process created be the application // Make the process created be the application
kernel.MakeApplicationProcess(process->GetHandle()); kernel.MakeApplicationProcess(process->GetHandle());
// Set up the rest of the system. // Set up the rest of the system.
LOG_ERROR(Core, "init_result");
SystemResultStatus init_result{SetupForApplicationProcess(system, emu_window)}; SystemResultStatus init_result{SetupForApplicationProcess(system, emu_window)};
if (init_result != SystemResultStatus::Success) { if (init_result != SystemResultStatus::Success) {
LOG_CRITICAL(Core, "Failed to initialize system (Error {})!", LOG_CRITICAL(Core, "Failed to initialize system (Error {})!",
@ -343,15 +345,18 @@ struct System::Impl {
return init_result; return init_result;
} }
LOG_ERROR(Core, "cheat_engine");
// Initialize cheat engine // Initialize cheat engine
if (cheat_engine) { if (cheat_engine) {
cheat_engine->Initialize(); cheat_engine->Initialize();
} }
LOG_ERROR(Core, "CreateAndInsertByFrontendAppletParameters");
// Register with applet manager // Register with applet manager
// All threads are started, begin main process execution, now that we're in the clear // All threads are started, begin main process execution, now that we're in the clear
applet_manager.CreateAndInsertByFrontendAppletParameters(std::move(process), params); applet_manager.CreateAndInsertByFrontendAppletParameters(std::move(process), params);
LOG_ERROR(Core, "if gamecard_inserted");
if (Settings::values.gamecard_inserted) { if (Settings::values.gamecard_inserted) {
if (Settings::values.gamecard_current_game) { if (Settings::values.gamecard_current_game) {
fs_controller.SetGameCard(GetGameFileFromPath(virtual_filesystem, filepath)); fs_controller.SetGameCard(GetGameFileFromPath(virtual_filesystem, filepath));
@ -363,7 +368,9 @@ struct System::Impl {
perf_stats = std::make_unique<PerfStats>(params.program_id); perf_stats = std::make_unique<PerfStats>(params.program_id);
// Reset counters and set time origin to current frame // Reset counters and set time origin to current frame
LOG_ERROR(Core, "GetAndResetPerfStats");
GetAndResetPerfStats(); GetAndResetPerfStats();
LOG_ERROR(Core, "BeginSystemFrame");
perf_stats->BeginSystemFrame(); perf_stats->BeginSystemFrame();
LOG_ERROR(Core, "Creating Patch Manager Instance"); LOG_ERROR(Core, "Creating Patch Manager Instance");

Loading…
Cancel
Save