mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Handle an error condition better.
Just in case someone typos a MIPS_MAKE_SYSCALL().
This commit is contained in:
parent
83b8e564cf
commit
d4f6b49dc4
@ -131,6 +131,9 @@ int GetFuncIndex(int moduleIndex, u32 nib)
|
||||
u32 GetNibByName(const char *moduleName, const char *function)
|
||||
{
|
||||
int moduleIndex = GetModuleIndex(moduleName);
|
||||
if (moduleIndex == -1)
|
||||
return -1;
|
||||
|
||||
const HLEModule &module = moduleDB[moduleIndex];
|
||||
for (int i = 0; i < module.numFunctions; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user