Fix json load issue when placed inside scripts folder #54

This commit is contained in:
Grinch_ 2021-05-22 17:04:18 +06:00
parent f478812ba8
commit 858a634746
2 changed files with 2 additions and 2 deletions

View File

@ -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))
{

View File

@ -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 ")"