mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Warning fixes, prevent a possible (but unlikely) crash
This commit is contained in:
1 parent
41ea4ff358
commit
972e4ea4e4
4 files changed
+14
-8
No files matched your search
@@ -361,7 +361,7 @@ u32 sceCtrlSetSamplingMode(u32 mode)
|
||||
int sceCtrlGetSamplingMode(u32 modePtr)
|
||||
{
|
||||
u32 retVal = analogEnabled == true ? CTRL_MODE_ANALOG : CTRL_MODE_DIGITAL;
|
||||
DEBUG_LOG(HLE, "%d=sceCtrlGetSamplingMode(%i)", retVal);
|
||||
DEBUG_LOG(HLE, "%d=sceCtrlGetSamplingMode(%08x)", retVal, modePtr);
|
||||
|
||||
if (Memory::IsValidAddress(modePtr))
|
||||
Memory::Write_U32(retVal, modePtr);
|
||||
|
||||
Reference in new issue
Block a user