ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/subs.cpp
(Generate patch)

Comparing AE/Installer/trunk/source/subs.cpp (file contents):
Revision 309 by iritscen, Sat May 2 23:47:33 2009 UTC vs.
Revision 310 by gumby, Sun May 3 00:26:23 2009 UTC

# Line 103 | Line 103 | int mainMenu(void)
103   int globalizeData(void)
104   {
105          int err = 0;
106 +        
107 +                try {
108          int levels[15] = {0, 1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 13, 14, 18, 19}; // the levels Oni has
109          char choice = 0;
110  
# Line 132 | Line 134 | int globalizeData(void)
134  
135          create_directory( "../GameDataFolder/" );
136          create_directory( "packages" );
137 +        if (exists("packages/VanillaDats")) remove_all("packages/VanillaDats")
138          create_directory( "packages/VanillaDats" );
139 +        
140          create_directory( "packages/VanillaDats/level0_Final/" );
141          create_directory( Characters );
142          create_directory( Particles );
# Line 255 | Line 259 | int globalizeData(void)
259          system((strOniSplit + " " + strImportOption + " " + Characters.string() + " " + VanillaCharacters.string()).c_str());
260          system((strOniSplit + " " + strImportOption + " " + Particles.string() + " " + VanillaParticles.string()).c_str());
261          system((strOniSplit + " " + strImportOption + " " + Textures.string() + " " + VanillaTextures.string()).c_str());
262 <        //system((strOniSplit + " " + strImportOption + (string)" " + Animations.string() + (string)" " + VanillaAnimations.string()).c_str());
262 >        //system((strOniSplit   + " " + strImportOption + (string)" " + Animations.string() + (string)" " + VanillaAnimations.string()).c_str());
263          system((strOniSplit + " " + strImportOption + " " + TRAC.string() + " " + VanillaTRAC.string()).c_str());
264          system((strOniSplit + " " + strImportOption + " " + Sounds.string() + " " + VanillaSounds.string()).c_str());
265          system((strOniSplit + " " + strImportOption + " " + TRAM.string() + " " + VanillaTRAM.string()).c_str());
266          
267          create_directory("../GameDataFolder/IGMD");
268          copy_file("packages/VanillaBSL", "../GameDataFolder/IGMD");
269 <        
269 >        }
270 >        catch (exception ex) {
271 >                cout << ex.what();
272 >        }
273          return err;
274   }
275  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)