1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-25 04:53:08 +00:00

Compare saves passed on the command line using file equivalence

This commit is contained in:
Evil Eye 2025-12-09 10:21:58 +01:00
parent cd4901245e
commit 1bdc01120f

View file

@ -405,7 +405,7 @@ void MWState::StateManager::loadGame(const std::filesystem::path& filepath)
{
for (const auto& slot : character)
{
if (slot.mPath == filepath)
if (std::filesystem::equivalent(slot.mPath, filepath))
{
loadGame(&character, slot.mPath);
return;