summaryrefslogtreecommitdiff
path: root/src/fs/files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/files.cpp')
-rw-r--r--src/fs/files.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs/files.cpp b/src/fs/files.cpp
index 5a041b698..5134520ce 100644
--- a/src/fs/files.cpp
+++ b/src/fs/files.cpp
@@ -60,7 +60,7 @@ void Files::extractLocale()
const std::string dir = pathJoin("locale", *i);
if (VirtFs::isDirectory(dir))
{
- const std::string moFile = dir + "/LC_MESSAGES/manaplus.mo";
+ const std::string moFile = dir + "/LC_MESSAGES/manaverse.mo";
if (VirtFs::exists((moFile)))
{
const std::string localFile = pathJoin(localDir, moFile);
@@ -209,7 +209,7 @@ int Files::copyFile(const std::string &restrict srcName,
bool Files::existsLocal(const std::string &path)
{
struct stat statbuf;
-#ifdef WIN32
+#ifdef _WIN32
// in windows path\file.ext\ by default detected as exists
// if file.ext is not directory, need return false
const bool res = (stat(path.c_str(), &statbuf) == 0);
@@ -221,9 +221,9 @@ bool Files::existsLocal(const std::string &path)
return false;
}
return true;
-#else // WIN32
+#else // _WIN32
return stat(path.c_str(), &statbuf) == 0;
-#endif // WIN32
+#endif // _WIN32
}
bool Files::loadTextFileLocal(const std::string &fileName,
@@ -303,7 +303,7 @@ void Files::enumFiles(StringVect &files,
const std::string file = next_file->d_name;
if (file == "." || file == "..")
continue;
-#ifndef WIN32
+#ifndef _WIN32
if (skipSymlinks == true)
{
struct stat statbuf;
@@ -313,7 +313,7 @@ void Files::enumFiles(StringVect &files,
continue;
}
}
-#endif // WIN32
+#endif // _WIN32
files.push_back(file);
}
closedir(dir);