Skip to content

Commit

Permalink
add link for raven to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
silentstorm committed Jan 11, 2023
1 parent 3dc18e1 commit f86622c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ public static void Postfix(Ability __instance){
}
}
}
[HarmonyPatch(typeof(AudioFactory),nameof(AudioFactory.Start))]
[HarmonyPatch(typeof(AudioFactory),"Start")]
public class AudioFactoryStart_Patch{
[HarmonyPostfix]
public static void Postfix(AudioFactory __instance){
foreach(string bundlePath in Directory.GetFiles(BundleDir)){
if(bundlePath.EndsWith("clips")){
try{
AssetBundleRequest bundle=AssetBundle.LoadFromFileAsync(bundlePath).assetBundle.LoadAllAssetsAsync<AudioClip>();
foreach(uObject asset in bundle.allAssets){
Il2CppReferenceArray<uObject>assets=AssetBundle.LoadFromFileAsync(bundlePath).assetBundle.LoadAllAssetsAsync<AudioClip>().allAssets;
foreach(uObject asset in assets){
__instance.RegisterAudioClip(asset.name,asset.Cast<AudioClip>());
}
}catch(Exception error){
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ Towers available

Tempest https://github.com/Onixiya/tempest/releases/latest

Viking https://github.com/Onixiya/Viking/releases/latest
Viking https://github.com/Onixiya/Viking/releases/latest

Raven https://github.com/Onixiya/Raven/releases/latest

0 comments on commit f86622c

Please sign in to comment.