Added autosave to edit mode.

This commit is contained in:
Kyzentun
2015-03-09 19:47:43 -06:00
parent fa0478affa
commit 064aead73c
7 changed files with 150 additions and 92 deletions
+5 -2
View File
@@ -113,9 +113,9 @@ public:
* @param sPath the path where we're saving the file.
* @param bSavingCache a flag to determine if we're saving cache data.
*/
bool SaveToSSCFile( RString sPath, bool bSavingCache );
bool SaveToSSCFile(RString sPath, bool bSavingCache, bool autosave= false);
/** @brief Save to the SSC and SM files no matter what. */
void Save();
void Save(bool autosave= false);
/**
* @brief Save the current Song to a JSON file.
* @return its success or failure. */
@@ -133,6 +133,9 @@ public:
* @return its success or failure. */
bool SaveToDWIFile();
bool WasLoadedFromAutosave() const
{ return GetExtension(m_sSongFileName) == "ats"; }
const RString &GetSongFilePath() const;
RString GetCacheFilePath() const;