Win32 - Window caption now shows the name of the rom loaded.

This commit is contained in:
adelikat 2009-05-22 16:45:22 +00:00
parent 8e063314bc
commit 5f76335d65
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,4 @@
22-may-2009 - adelikat - win32 - Window caption shows the name of the ROM loaded
22-may-2009 - adelikat - win32 - Hex Editor - allowed the user to customize the color scheme by use of RGB values stored in the .cfg file
21-may-2009 - adelikat - win32 - reverted fixedFontHeight to 13 instead of 14. Gave the option of adjusting the height by modifying RowHeightBorder in the .cfg file
21-may-2009 - adelikat - win32 - made fullscreen toggle (Alt+Enter) remappable

View File

@ -811,12 +811,14 @@ void CloseGame()
FCEUI_CloseGame();
KillMemView();
updateGameDependentMenus(GameInfo != 0);
SetWindowText(hAppWnd, FCEU_NAME_AND_VERSION);
}
}
void ALoad(char *nameo, char* innerFilename)
{
if (GameInfo) FCEUI_CloseGame();
if(FCEUI_LoadGameVirtual(nameo, 1))
{
pal_emulation = FCEUI_GetCurrentVidSystem(0, 0);
@ -844,7 +846,16 @@ void ALoad(char *nameo, char* innerFilename)
{
SetFSVideoMode();
}
//Add the filename to the window caption
extern char FileBase[];
string str = FCEU_NAME_AND_VERSION;
str.append(": ");
str.append(FileBase);
SetWindowText(hAppWnd, str.c_str());
}
else
SetWindowText(hAppWnd, FCEU_NAME_AND_VERSION); //adelikat: If game fails to load while a previous one was open, the previous would have been closed, so reflect that in the window caption
ParseGIInput(GameInfo);
@ -1844,7 +1855,6 @@ int CreateMainWindow()
NULL );
//CenterWindowOnScreen(hAppWnd);
DragAcceptFiles(hAppWnd, 1);
SetMainWindowStuff();