set default install dir when launching smpackage

This commit is contained in:
Chris Danford
2005-10-21 07:42:52 +00:00
parent 1903e07f56
commit 04a590b6f2
6 changed files with 34 additions and 14 deletions
+4 -1
View File
@@ -9,6 +9,7 @@
#include "onvertThemeDlg.h"
#include "ChangeGameSettings.h"
#include "RageUtil.h"
#include "SMPackageUtil.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -184,7 +185,9 @@ BOOL MainMenuDlg::OnInitDialog()
TCHAR szCurDir[MAX_PATH];
GetCurrentDirectory( ARRAYSIZE(szCurDir), szCurDir );
GetDlgItem( IDC_EDIT_INSTALLATION )->SetWindowText( szCurDir );
AddStepManiaInstallDir( szCurDir );
SetDefaultInstallDir( szCurDir );
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}