From d89c9bda61dbe14e604fe5175de8ec977704d88c Mon Sep 17 00:00:00 2001 From: jak1 Date: Sun, 8 Jan 2023 21:35:54 +0100 Subject: some more renaming --- docs/example.manaplus | 24 ------------------------ docs/example.manaverse | 24 ++++++++++++++++++++++++ src/commandline.cpp | 9 +++++---- src/dirs.cpp | 2 +- src/fs/files.cpp | 2 +- src/fs/paths.cpp | 4 ++-- src/game.cpp | 4 ++-- src/graphicsmanager.cpp | 2 +- src/gui/windowmanager.cpp | 2 +- src/gui/windows/updaterwindow.cpp | 22 +++++++++++----------- src/gui/windows/updaterwindow.h | 4 ++-- src/logger.cpp | 8 ++++---- src/main.h | 6 +++--- src/manaplus.rc | 24 ------------------------ src/manaverse.rc | 24 ++++++++++++++++++++++++ src/mumblemanager.cpp | 4 ++-- src/net/ea/loginrecv.cpp | 2 +- src/net/eathena/loginrecv.cpp | 2 +- src/resources/mapreader.cpp | 2 +- src/test/testmain.cpp | 2 +- src/utils/gettexthelper.cpp | 8 ++++---- src/utils/translation/translationmanager.cpp | 2 +- src/winver.h.in | 3 ++- 23 files changed, 94 insertions(+), 92 deletions(-) delete mode 100644 docs/example.manaplus create mode 100644 docs/example.manaverse delete mode 100644 src/manaplus.rc create mode 100644 src/manaverse.rc diff --git a/docs/example.manaplus b/docs/example.manaplus deleted file mode 100644 index 2a580463f..000000000 --- a/docs/example.manaplus +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/docs/example.manaverse b/docs/example.manaverse new file mode 100644 index 000000000..93f8b1f42 --- /dev/null +++ b/docs/example.manaverse @@ -0,0 +1,24 @@ + + + + + + diff --git a/src/commandline.cpp b/src/commandline.cpp index daa147f2f..f5f30fa4a 100644 --- a/src/commandline.cpp +++ b/src/commandline.cpp @@ -42,16 +42,17 @@ static void printHelp() { std::cout << // TRANSLATORS: command line help - _("manaplus [options] [manaplus-file]") << + _("manaverse [options] [manaverse-file]") << std::endl << std::endl << // TRANSLATORS: command line help - _("[manaplus-file] : The manaplus file is an XML file (.manaplus)") << + _("[manaverse-file] : The manaverse file is an XML file " + "(.manaverse)") << std::endl << // TRANSLATORS: command line help _(" used to set custom parameters") << std::endl << // TRANSLATORS: command line help - _(" to the manaplus client.") << + _(" to the manaverse client.") << std::endl << std::endl << // TRANSLATORS: command line help _("Options:") << @@ -134,7 +135,7 @@ static void printHelp() static void printVersion() { std::cout << - strprintf("ManaPlus client %s", FULL_VERSION) << + strprintf("ManaVerse client %s", FULL_VERSION) << std::endl; } diff --git a/src/dirs.cpp b/src/dirs.cpp index 2f48daf51..5fc5e1d31 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -420,7 +420,7 @@ void Dirs::initConfigDir() } #elif defined __ANDROID__ settings.configDir = pathJoin(getSdStoragePath(), - branding.getValue("appShort", "ManaPlus"), + branding.getValue("appShort", "ManaVerse"), "config"); #elif defined __native_client__ settings.configDir = pathJoin(_nacl_dir, "config"); diff --git a/src/fs/files.cpp b/src/fs/files.cpp index 1dcbb9962..9cd3bfb0e 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); diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp index 76dba99f3..5388438c8 100644 --- a/src/fs/paths.cpp +++ b/src/fs/paths.cpp @@ -172,13 +172,13 @@ std::string removeLast(const std::string &str) #ifdef WIN32 std::string getSelfName() { - return "manaplus.exe"; + return "manaverse.exe"; } #elif defined(__APPLE__) std::string getSelfName() { - return "manaplus.exe"; + return "manaverse.exe"; } #elif defined __linux__ || defined __linux diff --git a/src/game.cpp b/src/game.cpp index 3e785425c..3f2d525c5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -589,13 +589,13 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot, if (serverName.empty()) { screenShortStr = strprintf("%s_Screenshot_%s_", - branding.getValue("appName", "ManaPlus").c_str(), + branding.getValue("appName", "ManaVerse").c_str(), buffer); } else { screenShortStr = strprintf("%s_Screenshot_%s_%s_", - branding.getValue("appName", "ManaPlus").c_str(), + branding.getValue("appName", "ManaVerse").c_str(), serverName.c_str(), buffer); } diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 89a2e4eee..e43f701b3 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -623,7 +623,7 @@ SDL_Window *GraphicsManager::createWindow(const int w, const int h, const int bpp A_UNUSED, const int flags) { - return SDL_CreateWindow("ManaPlus", SDL_WINDOWPOS_UNDEFINED, + return SDL_CreateWindow("ManaVerse", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, w, h, flags); } diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 58fb88268..352f06155 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -418,7 +418,7 @@ void WindowManager::newChatMessage() void WindowManager::setIcon() { #if !defined(ANDROID) && !defined(__SWITCH__) - std::string iconFile = branding.getValue("appIcon", "icons/manaplus"); + std::string iconFile = branding.getValue("appIcon", "icons/manaverse"); #ifdef WIN32 iconFile.append(".ico"); #else // WIN32 diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 00fa527a9..23b488b15 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -461,7 +461,7 @@ void UpdaterWindow::loadPatch() if (line != nullptr) { mBrowserBox->addRow(strprintf("##9 Latest client version: " - "##6ManaPlus %s##0", line), true); + "##6ManaVerse %s##0", line), true); } } if (version > CHECK_VERSION) @@ -483,11 +483,11 @@ void UpdaterWindow::loadPatch() branding.getStringValue(url)).append("|").append( branding.getStringValue(text)).append("@@]"), true); mBrowserBox->addRow("##1You can download it from", true); - mBrowserBox->addRow("##1ManaPlus updated.", true); + mBrowserBox->addRow("##1ManaVerse updated.", true); } else { - mBrowserBox->addRow("You have latest client version.", true); + mBrowserBox->addRow("You have the latest client version.", true); } } @@ -681,7 +681,7 @@ void UpdaterWindow::loadUpdates() file.name, Append_false); } - loadManaPlusUpdates(mUpdatesDir); + loadManaVerseUpdates(mUpdatesDir); loadMods(mUpdatesDir, mUpdateFiles); } @@ -714,7 +714,7 @@ void UpdaterWindow::loadLocalUpdates(const std::string &dir) file.name, Append_false); } - loadManaPlusUpdates(dir); + loadManaVerseUpdates(dir); loadMods(dir, updateFiles); } @@ -740,10 +740,10 @@ void UpdaterWindow::unloadUpdates(const std::string &dir) fixPath, updateFiles[updateIndex].name); } - unloadManaPlusUpdates(dir); + unloadManaVerseUpdates(dir); } -void UpdaterWindow::loadManaPlusUpdates(const std::string &dir) +void UpdaterWindow::loadManaVerseUpdates(const std::string &dir) { std::string fixPath = dir + "/fix"; STD_VECTOR updateFiles = loadXMLFile( @@ -759,7 +759,7 @@ void UpdaterWindow::loadManaPlusUpdates(const std::string &dir) if (!file.group.empty()) continue; const std::string name = file.name; - if (strStartWith(name, "manaplus_")) + if (strStartWith(name, "manaverse_")) { struct stat statbuf; std::string fileName = pathJoin(fixPath, @@ -773,7 +773,7 @@ void UpdaterWindow::loadManaPlusUpdates(const std::string &dir) } } -void UpdaterWindow::unloadManaPlusUpdates(const std::string &dir) +void UpdaterWindow::unloadManaVerseUpdates(const std::string &dir) { const std::string fixPath = dir + "/fix"; const STD_VECTOR updateFiles = loadXMLFile( @@ -786,7 +786,7 @@ void UpdaterWindow::unloadManaPlusUpdates(const std::string &dir) updateIndex++) { std::string name = updateFiles[updateIndex].name; - if (strStartWith(name, "manaplus_")) + if (strStartWith(name, "manaverse_")) { struct stat statbuf; const std::string file = pathJoin( @@ -1147,7 +1147,7 @@ void UpdaterWindow::loadMods(const std::string &dir, if (file.group.empty()) continue; std::string name = file.name; - if (strStartWith(name, "manaplus_")) + if (strStartWith(name, "manaverse_")) { const std::set::const_iterator it = modsList.find(file.group); diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h index 97ebc96c1..adb5fe131 100644 --- a/src/gui/windows/updaterwindow.h +++ b/src/gui/windows/updaterwindow.h @@ -131,9 +131,9 @@ class UpdaterWindow final : public Window, const std::string &restrict fixPath, const std::string &filerestrict); - static void loadManaPlusUpdates(const std::string &dir); + static void loadManaVerseUpdates(const std::string &dir); - static void unloadManaPlusUpdates(const std::string &dir); + static void unloadManaVerseUpdates(const std::string &dir); static unsigned long getFileHash(const std::string &filePath); diff --git a/src/logger.cpp b/src/logger.cpp index ee95a85fe..f36d8cacd 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -51,14 +51,14 @@ #if defined(__ANDROID__) #include #ifdef SPECIAL_LOGGING -#define SPECIALLOG(x) __android_log_print(ANDROID_LOG_INFO, "manaplus", x); +#define SPECIALLOG(x) __android_log_print(ANDROID_LOG_INFO, "manaverse", x); #define DSPECIALLOG(x) __android_log_print(ANDROID_LOG_VERBOSE, \ - "manaplus", x); + "manaverse", x); #else // SPECIAL_LOGGING #define SPECIALLOG(x) if (mDebugLog) \ - __android_log_print(ANDROID_LOG_INFO, "manaplus", x); + __android_log_print(ANDROID_LOG_INFO, "manaverse", x); #define DSPECIALLOG(x) if (mDebugLog) \ - __android_log_print(ANDROID_LOG_VERBOSE, "manaplus", x); + __android_log_print(ANDROID_LOG_VERBOSE, "manaverse", x); #endif // SPECIAL_LOGGING #elif defined __native_client__ #ifdef SPECIAL_LOGGING diff --git a/src/main.h b/src/main.h index 9b8d108a7..b08f1fcd7 100644 --- a/src/main.h +++ b/src/main.h @@ -158,10 +158,10 @@ #define SIMD_NAME "" #endif // SIMD_SUPPORTED -#define PACKAGE_EXTENDED_VERSION "ManaPlus (" PACKAGE_OS \ -"; %s; " SDL_NAME ", " XML_NAME SIMD_NAME ", %s; 4144 v" SMALL_VERSION ")" +#define PACKAGE_EXTENDED_VERSION "ManaVerse (" PACKAGE_OS \ +"; %s; " SDL_NAME ", " XML_NAME SIMD_NAME ", %s; jak1 v" SMALL_VERSION ")" -#define FULL_VERSION "ManaPlus " SMALL_VERSION " " PACKAGE_OS ", " \ +#define FULL_VERSION "ManaVerse " SMALL_VERSION " " PACKAGE_OS ", " \ SDL_NAME ", " XML_NAME SIMD_NAME #ifdef ANDROID diff --git a/src/manaplus.rc b/src/manaplus.rc deleted file mode 100644 index 57de91dbb..000000000 --- a/src/manaplus.rc +++ /dev/null @@ -1,24 +0,0 @@ -#include // include for version info constants - -#include "winver.h" - -A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "../data/icons/manaverse.ico" -tmw ICON MOVEABLE PURE LOADONCALL DISCARDABLE "../data/tmw/icons/tmw-client.ico" - -1 VERSIONINFO -FILEVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD -PRODUCTVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD -//FILETYPE VFT_APP -{ - BLOCK "StringFileInfo" { - BLOCK "040904E4" { - VALUE "CompanyName", "The ManaVerse Development Team" - VALUE "FileVersion", PACKAGE_VERSION "jak1" - VALUE "FileDescription", "ManaVerse" - VALUE "LegalCopyright", "2020-2023 (C)" - VALUE "OriginalFilename", "manaverse.exe" - VALUE "ProductName", "ManaVerse MMORPG Client" - VALUE "ProductVersion", PACKAGE_VERSION "jak1" - } - } -} diff --git a/src/manaverse.rc b/src/manaverse.rc new file mode 100644 index 000000000..57de91dbb --- /dev/null +++ b/src/manaverse.rc @@ -0,0 +1,24 @@ +#include // include for version info constants + +#include "winver.h" + +A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "../data/icons/manaverse.ico" +tmw ICON MOVEABLE PURE LOADONCALL DISCARDABLE "../data/tmw/icons/tmw-client.ico" + +1 VERSIONINFO +FILEVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD +PRODUCTVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD +//FILETYPE VFT_APP +{ + BLOCK "StringFileInfo" { + BLOCK "040904E4" { + VALUE "CompanyName", "The ManaVerse Development Team" + VALUE "FileVersion", PACKAGE_VERSION "jak1" + VALUE "FileDescription", "ManaVerse" + VALUE "LegalCopyright", "2020-2023 (C)" + VALUE "OriginalFilename", "manaverse.exe" + VALUE "ProductName", "ManaVerse MMORPG Client" + VALUE "ProductVersion", PACKAGE_VERSION "jak1" + } + } +} diff --git a/src/mumblemanager.cpp b/src/mumblemanager.cpp index 6c9b853a8..bc620e57f 100644 --- a/src/mumblemanager.cpp +++ b/src/mumblemanager.cpp @@ -147,8 +147,8 @@ void MumbleManager::init() #endif // WIN32 - wcsncpy(mLinkedMemCache.name, L"ManaPlus", 256); - wcsncpy(mLinkedMemCache.description, L"ManaPlus Plugin", 2048); + wcsncpy(mLinkedMemCache.name, L"ManaVerse", 256); + wcsncpy(mLinkedMemCache.description, L"ManaVerse Plugin", 2048); mLinkedMemCache.uiVersion = 2; // Left handed coordinate system. diff --git a/src/net/ea/loginrecv.cpp b/src/net/ea/loginrecv.cpp index 5902a7978..574f80faa 100644 --- a/src/net/ea/loginrecv.cpp +++ b/src/net/ea/loginrecv.cpp @@ -97,7 +97,7 @@ void LoginRecv::processLoginError(Net::MessageIn &msg) case 5: // TRANSLATORS: error message errorMessage = _("Client too old or wrong server type.\n" - "Please update client on http://manaplus.org"); + "Please update client on https://manaverse.germantmw.de"); break; case 6: // TRANSLATORS: error message diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp index 249ef46ea..41af09fa8 100644 --- a/src/net/eathena/loginrecv.cpp +++ b/src/net/eathena/loginrecv.cpp @@ -90,7 +90,7 @@ void LoginRecv::processLoginError2(Net::MessageIn &msg) case 5: // TRANSLATORS: error message errorMessage = _("Client too old or wrong server type.\n" - "Please update client on http://manaplus.org"); + "Please update client on https://manaverse.germantmw.de"); break; case 6: // TRANSLATORS: error message diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 885b65e11..90109eb04 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -413,7 +413,7 @@ Map *MapReader::readMap(XmlNodePtrConst node, const std::string &path) { readProperties(childNode, map); map->setVersion(atoi(map->getProperty( - "manaplus version", std::string()).c_str())); + "manaverse version", std::string()).c_str())); } else if (xmlNameEqual(childNode, "objectgroup")) { diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp index 1ca8adb1e..a7aa5fae1 100644 --- a/src/test/testmain.cpp +++ b/src/test/testmain.cpp @@ -44,7 +44,7 @@ TestMain::TestMain() : mConfig() { fileName = getSelfName(); - log->setLogFile(pathJoin(settings.localDataDir, "manaplustest.log")); + log->setLogFile(pathJoin(settings.localDataDir, "manaversetest.log")); } TestMain::~TestMain() diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp index 33b366ad1..61a413866 100644 --- a/src/utils/gettexthelper.cpp +++ b/src/utils/gettexthelper.cpp @@ -108,7 +108,7 @@ void GettextHelper::initLang() #else // ENABLE_PORTABLE #ifdef __APPLE__ bindTextDomain((std::string(VirtFs::getBaseDir()) - .append("ManaPlus.app/Contents/Resources/locale/")).c_str()); + .append("ManaVerse.app/Contents/Resources/locale/")).c_str()); #else // __APPLE__ bindTextDomain(LOCALEDIR); @@ -130,8 +130,8 @@ void GettextHelper::initLang() else logger->log("locale empty"); } - bind_textdomain_codeset("manaplus", "UTF-8"); - textdomain("manaplus"); + bind_textdomain_codeset("manaverse", "UTF-8"); + textdomain("manaverse"); #elif defined(ENABLE_CUSTOMNLS) mainTranslator = new PoDict("en"); setLangEnv(); @@ -141,7 +141,7 @@ void GettextHelper::initLang() #ifdef ENABLE_NLS void GettextHelper::bindTextDomain(const char *const path) { - const char *const dir = bindtextdomain("manaplus", path); + const char *const dir = bindtextdomain("manaverse", path); if (dir) logger->log("bindtextdomain: %s", dir); else diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index e75ef4857..49cadaf63 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -61,7 +61,7 @@ void TranslationManager::loadDictionaryLang() void TranslationManager::loadGettextLang() { delete mainTranslator; - mainTranslator = loadLang(getLang(), "manaplus/", nullptr); + mainTranslator = loadLang(getLang(), "manaverse/", nullptr); } #endif // ENABLE_CUSTOMNLS diff --git a/src/winver.h.in b/src/winver.h.in index 078b7a33f..19a613aed 100644 --- a/src/winver.h.in +++ b/src/winver.h.in @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2017 The ManaPlus Developers + * Copyright (C) 2012-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * -- cgit v1.2.3-70-g09d2