ROM name in PNG tEXt chunk now uses 'snapname' setting.

This commit is contained in:
Stephen Anthony 2018-09-13 22:01:37 -02:30
parent b9bbbe1381
commit b32c71d6f4
2 changed files with 7 additions and 1 deletions

View File

@ -94,6 +94,9 @@
and saving. This affects both the files saved to your computer as well and saving. This affects both the files saved to your computer as well
as Time Machine functionality. as Time Machine functionality.
* The ROM name saved in a PNG tEXt chunk now honours the 'snapname'
setting.
* Updated PAL palette. * Updated PAL palette.
* Added recently released 'Arkyology' prototype ROM to the database. * Added recently released 'Arkyology' prototype ROM to the database.

View File

@ -331,7 +331,10 @@ void PNGLibrary::takeSnapshot(uInt32 number)
version << "Stella " << STELLA_VERSION << " (Build " << STELLA_BUILD << ") [" version << "Stella " << STELLA_VERSION << " (Build " << STELLA_BUILD << ") ["
<< BSPF::ARCH << "]"; << BSPF::ARCH << "]";
VarList::push_back(comments, "Software", version.str()); VarList::push_back(comments, "Software", version.str());
VarList::push_back(comments, "ROM Name", myOSystem.console().properties().get(Cartridge_Name)); const string& name = (myOSystem.settings().getString("snapname") == "int")
? myOSystem.console().properties().get(Cartridge_Name)
: myOSystem.romFile().getName();
VarList::push_back(comments, "ROM Name", name);
VarList::push_back(comments, "ROM MD5", myOSystem.console().properties().get(Cartridge_MD5)); VarList::push_back(comments, "ROM MD5", myOSystem.console().properties().get(Cartridge_MD5));
VarList::push_back(comments, "TV Effects", myOSystem.frameBuffer().tiaSurface().effectsInfo()); VarList::push_back(comments, "TV Effects", myOSystem.frameBuffer().tiaSurface().effectsInfo());