summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-14 20:26:09 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-14 20:26:09 +0000
commit6c1e52274a4842ea1ab24ed6a1fd19c6126597b7 (patch)
tree8de296620eddd505cc177c33808dcad7c196ce4e /src/resources/resourcemanager.cpp
parentdba629be42361f2b805c46e102dbed861e3fb049 (diff)
downloadmana-6c1e52274a4842ea1ab24ed6a1fd19c6126597b7.tar.gz
mana-6c1e52274a4842ea1ab24ed6a1fd19c6126597b7.tar.bz2
mana-6c1e52274a4842ea1ab24ed6a1fd19c6126597b7.tar.xz
mana-6c1e52274a4842ea1ab24ed6a1fd19c6126597b7.zip
Fixed resource loading on Windows.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 838dcd6b..94dc3e9d 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -93,26 +93,7 @@ Resource* ResourceManager::get(const E_RESOURCE_TYPE &type,
// Set the filePath variable to the appropriate value
// this is only if we're not using a packed file.
-#ifdef WIN32
- // Flip all of the idPath '/' to '\'
- unsigned int begPos = 0;
- unsigned int endPos = idPath.find("/");
- std::stringstream result;
-
- // Loop through and replace all the characters.
- while (endPos != std::string::npos) {
- result << idPath.substr(begPos, endPos - begPos);
- result << "\\";
-
- begPos = endPos + 1;
- endPos = (unsigned int)idPath.find("/");
- }
-
- filePath = std::string(programPath) + std::string("\\data\\") +
- std::string(result.str());
-#else
filePath = std::string(programPath) + std::string("/data/") + idPath;
-#endif
Resource *resource = NULL;