Skip to content

IMPORTANT: Changes to /sdcard/lovegame Functionality #194

@MikuAuahDark

Description

@MikuAuahDark

When you try to run LOVE Android compiled at f0abf9b, and you're using the "normal" or "playstore" flavor, and you want to run games from /sdcard/lovegame, you'll see this error.

Turns out this is caused by Android 10 scoped storage restictions. It's possible to opt-out for this change but then Android 11 will force it for all apps that targets API 30 and later.

Sadly this mean the only possible solution is to move /sdcard/lovegame to somewhere else like /sdcard/Android/data/org.love2d.android/games/lovegame. Unfortunately even with this change, apps inside the phone won't able to access that directory at all and the only way to access those directories is by plugging the phone to the computer. This is breaking change but this is also inevitable.

That behavior is basically how LOVE iOS behaves, according to slime explanation in Discord. If this gonna end up like LOVE iOS, then I may have reason to develop game selector for LOVE 12.0.

TL;DR: /sdcard/lovegame no longer works in Android 10 and later and will be moved to /sdcard/Android/data/org.love2d.android/files/games/lovegame.

This issue will be closed once I moved the directories. Any suggestion or critism is welcome.

EDIT: To provide backward compatibility at some extent, LOVE will also look at /sdcard/lovegame in Android 9 and earlier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    changeChange to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions