summaryrefslogtreecommitdiff
path: root/src/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-03 12:35:41 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-03 12:35:41 +0100
commit450edeeb94ff755b2a6c6588138256ad2894ead7 (patch)
tree215cb3db3d0812e36ee627aa64b208aa2ab60b90 /src/dcp.h
parent671779298e79f8f3bba46156a2b4cdf551b704d1 (diff)
Support file:// URI-style file specifiers in asset map.
Allow DCP reads to continue in the face of some errors (currently just missing assets).
Diffstat (limited to 'src/dcp.h')
-rw-r--r--src/dcp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dcp.h b/src/dcp.h
index 450a3c00..48b2df3c 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -68,7 +68,11 @@ public:
*/
DCP (boost::filesystem::path directory);
- void read ();
+ /** Read the DCP's structure into this object.
+ * @param keep_going true to try to keep going in the face of (some) errors.
+ * @param notes List of errors that will be added to if keep_going is true.
+ */
+ void read (bool keep_going = false, std::list<std::string>* errors = 0);
/** Compare this DCP with another, according to various options.
* @param other DCP to compare this one to.