-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e3cfeb
commit 5848712
Showing
21 changed files
with
239 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
- Updated for the official MelonLoader v0.5.5 release | ||
Initial Fixes for BloonsTD6 v33.0 | ||
|
||
Use this version of the mod alongside the MelonLoader 0.5.5 you get from the official installer, not the github actions / nightly builds that have been linked previously. | ||
- Added the `FileIOHelper` class that replicates the methods of `FileIOUtil` that've been removed in v33.0 | ||
- Fixed the try-catching of Harmony Patches that wasn't working correctly on official release ML 0.5.5. | ||
- **Reverted to the old loading system** until I update our custom load tasks to the new way NK is doing it internally | ||
- This means we're temporarily going back to freezing after Step 8 of 8 to wait for mods to load rather than having our | ||
own steps | ||
|
||
Also as a PSA about MelonLoader, if things ever seem TOO frozen on Step 8 of 8, with no more log messages appearing, | ||
check that you haven't accidentally clicked into the console as below, as that can stall things | ||
|
||
![console clicking infographic](https://media.discordapp.net/attachments/800115046134186026/1029864079873032253/unknown.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
Documentation/BTD_Mod_Helper.Api.Helpers.FileIOHelper.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
#### [BloonsTD6 Mod Helper](README.md 'README') | ||
### [BTD_Mod_Helper.Api.Helpers](README.md#BTD_Mod_Helper.Api.Helpers 'BTD_Mod_Helper.Api.Helpers') | ||
|
||
## FileIOHelper Class | ||
|
||
Class replacing the original functionality of FileIOUtil before BTD6 update 33.0 | ||
|
||
```csharp | ||
public static class FileIOHelper | ||
``` | ||
|
||
Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 FileIOHelper | ||
### Properties | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.sandboxRoot'></a> | ||
|
||
## FileIOHelper.sandboxRoot Property | ||
|
||
Same as the original FileIOUtil.sandboxRoot, INCLUDES A SLASH AT THE END | ||
|
||
```csharp | ||
public static string sandboxRoot { get; } | ||
``` | ||
|
||
#### Property Value | ||
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
### Methods | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.GetSandboxPath()'></a> | ||
|
||
## FileIOHelper.GetSandboxPath() Method | ||
|
||
Same as the original FileIOUtil.GetSandboxPath(), INCLUDES A SLASH AT THE END | ||
|
||
```csharp | ||
public static string GetSandboxPath(); | ||
``` | ||
|
||
#### Returns | ||
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadFile(string)'></a> | ||
|
||
## FileIOHelper.LoadFile(string) Method | ||
|
||
Same as the original FileIOUtil.LoadFile | ||
|
||
```csharp | ||
public static string LoadFile(string fileName); | ||
``` | ||
#### Parameters | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadFile(string).fileName'></a> | ||
|
||
`fileName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
File name within the sandbox directory | ||
|
||
#### Returns | ||
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadObject_T_(string)'></a> | ||
|
||
## FileIOHelper.LoadObject<T>(string) Method | ||
|
||
Same as the original FileIOUtil.LoadObject | ||
|
||
```csharp | ||
public static T LoadObject<T>(string fileName) | ||
where T : Il2CppSystem.Object; | ||
``` | ||
#### Type parameters | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadObject_T_(string).T'></a> | ||
|
||
`T` | ||
#### Parameters | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadObject_T_(string).fileName'></a> | ||
|
||
`fileName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
File name within the sandbox directory | ||
|
||
#### Returns | ||
[T](BTD_Mod_Helper.Api.Helpers.FileIOHelper.md#BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadObject_T_(string).T 'BTD_Mod_Helper.Api.Helpers.FileIOHelper.LoadObject<T>(string).T') | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.SaveObject(string,Il2CppSystem.Object)'></a> | ||
|
||
## FileIOHelper.SaveObject(string, Object) Method | ||
|
||
Saves an il2cpp object directly to the sandbox path like the original FileIOUtil.SaveObject | ||
<br/> | ||
Will also create subdirectories as needed to save the file | ||
|
||
```csharp | ||
public static void SaveObject(string fileName, Il2CppSystem.Object data); | ||
``` | ||
#### Parameters | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.SaveObject(string,Il2CppSystem.Object).fileName'></a> | ||
|
||
`fileName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
Name of file, extension included | ||
|
||
<a name='BTD_Mod_Helper.Api.Helpers.FileIOHelper.SaveObject(string,Il2CppSystem.Object).data'></a> | ||
|
||
`data` [Il2CppSystem.Object](https://docs.microsoft.com/en-us/dotnet/api/Il2CppSystem.Object 'Il2CppSystem.Object') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.