renamed Game properties 'Save' button into 'Export'
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
@ -5003,11 +5003,11 @@ Ms Pac-Man (Stella extended codes):
|
||||||
<p>The buttons at the bottom of the dialogs work as follows:
|
<p>The buttons at the bottom of the dialogs work as follows:
|
||||||
<ul>
|
<ul>
|
||||||
<li><b>Defaults</b>: Reset the properties to those built into Stella.</li>
|
<li><b>Defaults</b>: Reset the properties to those built into Stella.</li>
|
||||||
<li><b>Save</b>: Save the properties for the <i>currently selected ROM only</i>
|
<li><b>Export</b>: Export the properties for the <i>currently selected ROM only</i>
|
||||||
to a properties file in the users default save directory.</li>
|
to a properties file in the user's default save directory.</li>
|
||||||
<li><b>OK</b>: Merge/commit any changes into the ROM properties database, which
|
<li><b>OK</b>: Merge/commit any changes into the ROM properties database, which
|
||||||
contains info on all ROMs.</li>
|
contains info of all ROMs.</li>
|
||||||
<li><b>Cancel</b>: Revert any changes in the dialog, and cancel the operation.</li>
|
<li><b>Cancel</b>: Revert any changes in the dialog and cancel the operation.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>The name of the properties file will depend on the version of Stella, as follows:</p>
|
<p>The name of the properties file will depend on the version of Stella, as follows:</p>
|
||||||
|
|
|
@ -92,9 +92,9 @@ GameInfoDialog::GameInfoDialog(
|
||||||
myTab->setActiveTab(0);
|
myTab->setActiveTab(0);
|
||||||
|
|
||||||
// Add Defaults, OK and Cancel buttons
|
// Add Defaults, OK and Cancel buttons
|
||||||
addDefaultsExtraOKCancelBGroup(wid, font, "Save", kSavePressed);
|
addDefaultsExtraOKCancelBGroup(wid, font, "Export", kExportPressed);
|
||||||
_extraWidget->setToolTip("Save the current ROM's properties in a\n"
|
_extraWidget->setToolTip("Export the current ROM's properties\n"
|
||||||
"separate file in the default directory.");
|
"into the default directory.");
|
||||||
addBGroupToFocusList(wid);
|
addBGroupToFocusList(wid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1341,7 +1341,7 @@ void GameInfoDialog::setAddressVal(EditTextWidget* addressWidget, EditTextWidget
|
||||||
valWidget->setText("");
|
valWidget->setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameInfoDialog::saveCurrentPropertiesToDisk()
|
void GameInfoDialog::exportCurrentPropertiesToDisk()
|
||||||
{
|
{
|
||||||
saveProperties();
|
saveProperties();
|
||||||
stringstream out;
|
stringstream out;
|
||||||
|
@ -1353,12 +1353,12 @@ void GameInfoDialog::saveCurrentPropertiesToDisk()
|
||||||
propfile /= myGameFile.getNameWithExt(".pro");
|
propfile /= myGameFile.getNameWithExt(".pro");
|
||||||
|
|
||||||
propfile.write(out);
|
propfile.write(out);
|
||||||
instance().frameBuffer().showTextMessage("Properties saved to " +
|
instance().frameBuffer().showTextMessage("Properties exported to " +
|
||||||
propfile.getShortPath());
|
propfile.getShortPath());
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
instance().frameBuffer().showTextMessage("Error saving properties");
|
instance().frameBuffer().showTextMessage("Error exporting properties");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1377,8 +1377,8 @@ void GameInfoDialog::handleCommand(CommandSender* sender, int cmd,
|
||||||
setDefaults();
|
setDefaults();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kSavePressed:
|
case kExportPressed:
|
||||||
saveCurrentPropertiesToDisk();
|
exportCurrentPropertiesToDisk();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TabWidget::kTabChangedCmd:
|
case TabWidget::kTabChangedCmd:
|
||||||
|
|
|
@ -180,7 +180,7 @@ class GameInfoDialog : public Dialog, public CommandSender
|
||||||
kHiScoresChanged = 'HSch',
|
kHiScoresChanged = 'HSch',
|
||||||
kPXCenterChanged = 'Pxch',
|
kPXCenterChanged = 'Pxch',
|
||||||
kPYCenterChanged = 'Pych',
|
kPYCenterChanged = 'Pych',
|
||||||
kSavePressed = 'GIsp'
|
kExportPressed = 'GIsp'
|
||||||
};
|
};
|
||||||
|
|
||||||
// Game properties for currently loaded ROM
|
// Game properties for currently loaded ROM
|
||||||
|
|