fix tools compile
This commit is contained in:
@@ -116,7 +116,9 @@ void NORETURN sm_crash( const char *reason = "Internal error" );
|
|||||||
|
|
||||||
void ShowWarningOrTrace( const char *file, int line, const char *message, bool bWarning ); // don't pull in LOG here
|
void ShowWarningOrTrace( const char *file, int line, const char *message, bool bWarning ); // don't pull in LOG here
|
||||||
#define WARN(MESSAGE) (ShowWarningOrTrace(__FILE__, __LINE__, MESSAGE, true))
|
#define WARN(MESSAGE) (ShowWarningOrTrace(__FILE__, __LINE__, MESSAGE, true))
|
||||||
|
#if !defined(CO_EXIST_WITH_MFC)
|
||||||
#define TRACE(MESSAGE) (ShowWarningOrTrace(__FILE__, __LINE__, MESSAGE, false))
|
#define TRACE(MESSAGE) (ShowWarningOrTrace(__FILE__, __LINE__, MESSAGE, false))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DEBUG_ASSERT(x) ASSERT(x)
|
#define DEBUG_ASSERT(x) ASSERT(x)
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ void MainMenuDlg::OnBnClickedOpenPreferences()
|
|||||||
{
|
{
|
||||||
// TODO: Add your control notification handler code here
|
// TODO: Add your control notification handler code here
|
||||||
// TODO: Have RageFile* do the mapping to the OS file location.
|
// TODO: Have RageFile* do the mapping to the OS file location.
|
||||||
RString sPreferencesOSFile = SpecialDirs::GetMyDocumentsDir() + PRODUCT_ID + "/" + SpecialFiles::PREFERENCES_INI_PATH;
|
RString sPreferencesOSFile = SpecialDirs::GetAppDataDir() + PRODUCT_ID + "/" + SpecialFiles::PREFERENCES_INI_PATH;
|
||||||
HINSTANCE hinst = ::ShellExecute( this->m_hWnd, "open", sPreferencesOSFile, "", "", SW_SHOWNORMAL );
|
HINSTANCE hinst = ::ShellExecute( this->m_hWnd, "open", sPreferencesOSFile, "", "", SW_SHOWNORMAL );
|
||||||
if( (int)hinst == SE_ERR_FNF )
|
if( (int)hinst == SE_ERR_FNF )
|
||||||
Dialog::OK( ssprintf(DOESNT_EXIST_IT_WILL_BE_CREATED.GetValue(),sPreferencesOSFile.c_str()) );
|
Dialog::OK( ssprintf(DOESNT_EXIST_IT_WILL_BE_CREATED.GetValue(),sPreferencesOSFile.c_str()) );
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ BOOL CSmpackageApp::InitInstance()
|
|||||||
CString sArg = argv[i];
|
CString sArg = argv[i];
|
||||||
if( sArg == "--machine-profile-stats" )
|
if( sArg == "--machine-profile-stats" )
|
||||||
{
|
{
|
||||||
RString sOSFile = SpecialDirs::GetMyDocumentsDir() + PRODUCT_ID +"/Save/MachineProfile/Stats.xml";
|
RString sOSFile = SpecialDirs::GetAppDataDir() + PRODUCT_ID +"/Save/MachineProfile/Stats.xml";
|
||||||
HINSTANCE hinst = ::ShellExecute( NULL, "open", sOSFile, "", "", SW_SHOWNORMAL );
|
HINSTANCE hinst = ::ShellExecute( NULL, "open", sOSFile, "", "", SW_SHOWNORMAL );
|
||||||
// See MSDN for an explanation of this return value
|
// See MSDN for an explanation of this return value
|
||||||
if( (int)hinst == SE_ERR_FNF )
|
if( (int)hinst == SE_ERR_FNF )
|
||||||
|
|||||||
Reference in New Issue
Block a user