mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00: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:
parent
df919faa57
commit
8f80396b1f
4 changed files with 0 additions and 28 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -104,11 +104,6 @@ name = "Primitive2DHalfPixelOffsetMidAsmHook"
|
|||
address = 0x830D213C
|
||||
registers = ["f13"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "GracefulLoopExitMidAsmHook"
|
||||
address = 0x822C1018
|
||||
return_on_true = true
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "CameraAspectRatioMidAsmHook"
|
||||
address = 0x82468E84
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue