forked from mirror/openmw-tes3mp
Use .omwsave extension for save game files
This commit is contained in:
parent
4e92f6ab48
commit
4684014a83
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue