Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit 0c5a685

Browse files
committed
fix
1 parent 72f27c3 commit 0c5a685

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AstralUdonViewer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEngine.SceneManagement;
55
using VRC.Udon;
66

7-
[assembly: MelonInfo(typeof(Astrum.AstralUdonViewer), nameof(Astrum.AstralUdonViewer), "0.2.0", downloadLink: "github.com/Astrum-Project/" + nameof(Astrum.AstralUdonViewer))]
7+
[assembly: MelonInfo(typeof(Astrum.AstralUdonViewer), nameof(Astrum.AstralUdonViewer), "0.2.1", downloadLink: "github.com/Astrum-Project/" + nameof(Astrum.AstralUdonViewer))]
88
[assembly: MelonColor(ConsoleColor.DarkMagenta)]
99

1010
namespace Astrum
@@ -46,7 +46,7 @@ public static System.Collections.IEnumerator DissassembleAll()
4646
if (behaviour._program is null) continue;
4747

4848
AstralCore.Logger.Trace($"Disassembling {behaviour.name}");
49-
Disassembler.DisassembleProgram($"{path}/{RemoveInvalid(behaviour.name)}.uasm", behaviour._program);
49+
MelonCoroutines.Start(Disassembler.DisassembleProgram($"{path}/{RemoveInvalid(behaviour.name)}.uasm", behaviour._program));
5050

5151
yield return null;
5252
}

Disassembler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using System;
44
using System.IO;
5+
using System.Linq;
56
using VRC.Udon.Common.Interfaces;
67
using VRC.Udon.VM.Common;
78

@@ -19,7 +20,7 @@ public static System.Collections.IEnumerator DisassembleProgram(string path, IUd
1920
lines[i] = DisassembleInstruction(program, ref i);
2021
yield return null;
2122
}
22-
File.WriteAllLines(path, lines);
23+
File.WriteAllLines(path, lines.Where(x => !string.IsNullOrEmpty(x)));
2324
}
2425

2526
public static string DisassembleInstruction(IUdonProgram program, ref uint offset)

0 commit comments

Comments
 (0)