Linux: Fixed compilation errors/warnings
This commit is contained in:
parent
47cb79681b
commit
3ee389781f
3 changed files with 6 additions and 1 deletions
|
@ -256,6 +256,7 @@ uint8_t MemoryDumper::GetMemoryValue(DebugMemoryType memoryType, uint32_t addres
|
|||
case DebugMemoryType::ChrRam:
|
||||
case DebugMemoryType::WorkRam:
|
||||
case DebugMemoryType::SaveRam:
|
||||
case DebugMemoryType::NametableRam:
|
||||
return _mapper->GetMemoryValue(memoryType, address);
|
||||
|
||||
case DebugMemoryType::InternalRam: return _memoryManager->DebugRead(address);
|
||||
|
|
|
@ -274,7 +274,7 @@ void ShortcutKeyHandler::ProcessKeys()
|
|||
|
||||
if(_runSingleFrameRepeatTimer) {
|
||||
double elapsedMs = _runSingleFrameRepeatTimer->GetElapsedMS();
|
||||
if(_repeatStarted && elapsedMs >= 50 || !_repeatStarted && elapsedMs >= 500) {
|
||||
if((_repeatStarted && elapsedMs >= 50) || (!_repeatStarted && elapsedMs >= 500)) {
|
||||
//Over 500ms has elapsed since the key was first pressed, or over 50ms since repeat mode started (20fps)
|
||||
//In this case, run another frame and pause again.
|
||||
_repeatStarted = true;
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
#include "lua.h"
|
||||
#include "lauxlib.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#define gai_strerrorA gai_strerror
|
||||
#endif
|
||||
|
||||
#if LUA_VERSION_NUM==501
|
||||
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
|
||||
void *luaL_testudata ( lua_State *L, int arg, const char *tname);
|
||||
|
|
Loading…
Add table
Reference in a new issue