Merge pull request #159 from hpingel/1581romname

display 1581 rom name after mounting an d81 image on big screen
This commit is contained in:
Stephen White 2019-12-01 12:54:30 +11:00 committed by GitHub
commit 253e26594a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

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

View File

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

View File

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