MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / WorkshopModsRoot

Function WorkshopModsRoot

engine/Poseidon/UI/OptionsUIApp.cpp:1240–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238 const RString& cli = AppConfig::Instance().GetModsDir();
1239 if (cli.GetLength() > 0)
1240 return (const char*)cli;
1241 return Foundation::GamePaths::Instance().ModsDir();
1242}
1243
1244static std::string WorkshopModsRoot()
1245{
1246 const RString& cli = AppConfig::Instance().GetWorkshopDir();
1247 if (cli.GetLength() > 0)
1248 return (const char*)cli;
1249 return Foundation::GamePaths::Instance().WorkshopDir();

Callers 4

ScanModRowsFunction · 0.85
OnButtonClickedMethod · 0.85
OnChildDestroyedMethod · 0.85
MergeWorkshopModsMethod · 0.85

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected