From 858a6347460cc8b1f8b65369a75aeb27f98e717e Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Sat, 22 May 2021 17:04:18 +0600 Subject: [PATCH] Fix json load issue when placed inside scripts folder #54 --- CheatMenu/Json.cpp | 2 +- CheatMenu/MenuInfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CheatMenu/Json.cpp b/CheatMenu/Json.cpp index 4ba8889..194fec7 100644 --- a/CheatMenu/Json.cpp +++ b/CheatMenu/Json.cpp @@ -3,7 +3,7 @@ CJson::CJson(const char* name) { - file_path = "./CheatMenu/json/" + std::string(name) + ".json"; + file_path = PLUGIN_PATH((char*)"/CheatMenu/json/") + std::string(name) + ".json"; if (fs::exists(file_path)) { diff --git a/CheatMenu/MenuInfo.h b/CheatMenu/MenuInfo.h index bd948c3..0c902d5 100644 --- a/CheatMenu/MenuInfo.h +++ b/CheatMenu/MenuInfo.h @@ -2,5 +2,5 @@ #define MENU_NAME "Cheat Menu" #define MENU_VERSION_NUMBER "2.7" #define MENU_VERSION MENU_VERSION_NUMBER"-beta" -#define BUILD_NUMBER "20210423" +#define BUILD_NUMBER "20210522" #define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")" \ No newline at end of file