| 101 | } |
| 102 | |
| 103 | bool 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 | |
| 120 | void SEUpdaterShutdown() |
| 121 | { |
nothing calls this directly
no test coverage detected