Changeset 404 for ModularSystem/UModularSystem.pas
- Timestamp:
- Aug 13, 2012, 10:03:31 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ModularSystem/UModularSystem.pas
r401 r404 59 59 Modules: TObjectList; // TObjectList<TModule> 60 60 function FindModuleByName(Name: string): TModule; 61 procedure InstallDependencies( Dependencies: TStringList);61 procedure InstallDependencies(ModuleName: string; Dependencies: TStringList); 62 62 procedure UninstallDependencies(ModuleName: string); 63 63 procedure EnumModulesInstall(Dependencies, ModuleList: TStringList); … … 78 78 79 79 resourcestring 80 SModuleNotFound = 'Module %s not found';80 SModuleNotFound = 'Module "%1:s" not found as dependency for module "%0:s"'; 81 81 82 82 procedure Register; … … 107 107 end; 108 108 109 procedure TModuleManager.InstallDependencies( Dependencies: TStringList);109 procedure TModuleManager.InstallDependencies(ModuleName: string; Dependencies: TStringList); 110 110 var 111 111 Module: TModule; … … 116 116 if Assigned(Module) then begin 117 117 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]]); 119 119 end; 120 120 end; … … 218 218 begin 219 219 if Installed then Exit; 220 Manager.InstallDependencies( Dependencies);220 Manager.InstallDependencies(Identification, Dependencies); 221 221 FInstalled := True; 222 222 end;
Note:
See TracChangeset
for help on using the changeset viewer.