[colobot] 202/390: Removed unused PHYSFS conversions

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:21:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit 462f0ce9d7d892e775c7ef7c7b7087625a1d968c
Author: krzys-h <krzys_h at interia.pl>
Date:   Mon Nov 10 22:19:52 2014 +0100

    Removed unused PHYSFS conversions
---
 src/object/robotmain.cpp | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index d14c7e5..331b35c 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -5694,13 +5694,7 @@ void CRobotMain::IOWriteObject(CLevelParserLine* line, CObject* obj)
 //! Saves the current game
 bool CRobotMain::IOWriteScene(const char *filename, const char *filecbot, char *info)
 {
-    std::string fnstr = filename;
-    std::string savedir = CResourceManager::GetSaveLocation()+"/";
-    boost::replace_all(fnstr, "\\", "/");
-    boost::replace_all(savedir, "\\", "/");
-    boost::replace_all(fnstr, savedir, ""); //TODO: Refactor to get physfs path here
-    
-    CLevelParser* level = new CLevelParser(fnstr);
+    CLevelParser* level = new CLevelParser(filename);
     CLevelParserLine* line;
 
     line = new CLevelParserLine("Title");
@@ -5883,13 +5877,7 @@ CObject* CRobotMain::IOReadObject(CLevelParserLine *line, const char* filename,
 //! Resumes some part of the game
 CObject* CRobotMain::IOReadScene(const char *filename, const char *filecbot)
 {
-    std::string fnstr = filename;
-    std::string savedir = CResourceManager::GetSaveLocation()+"/";
-    boost::replace_all(fnstr, "\\", "/");
-    boost::replace_all(savedir, "\\", "/");
-    boost::replace_all(fnstr, savedir, ""); //TODO: Refactor to get physfs path here
-
-    CLevelParser* level = new CLevelParser(fnstr);
+    CLevelParser* level = new CLevelParser(filename);
     level->Load();
 
     m_base = nullptr;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list