Browse Source

Load translations after logging environment during launch.

tags/v2.6.4
Andrew Belt 1 month ago
parent
commit
4b99d216b8
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      adapters/standalone.cpp
  2. +1
    -0
      src/string.cpp

+ 2
- 1
adapters/standalone.cpp View File

@@ -136,7 +136,6 @@ int main(int argc, char* argv[]) {
}
logger::init();
random::init();
string::init();

// Test code
// exit(0);
@@ -168,6 +167,8 @@ int main(int argc, char* argv[]) {
#endif
INFO("System time: %s", string::formatTimeISO(system::getUnixTime()).c_str());

string::init();

// Load settings
settings::init();
try {


+ 1
- 0
src/string.cpp View File

@@ -577,6 +577,7 @@ static std::map<std::string, std::map<std::string, std::string>> translations;


static void loadTranslations() {
INFO("Loading translations");
translations.clear();
std::string translationsDir = asset::system("translations");



Loading…
Cancel
Save