Пример #1
0
Common::Error DraciEngine::loadGameState(int slot) {
    // When called from run() using save_slot, the next operation is the
    // call to start() calling enterNewRoom().
    // When called from handleEvents() in the middle of the game, the next
    // operation after handleEvents() exits from loop(), and returns to
    // start() to the same place as above.
    // In both cases, we are safe to override the data structures right
    // here are now, without waiting for any other code to finish, thanks
    // to our constraint in canLoadGameStateCurrently() and to having
    // enterNewRoom() called right after we exit from here.
    return loadSavegameData(slot, this);
}
Пример #2
0
Common::Error CruiseEngine::loadGameState(int slot) {
	return loadSavegameData(slot);
}