| 107 | } |
| 108 | |
| 109 | void DeleteGameState::btnYesClick(Action *) |
| 110 | { |
| 111 | _game->popState(); |
| 112 | if (!CrossPlatform::deleteFile(_filename)) |
| 113 | { |
| 114 | std::wstring error = tr("STR_DELETE_UNSUCCESSFUL"); |
| 115 | if (_origin != OPT_BATTLESCAPE) |
| 116 | _game->pushState(new ErrorMessageState(_game, error, _palette, Palette::blockOffset(8)+10, "BACK01.SCR", 6)); |
| 117 | else |
| 118 | _game->pushState(new ErrorMessageState(_game, error, _palette, Palette::blockOffset(0), "TAC00.SCR", -1)); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | } |
nothing calls this directly
no test coverage detected