remount to the default installation, so language utils follow it

This commit is contained in:
Glenn Maynard
2006-03-06 19:44:41 +00:00
parent c21870087b
commit 0fcfa90f31
2 changed files with 12 additions and 0 deletions
@@ -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();
}
+6
View File
@@ -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;