mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Make saveFilePath not an std::string
Since it only ever gets assigned from FILESYSTEM_getUserSaveDirectory(), and that function returns a C string, and the variable is only ever read from again, this doesn't need to be an std::string.
This commit is contained in:
parent
36e91a9bb1
commit
40c6a01917
2 changed files with 5 additions and 5 deletions
|
@ -628,7 +628,7 @@ void Game::savecustomlevelstats(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Could Not Save level stats!\n");
|
printf("Could Not Save level stats!\n");
|
||||||
printf("Failed: %s%s\n", saveFilePath.c_str(), "levelstats.vvv");
|
printf("Failed: %s%s\n", saveFilePath, "levelstats.vvv");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5758,7 +5758,7 @@ bool Game::savetele(void)
|
||||||
if(!FILESYSTEM_saveTiXml2Document("saves/tsave.vvv", doc))
|
if(!FILESYSTEM_saveTiXml2Document("saves/tsave.vvv", doc))
|
||||||
{
|
{
|
||||||
printf("Could Not Save game!\n");
|
printf("Could Not Save game!\n");
|
||||||
printf("Failed: %s%s\n", saveFilePath.c_str(), "tsave.vvv");
|
printf("Failed: %s%s\n", saveFilePath, "tsave.vvv");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("Game saved\n");
|
printf("Game saved\n");
|
||||||
|
@ -5785,7 +5785,7 @@ bool Game::savequick(void)
|
||||||
if(!FILESYSTEM_saveTiXml2Document("saves/qsave.vvv", doc))
|
if(!FILESYSTEM_saveTiXml2Document("saves/qsave.vvv", doc))
|
||||||
{
|
{
|
||||||
printf("Could Not Save game!\n");
|
printf("Could Not Save game!\n");
|
||||||
printf("Failed: %s%s\n", saveFilePath.c_str(), "qsave.vvv");
|
printf("Failed: %s%s\n", saveFilePath, "qsave.vvv");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("Game saved\n");
|
printf("Game saved\n");
|
||||||
|
@ -6033,7 +6033,7 @@ bool Game::customsavequick(std::string savfile)
|
||||||
if(!FILESYSTEM_saveTiXml2Document(("saves/"+levelfile+".vvv").c_str(), doc))
|
if(!FILESYSTEM_saveTiXml2Document(("saves/"+levelfile+".vvv").c_str(), doc))
|
||||||
{
|
{
|
||||||
printf("Could Not Save game!\n");
|
printf("Could Not Save game!\n");
|
||||||
printf("Failed: %s%s%s\n", saveFilePath.c_str(), levelfile.c_str(), ".vvv");
|
printf("Failed: %s%s%s\n", saveFilePath, levelfile.c_str(), ".vvv");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("Game saved\n");
|
printf("Game saved\n");
|
||||||
|
|
|
@ -183,7 +183,7 @@ public:
|
||||||
|
|
||||||
void initteleportermode(void);
|
void initteleportermode(void);
|
||||||
|
|
||||||
std::string saveFilePath;
|
const char* saveFilePath;
|
||||||
|
|
||||||
|
|
||||||
int door_left;
|
int door_left;
|
||||||
|
|
Loading…
Reference in a new issue