Skip to content

Commit 4bd9404

Browse files
committed
Pop the console open if the specified single module to load failed to load
Also check that it's not userdata
1 parent abafd37 commit 4bd9404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Managers/ModuleMan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,10 @@ namespace RTE {
240240
LoadOfficialModules();
241241

242242
// If a single module is specified, skip loading all other unofficial modules and load specified module only.
243-
if (!m_SingleModuleToLoad.empty() && !IsModuleOfficial(m_SingleModuleToLoad)) {
243+
if (!m_SingleModuleToLoad.empty() && !IsModuleOfficial(m_SingleModuleToLoad) && !IsModuleUserdata(m_SingleModuleToLoad)) {
244244
if (!LoadDataModule(m_SingleModuleToLoad, DataModule::DataModuleType::Unofficial, LoadingScreen::LoadingSplashProgressReport)) {
245245
g_ConsoleMan.PrintString("ERROR: Failed to load DataModule \"" + m_SingleModuleToLoad + "\"! Only official modules were loaded!");
246+
g_ConsoleMan.SetEnabled(true);
246247
return false;
247248
}
248249
} else {

0 commit comments

Comments
 (0)