Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/savegame/save.js
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | function reallySaveGame(name, desc, nameIsPrefix) | ||||
else | else | ||||
Engine.SaveGame(name, desc, g_SavedGameData); | Engine.SaveGame(name, desc, g_SavedGameData); | ||||
closeSave(); | closeSave(); | ||||
} | } | ||||
function closeSave() | function closeSave() | ||||
{ | { | ||||
Engine.PopGuiPageCB(0); | Engine.PopGuiPage(); | ||||
} | } | ||||
// HACK: Engine.SaveGame* expects this function to be defined on the current page. | // HACK: Engine.SaveGame* expects this function to be defined on the current page. | ||||
// That's why we have to pass the data to this page even if we don't need it. | // That's why we have to pass the data to this page even if we don't need it. | ||||
function getSavedGameData() | function getSavedGameData() | ||||
{ | { | ||||
return g_SavedGameData; | return g_SavedGameData; | ||||
} | } |
Wildfire Games · Phabricator