Use .omwsave extension for save game files

This commit is contained in:
scrawl 2015-01-07 15:06:39 +01:00
parent 4e92f6ab48
commit 4684014a83

View file

@ -61,7 +61,8 @@ void MWState::Character::addSlot (const ESM::SavedGame& profile)
stream << "_"; stream << "_";
} }
slot.mPath = mPath / stream.str(); const std::string ext = ".omwsave";
slot.mPath = mPath / (stream.str() + ext);
// Append an index if necessary to ensure a unique file // Append an index if necessary to ensure a unique file
int i=0; int i=0;
@ -70,7 +71,7 @@ void MWState::Character::addSlot (const ESM::SavedGame& profile)
std::ostringstream test; std::ostringstream test;
test << stream.str(); test << stream.str();
test << " - " << ++i; test << " - " << ++i;
slot.mPath = mPath / test.str(); slot.mPath = mPath / (test.str() + ext);
} }
slot.mProfile = profile; slot.mProfile = profile;