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:
Unknown W. Brackets
2013-12-16 23:50:52 -08:00
parent 90b649c9fc
commit 183b4cb45c
12 changed files with 25 additions and 38 deletions
+1 -2
View File
@@ -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));