mirror of https://github.com/stella-emu/stella.git
Fix tick suffix in snapshot file name.
This commit is contained in:
parent
ed3b61fdb1
commit
bfd12d7ddc
|
@ -63,7 +63,6 @@ void TiaOutputWidget::saveSnapshot(int execDepth, const string& execPrefix)
|
||||||
if (execDepth > 0) {
|
if (execDepth > 0) {
|
||||||
drawWidget(false);
|
drawWidget(false);
|
||||||
}
|
}
|
||||||
int number = int(instance().getTicks() / 1000);
|
|
||||||
ostringstream sspath;
|
ostringstream sspath;
|
||||||
sspath << instance().snapshotSaveDir()
|
sspath << instance().snapshotSaveDir()
|
||||||
<< instance().console().properties().get(Cartridge_Name);
|
<< instance().console().properties().get(Cartridge_Name);
|
||||||
|
@ -71,7 +70,7 @@ void TiaOutputWidget::saveSnapshot(int execDepth, const string& execPrefix)
|
||||||
if (execDepth > 0 && !execPrefix.empty()) {
|
if (execDepth > 0 && !execPrefix.empty()) {
|
||||||
sspath << execPrefix << "_";
|
sspath << execPrefix << "_";
|
||||||
}
|
}
|
||||||
sspath << std::hex << std::setw(8) << std::setfill('0') << (number/1000 & 0xffffffff) << ".png";
|
sspath << std::hex << std::setw(8) << std::setfill('0') << (instance().getTicks()/1000 & 0xffffffff) << ".png";
|
||||||
|
|
||||||
const uInt32 width = instance().console().tia().width(),
|
const uInt32 width = instance().console().tia().width(),
|
||||||
height = instance().console().tia().height();
|
height = instance().console().tia().height();
|
||||||
|
|
Loading…
Reference in New Issue