From 027bb6b0d79594389f4b4285eab9f8662df33f22 Mon Sep 17 00:00:00 2001 From: Anonymous275 <36374260+Anonymous-275@users.noreply.github.com> Date: Sun, 17 Jul 2022 01:00:55 +0300 Subject: [PATCH] Small edit --- src/Config.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index c596515..2b72dfa 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -10,7 +10,7 @@ void Launcher::LoadConfig() { 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 build = config["Build"]; if(ui.is_boolean()) { diff --git a/src/main.cpp b/src/main.cpp index cdc32b4..1f4c266 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ int main(int argc, char* argv[]) { try { Launcher launcher(argc, argv); launcher.RunDiscordRPC(); - launcher.LoadConfig(); + launcher.LoadConfig(); //check if json (issue) launcher.CheckKey(); launcher.QueryRegistry(); //UI call