forked from mirror/openmw-tes3mp
check if v2 exists before attemping to copy it
This commit is contained in:
parent
464bbe4d6f
commit
84ff11d0ab
1 changed files with 5 additions and 2 deletions
|
@ -375,8 +375,11 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
||||||
bool keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
bool keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
||||||
if(!keybinderUserExists)
|
if(!keybinderUserExists)
|
||||||
{
|
{
|
||||||
boost::filesystem::copy_file(mCfgMgr.getUserConfigPath() / "input_v2.xml", mCfgMgr.getUserConfigPath() / "input_v3.xml");
|
std::string input2 = (mCfgMgr.getUserConfigPath() / "input_v2.xml").string();
|
||||||
keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
if(boost::filesystem::exists(input2)) {
|
||||||
|
boost::filesystem::copy_file(input2, keybinderUser);
|
||||||
|
keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// find correct path to the game controller bindings
|
// find correct path to the game controller bindings
|
||||||
|
|
Loading…
Reference in a new issue