Fix json load issue when placed inside scripts folder #54
This commit is contained in:
parent
f478812ba8
commit
858a634746
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
CJson::CJson(const char* name)
|
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))
|
if (fs::exists(file_path))
|
||||||
{
|
{
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
#define MENU_NAME "Cheat Menu"
|
#define MENU_NAME "Cheat Menu"
|
||||||
#define MENU_VERSION_NUMBER "2.7"
|
#define MENU_VERSION_NUMBER "2.7"
|
||||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
#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 ")"
|
#define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"
|
Loading…
Reference in New Issue
Block a user