mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-04 00:38:51 +00:00
Hopefully *Center* everything properly.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user