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.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fs/files.cpp b/src/fs/files.cpp
index 1dcbb9962..5134520ce 100644
--- a/src/fs/files.cpp
+++ b/src/fs/files.cpp
@@ -1,9 +1,9 @@
/*
- * The ManaPlus Client
+ * The ManaVerse Client
* Copyright (C) 2013-2020 The ManaPlus Developers
- * Copyright (C) 2020-2023 The ManaVerse Developers
+ * Copyright (C) 2020-2025 The ManaVerse Developers
*
- * This file is part of The ManaPlus Client.
+ * This file is part of The ManaVerse Client.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -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);