mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-19 23:20:57 +00:00
Small edit
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
void Launcher::LoadConfig() {
|
void Launcher::LoadConfig() {
|
||||||
if(fs::exists("Launcher.cfg")) {
|
if(fs::exists("Launcher.cfg")) {
|
||||||
toml::table config = toml::parse_file("Launcher.cfg");
|
toml::parse_result config = toml::parse_file("Launcher.cfg");
|
||||||
auto ui = config["UI"];
|
auto ui = config["UI"];
|
||||||
auto build = config["Build"];
|
auto build = config["Build"];
|
||||||
if(ui.is_boolean()) {
|
if(ui.is_boolean()) {
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ int main(int argc, char* argv[]) {
|
|||||||
try {
|
try {
|
||||||
Launcher launcher(argc, argv);
|
Launcher launcher(argc, argv);
|
||||||
launcher.RunDiscordRPC();
|
launcher.RunDiscordRPC();
|
||||||
launcher.LoadConfig();
|
launcher.LoadConfig(); //check if json (issue)
|
||||||
launcher.CheckKey();
|
launcher.CheckKey();
|
||||||
launcher.QueryRegistry();
|
launcher.QueryRegistry();
|
||||||
//UI call
|
//UI call
|
||||||
|
|||||||
Reference in New Issue
Block a user