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

Function EnumModDirectories

engine/Poseidon/Core/GameState.cpp:129–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129bool EnumModDirectories(ModDirectoryCallback callback, void* context)
130{
131 RString& ModPath = GetModPathInternal();
132 if (ModPath.GetLength() > 0)
133 {
134 Temp<char> buffer((const char*)ModPath, ModPath.GetLength() + 1);
135
136 char* ptr;
137 while (ptr = strrchr(buffer, ';'))
138 {
139 *ptr = 0;
140 if (callback(ptr + 1, context))
141 {
142 return true;
143 }
144 }
145 if (callback((const char*)buffer, context))
146 {
147 return true;
148 }
149 }
150 return callback("", context);
151}
152
153static bool ParseAddonConfigCallback(QFBank* bank, BankContextBase* context)
154{

Callers 3

CreateMPMissionBankFunction · 0.85
CreateSingleMissionBankFunction · 0.85
LoadBanksExFunction · 0.85

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected