0x00470F3C
| 542 | |
| 543 | // 0x00470F3C |
| 544 | void loadIndex() |
| 545 | { |
| 546 | // 0x00112A138 -> 144 |
| 547 | const auto vanillaObjectPath = Environment::getPathNoWarning(Environment::PathId::vanillaObjects); |
| 548 | const auto vanillaState = getCurrentObjectFolderState(vanillaObjectPath, false); |
| 549 | const auto objectPath = Environment::getPathNoWarning(Environment::PathId::objects); |
| 550 | const auto objectState = getCurrentObjectFolderState(objectPath, true); |
| 551 | const auto customObjectPath = Environment::getPathNoWarning(Environment::PathId::customObjects); |
| 552 | const auto customState = getCurrentObjectFolderState(customObjectPath, true); |
| 553 | |
| 554 | const auto currentState = ObjectFoldersState{ vanillaState, objectState, customState }; |
| 555 | |
| 556 | if (!tryLoadIndex(currentState)) |
| 557 | { |
| 558 | createIndex(currentState); |
| 559 | } |
| 560 | |
| 561 | _customObjectsInIndex = hasCustomObjectsInIndex(); |
| 562 | } |
| 563 | |
| 564 | bool getCustomObjectsInIndexStatus() |
| 565 | { |
no test coverage detected