trying to fix crashes (cheats, closing games)

This commit is contained in:
Bea 2020-07-04 11:49:36 +02:00
parent c58cb2d916
commit 1fce207bcf
2 changed files with 8 additions and 2 deletions

View File

@ -29,6 +29,9 @@
Result UnmapProcessMemoryEx(Handle processHandle, void *dst, u32 size)
{
if (GET_VERSION_MINOR(kernelVersion) < 37) // < 6.x
return UnmapProcessMemory(processHandle, dst, size); // equivalent when size <= 64MB
Result res = 0;
u32 sizeInPage = size >> 12;
KLinkedList list;

View File

@ -71,8 +71,11 @@ extern Handle preTerminationEvent;
extern u32 menuCombo;
u32 waitInputWithTimeout(u32 msec);
u32 waitInput(void);
u32 waitInputWithTimeout(s32 msec);
u32 waitInput(void);
u32 waitComboWithTimeout(s32 msec);
u32 waitCombo(void);
bool menuCheckN3ds(void);
u32 menuCountItems(const Menu *menu);