summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/DataLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/DataLoader.h')
-rw-r--r--StarsEx/DataLoader.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/StarsEx/DataLoader.h b/StarsEx/DataLoader.h
index 92cdd11..6d83e2f 100644
--- a/StarsEx/DataLoader.h
+++ b/StarsEx/DataLoader.h
@@ -29,10 +29,9 @@ class DataLoader
public:
using Group = DataSource::Group;
+ static constexpr int FAILED {-1};
static const char* TYPENAME() { return "DataLoader"; }
- enum { DATAFILE_OK, DATAFILE_INVALID, DATAFILE_NOTEXIST };
-
DataLoader();
virtual ~DataLoader();
@@ -40,6 +39,8 @@ public:
static void Initialize();
static void Close();
+ const char* LastError() const;
+
void Reset();
void UseFileSystem(bool use=true);
void UseVideo(Video* v);
@@ -83,6 +84,8 @@ private:
Video* video;
bool enable_media;
+ Text last_error;
+
List<DataArchive> archives;
List<DataSource> sources;
DataSource* work_directory_source;