From ee401857a11f6f100559ed69ee17bdeee0d7b31a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 27 Oct 2026 09:59:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(annotations):=20annotated?= =?UTF-8?q?=20inlined=20functions=20across=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Archive/PakCipher.cpp | 1 + Source/Client/Application/UnhandledExceptionHandler.cpp | 2 ++ Source/Contents/Configuration/GraphicsConfiguration.h | 1 + Source/File/File.h | 1 + 4 files changed, 5 insertions(+) diff --git a/Source/Archive/PakCipher.cpp b/Source/Archive/PakCipher.cpp index 71f5beb..a78bf41 100644 --- a/Source/Archive/PakCipher.cpp +++ b/Source/Archive/PakCipher.cpp @@ -51,6 +51,7 @@ namespace myGPack { 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11, }; + // INLINED void Permute(std::uint8_t* block, const std::uint8_t* table, unsigned count) { std::uint8_t result[8] = {}; diff --git a/Source/Client/Application/UnhandledExceptionHandler.cpp b/Source/Client/Application/UnhandledExceptionHandler.cpp index af45557..e75209b 100644 --- a/Source/Client/Application/UnhandledExceptionHandler.cpp +++ b/Source/Client/Application/UnhandledExceptionHandler.cpp @@ -33,10 +33,12 @@ char g_moduleBaseName[260] = {}; char g_crashString[8096] = {}; namespace { + // INLINED int ReadPlayerJob() { return g_session.m_job; } + // INLINED const char* ReadPlayerJobName(int jobId) { const char* const* namesBegin = g_session.m_jobNamesBegin; const char* const* namesEnd = g_session.m_jobNamesEnd; diff --git a/Source/Contents/Configuration/GraphicsConfiguration.h b/Source/Contents/Configuration/GraphicsConfiguration.h index 5161536..1c20e88 100644 --- a/Source/Contents/Configuration/GraphicsConfiguration.h +++ b/Source/Contents/Configuration/GraphicsConfiguration.h @@ -69,6 +69,7 @@ inline void GraphicsConfiguration::Load(LuaScript& script, ScriptOptions& option } } +// INLINED inline AdapterConfiguration GraphicsConfiguration::Adapter() const { return {this->backend, this->drawGuid, this->renderGuid, this->deviceGuid, this->deviceName}; } diff --git a/Source/File/File.h b/Source/File/File.h index 5882ada..f98fd33 100644 --- a/Source/File/File.h +++ b/Source/File/File.h @@ -14,6 +14,7 @@ public: bool OpenWrite(const char* path, CRenderSystemBase* renderSystem); bool Open(const char* path, int mode, bool resourcePath, bool option); + // INLINED bool Open(const char* path) { this->m_path = path; this->m_handle = CreateFileA(path, GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);