From a884302c14e726151cf8116205c926090eaeed32 Mon Sep 17 00:00:00 2001 From: rtldg Date: Tue, 4 Mar 2025 07:21:55 +0000 Subject: [PATCH] Misc comments --- core/sourcehook/sourcehook.h | 2 +- core/sourcehook/sourcehook_hookmangen_x86_64.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/sourcehook/sourcehook.h b/core/sourcehook/sourcehook.h index 4c464fd..c7ef9c8 100644 --- a/core/sourcehook/sourcehook.h +++ b/core/sourcehook/sourcehook.h @@ -198,7 +198,7 @@ namespace SourceHook // The following two flags are only relevant for byval return types. // SH tries to auto-detect these // If you want to override SH's auto-detection, pass them in yourself - PassFlag_RetMem = (1<<6), /**< Object is returned in memory (through hidden first param */ + PassFlag_RetMem = (1<<6), /**< Object is returned in memory (through hidden first param) */ PassFlag_RetReg = (1<<7) /**< Object is returned in EAX(:EDX)/RAX(x86_64) */ }; diff --git a/core/sourcehook/sourcehook_hookmangen_x86_64.cpp b/core/sourcehook/sourcehook_hookmangen_x86_64.cpp index 85dc050..ef15bd3 100644 --- a/core/sourcehook/sourcehook_hookmangen_x86_64.cpp +++ b/core/sourcehook/sourcehook_hookmangen_x86_64.cpp @@ -14,6 +14,7 @@ // https://defuse.ca/online-x86-assembler.htm // https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention // https://refspecs.linuxbase.orgz/elf/x86_64-abi-0.99.pdf +// SystemV AMD64 https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build #include #include