This commit is contained in:
wwylele 2015-10-08 11:52:10 +08:00
parent 4c2beee62f
commit 1a088b85c6

View file

@ -355,7 +355,7 @@ void GMainWindow::UpdateRecentFiles() {
} }
void GMainWindow::OnGameListLoadFile(QString game_path) { void GMainWindow::OnGameListLoadFile(QString game_path) {
BootGame(game_path.toLocal8bit().data()); BootGame(game_path.toLocal8Bit().data());
} }
void GMainWindow::OnMenuLoadFile() { void GMainWindow::OnMenuLoadFile() {
@ -367,7 +367,7 @@ void GMainWindow::OnMenuLoadFile() {
settings.setValue("romsPath", QFileInfo(filename).path()); settings.setValue("romsPath", QFileInfo(filename).path());
StoreRecentFile(filename); StoreRecentFile(filename);
BootGame(filename.toLocal8bit().data()); BootGame(filename.toLocal8Bit().data());
} }
} }
@ -379,7 +379,7 @@ void GMainWindow::OnMenuLoadSymbolMap() {
if (!filename.isEmpty()) { if (!filename.isEmpty()) {
settings.setValue("symbolsPath", QFileInfo(filename).path()); settings.setValue("symbolsPath", QFileInfo(filename).path());
LoadSymbolMap(filename.toLocal8bit().data()); LoadSymbolMap(filename.toLocal8Bit().data());
} }
} }
@ -400,7 +400,7 @@ void GMainWindow::OnMenuRecentFile() {
QString filename = action->data().toString(); QString filename = action->data().toString();
QFileInfo file_info(filename); QFileInfo file_info(filename);
if (file_info.exists()) { if (file_info.exists()) {
BootGame(filename.toLocale8bit().data()); BootGame(filename.toLocale8Bit().data());
StoreRecentFile(filename); // Put the filename on top of the list StoreRecentFile(filename); // Put the filename on top of the list
} else { } else {
// Display an error message and remove the file from the list. // Display an error message and remove the file from the list.