Skip to content

Commit a3efcf8

Browse files
committed
Update ExportToProject.csx
1 parent 4df8356 commit a3efcf8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

ExportToProject.csx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ TextureWorker worker = new TextureWorker();
1717
ThreadLocal<DecompileContext> DECOMPILE_CONTEXT = new ThreadLocal<DecompileContext>(() => new DecompileContext(Data, false));
1818
string gmxDeclaration = "This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!";
1919

20-
// if (Directory.Exists(projFolder))
21-
// {
22-
// ScriptError("A project export already exists. Please remove it.", "Error");
23-
// return;
24-
// }
20+
if (Directory.Exists(projFolder))
21+
{
22+
ScriptError("A project export already exists. Please remove it.", "Error");
23+
return;
24+
}
2525

2626
Directory.CreateDirectory(projFolder);
2727

@@ -37,14 +37,14 @@ var resourceNum = Data.Sprites.Count +
3737
Data.Paths.Count +
3838
Data.Timelines.Count;
3939

40-
// // Export sprites
41-
// await ExportSprites();
40+
// Export sprites
41+
await ExportSprites();
4242

43-
// // Export backgrounds
44-
// await ExportBackground();
43+
// Export backgrounds
44+
await ExportBackground();
4545

46-
// // Export objects
47-
// await ExportGameObjects();
46+
// Export objects
47+
await ExportGameObjects();
4848

4949
// Export rooms
5050
await ExportRooms();

0 commit comments

Comments
 (0)