mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
minor code style changes
This commit is contained in:
parent
36250d5e54
commit
17c1c37ab8
1 changed files with 6 additions and 10 deletions
|
|
@ -80,12 +80,8 @@ namespace Penumbra
|
||||||
|
|
||||||
|
|
||||||
ReadSqpackHook = new Hook< ReadSqpackPrototype >( readSqpackAddress, new ReadSqpackPrototype( ReadSqpackHandler ) );
|
ReadSqpackHook = new Hook< ReadSqpackPrototype >( readSqpackAddress, new ReadSqpackPrototype( ReadSqpackHandler ) );
|
||||||
|
GetResourceSyncHook = new Hook< GetResourceSyncPrototype >( getResourceSyncAddress, new GetResourceSyncPrototype( GetResourceSyncHandler ) );
|
||||||
GetResourceSyncHook = new Hook< GetResourceSyncPrototype >( getResourceSyncAddress,
|
GetResourceAsyncHook = new Hook< GetResourceAsyncPrototype >( getResourceAsyncAddress, new GetResourceAsyncPrototype( GetResourceAsyncHandler ) );
|
||||||
new GetResourceSyncPrototype( GetResourceSyncHandler ) );
|
|
||||||
|
|
||||||
GetResourceAsyncHook = new Hook< GetResourceAsyncPrototype >( getResourceAsyncAddress,
|
|
||||||
new GetResourceAsyncPrototype( GetResourceAsyncHandler ) );
|
|
||||||
|
|
||||||
ReadFile = Marshal.GetDelegateForFunctionPointer< ReadFilePrototype >( readFileAddress );
|
ReadFile = Marshal.GetDelegateForFunctionPointer< ReadFilePrototype >( readFileAddress );
|
||||||
|
|
||||||
|
|
@ -99,10 +95,8 @@ namespace Penumbra
|
||||||
|
|
||||||
_playerResourceManagerAddress = scanner.GetStaticAddressFromSig( "0F 44 FE 48 8B 0D ?? ?? ?? ?? 48 85 C9 74 05" );
|
_playerResourceManagerAddress = scanner.GetStaticAddressFromSig( "0F 44 FE 48 8B 0D ?? ?? ?? ?? 48 85 C9 74 05" );
|
||||||
|
|
||||||
LoadPlayerResources =
|
LoadPlayerResources = Marshal.GetDelegateForFunctionPointer< LoadPlayerResourcesPrototype >( loadPlayerResourcesAddress );
|
||||||
Marshal.GetDelegateForFunctionPointer< LoadPlayerResourcesPrototype >( loadPlayerResourcesAddress );
|
UnloadPlayerResources = Marshal.GetDelegateForFunctionPointer< UnloadPlayerResourcesPrototype >( unloadPlayerResourcesAddress );
|
||||||
UnloadPlayerResources =
|
|
||||||
Marshal.GetDelegateForFunctionPointer< UnloadPlayerResourcesPrototype >( unloadPlayerResourcesAddress );
|
|
||||||
ReadFile = Marshal.GetDelegateForFunctionPointer< ReadFilePrototype >( readFileAddress );
|
ReadFile = Marshal.GetDelegateForFunctionPointer< ReadFilePrototype >( readFileAddress );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -127,7 +121,9 @@ namespace Penumbra
|
||||||
var gameFsPath = Marshal.PtrToStringAnsi( new IntPtr( pPath ) );
|
var gameFsPath = Marshal.PtrToStringAnsi( new IntPtr( pPath ) );
|
||||||
|
|
||||||
if( LogAllFiles )
|
if( LogAllFiles )
|
||||||
|
{
|
||||||
PluginLog.Log( "[ReadSqPack] {0}", gameFsPath );
|
PluginLog.Log( "[ReadSqPack] {0}", gameFsPath );
|
||||||
|
}
|
||||||
|
|
||||||
var candidate = Plugin.ModManager.GetCandidateForGameFile( gameFsPath );
|
var candidate = Plugin.ModManager.GetCandidateForGameFile( gameFsPath );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue