mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00:00
check if v2 exists before attemping to copy it
This commit is contained in:
parent
464bbe4d6f
commit
84ff11d0ab
@ -375,8 +375,11 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
||||
bool keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
||||
if(!keybinderUserExists)
|
||||
{
|
||||
boost::filesystem::copy_file(mCfgMgr.getUserConfigPath() / "input_v2.xml", mCfgMgr.getUserConfigPath() / "input_v3.xml");
|
||||
keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
||||
std::string input2 = (mCfgMgr.getUserConfigPath() / "input_v2.xml").string();
|
||||
if(boost::filesystem::exists(input2)) {
|
||||
boost::filesystem::copy_file(input2, keybinderUser);
|
||||
keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
||||
}
|
||||
}
|
||||
|
||||
// find correct path to the game controller bindings
|
||||
|
Loading…
x
Reference in New Issue
Block a user