| 237 | } |
| 238 | |
| 239 | static bool LoadBanksCallback(RStringB dir, void* context) |
| 240 | { |
| 241 | LoadBanksContext* ctx = reinterpret_cast<LoadBanksContext*>(context); |
| 242 | |
| 243 | if (dir.GetLength() == 0) |
| 244 | { |
| 245 | dir = ctx->path; |
| 246 | } |
| 247 | else |
| 248 | { |
| 249 | dir = dir + RString("\\") + ctx->path; |
| 250 | } |
| 251 | |
| 252 | LoadBanks(ctx->path, dir, ctx->emptyPrefix, ctx->parseConfig); |
| 253 | return false; |
| 254 | } |
| 255 | |
| 256 | static void LoadBanksEx(const char* path, bool emptyPrefix, bool parseConfig = false) |
| 257 | { |