Skip to content

Commit

Permalink
Clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed May 30, 2021
1 parent 1d5929e commit 142c154
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Core_BGMLoader/Core.BGMLoader.AudioLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ public static class AudioLoader
{
public static AudioClip LoadAudioClip(string path)
{
#pragma warning disable 618 // Disable the obsolete warning
using (WWW www = new WWW(BepInEx.Utility.ConvertToWWWFormat(path)))
#pragma warning restore 618
{
AudioClip clip = www.GetAudioClip();

Expand Down
2 changes: 1 addition & 1 deletion src/Core_Screencap/Renderers/AlphaShot2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public Texture2D CaptureTex(int ResolutionX, int ResolutionY, int DownscalingRat
Texture2D fullSizeCapture;
int newWidth = ResolutionX * DownscalingRate;
int newHeight = ResolutionY * DownscalingRate;
float orgBlurSize = 0.0f;

#if !KKS //todo check if they come back in KKS full game
// Fix depth of field
float orgBlurSize = 0.0f;
var dof = Camera.main.gameObject.GetComponent<UnityStandardAssets.ImageEffects.DepthOfField>();
if (dof != null)
{
Expand Down
3 changes: 2 additions & 1 deletion src/KKS_Screencap/KKS_Screencap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugSymbols>true</DebugSymbols>
<DocumentationFile>..\..\bin\BepInEx\plugins\KKS_BepisPlugins\KKS_Screencap.xml</DocumentationFile>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=2.3.2.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down

0 comments on commit 142c154

Please sign in to comment.