Win32: fix a bug which would cause recent roms menu to accept only
9 recent roms instead of 10.
This commit is contained in:
parent
66c895dca4
commit
642ce3a115
|
@ -543,7 +543,7 @@ void UpdateRecentRoms(const char* filename)
|
||||||
RecentRoms.insert(RecentRoms.begin(), newROM); //Add to the array
|
RecentRoms.insert(RecentRoms.begin(), newROM); //Add to the array
|
||||||
|
|
||||||
//If over the max, we have too many, so remove the last entry
|
//If over the max, we have too many, so remove the last entry
|
||||||
if (RecentRoms.size() == MAX_RECENT_ROMS)
|
if (RecentRoms.size() > MAX_RECENT_ROMS)
|
||||||
RecentRoms.pop_back();
|
RecentRoms.pop_back();
|
||||||
|
|
||||||
//Debug
|
//Debug
|
||||||
|
@ -923,7 +923,7 @@ void CheckMessages()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
int fps;
|
||||||
DWORD WINAPI run()
|
DWORD WINAPI run()
|
||||||
{
|
{
|
||||||
u32 cycles = 0;
|
u32 cycles = 0;
|
||||||
|
@ -938,13 +938,13 @@ DWORD WINAPI run()
|
||||||
u64 diffticks=0;
|
u64 diffticks=0;
|
||||||
u32 framecount=0;
|
u32 framecount=0;
|
||||||
u64 onesecondticks=0;
|
u64 onesecondticks=0;
|
||||||
int fps=0;
|
//int fps=0;
|
||||||
int fpsframecount=0;
|
int fpsframecount=0;
|
||||||
u64 fpsticks=0;
|
u64 fpsticks=0;
|
||||||
HWND hwnd = MainWindow->getHWnd();
|
HWND hwnd = MainWindow->getHWnd();
|
||||||
|
|
||||||
InitSpeedThrottle();
|
InitSpeedThrottle();
|
||||||
|
fps=0;
|
||||||
osd->setRotate(video.rotation);
|
osd->setRotate(video.rotation);
|
||||||
|
|
||||||
if (DirectDrawCreateEx(NULL, (LPVOID*)&lpDDraw, IID_IDirectDraw7, NULL) != DD_OK)
|
if (DirectDrawCreateEx(NULL, (LPVOID*)&lpDDraw, IID_IDirectDraw7, NULL) != DD_OK)
|
||||||
|
|
Loading…
Reference in New Issue