display 1581 rom name after mounting an d81 image on big screen

This commit is contained in:
Henning Pingel 2019-11-26 21:36:37 +01:00
parent b77fa6fb2d
commit 28679fa10f
3 changed files with 9 additions and 2 deletions

View File

@ -1432,6 +1432,11 @@ void FileBrowser::ClearSelections()
} }
void FileBrowser::ShowDeviceAndROM() void FileBrowser::ShowDeviceAndROM()
{
ShowDeviceAndROM( roms->ROMNames[roms->currentROMIndex] );
}
void FileBrowser::ShowDeviceAndROM( const char* ROMName )
{ {
char buffer[256]; char buffer[256];
u32 textColour = RGBA(0, 0, 0, 0xff); u32 textColour = RGBA(0, 0, 0, 0xff);
@ -1443,7 +1448,7 @@ void FileBrowser::ShowDeviceAndROM()
snprintf(buffer, 256, "Device %2d %*s\r\n" snprintf(buffer, 256, "Device %2d %*s\r\n"
, *deviceID , *deviceID
, roms->GetLongestRomNameLen() , roms->GetLongestRomNameLen()
, roms->ROMNames[roms->currentROMIndex] , ROMName
); );
screenMain->PrintText(false, x, y, buffer, textColour, bgColour); screenMain->PrintText(false, x, y, buffer, textColour, bgColour);
#endif #endif

View File

@ -187,6 +187,8 @@ public:
void ClearSelections(); void ClearSelections();
void ShowDeviceAndROM(); void ShowDeviceAndROM();
void ShowDeviceAndROM( const char* ROMName );
void ClearScreen(); void ClearScreen();

View File

@ -651,7 +651,7 @@ EmulatingMode BeginEmulating(FileBrowser* fileBrowser, const char* filenameForIc
{ {
pi1581.Insert(diskImage); pi1581.Insert(diskImage);
fileBrowser->DisplayDiskInfo(diskImage, filenameForIcon); fileBrowser->DisplayDiskInfo(diskImage, filenameForIcon);
fileBrowser->ShowDeviceAndROM(); fileBrowser->ShowDeviceAndROM( roms.ROMName1581 );
return EMULATING_1581; return EMULATING_1581;
} }
else else