mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Use .omwsave extension for save game files
This commit is contained in:
parent
4e92f6ab48
commit
4684014a83
@ -61,7 +61,8 @@ void MWState::Character::addSlot (const ESM::SavedGame& profile)
|
||||
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
|
||||
int i=0;
|
||||
@ -70,7 +71,7 @@ void MWState::Character::addSlot (const ESM::SavedGame& profile)
|
||||
std::ostringstream test;
|
||||
test << stream.str();
|
||||
test << " - " << ++i;
|
||||
slot.mPath = mPath / test.str();
|
||||
slot.mPath = mPath / (test.str() + ext);
|
||||
}
|
||||
|
||||
slot.mProfile = profile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user