diff --git a/Core/HLE/HLETables.cpp b/Core/HLE/HLETables.cpp index 65d23c05bd..4d974c77f5 100644 --- a/Core/HLE/HLETables.cpp +++ b/Core/HLE/HLETables.cpp @@ -84,6 +84,7 @@ #include "sceNetInet.h" #include "sceNetResolver.h" // #include "sceNp2.h" +#include "sceNet_lib.h" #define N(s) s @@ -319,6 +320,7 @@ void RegisterAllModules() { Register_mp4msv(); Register_InterruptManagerForKernel(); Register_sceSircs(); + Register_sceNet_lib(); // Not ready to enable this due to apparent softlocks in Patapon 3. // Register_sceNpMatching2(); diff --git a/Core/HLE/sceNet_lib.cpp b/Core/HLE/sceNet_lib.cpp index 1e56b19a34..8d797a8478 100644 --- a/Core/HLE/sceNet_lib.cpp +++ b/Core/HLE/sceNet_lib.cpp @@ -13,4 +13,32 @@ // If not, see http://www.gnu.org/licenses/ // Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. \ No newline at end of file +// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. + + +#include "Core/HLE/sceNet_lib.h" + +#include "Core/HLE/FunctionWrappers.h" +#include "Core/HLE/HLE.h" + + + +const HLEFunction sceNet_lib[] = { + {0X1858883D, nullptr, "sceNetRand", 'i', "" }, + {0X2A73ADDC, nullptr, "sceNetStrtoul", 'i', "" }, + {0X4753D878, nullptr, "sceNetMemmove", 'i', "" }, + {0X80C9F02A, nullptr, "sceNetStrcpy", 'i', "" }, + {0X94DCA9F0, nullptr, "sceNetStrncmp", 'i', "" }, + {0X9CFBC7E3, nullptr, "sceNetStrcasecmp", 'i', "" }, + {0XA0F16ABD, nullptr, "sceNetStrcmp", 'i', "" }, + {0XB5CE388A, nullptr, "sceNetStrncpy", 'i', "" }, + {0XBCBE14CF, nullptr, "sceNetStrchr", 'i', "" }, + {0XCF705E46, nullptr, "sceNetSprintf", 'i', "" }, + {0XD8722983, nullptr, "sceNetStrlen", 'i', "" }, + {0XE0A81C7C, nullptr, "sceNetMemcmp", 'i', "" }, +}; + + +void Register_sceNet_lib() { + RegisterModule("sceNet_lib", ARRAY_SIZE(sceNet_lib), sceNet_lib); +} diff --git a/Core/HLE/sceNet_lib.h b/Core/HLE/sceNet_lib.h index 1e56b19a34..2ac9e89678 100644 --- a/Core/HLE/sceNet_lib.h +++ b/Core/HLE/sceNet_lib.h @@ -13,4 +13,7 @@ // If not, see http://www.gnu.org/licenses/ // Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. \ No newline at end of file +// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. + + +void Register_sceNet_lib();