check steam

This commit is contained in:
qimiko committed 2024-06-02 03:13:42 -07:00
1 parent 6258700bc4
commit d9a4f12902
3 files changed
+7 -10

No files matched your search

@@ -262,14 +262,10 @@ fun UpdateWarning(inSafeMode: Boolean = false, onDismiss: () -> Unit) {
Text(stringResource(R.string.launcher_unsupported_version_title)) Text(stringResource(R.string.launcher_unsupported_version_title))
}, },
text = { text = {
val message = if (gdVersionCode >= Constants.SUPPORTED_VERSION_CODE) {
R.string.launcher_unsupported_version_description
} else {
R.string.launcher_outdated_version_description
}
Text(stringResource( Text(stringResource(
message, gdVersionString, Constants.SUPPORTED_VERSION_STRING R.string.launcher_unsupported_version_description,
gdVersionString,
Constants.SUPPORTED_VERSION_STRING
)) ))
}, },
confirmButton = { confirmButton = {
@@ -13,6 +13,6 @@ object Constants {
@SuppressLint("SdCardPath") @SuppressLint("SdCardPath")
const val GJ_DATA_DIR = "/data/data/${PACKAGE_NAME}" const val GJ_DATA_DIR = "/data/data/${PACKAGE_NAME}"
const val SUPPORTED_VERSION_CODE = 38L const val SUPPORTED_VERSION_CODE = 39L
const val SUPPORTED_VERSION_STRING = "2.205" const val SUPPORTED_VERSION_STRING = "2.2.142"
} }
@@ -38,7 +38,8 @@ object GamePackageUtils {
private val gameVersionMap = mapOf( private val gameVersionMap = mapOf(
37L to "2.200", 37L to "2.200",
38L to "2.205" 38L to "2.205",
39L to "2.206"
) )
/** /**