Update convar_class.inc to replace backslashes with forwardslashes so trying to create config files doesn't fail if you nest plugins into subfolders

This commit is contained in:
rtldg 2021-06-22 22:02:26 +00:00
parent f0d2927ebc
commit d6d5697ebc

View File

@ -87,6 +87,7 @@ methodmap Convar < ConVar
GetPluginFilename(GetMyHandle(), pluginName, PLATFORM_MAX_PATH);
ReplaceString(pluginName, PLATFORM_MAX_PATH, ".smx", "");
ReplaceString(pluginName, PLATFORM_MAX_PATH, "\\", "/");
int start = FindCharInString(pluginName, '/', true);