Handle an error condition better.

Just in case someone typos a MIPS_MAKE_SYSCALL().
This commit is contained in:
Unknown W. Brackets 2015-01-19 08:34:12 -08:00
parent 83b8e564cf
commit d4f6b49dc4

View File

@ -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++)
{