Changeset 310


Ignore:
Timestamp:
May 3, 2009, 2:26:23 AM (16 years ago)
Author:
gumby
Message:
 
File:
1 edited

Legend:

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

    r309 r310  
    104104{
    105105        int err = 0;
     106       
     107                try {
    106108        int levels[15] = {0, 1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 13, 14, 18, 19}; // the levels Oni has
    107109        char choice = 0;
     
    133135        create_directory( "../GameDataFolder/" );
    134136        create_directory( "packages" );
     137        if (exists("packages/VanillaDats")) remove_all("packages/VanillaDats")
    135138        create_directory( "packages/VanillaDats" );
     139       
    136140        create_directory( "packages/VanillaDats/level0_Final/" );
    137141        create_directory( Characters );
     
    256260        system((strOniSplit + " " + strImportOption + " " + Particles.string() + " " + VanillaParticles.string()).c_str());
    257261        system((strOniSplit + " " + strImportOption + " " + Textures.string() + " " + VanillaTextures.string()).c_str());
    258         //system((strOniSplit + " " + strImportOption + (string)" " + Animations.string() + (string)" " + VanillaAnimations.string()).c_str());
     262        //system((strOniSplit   + " " + strImportOption + (string)" " + Animations.string() + (string)" " + VanillaAnimations.string()).c_str());
    259263        system((strOniSplit + " " + strImportOption + " " + TRAC.string() + " " + VanillaTRAC.string()).c_str());
    260264        system((strOniSplit + " " + strImportOption + " " + Sounds.string() + " " + VanillaSounds.string()).c_str());
     
    263267        create_directory("../GameDataFolder/IGMD");
    264268        copy_file("packages/VanillaBSL", "../GameDataFolder/IGMD");
    265        
     269        }
     270        catch (exception ex) {
     271                cout << ex.what();
     272        }
    266273        return err;
    267274}
Note: See TracChangeset for help on using the changeset viewer.