Ignore:
Timestamp:
Aug 13, 2012, 10:03:31 AM (12 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ModularSystem/UModularSystem.pas

    r401 r404  
    5959    Modules: TObjectList; // TObjectList<TModule>
    6060    function FindModuleByName(Name: string): TModule;
    61     procedure InstallDependencies(Dependencies: TStringList);
     61    procedure InstallDependencies(ModuleName: string; Dependencies: TStringList);
    6262    procedure UninstallDependencies(ModuleName: string);
    6363    procedure EnumModulesInstall(Dependencies, ModuleList: TStringList);
     
    7878
    7979resourcestring
    80   SModuleNotFound = 'Module %s not found';
     80  SModuleNotFound = 'Module "%1:s" not found as dependency for module "%0:s"';
    8181
    8282procedure Register;
     
    107107end;
    108108
    109 procedure TModuleManager.InstallDependencies(Dependencies: TStringList);
     109procedure TModuleManager.InstallDependencies(ModuleName: string; Dependencies: TStringList);
    110110var
    111111  Module: TModule;
     
    116116    if Assigned(Module) then begin
    117117      if not Module.Installed then Module.Install;
    118     end else raise Exception.CreateFmt(SModuleNotFound, [Dependencies[I]]);
     118    end else raise Exception.CreateFmt(SModuleNotFound, [ModuleName, Dependencies[I]]);
    119119  end;
    120120end;
     
    218218begin
    219219  if Installed then Exit;
    220   Manager.InstallDependencies(Dependencies);
     220  Manager.InstallDependencies(Identification, Dependencies);
    221221  FInstalled := True;
    222222end;
Note: See TracChangeset for help on using the changeset viewer.