alandtse / CommonLibVR

This is an experimental reverse engineered library for Skyrim VR (ported from CommonLibSSE). There are two main branches (VR) which is based on po3's using ifdefs, and NG which is an updated NG build.
MIT License
23 stars 21 forks source link

feat: add opt in to require minimal VR address lib version #48

Closed FlayaN closed 3 months ago

FlayaN commented 3 months ago

Usage:

Add this in SKSEPlugin_Query

#   ifdef SKYRIMVR
    if (!REL::IDDatabase::get().IsVRAddressLibraryAtLeastVersion(Version::PROJECT.data(), "0.134.0", true))
    {
        return false;
    }
#   endif

showWindowsMessage is default false, but if set to true like example above this will pop up when game is started: (Will also stop SkyrimVR process)

image

Tested this by manually editing first data row of version-1-4-15-0.csv to 0.132.0, I added VR support on this specific mod in "0.134.0"