mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-22 17:13:10 -04:00
Remove graceful exit hook
Might as well stick with ExitProcess, seeing as this is how the game is exited on Xbox.
This commit is contained in:
@@ -1,23 +1,11 @@
|
||||
#include <cpu/guest_code.h>
|
||||
#include "api/SWA.h"
|
||||
#include "ui/window.h"
|
||||
#include "game.h"
|
||||
|
||||
constexpr float m_baseAspectRatio = 16.0f / 9.0f;
|
||||
|
||||
uint32_t m_lastCheckpointScore = 0;
|
||||
|
||||
void Game::Exit()
|
||||
{
|
||||
s_isSignalExit = true;
|
||||
}
|
||||
|
||||
bool GracefulLoopExitMidAsmHook()
|
||||
{
|
||||
// TODO (Sajid): investigate XAM handle closing causing assertion failure here.
|
||||
return Game::s_isSignalExit;
|
||||
}
|
||||
|
||||
#pragma region Aspect Ratio Hooks
|
||||
|
||||
bool CameraAspectRatioMidAsmHook(PPCRegister& r31)
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
class Game
|
||||
{
|
||||
public:
|
||||
inline static bool s_isSignalExit = false;
|
||||
|
||||
static void Exit();
|
||||
};
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <config.h>
|
||||
#include <kernel/function.h>
|
||||
#include <SDL_syswm.h>
|
||||
#include "game.h"
|
||||
|
||||
bool m_isFullscreenKeyReleased = true;
|
||||
|
||||
@@ -11,7 +10,6 @@ int Window_OnSDLEvent(void*, SDL_Event* event)
|
||||
// TODO (Hyper): prevent window changes during boot to avoid buffer resize crashes.
|
||||
switch (event->type)
|
||||
{
|
||||
// TODO: use Game::Exit().
|
||||
case SDL_QUIT:
|
||||
ExitProcess(0);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user