MCPcopy Create free account
hub / github.com/Norbyte/bg3se / SEUpdaterGetResourceVersion

Function SEUpdaterGetResourceVersion

BG3Updater/API.cpp:103–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool SEUpdaterGetResourceVersion(int32_t* major, int32_t* minor, int32_t* revision, int32_t* build)
104{
105 if (!gUpdater) return false;
106
107 gUpdater->LoadCaches();
108 auto ver = gUpdater->GetCache()->FindResourceVersion(UPDATER_RESOURCE_NAME, gUpdater->GetCachedGameVersion());
109 if (ver) {
110 *major = ver->Version.Major;
111 *minor = ver->Version.Minor;
112 *revision = ver->Version.Revision;
113 *build = ver->Version.Build;
114 return true;
115 } else {
116 return false;
117 }
118}
119
120void SEUpdaterShutdown()
121{

Callers

nothing calls this directly

Calls 4

LoadCachesMethod · 0.80
GetCacheMethod · 0.80
GetCachedGameVersionMethod · 0.80
FindResourceVersionMethod · 0.45

Tested by

no test coverage detected