| 127 | } |
| 128 | |
| 129 | bool 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 | |
| 153 | static bool ParseAddonConfigCallback(QFBank* bank, BankContextBase* context) |
| 154 | { |
no test coverage detected