From facc34d86c4ed49e70a066b882481d37776bc029 Mon Sep 17 00:00:00 2001 From: Dav999-v Date: Sun, 12 Jan 2020 15:51:25 +0100 Subject: [PATCH] Replace 2 remaining TinyXml LoadFile()s by FILESYSTEM_loadTiXmlDocument --- desktop_version/src/Game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index cc17ab66..6eee77d8 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -331,8 +331,8 @@ Game::Game(void): } - TiXmlDocument docTele((saveFilePath+"tsave.vvv").c_str()); - if (!docTele.LoadFile()) + TiXmlDocument docTele; + if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele)) { telecookieexists = false; telesummary = ""; @@ -5298,8 +5298,8 @@ void Game::loadsummary( mapclass& map, UtilityClass& help ) // quick_crewstats = summary_crewstats.slice(); //} - TiXmlDocument docTele((saveFilePath+"tsave.vvv").c_str()); - if (!docTele.LoadFile()) + TiXmlDocument docTele; + if (!FILESYSTEM_loadTiXmlDocument("saves/tsave.vvv", &docTele)) { telecookieexists = false; telesummary = "";