@@ -26,9 +26,10 @@ bool InitializeSteamComponents()
2626 sprintf_s (SteamclientPath, kRuntimePathCapacity , " %s\\ steamclient64.dll" , SteamInstallPath);
2727 sprintf_s (SteamUIPath, kRuntimePathCapacity , " %s\\ steamui.dll" , SteamInstallPath);
2828 sprintf_s (DiversionPath, kRuntimePathCapacity , " %s\\ bin\\ diversion.dll" , SteamInstallPath);
29- // Fixed default Lua directory: <Steam>\config\lua (what the GUI writes to).
30- // Deliberately the ONLY default — the old BST-era config\stplug-in directory
31- // is NOT scanned, so lua files can never be loaded twice from two locations.
29+ // Fallback Lua directory: <Steam>\config\lua (what the GUI writes to). Used only
30+ // while [lua] paths in opensteamtool.toml is empty — the GUI writes that entry
31+ // whenever the user picks a different directory, so exactly one directory is
32+ // scanned and lua files can never be loaded twice from two locations.
3233 sprintf_s (LuaDir, kRuntimePathCapacity , " %s\\ config\\ lua" , SteamInstallPath);
3334 sprintf_s (ConfigPath, kRuntimePathCapacity , " %s\\ opensteamtool.toml" , SteamInstallPath);
3435
@@ -76,7 +77,7 @@ static uint32_t InitThread(OSTPlatform::DynamicLibrary::ModuleHandle selfModule)
7677 IPCLoader::Load (SteamclientPath);
7778
7879 std::vector<std::string> watchDirs =
79- LuaConfig::MergeWatchDirs (Config::GetLuaPaths (), std::string (LuaDir));
80+ LuaConfig::ResolveWatchDirs (Config::GetLuaPaths (), std::string (LuaDir));
8081 for (const auto & dir : watchDirs)
8182 LuaConfig::ParseDirectory (dir);
8283
0 commit comments