--- deliantra/server/include/freezethaw.h 2010/04/15 06:05:52 1.4 +++ deliantra/server/include/freezethaw.h 2010/04/28 20:51:58 1.6 @@ -165,6 +165,9 @@ operator bool () { return !!av; } }; +// used as dir argument to object_thawer constructor +#define RESOURCE_DIR const_utf8_string (0) + INTERFACE_CLASS(object_thawer) struct object_thawer { @@ -183,6 +186,7 @@ operator bool () const { return !!text; } object_thawer (const_utf8_string path = 0); + object_thawer (const_utf8_string dir, const_utf8_string file); object_thawer (const_utf8_string data, AV *perlav); ~object_thawer (); @@ -238,6 +242,8 @@ void delayed_deref (attachable *op, object_ptr &ptr, const_utf8_string ref); MTH void resolve_delayed_derefs (bool deref = true); +private: + void new_from_path (const_utf8_string path); }; #endif