mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
Pressing enter when entering the name of a save game should save that game
svn-id: r32661
This commit is contained in:
parent
efc4fd7ae0
commit
6fa6a2fbca
@ -122,6 +122,21 @@ bool DrasculaEngine::saveLoadScreen() {
|
||||
print_abc(names[n2], 116, y);
|
||||
y = y + 9;
|
||||
}
|
||||
|
||||
if (selectionMade == 1) {
|
||||
snprintf(file, 50, "%s%02d", _targetName.c_str(), n + 1);
|
||||
saveGame(file);
|
||||
Common::OutSaveFile *tsav;
|
||||
if (!(tsav = _saveFileMan->openForSaving(fileEpa))) {
|
||||
error("Can't open %s file", fileEpa);
|
||||
}
|
||||
for (n = 0; n < NUM_SAVES; n++) {
|
||||
tsav->writeString(names[n]);
|
||||
tsav->writeString("\n");
|
||||
}
|
||||
tsav->finalize();
|
||||
delete tsav;
|
||||
}
|
||||
}
|
||||
|
||||
if (mouseX > 125 && mouseY > 123 && mouseX < 199 && mouseY < 149 && selectionMade == 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user