From f57b7cc36e008bfc88b03bc36bf54f7c0705b35b Mon Sep 17 00:00:00 2001 From: rejchev Date: Sun, 13 Aug 2023 02:33:00 +0500 Subject: [PATCH] update 1.7.3 fixed invalid ident on load json from file --- smsdk_config.h | 2 +- src/jansson.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smsdk_config.h b/smsdk_config.h index 41b8072..eab8f43 100644 --- a/smsdk_config.h +++ b/smsdk_config.h @@ -30,7 +30,7 @@ /* Basic information exposed publicly */ #define SMEXT_CONF_NAME "Jansson-re" #define SMEXT_CONF_DESCRIPTION "Provides JSON natives for plugins" -#define SMEXT_CONF_VERSION "1.7.2" +#define SMEXT_CONF_VERSION "1.7.3" #define SMEXT_CONF_AUTHOR "rej.chev" #define SMEXT_CONF_URL "https://discord.gg/cFZ97Mzrjy" #define SMEXT_CONF_LOGTAG "Json" diff --git a/src/jansson.cpp b/src/jansson.cpp index b4f8cfa..ca7979f 100644 --- a/src/jansson.cpp +++ b/src/jansson.cpp @@ -54,7 +54,7 @@ IJson *Jansson::create(const SourceMod::PathType& type, const char *path, const char filePath[PLATFORM_MAX_PATH]; smutils->BuildPath(type, filePath, PLATFORM_MAX_PATH, "%s", path); - if((object = json_load_file(path, flags, &error)) == nullptr) { + if((object = json_load_file(filePath, flags, &error)) == nullptr) { if(pError != nullptr) *pError = ToKnownError(&error);