summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-10-30 18:49:58 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-10-30 19:19:01 +0100
commit437946fb1a9c4614c92b0135f28bf29a2bc23f75 (patch)
tree72ae1dd339d7550afa4692b2f0a84e40b5b20904 /Source/Core/Common/FileUtil.cpp
parent99a3bbc0552cfea13cd2928c67e53c7638b289ac (diff)
Core/State: Refactor logic for determining the relative age of existing savestates.
The code previously did this indirectly via `std::map<double, int>`, the key being the timestamp, which required a questionable workaround for the case where multiple states have the same timestamp. By having a particular combination of timestamps in the on-disk savestates, you could cause this workaround to infinitely loop, locking up Dolphin. This avoids this completely by refactoring the logic and just using `std::vector` instead.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
0 files changed, 0 insertions, 0 deletions