mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 03:05:18 +02:00
Add a static method for creating PSPPointers.
This is still kinda ugly, but the assignment thing was just too ugly, I couldn't do it anymore.
This commit is contained in:
@@ -1803,8 +1803,7 @@ u32 sceKernelQueryModuleInfo(u32 uid, u32 infoAddr)
|
||||
return -1;
|
||||
}
|
||||
|
||||
PSPPointer<ModuleInfo> info;
|
||||
info = infoAddr;
|
||||
auto info = PSPPointer<ModuleInfo>::Create(infoAddr);
|
||||
|
||||
memcpy(info->segmentaddr, module->nm.segmentaddr, sizeof(info->segmentaddr));
|
||||
memcpy(info->segmentsize, module->nm.segmentsize, sizeof(info->segmentsize));
|
||||
|
||||
Reference in New Issue
Block a user