mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
made a method for setting external save location on android
This commit is contained in:
@@ -79,12 +79,26 @@ 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
|
||||
* to create the folder in the LOVE data folder.
|
||||
**/
|
||||
virtual bool setIdentity(const char *ident, bool appendToPath = false, bool internalStorage = false) = 0;
|
||||
virtual bool setIdentity(const char *ident, bool appendToPath = false) = 0;
|
||||
virtual const char *getIdentity() const = 0;
|
||||
|
||||
/**
|
||||
@@ -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