Small fixes.

This commit is contained in:
Ottermandias 2022-09-05 12:39:41 +02:00
parent 9ce948e238
commit 07af64feed
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ public unsafe partial class ResourceLoader
// We hook ReadSqPack to redirect rooted files to ReadFile. // We hook ReadSqPack to redirect rooted files to ReadFile.
public delegate byte ReadSqPackPrototype( ResourceManager* resourceManager, SeFileDescriptor* pFileDesc, int priority, bool isSync ); public delegate byte ReadSqPackPrototype( ResourceManager* resourceManager, SeFileDescriptor* pFileDesc, int priority, bool isSync );
[Signature( "E8 ?? ?? ?? ?? EB 05 E8 ?? ?? ?? ?? 84 C0 0F 84 ?? 00 00 00 4C 8B C3", DetourName = "ReadSqPackDetour" )] [Signature( "E8 ?? ?? ?? ?? EB 05 E8 ?? ?? ?? ?? 84 C0 0F 84 ?? 00 00 00 4C 8B C3", DetourName = nameof(ReadSqPackDetour) )]
public Hook< ReadSqPackPrototype > ReadSqPackHook = null!; public Hook< ReadSqPackPrototype > ReadSqPackHook = null!;
private byte ReadSqPackDetour( ResourceManager* resourceManager, SeFileDescriptor* fileDescriptor, int priority, bool isSync ) private byte ReadSqPackDetour( ResourceManager* resourceManager, SeFileDescriptor* fileDescriptor, int priority, bool isSync )

View file

@ -12,7 +12,7 @@ public sealed partial class Mod
public void ChangeModName( Index idx, string newName ) public void ChangeModName( Index idx, string newName )
{ {
var mod = this[ idx ]; var mod = this[ idx ];
if( mod.Name != newName ) if( mod.Name.Text != newName )
{ {
var oldName = mod.Name; var oldName = mod.Name;
mod.Name = newName; mod.Name = newName;