Skip to content

Commit 6258700

Browse files
committed
small oversight
1 parent a62bdcc commit 6258700

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/src/main/java/com/geode/launcher/GeometryDashActivity.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
152152

153153
private fun handleGeodeException(e: Throwable) {
154154
e.printStackTrace()
155+
156+
// ignore load failures if the game is newer than what's supported
157+
// so people in the future can use their save data
158+
if (GamePackageUtils.getGameVersionCode(packageManager) <= Constants.SUPPORTED_VERSION_CODE) {
159+
throw e
160+
}
155161
}
156162

157163
private fun setupRedirection(packageInfo: PackageInfo) {

0 commit comments

Comments
 (0)