mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Windows: Add a simple window message to get the base pointer.
Can be useful for various cheat program hackery. Requested by several, most recently NABN00B.
This commit is contained in:
parent
5083b20636
commit
762e26df83
1 changed files with 13 additions and 0 deletions
|
@ -87,6 +87,8 @@
|
|||
int verysleepy__useSendMessage = 1;
|
||||
|
||||
const UINT WM_VERYSLEEPY_MSG = WM_APP + 0x3117;
|
||||
const UINT WM_USER_GET_BASE_POINTER = WM_APP + 0x3118; // 0xB118
|
||||
|
||||
// Respond TRUE to a message with this param value to indicate support.
|
||||
const WPARAM VERYSLEEPY_WPARAM_SUPPORTED = 0;
|
||||
// Respond TRUE to a message wit this param value after filling in the addr name.
|
||||
|
@ -736,6 +738,17 @@ namespace MainWindow
|
|||
}
|
||||
break;
|
||||
|
||||
case WM_USER_GET_BASE_POINTER:
|
||||
switch (lParam) {
|
||||
case 0:
|
||||
return (u32)(u64)Memory::base;
|
||||
case 1:
|
||||
return (u32)((u64)Memory::base >> 32);
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_GETMINMAXINFO:
|
||||
{
|
||||
MINMAXINFO *minmax = reinterpret_cast<MINMAXINFO *>(lParam);
|
||||
|
|
Loading…
Add table
Reference in a new issue