remount to the default installation, so language utils follow it
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "archutils/Win32/DialogUtil.h"
|
||||
#include ".\editinsallations.h"
|
||||
#include "LocalizedString.h"
|
||||
#include "RageFileManager.h"
|
||||
#include "RageUtil.h"
|
||||
#include "arch/Dialog/Dialog.h"
|
||||
|
||||
@@ -141,6 +142,11 @@ void EditInsallations::OnOK()
|
||||
}
|
||||
SMPackageUtil::WriteGameInstallDirs( vs );
|
||||
|
||||
// set the new default
|
||||
vector<RString> asInstallDirs;
|
||||
SMPackageUtil::GetGameInstallDirs( asInstallDirs );
|
||||
FILEMAN->Remount( "/", asInstallDirs[0] );
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,12 @@ BOOL CSmpackageApp::InitInstance()
|
||||
SMPackageUtil::SetDefaultInstallDir( szCurrentDirectory );
|
||||
}
|
||||
|
||||
{
|
||||
vector<RString> asInstallDirs;
|
||||
SMPackageUtil::GetGameInstallDirs( asInstallDirs );
|
||||
FILEMAN->Remount( "/", asInstallDirs[0] );
|
||||
}
|
||||
|
||||
|
||||
LUA = new LuaManager;
|
||||
THEME = new ThemeManager;
|
||||
|
||||
Reference in New Issue
Block a user