made a method for setting external save location on android

This commit is contained in:
BobbyJones
2016-01-02 18:52:25 -05:00
parent c283e36126
commit 3aa51763e2
7 changed files with 63 additions and 17 deletions
+19 -1
View File
@@ -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