Compare commits

...

3 Commits

Author SHA1 Message Date
Anna 0e6256a5da
chore: fix repo url 2021-12-08 06:09:45 -05:00
Anna 8d1755340c
chore: bump version to 1.4.6 2021-12-08 06:09:24 -05:00
Anna 1c9350bc7c
fix: update to 6.0 2021-12-08 06:09:04 -05:00
4 changed files with 9 additions and 7 deletions

View File

@ -121,9 +121,9 @@ namespace SoundFilter {
// write a pointer to the empty scd
Marshal.WriteIntPtr(infoPtr + 8, noSoundPtr);
// specify where the game should offset from for the sound index
Marshal.WriteInt32(infoPtr + 0x90, 0x54);
Marshal.WriteInt32(infoPtr + 0x88, 0x54);
// specify the number of sounds in the file
Marshal.WriteInt16(infoPtr + 0x9C, 0);
Marshal.WriteInt16(infoPtr + 0x94, 0);
return (noSoundPtr, infoPtr);
}
@ -175,6 +175,7 @@ namespace SoundFilter {
var shouldFilter = this.PlaySpecificSoundDetourInner(a1, idx);
if (shouldFilter) {
a1 = (long) this.InfoPtr;
idx = 0;
}
} catch (Exception ex) {
PluginLog.LogError(ex, "Error in PlaySpecificSoundDetour");

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5-windows</TargetFramework>
<Version>1.4.5</Version>
<Version>1.4.6</Version>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@ -57,9 +57,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.2"/>
<PackageReference Include="DotNet.Glob" Version="3.1.2"/>
<PackageReference Include="Fody" Version="6.5.2" PrivateAssets="all"/>
<PackageReference Include="DalamudPackager" Version="2.1.5"/>
<PackageReference Include="DotNet.Glob" Version="3.1.3"/>
<PackageReference Include="Fody" Version="6.6.0" PrivateAssets="all"/>
<PackageReference Include="Resourcer.Fody" Version="1.8.0" PrivateAssets="all"/>
</ItemGroup>

View File

@ -10,4 +10,4 @@ description: |-
Icons: filter by Kirby Wu from the Noun Project
and Sound by Gregor Cresnar from the Noun Project
repo_url: https://git.sr.ht/jkcclemens/SoundFilter
repo_url: https://git.annaclemens.io/ascclemens/SoundFilter

View File

@ -136,6 +136,7 @@ namespace SoundFilter.Ui {
if (drag != null && drag.Value.dst < this.Plugin.Config.Filters.Count && drag.Value.dst >= 0) {
this._dragging = drag.Value.dst;
// ReSharper disable once SwapViaDeconstruction
var temp = this.Plugin.Config.Filters[drag.Value.src];
this.Plugin.Config.Filters[drag.Value.src] = this.Plugin.Config.Filters[drag.Value.dst];
this.Plugin.Config.Filters[drag.Value.dst] = temp;