1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 14:46:24 +01:00

Add command line option to decode autosave files

On Windows, you use:

/d <filename>
--decode <filename>

On Linux and OSX, you use:

-d <filename>
--decode <filename>

Note that the input (binary) file IS replaced with the decoded
XML file.
This commit is contained in:
Leland Lucius
2015-04-18 23:59:52 -05:00
parent 7db0eebd65
commit 5d415e69d5
2 changed files with 21 additions and 2 deletions

View File

@@ -66,8 +66,8 @@ private:
#define AutoSaveIdent "<?xml autosave>"
WX_DECLARE_STRING_HASH_MAP_WITH_DECL(short, NameMap, class AUDACITY_DLL_API);
WX_DECLARE_HASH_MAP(short, wxString, wxIntegerHash, wxIntegerEqual, IdMap);
WX_DECLARE_OBJARRAY(IdMap, IdMapArray);
WX_DECLARE_HASH_MAP_WITH_DECL(short, wxString, wxIntegerHash, wxIntegerEqual, IdMap, class AUDACITY_DLL_API);
WX_DECLARE_OBJARRAY_WITH_DECL(IdMap, IdMapArray, class AUDACITY_DLL_API);
class AUDACITY_DLL_API AutoSaveFile : public XMLWriter
{