Fix Kamen Rider Climax Heroes OOO - ULJS00331 loading

thanks @unknownbrackets
This commit is contained in:
sum2012 2013-10-05 20:15:44 +08:00
parent 7213d27ea3
commit 2815cb281a

View file

@ -35,10 +35,13 @@
#include "../native/file/ini_file.h"
bool Loaded_httpmodule = false;
const int SCE_ERROR_MODULE_BAD_ID = 0x80111101;
const int SCE_ERROR_MODULE_ALREADY_LOADED = 0x80111102;
const int SCE_ERROR_MODULE_NOT_LOADED = 0x80111103;
const int SCE_ERROR_AV_MODULE_BAD_ID = 0x80110F01;
const int PSP_MODULE_NET_HTTP = 261;
const int PSP_MODULE_NET_HTTPSTORAGE = 264;
enum UtilityDialogType {
UTILITY_DIALOG_NONE,
@ -207,6 +210,10 @@ u32 sceUtilityLoadModule(u32 module)
currentlyLoadedModules.insert(module);
INFO_LOG(SCEUTILITY, "sceUtilityLoadModule(%i)", module);
if (module == PSP_MODULE_NET_HTTP) //Fix Kamen Rider Climax Heroes OOO - ULJS00331
Loaded_httpmodule = true;
if (module == PSP_MODULE_NET_HTTPSTORAGE && !Loaded_httpmodule)
return SCE_KERNEL_ERROR_LIBRARY_NOTFOUND;
// TODO: Each module has its own timing, technically, but this is a low-end.
// Note: Some modules have dependencies, but they still resched.
if (module == 0x3FF)