Changeset 403 for AE/Installer


Ignore:
Timestamp:
Jul 7, 2009, 2:55:49 AM (10 years ago)
Author:
iritscen
Message:

Fixed persist.dat and key_config.txt copying (thx Gumby).
Enclosed Windows-only code in #ifdef.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/Installer/trunk/source/main_window.cpp

    r400 r403  
    358358                setProgressBar( 1000 );
    359359
    360                 copy("../../persist.dat","..");
    361                 copy("../../key_config.txt","..");
     360                if(!exists("../persist.dat"))
     361                        copy("../../persist.dat","..");
     362                if(!exists("../key_config.txt"))
     363                        copy("../../key_config.txt","..");
    362364               
    363365#ifndef WIN32
     
    11401142    Mods_CheckboxList->Connect(Mods_CheckboxList1, wxEVT_CREATE, wxWindowCreateEventHandler(MainWindow::ModList_OnCreate), NULL, this);
    11411143        ////@end MainWindow content construction
    1142 
     1144#ifdef WIN32
    11431145        Handle = (HWND)GetHWND();
    11441146        ::CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList, (void **)&pTaskbarList);
    1145 
     1147#endif
    11461148
    11471149        if ( exists( "../../GameDataFolder/level0_Final.sep" ) ) {
Note: See TracChangeset for help on using the changeset viewer.