Skip to content

Commit

Permalink
check steam
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jun 2, 2024
1 parent 6258700 commit d9a4f12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
10 changes: 3 additions & 7 deletions app/src/main/java/com/geode/launcher/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,10 @@ fun UpdateWarning(inSafeMode: Boolean = false, onDismiss: () -> Unit) {
Text(stringResource(R.string.launcher_unsupported_version_title))
},
text = {
val message = if (gdVersionCode >= Constants.SUPPORTED_VERSION_CODE) {
R.string.launcher_unsupported_version_description
} else {
R.string.launcher_outdated_version_description
}

Text(stringResource(
message, gdVersionString, Constants.SUPPORTED_VERSION_STRING
R.string.launcher_unsupported_version_description,
gdVersionString,
Constants.SUPPORTED_VERSION_STRING
))
},
confirmButton = {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/geode/launcher/utils/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ object Constants {
@SuppressLint("SdCardPath")
const val GJ_DATA_DIR = "/data/data/${PACKAGE_NAME}"

const val SUPPORTED_VERSION_CODE = 38L
const val SUPPORTED_VERSION_STRING = "2.205"
const val SUPPORTED_VERSION_CODE = 39L
const val SUPPORTED_VERSION_STRING = "2.2.142"
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ object GamePackageUtils {

private val gameVersionMap = mapOf(
37L to "2.200",
38L to "2.205"
38L to "2.205",
39L to "2.206"
)

/**
Expand Down

0 comments on commit d9a4f12

Please sign in to comment.