mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
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:
parent
f0d2927ebc
commit
d6d5697ebc
@ -87,6 +87,7 @@ methodmap Convar < ConVar
|
|||||||
GetPluginFilename(GetMyHandle(), pluginName, PLATFORM_MAX_PATH);
|
GetPluginFilename(GetMyHandle(), pluginName, PLATFORM_MAX_PATH);
|
||||||
|
|
||||||
ReplaceString(pluginName, PLATFORM_MAX_PATH, ".smx", "");
|
ReplaceString(pluginName, PLATFORM_MAX_PATH, ".smx", "");
|
||||||
|
ReplaceString(pluginName, PLATFORM_MAX_PATH, "\\", "/");
|
||||||
|
|
||||||
int start = FindCharInString(pluginName, '/', true);
|
int start = FindCharInString(pluginName, '/', true);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user