Skip to content

Commit

Permalink
Include DumpNodeExt in project
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Feb 8, 2022
1 parent 0342480 commit c5c389c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions BloonsTD6 Mod Helper/BloonsTD6 Mod Helper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<Compile Include="Extensions\CollectionExtensions\LockedListExt.cs" />
<Compile Include="Extensions\CollectionExtensions\SizedListExt.cs" />
<Compile Include="Extensions\CoopExtensions\NKMultiGameInterfaceExt.cs" />
<Compile Include="Extensions\DisplayNodeExtensions\DumpNodeExt.cs" />
<Compile Include="Extensions\LINQExtensions\SizedListExt.cs" />
<Compile Include="Extensions\ModelExtensions\DisplayModelExt.cs" />
<Compile Include="Extensions\ModelExtensions\GameModelExt.cs" />
Expand Down
7 changes: 4 additions & 3 deletions BloonsTD6 Mod Helper/MelonMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ public override void OnTitleScreen()
buttonOption.Button.AddOnClick(() =>
{
MelonLogger.Msg("Exporting Upgrades to local files");
if(ExportPath!=FileIOUtil.sandboxRoot){
FileIOUtil.sandboxRoot = ExportPath;
}
foreach (var upgrade in Game.instance.model.upgrades)
{
var path = "Upgrades/" + upgrade.name + ".json";
Expand All @@ -207,6 +204,10 @@ public override void OnTitleScreen()
{
ExportPath.value = FileIOUtil.sandboxRoot;
}
else
{
FileIOUtil.sandboxRoot = ExportPath.value;
}

afterTitleScreen = true;
}
Expand Down

0 comments on commit c5c389c

Please sign in to comment.