removed dynamicmenu folder -- everything is consistent now
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402226
This commit is contained in:
parent
d595e020cd
commit
c3492f0192
@ -81,8 +81,21 @@ BuildDynamicMenu()
|
|||||||
|
|
||||||
new Handle:kvMenu;
|
new Handle:kvMenu;
|
||||||
kvMenu = CreateKeyValues("Commands");
|
kvMenu = CreateKeyValues("Commands");
|
||||||
|
|
||||||
new String:file[256];
|
new String:file[256];
|
||||||
|
|
||||||
|
/* As a compatibility shim, we use the old file if it exists. */
|
||||||
BuildPath(Path_SM, file, 255, "configs/dynamicmenu/menu.ini");
|
BuildPath(Path_SM, file, 255, "configs/dynamicmenu/menu.ini");
|
||||||
|
if (FileExists(file))
|
||||||
|
{
|
||||||
|
LogError("Warning! configs/dynamicmenu/menu.ini is now configs/adminmenu_custom.txt.");
|
||||||
|
LogError("Read the 1.0.2 release notes, as the dynamicmenu folder has been removed.");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BuildPath(Path_SM, file, 255, "configs/adminmenu_custom.txt");
|
||||||
|
}
|
||||||
|
|
||||||
FileToKeyValues(kvMenu, file);
|
FileToKeyValues(kvMenu, file);
|
||||||
|
|
||||||
new String:name[NAME_LENGTH];
|
new String:name[NAME_LENGTH];
|
||||||
@ -336,6 +349,15 @@ ParseConfigs()
|
|||||||
|
|
||||||
decl String:configPath[256];
|
decl String:configPath[256];
|
||||||
BuildPath(Path_SM, configPath, sizeof(configPath), "configs/dynamicmenu/adminmenu_grouping.txt");
|
BuildPath(Path_SM, configPath, sizeof(configPath), "configs/dynamicmenu/adminmenu_grouping.txt");
|
||||||
|
if (FileExists(configPath))
|
||||||
|
{
|
||||||
|
LogError("Warning! configs/dynamicmenu/adminmenu_grouping.txt is now configs/adminmenu_grouping.txt.");
|
||||||
|
LogError("Read the 1.0.2 release notes, as the dynamicmenu folder has been removed.");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BuildPath(Path_SM, configPath, sizeof(configPath), "configs/adminmenu_grouping.txt");
|
||||||
|
}
|
||||||
|
|
||||||
if (!FileExists(configPath))
|
if (!FileExists(configPath))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user