Skip to content

Commit

Permalink
FULLPIPE: Change _gameName into a Common::String
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 19, 2016
1 parent 704b483 commit c3a3d7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions engines/fullpipe/gameloader.cpp
Expand Up @@ -55,7 +55,6 @@ GameLoader::GameLoader() {
_inputController = new InputController();

_gameProject = 0;
_gameName = 0;

addMessageHandlerByIndex(global_messageHandler2, 0, 0);
insertMessageHandler(global_messageHandler3, 0, 128);
Expand All @@ -78,7 +77,6 @@ GameLoader::GameLoader() {
}

GameLoader::~GameLoader() {
free(_gameName);
delete _gameProject;
delete _interactionController;
delete _inputController;
Expand Down Expand Up @@ -112,7 +110,7 @@ bool GameLoader::load(MfcArchive &file) {
debugC(1, kDebugLoading, "GameLoader::load()");

_gameName = file.readPascalString();
debugC(1, kDebugLoading, "_gameName: %s", _gameName);
debugC(1, kDebugLoading, "_gameName: %s", _gameName.c_str());

_gameProject = new GameProject();

Expand All @@ -125,7 +123,7 @@ bool GameLoader::load(MfcArchive &file) {
}

_gameName = file.readPascalString();
debugC(1, kDebugLoading, "_gameName: %s", _gameName);
debugC(1, kDebugLoading, "_gameName: %s", _gameName.c_str());

_inventory.load(file);

Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/gameloader.h
Expand Up @@ -133,7 +133,7 @@ class GameLoader : public CObject {
int16 _field_FA;
PreloadItems _preloadItems;
GameVar *_gameVar;
char *_gameName;
Common::String _gameName;
ExCommand _exCommand;
int _updateCounter;
int _preloadSceneId;
Expand Down

0 comments on commit c3a3d7e

Please sign in to comment.