Skip to content

Commit

Permalink
Add more robust versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCyro committed Dec 16, 2023
1 parent ffcc625 commit fed889a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resonance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial class Resonance : ResoniteMod
{
public override string Name => "<color=hero.cyan>🔊</color><color=hero.purple>🎶</color> Resonance";
public override string Author => "Cyro";
public override string Version => "1.0.0";
public override string Version => typeof(Resonance).Assembly.GetName().Version.ToString();
public override string Link => "https://github.com/RileyGuy/Resonance";
public static ModConfiguration? Config;
public override void OnEngineInit()
Expand Down Expand Up @@ -63,7 +63,7 @@ public static void OnAwake_Postfix(UserAudioStream<StereoSample> __instance)
{
audioStream.BufferSize.Value = 12000;
audioStream.MinimumBufferDelay.Value = 0.05f;
}
}

__instance.Destroyed += FFTStreamHandler.Destroy;
});
Expand Down
6 changes: 6 additions & 0 deletions Resonance.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<Version>1.0.1</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<Authors>Cyro</Authors>
<Product>Resonance FFT</Product>
<Description>Realtime networked FFT support for Resonite</Description>
<Copyright>Copyright (c) 2023 Riley Fields</Copyright>
</PropertyGroup>

<PropertyGroup Condition="'$(ResonitePath)'==''">
Expand Down

0 comments on commit fed889a

Please sign in to comment.