From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:SDL" |
|---|
| claim | "SDL2 reports its version through void SDL_GetVersion(SDL_version*) filling three Uint8 fields, ships as SDL2.dll and libSDL2-2.0.so.0, has no SDL_Linked_Version (SDL 1.2 name), and its revision string looks like 'SDL-release-2.x.y-N-gSHA'." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:SDL" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "check import names and DLL/soname; SDL3 uses int SDL_GetVersion(void) and SDL3.dll" |
|---|
| indicator | "SDL_GetVersion, SDL2.dll, libSDL2-2.0.so.0, SDL-" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct SDL_version and the SDL_GetVersion prototype (branch SDL2)" |
|---|
| repo | "https://github.com/libsdl-org/SDL" |
|---|
| commit | "8acf7cfc0f88717e5c036f60f0314bfcafe39189" |
|---|
| path | "include/SDL_version.h" |
|---|
| lines | "50-56, 142" |
|---|
|
| type | "source" |
|---|
| detail | "libSDL2-2.0.so.0.<age>.<rev> naming and SDL_REVISION forms" |
|---|
| repo | "https://github.com/libsdl-org/SDL" |
|---|
| commit | "8acf7cfc0f88717e5c036f60f0314bfcafe39189" |
|---|
| path | "CMakeLists.txt" |
|---|
| lines | "103-125, 3141-3152" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "SDL2 version API and library names" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T11:24:24.232Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:36:37.249Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read include/SDL_version.h (struct with three Uint8 fields, void SDL_GetVersion(SDL_version*), no SDL_Linked_Version) and CMakeLists.txt at 8acf7cf: libSDL2-2.0.so.0.<age>.<rev> naming and SDL_REVISION forms 'SDL-release-2.x.y-N-gSHA', 'SDL-<ver>-g<sha>' or 'SDL-<ver>-no-vcs' (a tarball or no-git build has no -N-gSHA tail)." |
|---|
|
|
|---|