In special cases, allow ROM_SO to become LAUNCHER-like functionality in Emulator

This commit is contained in:
cuu 2019-06-21 19:01:23 +08:00
parent 0db31341e1
commit 0cb0eafc6a
2 changed files with 2 additions and 2 deletions

View File

@ -380,7 +380,7 @@ func (self *FavListPage) Click() {
event.Post(UI.RUNEVT,cmdpath)
}else{
if UI.FileExists(self.EmulatorConfig.ROM_SO) == true {
if UI.FileExists( strings.Split(self.EmulatorConfig.ROM_SO," ")[0] ) == true {
event.Post(UI.RUNEVT,cmdpath)
} else {
self.Screen.PushCurPage()

View File

@ -409,7 +409,7 @@ func (self *RomListPage) Click() {
event.Post(UI.RUNEVT,cmdpath)
}else{
if UI.FileExists(self.EmulatorConfig.ROM_SO) == true {
if UI.FileExists( strings.Split(self.EmulatorConfig.ROM_SO," ")[0] ) == true {
event.Post(UI.RUNEVT,cmdpath)
} else {
self.Screen.PushCurPage()