mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
If v3 doesn't exist, copy from v2
This commit is contained in:
parent
97cc2522c0
commit
5d77ebdc60
1 changed files with 5 additions and 0 deletions
|
@ -373,6 +373,11 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
||||||
|
|
||||||
std::string keybinderUser = (mCfgMgr.getUserConfigPath() / "input_v3.xml").string();
|
std::string keybinderUser = (mCfgMgr.getUserConfigPath() / "input_v3.xml").string();
|
||||||
bool keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
bool keybinderUserExists = boost::filesystem::exists(keybinderUser);
|
||||||
|
if(!keybinderUserExists)
|
||||||
|
{
|
||||||
|
boost::filesystem::copy_file(mCfgMgr.getUserConfigPath() / "input_v2.xml", mCfgMgr.getUserConfigPath() / "input_v3.xml");
|
||||||
|
keybinderUserExists=true;
|
||||||
|
}
|
||||||
|
|
||||||
// find correct path to the game controller bindings
|
// find correct path to the game controller bindings
|
||||||
const std::string localdefault = mCfgMgr.getLocalPath().string() + "/gamecontrollerdb.cfg";
|
const std::string localdefault = mCfgMgr.getLocalPath().string() + "/gamecontrollerdb.cfg";
|
||||||
|
|
Loading…
Reference in a new issue