mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
Merged in Bobbyjones/love/new-conf-flag-for-android-2 (pull request #53)
New conf flag for android 2
This commit is contained in:
@@ -79,6 +79,20 @@ public:
|
||||
**/
|
||||
virtual bool setupWriteDirectory() = 0;
|
||||
|
||||
/**
|
||||
* This sets the save location on Android.
|
||||
* False for internal, true for external
|
||||
* @param external Bool for whether
|
||||
* Android should use external file storage.
|
||||
**/
|
||||
virtual void setAndroidSaveExternal(bool useExternal = false);
|
||||
|
||||
/**
|
||||
* Gets whether the Android save is external.
|
||||
* Returns a bool.
|
||||
**/
|
||||
virtual bool isAndroidSaveExternal() const;
|
||||
|
||||
/**
|
||||
* Sets the name of the save folder.
|
||||
* @param ident The name of the game. Will be used to
|
||||
@@ -263,6 +277,10 @@ public:
|
||||
**/
|
||||
virtual std::string getExecutablePath() const;
|
||||
|
||||
private:
|
||||
|
||||
//should we save external or internal for Android
|
||||
bool useExternal;
|
||||
}; // Filesystem
|
||||
|
||||
} // filesystem
|
||||
|
||||
Reference in New Issue
Block a user