Update discord_richpresence.py

This commit is contained in:
brostos 2024-08-12 19:31:47 +03:00 committed by GitHub
parent 9106aa9e47
commit 00cde20f8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ if TYPE_CHECKING:
ANDROID = babase.app.classic.platform == "android"
DIRPATH = Path(
f"{_babase.app.python_directory_user if build_number < 21282 else _babase.app.env.python_directory_user}/image_id.json")
APP_VERSION = _babase.app.version if build_number < 21282 else _babase.app.env.version
APP_VERSION = _babase.app.version if build_number < 21282 else (_babase.app.env.engine_version if build_number > 21823 else _babase.app.env.version)
if ANDROID: # !can add ios in future