| 529 | } |
| 530 | |
| 531 | string GetWritePath(const ModID& id) { |
| 532 | #if defined(OGDA) || defined(OG_WORKER) |
| 533 | return string(write_path); |
| 534 | #else |
| 535 | if (id.Valid()) { |
| 536 | if (id != CoreGameModID) { |
| 537 | ModInstance* modi = ModLoading::Instance().GetMod(id); |
| 538 | if (modi) { |
| 539 | return AssemblePath(string(write_path), "ModsDataCache", string(modi->id)) + "/"; |
| 540 | } else { |
| 541 | LOGF << "Got valid mod id to non existant mod" << endl; |
| 542 | } |
| 543 | } |
| 544 | } else { |
| 545 | LOGF << "Got invalid mod id" << endl; |
| 546 | } |
| 547 | return string(write_path); |
| 548 | #endif |
| 549 | } |
| 550 | |
| 551 | void GetWritePath(const ModID& id, char* buf, size_t len) { |
| 552 | // Fastpath to make the coredump routine a little more robust. |
no test coverage detected