Skip to content

Commit

Permalink
LASTEXPRESS: Add menu-related warnings and turn some warnings into er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
Templier committed Jul 27, 2012
1 parent e91001a commit 94e2ea1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion engines/lastexpress/game/action.cpp
Expand Up @@ -404,7 +404,7 @@ SceneIndex Action::processHotspot(const SceneHotspot &hotspot) {
//////////////////////////////////////////////////////////////////////////
// Action 0
IMPLEMENT_ACTION(dummy)
warning("[Action::action_dummy] Dummy action function called (hotspot action: %d)", hotspot.action);
error("[Action::action_dummy] Dummy action function called (hotspot action: %d)", hotspot.action);

return kSceneInvalid;
}
Expand Down
2 changes: 1 addition & 1 deletion engines/lastexpress/game/savegame.cpp
Expand Up @@ -257,7 +257,7 @@ void SaveLoad::saveGame(SavegameType type, EntityIndex entity, uint32 value) {
entry.saveLoadWithSerializer(ser);

if (!entry.isValid()) {
warning("[SaveLoad::saveGame] Invalid entry. This savegame might be corrupted");
error("[SaveLoad::saveGame] Invalid entry. This savegame might be corrupted");
_savegame->seek(header.offset);
} else if (getState()->time < entry.time || (type == kSavegameTypeTickInterval && getState()->time == entry.time)) {
// Not ready to save a game, skipping!
Expand Down
4 changes: 2 additions & 2 deletions engines/lastexpress/menu/menu.cpp
Expand Up @@ -864,7 +864,7 @@ void Menu::init(bool doSavegame, SavegameType type, uint32 value) {

doSavegame = false;
} else {
// TODO rename saves?
warning("[Menu::initGame] Renaming saves not implemented");
}

// Create a new savegame if needed
Expand All @@ -875,7 +875,7 @@ void Menu::init(bool doSavegame, SavegameType type, uint32 value) {
getSaveLoad()->saveGame(kSavegameTypeEvent2, kEntityPlayer, kEventNone);

if (!getGlobalTimer()) {
// TODO: remove existing savegame temp file
warning("[Menu::initGame] Removing temporary saves not implemented");
}

// Init savegame & menu values
Expand Down
2 changes: 1 addition & 1 deletion engines/lastexpress/sound/entry.cpp
Expand Up @@ -117,7 +117,7 @@ void SoundEntry::close() {

void SoundEntry::play() {
if (!_stream) {
warning("[SoundEntry::play] stream has been disposed");
error("[SoundEntry::play] stream has been disposed");
return;
}

Expand Down

0 comments on commit 94e2ea1

Please sign in to comment.