Hopefully *Center* everything properly.

This commit is contained in:
StackZ
2020-01-03 07:19:28 +01:00
parent 9803bdc90a
commit 8fd1c9ad60
10 changed files with 67 additions and 57 deletions
+7 -1
View File
@@ -1,5 +1,7 @@
#include "lang/lang.hpp"
#include "utils/config.hpp"
#include <stdio.h>
nlohmann::json appJson;
@@ -15,7 +17,11 @@ std::string langs[] = {"br", "de", "en", "es", "fr", "it", "lt", "pt", "ru", "jp
void Lang::load(int lang) {
FILE* values;
values = fopen(("romfs:/lang/"+langs[lang]+"/app.json").c_str(), "rt");
if (Config::LangPath == 1) {
values = fopen(("sdmc:/3ds/Universal-Updater/app.json"), "rt");
} else {
values = fopen(("romfs:/lang/"+langs[lang]+"/app.json").c_str(), "rt");
}
if(values) appJson = nlohmann::json::parse(values, nullptr, false);
fclose(values);
}