Fixed installer bugs, added documentation for crop function.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@578 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-07-16 18:25:08 +00:00
parent adafc6dfc3
commit 7709c21b5f
4 changed files with 19 additions and 2 deletions
+2 -2
View File
@@ -21,7 +21,7 @@
#include <wx/stdpaths.h>
DECLARE_TYPEOF_COLLECTION(String);
DECLARE_TYPEOF_COLLECTION(PackageP);
DECLARE_TYPEOF_COLLECTION(PackagedP);
DECLARE_TYPEOF_COLLECTION(PackageDependencyP);
DECLARE_POINTER_TYPE(wxFileInputStream);
DECLARE_POINTER_TYPE(wxZipInputStream);
@@ -85,7 +85,7 @@ void Installer::install(bool local) {
else {
throw PackageError(_("Unrecognized package type: '") + fn + _("'\nwhile trying to install: ") + p);
}
Reader reader(openIn(p + _("/") + fn.Mid(4)));
Reader reader(openIn(p + _("/") + pack->typeName()));
pack->Packaged::reflect_impl(reader);
new_packages.push_back(pack);
}
+1
View File
@@ -226,6 +226,7 @@ class Packaged : public Package {
private:
bool fully_loaded; ///< Is the package fully loaded?
friend struct JustAsPackageProxy;
friend class Installer;
};
// ----------------------------------------------------------------------------- : IncludePackage