Skip to content

Commit

Permalink
lua.cpp: Use backslash directory separator
Browse files Browse the repository at this point in the history
Paths going into `FindAsset` are expected to use backslashes
  • Loading branch information
glebm committed Nov 1, 2023
1 parent 165f95e commit cc0d2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/lua/lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ void LuaInitialize()
"render", LuaRenderModule(lua),
"message", [](std::string_view text) { EventPlrMsg(text, UiFlags::ColorRed); });

RunScript("lua/init.lua", /*optional=*/false);
RunScript("lua/user.lua", /*optional=*/true);
RunScript("lua\\init.lua", /*optional=*/false);
RunScript("lua\\user.lua", /*optional=*/true);

LuaEvent("OnGameBoot");
}
Expand Down

0 comments on commit cc0d2e2

Please sign in to comment.