Fixed linux compilation issues
This commit is contained in:
parent
6d75c9ce0d
commit
5a2750d160
|
@ -238,11 +238,9 @@ readfunc GetReadHandler(int32 a)
|
|||
else
|
||||
return ARead[a];
|
||||
}
|
||||
|
||||
void SetReadHandler(int32 start, int32 end, readfunc func)
|
||||
{
|
||||
int32 x;
|
||||
|
||||
if(!func)
|
||||
func=ANull;
|
||||
|
||||
|
@ -482,7 +480,9 @@ endlseq:
|
|||
if(GameInfo->type!=GIT_NSF)
|
||||
FCEU_LoadGameCheats(0);
|
||||
|
||||
#if defined (WIN32) || defined (WIN64)
|
||||
DoDebuggerRunCheck(); //Can't safely do it in loadPreferences
|
||||
#endif
|
||||
|
||||
return GameInfo;
|
||||
}
|
||||
|
|
|
@ -2179,7 +2179,7 @@ void HandleCallbackError(lua_State* L)
|
|||
#ifdef WIN32
|
||||
MessageBox( hAppWnd, lua_tostring(L,-1), "Lua run error", MB_OK | MB_ICONSTOP);
|
||||
#else
|
||||
fprintf(stderr, "Lua thread bombed out: %s\n", lua_tostring(LUA,-1));
|
||||
fprintf(stderr, "Lua thread bombed out: %s\n", lua_tostring(L,-1));
|
||||
#endif
|
||||
|
||||
FCEU_LuaStop();
|
||||
|
|
Loading…
Reference in New Issue