0x00470F3C
| 136 | |
| 137 | // 0x00470F3C |
| 138 | static ObjectFolderState getCurrentObjectFolderState(fs::path path, bool shouldRecurse) |
| 139 | { |
| 140 | ObjectFolderState currentState{}; |
| 141 | |
| 142 | currentState.basePath = path.u8string(); |
| 143 | |
| 144 | iterateObjectFolder(path, shouldRecurse, [¤tState](const fs::directory_entry& file) { |
| 145 | currentState.numObjects++; |
| 146 | const auto lastWrite = file.last_write_time().time_since_epoch().count(); |
| 147 | currentState.dateHash ^= ((lastWrite >> 32) ^ (lastWrite & 0xFFFFFFFF)); |
| 148 | currentState.dateHash = std::rotr(currentState.dateHash, 5); |
| 149 | currentState.totalFileSize += file.file_size(); |
| 150 | return true; |
| 151 | }); |
| 152 | |
| 153 | return currentState; |
| 154 | } |
| 155 | |
| 156 | // 0x00471712 |
| 157 | static bool hasCustomObjectsInIndex() |
no test coverage detected