add method to get version code

This commit is contained in:
Chloe committed 2026-02-15 04:32:15 -07:00
1 parent e6bac1e25a
commit c2125248b6
1 file changed
+9
@@ -394,6 +394,15 @@ object GeodeUtils {
return ""
}
@JvmStatic
fun getGameVersionCode(): Long {
activity.get()?.run {
return GamePackageUtils.getGameVersionCode(packageManager)
}
return 0L
}
/**
* Returns the current version code of the launcher.
*/