mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Installed packages will be blessed.
For now, everything is considered blessed, because we are not yet using installers everywhere. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@912 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -29,6 +29,9 @@ DECLARE_TYPEOF_COLLECTION(InstallablePackageP);
|
||||
DECLARE_POINTER_TYPE(wxFileInputStream);
|
||||
DECLARE_POINTER_TYPE(wxZipInputStream);
|
||||
|
||||
// Don't do this check for now, because we can't bless packages
|
||||
#define USE_MODIFIED_CHECK 0
|
||||
|
||||
// ----------------------------------------------------------------------------- : Installer
|
||||
|
||||
String Installer::typeName() const { return _("installer"); }
|
||||
@@ -287,9 +290,11 @@ void InstallablePackage::determineStatus() {
|
||||
status = (PackageStatus)(status | PACKAGE_REMOVABLE);
|
||||
}
|
||||
}
|
||||
#if USE_MODIFIED_CHECK
|
||||
if (installed && (installed->status & PackageVersion::STATUS_MODIFIED)) {
|
||||
status = (PackageStatus)(status | PACKAGE_MODIFIED);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool InstallablePackage::willBeInstalled() const {
|
||||
|
||||
Reference in New Issue
Block a user