mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fix bugs
- dimensions_of should now work in all contexts - import_image now works in style files, although should be avoided, since it reloads the file every time the code in run, it should be used in one shot scripts, like import scripts and bulk modification scripts - process_english_hints now correctly processes <singular> and <plural> tags
This commit is contained in:
@@ -684,7 +684,9 @@ void Packaged::validate(Version) {
|
||||
|
||||
void Packaged::requireDependency(Packaged* package) {
|
||||
if (package == this) return; // dependency on self
|
||||
if (this->relativeFilename().find("mse-set") != String::npos) return; // skip checks on sets
|
||||
String n = package->relativeFilename();
|
||||
if (n.find("mse-symbol-font") != String::npos) return; // skip checks for symbol-fonts
|
||||
FOR_EACH(dep, dependencies) {
|
||||
if (dep->package == n) {
|
||||
if (package->version < dep->version) {
|
||||
@@ -696,8 +698,6 @@ void Packaged::requireDependency(Packaged* package) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// skip dependency checks for symbol-fonts
|
||||
if (package->relativeFilename().find("mse-symbol-font") != std::string::npos) return;
|
||||
// dependency not found
|
||||
queue_message(MESSAGE_WARNING,_ERROR_4_("dependency not given", name(), package->relativeFilename(), package->relativeFilename(), package->version.toString()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user