Compare commits
3 Commits
aad99e0d3b
...
0e6256a5da
Author | SHA1 | Date |
---|---|---|
Anna | 0e6256a5da | |
Anna | 8d1755340c | |
Anna | 1c9350bc7c |
|
@ -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");
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue