Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix: Fixed problem loading assets
Browse files Browse the repository at this point in the history
Release-As: 1.0.2
  • Loading branch information
Hypick122 committed Jan 28, 2024
1 parent 48a238b commit a5c8457
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion FunnyAudio/FunnyAudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<AssemblyName>Hypick.FunnyAudio</AssemblyName>
<Product>FunnyAudio</Product>
<Version>1.0.1</Version>
<Version>1.0.2</Version>

<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
Expand Down
12 changes: 6 additions & 6 deletions FunnyAudio/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ private void Awake()

LoadListAssetBundle(["moaning", "moaningfar"], MoaningsSFX);

LoadListAssetBundle(["Shotgun/blast", "Shotgun/blast2"], NMBShotgunShoots);
LoadAssetBundle("Shotgun/reload", out NMBShotgunReload);
LoadAssetBundle("NutCracker/nutcrackerturn", out NMBNutCrackerAim);
LoadAssetBundle("NutCracker/nutcrackerdie", out NMBNutCrackerDie);
LoadAssetBundle("NutCracker/nutcrackerhiteye", out NMBNutCrackerHitEye);
LoadListAssetBundle(["blast", "blast2"], NMBShotgunShoots);
LoadAssetBundle("reload", out NMBShotgunReload);
LoadAssetBundle("nutcrackerturn", out NMBNutCrackerAim);
LoadAssetBundle("nutcrackerdie", out NMBNutCrackerDie);
LoadAssetBundle("nutcrackerhiteye", out NMBNutCrackerHitEye);

Log.LogInfo($"Applying patches...");
_harmony.PatchAll();
Expand Down Expand Up @@ -118,6 +118,6 @@ private void LoadListAssetBundle(string[] fileNames, List<AudioClip> audioClips)
private string GetFilePath(string fileName)
{
string folderLocation = Path.GetDirectoryName(Instance.Info.Location);
return Path.Combine(folderLocation, "Assets", fileName);
return Path.Combine(folderLocation, fileName);
}
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ All sounds can be configured in the config ```Hypick.FunnyAudio.cfg```
- Landmine now makes a BIG boom
- Airhorn now moans

The sounds of I need more bullets are taken from the NutteCracker mod

</details>

<details>
Expand All @@ -38,9 +40,15 @@ All sounds can be configured in the config ```Hypick.FunnyAudio.cfg```
- Мина теперь делает БОЛЬШОЙ бум
- Сирена (Airhorn) теперь издает стоны

Звуки I need more bullets взяты из мода NutteCracker

</details>

## [1.0.1] - 25.01.2024
## [1.0.2] - 28.01.2024 | Current version

- Исправлена проблема загрузки ассетов

## [1.0.1] - 28.01.2024

- Added 3 sounds for shotgun (i need more bullets)

Expand Down

0 comments on commit a5c8457

Please sign in to comment.