diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 20:34:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 20:59:26 +0300 |
commit | bdec92381ef60cd027292ed63e254e8de70028d9 (patch) | |
tree | ebf2722cdc9fe7383a709ba1584432a491cf10ba /src/utils/virtfstools.cpp | |
parent | 5283a59db971ec2038149bf26ad9b3cbc4924449 (diff) | |
download | manaverse-bdec92381ef60cd027292ed63e254e8de70028d9.tar.gz manaverse-bdec92381ef60cd027292ed63e254e8de70028d9.tar.bz2 manaverse-bdec92381ef60cd027292ed63e254e8de70028d9.tar.xz manaverse-bdec92381ef60cd027292ed63e254e8de70028d9.zip |
In virtfs replace parameters type from char* to std::string.
Diffstat (limited to 'src/utils/virtfstools.cpp')
-rw-r--r-- | src/utils/virtfstools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/virtfstools.cpp b/src/utils/virtfstools.cpp index d804dfd41..0b87670bf 100644 --- a/src/utils/virtfstools.cpp +++ b/src/utils/virtfstools.cpp @@ -33,7 +33,7 @@ namespace VirtFs int &restrict fileSize) { // Attempt to open the specified file using PhysicsFS - VirtFile *restrict const file = VirtFs::openRead(fileName.c_str()); + VirtFile *restrict const file = VirtFs::openRead(fileName); if (!file) { @@ -44,7 +44,7 @@ namespace VirtFs } logger->log("Loaded %s/%s", - VirtFs::getRealDir(fileName.c_str()), + VirtFs::getRealDir(fileName), fileName.c_str()); fileSize = CAST_S32(VirtFs::fileLength(file)); @@ -71,7 +71,7 @@ namespace VirtFs { const std::string file = path + str; const std::string realPath = std::string( - VirtFs::getRealDir(file.c_str())); + VirtFs::getRealDir(file)); VirtFs::addZipToSearchPath(std::string(realPath).append( dirSeparator).append(file), append); } @@ -92,7 +92,7 @@ namespace VirtFs { const std::string file = path + str; const std::string realPath = std::string( - VirtFs::getRealDir(file.c_str())); + VirtFs::getRealDir(file)); VirtFs::removeZipFromSearchPath(std::string( realPath).append( dirSeparator).append( |