MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK

github.com/SpecialKO/SpecialK @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
30,971 symbols 65,854 edges 1,658 files 3,556 documented · 11% updated 14d agoSK_26_6_13_7 · 2026-06-14★ 1,954139 open issues

Browse by type

Functions 16,728 Types & classes 14,243
What it actually does AI analysis from the code graph — generated when you open this
loading…
README



Builds  Discord

Special K  "Lovingly referred to as the Swiss Army Knife of PC gaming, Special K does a bit of everything. It is best known for fixing and enhancing graphics, its many detailed performance analysis and correction mods, and a constantly growing palette of tools that solve a wide variety of issues affecting PC games."

License  Primary Language


Contents of Repository

This repository contains source code for Special K's code injection payload (SpecialK(32|64).dll).

Supporting utilities such as SKIF (Special K Injection Frontend) and the now deprecated SKIM (Special K Install Manger) are maintained as separate projects. Additionally, some older mods built using Special K exist as standalone plug-in DLLs; plug-ins and SKIM are no longer actively maintained, but are accessible via Kaldaien's GitHub profile.

Build Dependencies

All of Special K's build dependencies are included when you clone the repo beginning with 23.5.7. Older versions have an additional dependency on the June 2010 DirectX SDK.

Special K requires Visual C++ 2022 or newer to compile due to language features not present in older compilers.

Platform Dependencies

Special K is not supported on anything older than Windows 8.1, though (as of 23.5.7) still builds and runs (massively feature-reduced) on Windows 7 (Platform Update).

It does run in WINE and is compatible with DXVK, but must be configured with UsingWINE=true in its per-game INI file to work on Linux.

Miscellaneous

There is a good chance the project will not compile correctly if you use the Debug build configuration, Special K is designed to produce debuggable Release builds.


High-Level Overview of Special K Code Injection

Special K's DLLs are capable of injecting their code in one of two ways:

Local Injection   Proxy / Wrapper DLL 1. Rename SpecialK(32|64).dll to (dxgi|d3d11|d3d9|d3d8|ddraw|dinput8|OpenGL32).dll and catch a ride via Static Imports or calls to LoadLibrary (...).

Global Injection   Win32 Global Hookchain

  1. Globally Inject using CBT / Shell hooks >This is the preferred technique, and the DLL is capable of bootstrapping the hook without any outside assistance via RunDLL_InjectionManager (...) (rundll32.exe will host the DLL as a normal Win32 UI process).

There are many more possible ways to inject the DLLs, the two outlined above are useable without any additional tools.

Special K will happily inject into a game that is already running if you want to build your own tool using something like CreateRemoteThread (...), but keep in mind that late injection will prevent some of Special K's features (particularly those related to D3D overrides and shader/texture mods) from working.

CBT Hooks were chosen due to hookchain order. Since most graphics APIs on Windows need a window before they can do non-trivial initialization, a CBT hook reliably gets us into the application before D3D9/11/12 swapchain creation.

Core symbols most depended-on inside this repo

Shape

Class 12,593
Method 9,418
Function 7,310
Enum 1,650

Languages

C++98%
C2%

Modules by API surface

include/vulkan/vulkan_hash.hpp2,408 symbols
include/vulkan/vulkan.hpp1,904 symbols
include/vulkan/vulkan_handles.hpp1,548 symbols
include/vulkan/vulkan_core.h1,368 symbols
src/imgui/imgui.cpp573 symbols
include/vulkan/vulkan_enums.hpp572 symbols
include/json/json.hpp548 symbols
depends/include/nvapi/nvapi.h488 symbols
depends/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp434 symbols
depends/include/ReShade/reshade_overlay.hpp383 symbols
include/imgui/imgui_internal.h344 symbols
depends/include/glm/gtx/vec_swizzle.hpp336 symbols

For agents

$ claude mcp add SpecialK \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page