[Menus] Fix scriptmenu loading
This commit is contained in:
parent
2ac212cbbb
commit
8be08154c5
@ -530,7 +530,7 @@ namespace Components
|
||||
if (menuList && reinterpret_cast<DWORD>(menuList) != 0xDDDDDDDD)
|
||||
{
|
||||
// Parse scriptmenus!
|
||||
if (menuList->menuCount > 0 && menuList->menus[0] && menuList->menus[0]->window.name == "default_menu"s || Utils::String::EndsWith(filename, ".menu"))
|
||||
if ((menuList->menuCount > 0 && menuList->menus[0] && menuList->menus[0]->window.name == "default_menu"s) || Utils::String::EndsWith(filename, ".menu"))
|
||||
{
|
||||
if (FileSystem::File(filename).exists())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user