fix: update to 6.0
This commit is contained in:
parent
5ae8d605f1
commit
bd3e22b6c1
|
@ -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");
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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