diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 44 | ||||
-rw-r--r-- | src/Makefile.am | 100 | ||||
-rw-r--r-- | src/client.h | 7 | ||||
-rw-r--r-- | src/commandline.cpp | 7 | ||||
-rw-r--r-- | src/defaults.cpp | 4 | ||||
-rw-r--r-- | src/dirs.cpp | 35 | ||||
-rw-r--r-- | src/fs/files.cpp | 5 | ||||
-rw-r--r-- | src/fs/paths.cpp | 7 | ||||
-rw-r--r-- | src/game.cpp | 7 | ||||
-rw-r--r-- | src/gui/viewport.h | 7 | ||||
-rw-r--r-- | src/gui/windowmanager.cpp | 5 | ||||
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/updaterwindow.h | 3 | ||||
-rw-r--r-- | src/logger.cpp | 11 | ||||
-rw-r--r-- | src/main.h | 9 | ||||
-rw-r--r-- | src/manaplus.rc | 25 | ||||
-rw-r--r-- | src/manaverse.rc | 24 | ||||
-rw-r--r-- | src/progs/dyecmd/client.cpp | 5 | ||||
-rw-r--r-- | src/progs/manaverse/actions/actions.cpp (renamed from src/progs/manaplus/actions/actions.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/chat.cpp (renamed from src/progs/manaplus/actions/chat.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/commands.cpp (renamed from src/progs/manaplus/actions/commands.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/move.cpp (renamed from src/progs/manaplus/actions/move.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/pets.cpp (renamed from src/progs/manaplus/actions/pets.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/statusbar.cpp (renamed from src/progs/manaplus/actions/statusbar.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/tabs.cpp (renamed from src/progs/manaplus/actions/tabs.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/target.cpp (renamed from src/progs/manaplus/actions/target.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/actions/windows.cpp (renamed from src/progs/manaplus/actions/windows.cpp) | 3 | ||||
-rw-r--r-- | src/progs/manaverse/client.cpp (renamed from src/progs/manaplus/client.cpp) | 7 | ||||
-rw-r--r-- | src/progs/manaverse/client.h (renamed from src/progs/manaplus/client.h) | 9 | ||||
-rw-r--r-- | src/progs/manaverse/gui/viewport.cpp (renamed from src/progs/manaplus/gui/viewport.cpp) | 5 | ||||
-rw-r--r-- | src/progs/manaverse/gui/viewport.h (renamed from src/progs/manaplus/gui/viewport.h) | 9 | ||||
-rw-r--r-- | src/render/mobileopengl2graphics.cpp | 5 | ||||
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 5 | ||||
-rw-r--r-- | src/resources/db/emotedb.cpp | 9 | ||||
-rw-r--r-- | src/test/testlauncher.cpp | 7 | ||||
-rw-r--r-- | src/test/testmain.cpp | 3 | ||||
-rw-r--r-- | src/unittests/utils/xmlutils.cc | 5 | ||||
-rw-r--r-- | src/utils/gettexthelper.cpp | 11 | ||||
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 5 |
39 files changed, 223 insertions, 191 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 25d1e9be9..59d3416fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -579,8 +579,8 @@ SET(SRCS gui/windows/updaterwindow.h gui/userpalette.cpp gui/userpalette.h - progs/manaplus/gui/viewport.cpp - progs/manaplus/gui/viewport.h + progs/manaverse/gui/viewport.cpp + progs/manaverse/gui/viewport.h gui/viewport.h gui/windowmanager.cpp gui/windowmanager.h @@ -1052,23 +1052,23 @@ SET(SRCS test/testmain.h actions/actiondef.h actions/actionfuncptr.h - progs/manaplus/actions/actions.cpp + progs/manaverse/actions/actions.cpp actions/actions.h - progs/manaplus/actions/chat.cpp + progs/manaverse/actions/chat.cpp actions/chat.h - progs/manaplus/actions/commands.cpp + progs/manaverse/actions/commands.cpp actions/commands.h - progs/manaplus/actions/move.cpp + progs/manaverse/actions/move.cpp actions/move.h - progs/manaplus/actions/pets.cpp + progs/manaverse/actions/pets.cpp actions/pets.h - progs/manaplus/actions/statusbar.cpp + progs/manaverse/actions/statusbar.cpp actions/statusbar.h - progs/manaplus/actions/tabs.cpp + progs/manaverse/actions/tabs.cpp actions/tabs.h - progs/manaplus/actions/target.cpp + progs/manaverse/actions/target.cpp actions/target.h - progs/manaplus/actions/windows.cpp + progs/manaverse/actions/windows.cpp actions/windows.h being/actor.cpp being/actor.h @@ -1120,8 +1120,8 @@ SET(SRCS spellmanager.h chatlogger.cpp chatlogger.h - progs/manaplus/client.cpp - progs/manaplus/client.h + progs/manaverse/client.cpp + progs/manaverse/client.h client.h commandline.cpp commandline.h @@ -2215,18 +2215,18 @@ IF (WIN32) ${SRCS} fs/specialfolder.cpp fs/specialfolder.h - manaplus.rc + manaverse.rc ) SET(DYE_CMD_SRCS ${DYE_CMD_SRCS} fs/specialfolder.cpp fs/specialfolder.h - manaplus.rc + manaverse.rc ) ENDIF () -#SET (PROGRAMS manaplus dyecmd) -SET (PROGRAMS manaplus) +#SET (PROGRAMS manaverse dyecmd) +SET (PROGRAMS manaverse) IF (ENABLE_TMWA) SET(SRCS ${SRCS} ${SRCS_TMWA}) @@ -2234,7 +2234,7 @@ ELSE() SET(SRCS ${SRCS}) ENDIF(ENABLE_TMWA) -ADD_EXECUTABLE(manaplus WIN32 ${SRCS} ${SRCS_EVOL}) +ADD_EXECUTABLE(manaverse WIN32 ${SRCS} ${SRCS_EVOL}) #ADD_EXECUTABLE(dyecmd WIN32 ${DYE_CMD_SRCS}) IF (USE_SDL2) @@ -2255,7 +2255,7 @@ ELSE() ${SDLTTF_LIBRARY}) ENDIF (USE_SDL2) -TARGET_LINK_LIBRARIES(manaplus +TARGET_LINK_LIBRARIES(manaverse ${X11_LIBRARIES} ${SDL_LIBS} ${PNG_LIBRARIES} @@ -2265,7 +2265,7 @@ TARGET_LINK_LIBRARIES(manaplus ${OPENGL_LIBRARIES} ${LIBINTL_LIBRARIES} ${EXTRA_LIBRARIES}) -INSTALL(TARGETS manaplus RUNTIME DESTINATION ${PKG_BINDIR}) +INSTALL(TARGETS manaverse RUNTIME DESTINATION ${PKG_BINDIR}) #TARGET_LINK_LIBRARIES(dyecmd # ${SDLGFX_LIBRARIES} @@ -2286,9 +2286,9 @@ INSTALL(TARGETS manaplus RUNTIME DESTINATION ${PKG_BINDIR}) IF (CMAKE_SYSTEM_NAME STREQUAL SunOS) # we expect the SMCgtxt package to be present on Solaris; # the Solaris gettext is not API-compatible to GNU gettext - SET_TARGET_PROPERTIES(manaplus PROPERTIES LINK_FLAGS "-L/usr/local/lib") + SET_TARGET_PROPERTIES(manaverse PROPERTIES LINK_FLAGS "-L/usr/local/lib") # SET_TARGET_PROPERTIES(dyecmd PROPERTIES LINK_FLAGS "-L/usr/local/lib") ENDIF() -SET_TARGET_PROPERTIES(manaplus PROPERTIES COMPILE_FLAGS "${FLAGS}") +SET_TARGET_PROPERTIES(manaverse PROPERTIES COMPILE_FLAGS "${FLAGS}") #SET_TARGET_PROPERTIES(dyecmd PROPERTIES COMPILE_FLAGS "${DYE_FLAGS}") diff --git a/src/Makefile.am b/src/Makefile.am index a1934ac22..6bab9e41e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,11 +7,11 @@ AUTOMAKE_OPTIONS = subdir-objects #AM_TESTS_ENVIRONMENT = \ # ASAN_OPTIONS=detect_leaks=1 -if ENABLE_MANAPLUSGAME +if ENABLE_MANAVERSEGAME if ENABLE_DYECMD -bin_PROGRAMS = manaplus dyecmd +bin_PROGRAMS = manaverse dyecmd else -bin_PROGRAMS = manaplus +bin_PROGRAMS = manaverse endif else if ENABLE_DYECMD @@ -51,96 +51,96 @@ endif dyecmd_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \ -DLOCALEDIR=\""$(localedir)"\" \ -Wall -manaplus_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \ +manaverse_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \ -DLOCALEDIR=\""$(localedir)"\" \ -Wall if ENABLE_WERROR -manaplus_CXXFLAGS += -Werror +manaverse_CXXFLAGS += -Werror dyecmd_CXXFLAGS += -Werror endif if ENABLE_GLIBCDEBUG # _LIBCPP_DEBUG=1 probably giving false positives and it's hard to debug # disabled for now -manaplus_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_DEBUG=0 +manaverse_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_DEBUG=0 dyecmd_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_DEBUG=0 endif if ENABLE_COMMANDLINEPASSWORD -manaplus_CXXFLAGS += -DENABLE_COMMANDLINEPASSWORD +manaverse_CXXFLAGS += -DENABLE_COMMANDLINEPASSWORD endif if USE_X11 -manaplus_CXXFLAGS += -DUSE_X11 +manaverse_CXXFLAGS += -DUSE_X11 dyecmd_CXXFLAGS += -DUSE_X11 endif if ENABLE_ASSERTS -manaplus_CXXFLAGS += -DENABLE_ASSERTS +manaverse_CXXFLAGS += -DENABLE_ASSERTS dyecmd_CXXFLAGS += -DENABLE_ASSERTS if HAVE_RDYNAMIC -manaplus_LDFLAGS = -rdynamic +manaverse_LDFLAGS = -rdynamic dyecmd_LDFLAGS = -rdynamic endif endif if HAVE_EXECINFO -manaplus_CXXFLAGS += -DHAVE_EXECINFO +manaverse_CXXFLAGS += -DHAVE_EXECINFO dyecmd_CXXFLAGS += -DHAVE_EXECINFO endif if HAVE_GLEXT -manaplus_CXXFLAGS += -DHAVE_GLEXT +manaverse_CXXFLAGS += -DHAVE_GLEXT dyecmd_CXXFLAGS += -DHAVE_GLEXT endif if ENABLE_PUGIXML -manaplus_CXXFLAGS += -DENABLE_PUGIXML +manaverse_CXXFLAGS += -DENABLE_PUGIXML dyecmd_CXXFLAGS += -DENABLE_PUGIXML endif if ENABLE_LIBXML -manaplus_CXXFLAGS += -DENABLE_LIBXML +manaverse_CXXFLAGS += -DENABLE_LIBXML dyecmd_CXXFLAGS += -DENABLE_LIBXML endif if ENABLE_TINYXML2 -manaplus_CXXFLAGS += -DENABLE_TINYXML2 +manaverse_CXXFLAGS += -DENABLE_TINYXML2 dyecmd_CXXFLAGS += -DENABLE_TINYXML2 if USE_TINYXML_OLD -manaplus_CXXFLAGS += -DUSE_TINYXML_OLD +manaverse_CXXFLAGS += -DUSE_TINYXML_OLD dyecmd_CXXFLAGS += -DUSE_TINYXML_OLD endif endif if ENABLE_PORTABLE dyecmd_CXXFLAGS += -DENABLE_PORTABLE -manaplus_CXXFLAGS += -DENABLE_PORTABLE +manaverse_CXXFLAGS += -DENABLE_PORTABLE endif if ENABLE_CUSTOMNLS dyecmd_CXXFLAGS += -DENABLE_CUSTOMNLS -manaplus_CXXFLAGS += -DENABLE_CUSTOMNLS +manaverse_CXXFLAGS += -DENABLE_CUSTOMNLS endif if ENABLE_CHECKPLUGIN dyecmd_CXXFLAGS += -DENABLE_CHECKPLUGIN -fplugin=../build/checkplugin.so -fplugin-arg-checkplugin-command=detectnullpointers -manaplus_CXXFLAGS += -DENABLE_CHECKPLUGIN -fplugin=../build/checkplugin.so -fplugin-arg-checkplugin-command=detectnullpointers +manaverse_CXXFLAGS += -DENABLE_CHECKPLUGIN -fplugin=../build/checkplugin.so -fplugin-arg-checkplugin-command=detectnullpointers endif if USE_OPENGL dyecmd_CXXFLAGS += -DUSE_OPENGL -manaplus_CXXFLAGS += -DUSE_OPENGL +manaverse_CXXFLAGS += -DUSE_OPENGL endif if ENABLE_OPENGLERRORS dyecmd_CXXFLAGS += -DOPENGLERRORS -manaplus_CXXFLAGS += -DOPENGLERRORS +manaverse_CXXFLAGS += -DOPENGLERRORS endif if ENABLE_MEM_DEBUG dyecmd_CXXFLAGS += -DENABLE_MEM_DEBUG -DDEBUG_DUMP_LEAKS -manaplus_CXXFLAGS += -DENABLE_MEM_DEBUG -DDEBUG_DUMP_LEAKS +manaverse_CXXFLAGS += -DENABLE_MEM_DEBUG -DDEBUG_DUMP_LEAKS -manaplus_SOURCES = debug/nvwa/_nvwa.h \ +manaverse_SOURCES = debug/nvwa/_nvwa.h \ debug/nvwa/c++11.h \ debug/nvwa/debug_new.cpp \ debug/nvwa/debug_new.h \ @@ -153,15 +153,15 @@ dyecmd_SOURCES = debug/nvwa/_nvwa.h \ debug/nvwa/fast_mutex.h \ debug/nvwa/static_assert.h else -manaplus_SOURCES = +manaverse_SOURCES = dyecmd_SOURCES = endif if ENABLE_STLDEBUG dyecmd_CXXFLAGS += -DENABLE_STLDEBUG -manaplus_CXXFLAGS += -DENABLE_STLDEBUG +manaverse_CXXFLAGS += -DENABLE_STLDEBUG -manaplus_SOURCES += debug/mse/msemsevector.h \ +manaverse_SOURCES += debug/mse/msemsevector.h \ debug/mse/msemstdvector.h \ debug/mse/mseprimitives.h dyecmd_SOURCES += debug/mse/msemsevector.h \ @@ -170,20 +170,20 @@ dyecmd_SOURCES += debug/mse/msemsevector.h \ endif if MINGW -manaplus_SOURCES += manaplus.rc -dyecmd_SOURCES += manaplus.rc +manaverse_SOURCES += manaverse.rc +dyecmd_SOURCES += manaverse.rc endif dyecmd_CXXFLAGS += -DDYECMD dyecmd_SOURCES += progs/dyecmd/dyemain.cpp if USE_MUMBLE -manaplus_CXXFLAGS += -DUSE_MUMBLE +manaverse_CXXFLAGS += -DUSE_MUMBLE endif if ENABLE_CHECKS dyecmd_CXXFLAGS += -DENABLE_CHECKS -manaplus_CXXFLAGS += -DENABLE_CHECKS +manaverse_CXXFLAGS += -DENABLE_CHECKS endif BASE_SRC = @@ -191,14 +191,14 @@ BASE_SRC = if USE_SDL2 if USE_INTERNALSDLGFX dyecmd_CXXFLAGS += -I$(srcdir)/sdl2gfx -DUSE_SDL2 -manaplus_CXXFLAGS += -I$(srcdir)/sdl2gfx -DUSE_SDL2 +manaverse_CXXFLAGS += -I$(srcdir)/sdl2gfx -DUSE_SDL2 BASE_SRC += sdl2gfx/SDL2_framerate.cpp \ sdl2gfx/SDL2_framerate.h \ sdl2gfx/SDL2_rotozoom.cpp \ sdl2gfx/SDL2_rotozoom.h else dyecmd_CXXFLAGS += -DUSE_SDL2 -manaplus_CXXFLAGS += -DUSE_SDL2 +manaverse_CXXFLAGS += -DUSE_SDL2 endif endif @@ -1700,22 +1700,22 @@ SRC = ${BASE_SRC} \ net/ea/tradehandler.h \ net/ea/traderecv.cpp \ net/ea/traderecv.h \ - progs/manaplus/actions/actions.cpp \ - progs/manaplus/actions/chat.cpp \ - progs/manaplus/actions/commands.cpp \ - progs/manaplus/actions/move.cpp \ - progs/manaplus/actions/pets.cpp \ - progs/manaplus/actions/statusbar.cpp \ - progs/manaplus/actions/tabs.cpp \ - progs/manaplus/actions/target.cpp \ - progs/manaplus/actions/windows.cpp \ - progs/manaplus/client.cpp \ - progs/manaplus/client.h \ - progs/manaplus/gui/viewport.cpp \ - progs/manaplus/gui/viewport.h + progs/manaverse/actions/actions.cpp \ + progs/manaverse/actions/chat.cpp \ + progs/manaverse/actions/commands.cpp \ + progs/manaverse/actions/move.cpp \ + progs/manaverse/actions/pets.cpp \ + progs/manaverse/actions/statusbar.cpp \ + progs/manaverse/actions/tabs.cpp \ + progs/manaverse/actions/target.cpp \ + progs/manaverse/actions/windows.cpp \ + progs/manaverse/client.cpp \ + progs/manaverse/client.h \ + progs/manaverse/gui/viewport.cpp \ + progs/manaverse/gui/viewport.h if ENABLE_TMWA -manaplus_CXXFLAGS += -DTMWA_SUPPORT +manaverse_CXXFLAGS += -DTMWA_SUPPORT SRC += \ enums/magicschool.h \ gui/models/magicschoolmodel.h \ @@ -2126,11 +2126,11 @@ dyecmd_SOURCES += progs/dyecmd/gui/viewport.cpp \ progs/dyecmd/actions/target.cpp \ progs/dyecmd/actions/windows.cpp -if ENABLE_MANAPLUSGAME -manaplus_SOURCES += ${SRC} +if ENABLE_MANAVERSEGAME +manaverse_SOURCES += ${SRC} endif -manaplustests_CXXFLAGS += ${manaplus_CXXFLAGS} \ +manaplustests_CXXFLAGS += ${manaverse_CXXFLAGS} \ -DUNITTESTS manaplustests_LDFLAGS = if ENABLE_PUGIXML @@ -2253,7 +2253,7 @@ endif EXTRA_DIST = CMakeLists.txt \ winver.h.in \ - manaplus.rc \ + manaverse.rc \ SDLMain.m # set the include path found by configure diff --git a/src/client.h b/src/client.h index ad12c28a4..6dbda3801 100644 --- a/src/client.h +++ b/src/client.h @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -25,7 +26,7 @@ #include "progs/dyecmd/client.h" PROGS_DYECMD_CLIENT_H #else // DYECMD -#include "progs/manaplus/client.h" -PROGS_MANAPLUS_CLIENT_H +#include "progs/manaverse/client.h" +PROGS_MANAVERSE_CLIENT_H #endif // DYECMD #endif // CLIENT_H diff --git a/src/commandline.cpp b/src/commandline.cpp index 982078635..951f2c655 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)") << + _("[mana-file] : The mana file is an XML file " + "(.mana)") << 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:") << diff --git a/src/defaults.cpp b/src/defaults.cpp index 0cdcf898f..e909fd765 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -498,7 +498,7 @@ void setBrandingDefaults(Configuration &cfg) AddDEF("wallpapersPath", ""); AddDEF("wallpapersFile", ""); AddDEF("appName", "ManaVerse"); - AddDEF("appIcon", "icons/manaplus"); + AddDEF("appIcon", "icons/manaverse"); AddDEF("loginMusic", "keprohm.ogg"); AddDEF("defaultServer", ""); AddDEF("defaultPort", DEFAULT_PORT); @@ -509,7 +509,7 @@ void setBrandingDefaults(Configuration &cfg) "https://tmw2.org/updates/serverlist.xml"); AddDEF("onlineServerFile", "serverlistplus.xml"); AddDEF("appShort", "mana"); - AddDEF("screenshots", "ManaPlus"); + AddDEF("screenshots", "ManaVerse"); AddDEF("defaultUpdateHost", ""); AddDEF("helpPath", ""); AddDEF("tagsPath", ""); diff --git a/src/dirs.cpp b/src/dirs.cpp index 44b23be0a..ebb86c13e 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -70,7 +71,7 @@ PRAGMA48(GCC diagnostic pop) #include "debug.h" #if defined __native_client__ -#define _nacl_dir std::string("/persistent/manaplus") +#define _nacl_dir std::string("/persistent/manaverse") #endif // defined __native_client__ #ifdef ANDROID @@ -116,7 +117,7 @@ void extractAssets() FILE *const file = fopen(fileName.c_str(), "w"); for (int f = 0; f < 100; f ++) { - std::string part = strprintf("manaplus-data.zip%u%u", + std::string part = strprintf("manaverse-data.zip%u%u", CAST_U32(f / 10), CAST_U32(f % 10)); logger->log("testing asset: " + part); @@ -140,7 +141,7 @@ void extractAssets() const std::string fileName2 = pathJoin(getenv("APPDIR"), "locale.zip"); FILE *const file2 = fopen(fileName2.c_str(), "w"); - SDL_RWops *const rw = SDL_RWFromFile("manaplus-locale.zip", "r"); + SDL_RWops *const rw = SDL_RWFromFile("manaverse-locale.zip", "r"); if (rw) { const int size = SDL_RWsize(rw); @@ -249,7 +250,7 @@ void Dirs::mountDataDir() { std::string path = settings.options.brandingPath; - // Strip blah.manaplus from the path + // Strip *.mana from the path const int loc = CAST_S32(path.find_last_of('/')); if (loc > 0) @@ -343,19 +344,19 @@ void Dirs::initLocalDataDir() // Use Application Directory instead of .mana settings.localDataDir = pathJoin(VirtFs::getUserDir(), "Library/Application Support", - branding.getValue("appName", "ManaPlus")); + branding.getValue("appName", "ManaVerse")); #elif defined __HAIKU__ settings.localDataDir = pathJoin(VirtFs::getUserDir(), - "config/cache/Mana"); + "config/cache/ManaVerse"); #elif defined WIN32 settings.localDataDir = getSpecialFolderLocation(CSIDL_LOCAL_APPDATA); if (settings.localDataDir.empty()) settings.localDataDir = VirtFs::getUserDir(); settings.localDataDir = pathJoin(settings.localDataDir, - "Mana"); + "ManaVerse"); #elif defined __ANDROID__ settings.localDataDir = pathJoin(getSdStoragePath(), - branding.getValue("appShort", "ManaPlus"), + branding.getValue("appShort", "ManaVerse"), "local"); #elif defined __native_client__ settings.localDataDir = pathJoin(_nacl_dir, "local"); @@ -364,7 +365,7 @@ void Dirs::initLocalDataDir() #else // __APPLE__ settings.localDataDir = pathJoin(VirtFs::getUserDir(), - ".local/share/mana"); + ".local/share/manaverse"); #endif // __APPLE__ } @@ -400,11 +401,11 @@ void Dirs::initConfigDir() { #ifdef __APPLE__ settings.configDir = pathJoin(settings.localDataDir, - branding.getValue("appShort", "mana")); + branding.getValue("appShort", "manaverse")); #elif defined __HAIKU__ settings.configDir = pathJoin(VirtFs::getUserDir(), - "config/settings/Mana", - branding.getValue("appName", "ManaPlus")); + "config/settings/ManaVerse", + branding.getValue("appName", "ManaVerse")); #elif defined WIN32 settings.configDir = getSpecialFolderLocation(CSIDL_APPDATA); if (settings.configDir.empty()) @@ -415,11 +416,11 @@ void Dirs::initConfigDir() { settings.configDir = pathJoin(settings.configDir, "mana", - branding.getValue("appShort", "mana")); + branding.getValue("appShort", "manaverse")); } #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"); @@ -429,7 +430,7 @@ void Dirs::initConfigDir() settings.configDir = pathJoin(VirtFs::getUserDir(), ".config/mana", - branding.getValue("appShort", "mana")); + branding.getValue("appShort", "manaverse")); #endif // __APPLE__ logger->log("Generating config dir: " + settings.configDir); @@ -579,7 +580,7 @@ void Dirs::initScreenshotDir() if (config.getBoolValue("useScreenshotDirectorySuffix")) { const std::string configScreenshotSuffix = - branding.getValue("screenshots", "ManaPlus"); + branding.getValue("screenshots", "ManaVerse"); if (!configScreenshotSuffix.empty()) { diff --git a/src/fs/files.cpp b/src/fs/files.cpp index fcce1c0ea..9cd3bfb0e 100644 --- a/src/fs/files.cpp +++ b/src/fs/files.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2013-2019 The ManaPlus Developers + * Copyright (C) 2013-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -59,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 942f69471..5388438c8 100644 --- a/src/fs/paths.cpp +++ b/src/fs/paths.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -171,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 4e3c399cd..3f2d525c5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -588,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/gui/viewport.h b/src/gui/viewport.h index d5782986b..80327a3f1 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -25,8 +26,8 @@ #include "progs/dyecmd/gui/viewport.h" PROGS_DYECMD_GUI_VIEWPORT_H #else -#include "progs/manaplus/gui/viewport.h" -PROGS_MANAPLUS_GUI_VIEWPORT_H +#include "progs/manaverse/gui/viewport.h" +PROGS_MANAVERSE_GUI_VIEWPORT_H #endif // DYECMD #endif // GUI_VIEWPORT_H diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 79e6cb47c..352f06155 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -417,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 948ce5a17..f7bee0684 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -1080,7 +1080,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<std::string>::const_iterator it = modsList.find(file.group); diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h index daa80f978..8ba66e08f 100644 --- a/src/gui/windows/updaterwindow.h +++ b/src/gui/windows/updaterwindow.h @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * diff --git a/src/logger.cpp b/src/logger.cpp index c3c4cf699..f36d8cacd 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -50,14 +51,14 @@ #if defined(__ANDROID__) #include <android/log.h> #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 b7cafe8e1..b08f1fcd7 100644 --- a/src/main.h +++ b/src/main.h @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -157,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 53095ceb1..000000000 --- a/src/manaplus.rc +++ /dev/null @@ -1,25 +0,0 @@ -#include <windows.h> // include for version info constants - -#include "winver.h" - -A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "../data/icons/manaplus.ico" -evol ICON MOVEABLE PURE LOADONCALL DISCARDABLE "../data/evol/icons/evol-client.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 ManaPlus Development Team" - VALUE "FileVersion", PACKAGE_VERSION "4144" - VALUE "FileDescription", "ManaPlus" - VALUE "LegalCopyright", "2004-2014 (C)" - VALUE "OriginalFilename", "manaplus.exe" - VALUE "ProductName", "ManaPlus MMORPG Client" - VALUE "ProductVersion", PACKAGE_VERSION "4144" - } - } -} 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 <windows.h> // 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/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 483451ed6..4137a4f75 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -193,7 +194,7 @@ void Client::gameInit() else { settings.logFileName = pathJoin(settings.localDataDir, - "manaplus.log"); + "manaverse.log"); } logger->setLogFile(settings.logFileName); diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaverse/actions/actions.cpp index 92c0f0050..8e997cb2a 100644 --- a/src/progs/manaplus/actions/actions.cpp +++ b/src/progs/manaverse/actions/actions.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/chat.cpp b/src/progs/manaverse/actions/chat.cpp index 22d0656cb..27963a75f 100644 --- a/src/progs/manaplus/actions/chat.cpp +++ b/src/progs/manaverse/actions/chat.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/commands.cpp b/src/progs/manaverse/actions/commands.cpp index ff0d91e3d..3f23fe5e3 100644 --- a/src/progs/manaplus/actions/commands.cpp +++ b/src/progs/manaverse/actions/commands.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/move.cpp b/src/progs/manaverse/actions/move.cpp index b9e658f81..38eff9403 100644 --- a/src/progs/manaplus/actions/move.cpp +++ b/src/progs/manaverse/actions/move.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/pets.cpp b/src/progs/manaverse/actions/pets.cpp index fd8c959f8..f4c3823a3 100644 --- a/src/progs/manaplus/actions/pets.cpp +++ b/src/progs/manaverse/actions/pets.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/statusbar.cpp b/src/progs/manaverse/actions/statusbar.cpp index 50ae32935..062d42a53 100644 --- a/src/progs/manaplus/actions/statusbar.cpp +++ b/src/progs/manaverse/actions/statusbar.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/tabs.cpp b/src/progs/manaverse/actions/tabs.cpp index 9a421bfa6..b5140a2e9 100644 --- a/src/progs/manaplus/actions/tabs.cpp +++ b/src/progs/manaverse/actions/tabs.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/target.cpp b/src/progs/manaverse/actions/target.cpp index 7760ff746..9b97cf576 100644 --- a/src/progs/manaplus/actions/target.cpp +++ b/src/progs/manaverse/actions/target.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/actions/windows.cpp b/src/progs/manaverse/actions/windows.cpp index 2f803923e..9f8a68faa 100644 --- a/src/progs/manaplus/actions/windows.cpp +++ b/src/progs/manaverse/actions/windows.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaverse/client.cpp index d8ba7e1c2..b13fa9f20 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaverse/client.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -20,7 +21,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "progs/manaplus/client.h" +#include "progs/manaverse/client.h" #include "chatlogger.h" #include "configmanager.h" @@ -311,7 +312,7 @@ void Client::gameInit() else { settings.logFileName = pathJoin(settings.localDataDir, - "manaplus.log"); + "manaverse.log"); } logger->log("Log file: " + settings.logFileName); logger->setLogFile(settings.logFileName); diff --git a/src/progs/manaplus/client.h b/src/progs/manaverse/client.h index 26152270d..e74b179d2 100644 --- a/src/progs/manaplus/client.h +++ b/src/progs/manaverse/client.h @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -20,8 +21,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef PROGS_MANAPLUS_CLIENT_H -#define PROGS_MANAPLUS_CLIENT_H +#ifndef PROGS_MANAVERSE_CLIENT_H +#define PROGS_MANAVERSE_CLIENT_H #include "enums/state.h" @@ -168,4 +169,4 @@ extern Client *client; extern unsigned int mLastHost; extern unsigned long mSearchHash; -#endif // PROGS_MANAPLUS_CLIENT_H +#endif // PROGS_MANAVERSE_CLIENT_H diff --git a/src/progs/manaplus/gui/viewport.cpp b/src/progs/manaverse/gui/viewport.cpp index 5483b3d0e..0d0a1abc4 100644 --- a/src/progs/manaplus/gui/viewport.cpp +++ b/src/progs/manaverse/gui/viewport.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -20,7 +21,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "progs/manaplus/gui/viewport.h" +#include "progs/manaverse/gui/viewport.h" #include "actormanager.h" #include "configuration.h" diff --git a/src/progs/manaplus/gui/viewport.h b/src/progs/manaverse/gui/viewport.h index ae92c7ccd..781f4255f 100644 --- a/src/progs/manaplus/gui/viewport.h +++ b/src/progs/manaverse/gui/viewport.h @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -20,8 +21,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef PROGS_MANAPLUS_GUI_VIEWPORT_H -#define PROGS_MANAPLUS_GUI_VIEWPORT_H +#ifndef PROGS_MANAVERSE_GUI_VIEWPORT_H +#define PROGS_MANAVERSE_GUI_VIEWPORT_H #include "position.h" @@ -246,4 +247,4 @@ class Viewport final : public WindowContainer, extern Viewport *viewport; /**< The viewport. */ -#endif // PROGS_MANAPLUS_GUI_VIEWPORT_H +#endif // PROGS_MANAVERSE_GUI_VIEWPORT_H diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp index 7c484a2c6..ef2a248af 100644 --- a/src/render/mobileopengl2graphics.cpp +++ b/src/render/mobileopengl2graphics.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -169,7 +170,7 @@ void MobileOpenGL2Graphics::postInit() restrict2 if (mProgram == nullptr) { graphicsManager.logError(); - logger->safeError("Shader creation error. See manaplus.log."); + logger->safeError("Shader creation error. See manaverse.log."); } mProgramId = mProgram->getProgramId(); if (mProgramId == 0U) diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 95e7140c0..afc424f6e 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -2,7 +2,8 @@ * The ManaPlus Client * Copyright (C) 2004-2009 The Mana World Development Team * Copyright (C) 2009-2010 The Mana Developers - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -174,7 +175,7 @@ void ModernOpenGLGraphics::postInit() restrict2 if (mProgram == nullptr) { graphicsManager.logError(); - logger->safeError("Shader creation error. See manaplus.log."); + logger->safeError("Shader creation error. See manaverse.log."); } mProgramId = mProgram->getProgramId(); if (mProgramId == 0U) diff --git a/src/resources/db/emotedb.cpp b/src/resources/db/emotedb.cpp index 25501eaa1..301e35108 100644 --- a/src/resources/db/emotedb.cpp +++ b/src/resources/db/emotedb.cpp @@ -1,7 +1,8 @@ /* * The ManaPlus Client * Copyright (C) 2009 Aethyra Development Team - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -64,7 +65,7 @@ void EmoteDB::load() loadXmlFile(paths.getStringValue("emotesFile"), SkipError_false); loadXmlFile(paths.getStringValue("emotesPatchFile"), SkipError_true); loadXmlDir("emotesPatchDir", loadXmlFile) - loadSpecialXmlFile("graphics/sprites/manaplus_emotes.xml", + loadSpecialXmlFile("graphics/sprites/manaverse_emotes.xml", SkipError_false); mLoaded = true; @@ -156,7 +157,7 @@ void EmoteDB::loadSpecialXmlFile(const std::string &fileName, if ((rootNode == nullptr) || !xmlNameEqual(rootNode, "emotes")) { logger->log1("Emote Database: Error while loading" - " manaplus_emotes.xml!"); + " manaverse_emotes.xml!"); return; } @@ -179,7 +180,7 @@ void EmoteDB::loadSpecialXmlFile(const std::string &fileName, if (id == -1) { reportAlways("Emote Database: Emote with missing ID in " - "manaplus_emotes.xml!") + "manaverse_emotes.xml!") continue; } const int altId = XML::getProperty(emoteNode, "altid", -1); diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 6dea65522..39b9b6fda 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -415,9 +416,9 @@ int TestLauncher::testInternal() Image *img[4]; img[0] = Theme::getImageFromTheme( - "graphics/sprites/manaplus_emotions.png"); + "graphics/sprites/manaverse_emotions.png"); img[1] = Theme::getImageFromTheme( - "graphics/sprites/manaplus_emotions.png"); + "graphics/sprites/manaverse_emotions.png"); img[2] = Theme::getImageFromTheme("graphics/sprites/arrow_left.png"); img[3] = Theme::getImageFromTheme("graphics/sprites/arrow_right.png"); int idx = 0; diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp index 38f35d335..1ca8adb1e 100644 --- a/src/test/testmain.cpp +++ b/src/test/testmain.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * diff --git a/src/unittests/utils/xmlutils.cc b/src/unittests/utils/xmlutils.cc index 482580af5..64ca7e41f 100644 --- a/src/unittests/utils/xmlutils.cc +++ b/src/unittests/utils/xmlutils.cc @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2014-2019 The ManaPlus Developers + * Copyright (C) 2014-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -140,7 +141,7 @@ TEST_CASE("xmlutils readXmlStringMap 1", "") std::map<std::string, std::string> arr; - readXmlStringMap("graphics/sprites/manaplus_emotes.xml", + readXmlStringMap("graphics/sprites/manaverse_emotes.xml", "emotes", "emote", "sprite", diff --git a/src/utils/gettexthelper.cpp b/src/utils/gettexthelper.cpp index 66ebcb469..61a413866 100644 --- a/src/utils/gettexthelper.cpp +++ b/src/utils/gettexthelper.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2011-2019 The ManaPlus Developers + * Copyright (C) 2011-2020 The ManaPlus Developers + * Copyright (C) 2020-2023 The ManaVerse Developers * * This file is part of The ManaPlus Client. * @@ -107,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); @@ -129,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(); @@ -140,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 c5bad1a55..49cadaf63 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -1,6 +1,7 @@ /* * The ManaPlus Client - * Copyright (C) 2012-2019 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. * @@ -60,7 +61,7 @@ void TranslationManager::loadDictionaryLang() void TranslationManager::loadGettextLang() { delete mainTranslator; - mainTranslator = loadLang(getLang(), "manaplus/", nullptr); + mainTranslator = loadLang(getLang(), "manaverse/", nullptr); } #endif // ENABLE_CUSTOMNLS |