From 5dcfbc8bd840dfd60573e038194a43b37ebfc047 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 21 Dec 2008 19:24:29 +0000 Subject: Added some cli options. Made preload optional on the commandline. Made chdir to drumkit file prior to loading of the samples. --- src/drumkitparser.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/drumkitparser.h') diff --git a/src/drumkitparser.h b/src/drumkitparser.h index 6fd696c..6192286 100644 --- a/src/drumkitparser.h +++ b/src/drumkitparser.h @@ -32,7 +32,7 @@ class DrumKitParser : public SAXParser { public: - DrumKitParser(char *file); + DrumKitParser(std::string kitfile, bool preload = false); ~DrumKitParser(); void startTag(std::string name, std::map< std::string, std::string> attributes); @@ -50,6 +50,8 @@ private: Sample *lastsample; Instrument *lastinstrument; Velocity *lastvelocity; + + bool preload; }; #endif/*__DRUMGIZMO_DRUMKITPARSER_H__*/ -- cgit v1.2.3