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 |
|
|
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 ); |
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 |
|
|