Fixed the crash that would occur if "Use BIOS file" was selected without a BIOS file specified.

This commit is contained in:
skidau 2015-06-04 02:44:07 +00:00
parent b410bc0314
commit 811fc9a872
2 changed files with 5 additions and 2 deletions

View File

@ -3370,7 +3370,7 @@ void CPUInit(const char *biosFileName, bool useBiosFile)
eepromInUse = 0;
useBios = false;
if(useBiosFile) {
if(useBiosFile && strlen(biosFileName) > 0) {
int size = 0x4000;
if(utilLoad(biosFileName,
CPUIsGBABios,

View File

@ -2505,7 +2505,10 @@ EVT_HANDLER(wxID_ABOUT, "About...")
ai.SetName(wxT("VisualBoyAdvance-M"));
wxString version = wxT("");
#ifndef FINAL_BUILD
version = version + wxT("-") + wxT(SVN_REV_STR);
if (!version.IsEmpty())
version = version + wxT("-");
version = version + wxT(SVN_REV_STR);
#endif
ai.SetVersion(version);
// setting website, icon, license uses custom aboutbox on win32 & macosx