mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
refactor: remove unnecessary logging from libc hooks
This commit is contained in:
parent
4f9cfd3b45
commit
3ba590e3f9
2 changed files with 0 additions and 4 deletions
|
|
@ -26,8 +26,6 @@ namespace Dalamud.Game.Internal.Libc {
|
||||||
}
|
}
|
||||||
|
|
||||||
public OwnedStdString NewString(byte[] content) {
|
public OwnedStdString NewString(byte[] content) {
|
||||||
Log.Verbose("Allocating");
|
|
||||||
|
|
||||||
// While 0x70 bytes in the memory should be enough in DX11 version,
|
// While 0x70 bytes in the memory should be enough in DX11 version,
|
||||||
// I don't trust my analysis so we're just going to allocate almost two times more than that.
|
// I don't trust my analysis so we're just going to allocate almost two times more than that.
|
||||||
var pString = Marshal.AllocHGlobal(256);
|
var pString = Marshal.AllocHGlobal(256);
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,6 @@ namespace Dalamud.Game.Internal.Libc {
|
||||||
// Something got seriously fucked.
|
// Something got seriously fucked.
|
||||||
throw new AccessViolationException();
|
throw new AccessViolationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.Verbose("Deallocting {Addr}", Address);
|
|
||||||
|
|
||||||
// Deallocate inner string first
|
// Deallocate inner string first
|
||||||
this.dealloc(Address);
|
this.dealloc(Address);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue