Reinstate repair mode and add code to get rid of hard action/target settings

This commit is contained in:
Gregory John Casamento 2020-07-09 18:22:50 -04:00
parent b7c07ebcb3
commit ac9f09db84

View file

@ -197,6 +197,20 @@
{
NSString *name = nil;
// Delete old target action settings if they are directly encoded.
if ([v respondsToSelector: @selector(setTarget:)])
{
[v setTarget: nil]; // remove hard set targets or actions.
[_repairLog addObject: @"ERROR: Removing hard set target.\n"];
NSLog(@"ERROR: Removing hard set target.\n");
}
if ([v respondsToSelector: @selector(setAction:)])
{
[v setAction: NULL]; // remove hard set targets or actions.
[_repairLog addObject: @"ERROR: Removing hard set action.\n"];
NSLog(@"ERROR: Removing hard set action.\n");
}
// skip these...
if([v isKindOfClass: [NSMatrix class]])
{
@ -578,12 +592,10 @@
/*
* Repair the .gorm file, if needed.
*/
/*
if(repairFile)
{
[self _repairFile];
}
*/
NSDebugLog(@"nameTable = %@",[container nameTable]);
// awaken all elements after the load is completed.