@@ -17,11 +17,11 @@ TextureWorker worker = new TextureWorker();
17
17
ThreadLocal < DecompileContext > DECOMPILE_CONTEXT = new ThreadLocal < DecompileContext > ( ( ) => new DecompileContext ( Data , false ) ) ;
18
18
string gmxDeclaration = "This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!" ;
19
19
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
+ // }
25
25
26
26
Directory . CreateDirectory ( projFolder ) ;
27
27
@@ -37,14 +37,14 @@ var resourceNum = Data.Sprites.Count +
37
37
Data . Paths . Count +
38
38
Data . Timelines . Count ;
39
39
40
- // Export sprites
41
- await ExportSprites ( ) ;
40
+ // // Export sprites
41
+ // await ExportSprites();
42
42
43
- // Export backgrounds
44
- await ExportBackground ( ) ;
43
+ // // Export backgrounds
44
+ // await ExportBackground();
45
45
46
- // Export objects
47
- await ExportGameObjects ( ) ;
46
+ // // Export objects
47
+ // await ExportGameObjects();
48
48
49
49
// Export rooms
50
50
await ExportRooms ( ) ;
@@ -380,7 +380,7 @@ void ExportRoom(UndertaleRoom room)
380
380
foreach ( var i in room . Tiles )
381
381
{
382
382
var tileNode = new XElement ( "tile" ,
383
- new XAttribute ( "bgName" , i . BackgroundDefinition . Name . Content ) ,
383
+ new XAttribute ( "bgName" , i . BackgroundDefinition is null ? "" : i . BackgroundDefinition . Name . Content ) ,
384
384
new XAttribute ( "x" , i . X . ToString ( ) ) ,
385
385
new XAttribute ( "y" , i . Y . ToString ( ) ) ,
386
386
new XAttribute ( "w" , i . Width . ToString ( ) ) ,
0 commit comments