Changeset 29 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 23, 2011, 8:24:07 PM (13 years ago)
Author:
chronos
Message:
  • Added: Preliminary support for modules.
  • Modified: Database initialization moved to module System.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r27 r29  
    77uses
    88  Classes, SysUtils, FileUtil, UCoolTranslator, UDebugLog, USystem, Registry,
    9   USqlDatabase, ULoginProfileForm, URegistry, UChronisClient;
     9  USqlDatabase, ULoginProfileForm, URegistry, UChronisClient, UModuleSystem;
    1010
    1111type
     
    4343
    4444uses
    45   UApplicationInfo;
     45  UApplicationInfo, UChronisClientDirect;
    4646
    4747{ TCore }
     
    5656  System := TChronisBase.Create;
    5757  System.Database := SqlDatabase1;
     58  System.Client := TChronisClientDirect.Create;
     59  System.RegisterModule(TModuleSystem);
     60  System.ModuleSystem := TModuleSystem(System.Modules.Last);
     61
    5862  {$IFDEF DEBUG}
    5963  DebugLog1.WriteToFileEnable := True;
Note: See TracChangeset for help on using the changeset viewer.