mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Allow writing files anywhere from the command lines interface, not just in the working directory
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1116 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <util/prec.hpp>
|
||||
#include <data/export_template.hpp>
|
||||
#include <data/game.hpp>
|
||||
#include <data/set.hpp>
|
||||
#include <data/field.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : Export template, basics
|
||||
@@ -45,3 +46,5 @@ IMPLEMENT_REFLECTION(ExportTemplate) {
|
||||
// ----------------------------------------------------------------------------- : ExportInfo
|
||||
|
||||
IMPLEMENT_DYNAMIC_ARG(ExportInfo*, export_info, nullptr);
|
||||
|
||||
ExportInfo::ExportInfo() : allow_writes_outside(false) {}
|
||||
|
||||
@@ -45,12 +45,15 @@ class ExportTemplate : public Packaged {
|
||||
|
||||
/// Information that can be used by export functions
|
||||
struct ExportInfo {
|
||||
ExportInfo();
|
||||
|
||||
SetP set; ///< The set that is being exported
|
||||
ExportTemplateP export_template; ///< The export template used
|
||||
String directory_relative; ///< The directory for storing extra files (or "" if !export->create_directory)
|
||||
/// This is just the directory name
|
||||
String directory_absolute; ///< The absolute path of the directory
|
||||
map<String,wxSize> exported_images; ///< Images (from symbol font) already exported, and their size
|
||||
bool allow_writes_outside; ///< Can files outside the directory be written to?
|
||||
};
|
||||
|
||||
DECLARE_DYNAMIC_ARG(ExportInfo*, export_info);
|
||||
|
||||
Reference in New Issue
Block a user