mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Moved clean_filename to file_utils.cpp where it belongs;
Split up images exporting, and moved it to data/formats/image git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1085 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+11
-1
@@ -10,6 +10,8 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <data/settings.hpp>
|
||||
class wxFileName;
|
||||
|
||||
// ----------------------------------------------------------------------------- : File names
|
||||
|
||||
@@ -19,9 +21,17 @@ String normalize_filename(const String& filename);
|
||||
/// Normalize a filename as much as possible, for files in packages
|
||||
String normalize_internal_filename(const String& filename);
|
||||
|
||||
/// Should a file with the given name be ignored?
|
||||
/// Should a file with the given name be ignored in packages?
|
||||
/** true for hidden OS and version control files */
|
||||
bool ignore_file(const String& name);
|
||||
|
||||
/// Make sure a string is safe to use as a filename
|
||||
String clean_filename(const String& name);
|
||||
|
||||
/// Change the filename fn if it already exists, in the way described by conflicts.
|
||||
/** Returns true if the filename should be used, false if failed. */
|
||||
bool resolve_filename_conflicts(wxFileName& fn, FilenameConflicts conflicts, set<String>& used);
|
||||
|
||||
// ----------------------------------------------------------------------------- : Removing and renaming
|
||||
|
||||
/// Ensure that the parent directories of the given filename exist
|
||||
|
||||
Reference in New Issue
Block a user