Changeset 55 for trunk/IDE/UCore.pas


Ignore:
Timestamp:
Jul 13, 2012, 1:49:52 PM (12 years ago)
Author:
chronos
Message:
  • Updated: Common package now contain TApplicationInfo class which contain various application info.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/UCore.pas

    r54 r55  
    66
    77uses
    8   Classes, SysUtils, FileUtil, ULastOpenedList, UProject, UCompiler, Registry,
    9   URegistry, UDebugLog, UCoolTranslator, UTarget;
     8  Classes, SysUtils, FileUtil, ULastOpenedList, UProject, UApplicationInfo,
     9  UCompiler, Registry, URegistry, UDebugLog, UCoolTranslator, UTarget;
    1010
    1111type
     
    2020
    2121  TCore = class(TDataModule)
     22    ApplicationInfo: TApplicationInfo;
    2223    CoolTranslator1: TCoolTranslator;
    2324    DebugLog1: TDebugLog;
     
    125126      Free;
    126127    end;
    127   LastOpenedFiles.LoadFromRegistry(RegistryRootKey, Key + '\LastOpenedFiles');
    128   Compiler.LoadFromRegistry(RegistryRootKey, Key + '\Compiler');
     128  LastOpenedFiles.LoadFromRegistry(Root, Key + '\LastOpenedFiles');
     129  Compiler.LoadFromRegistry(Root, Key + '\Compiler');
    129130  FormMain.LoadFromRegistry(Root, Key);
    130131end;
     
    147148      Free;
    148149    end;
    149   LastOpenedFiles.SaveToRegistry(RegistryRootKey, Key + '\LastOpenedFiles');
    150   Compiler.SaveToRegistry(RegistryRootKey, Key + '\Compiler');
     150  LastOpenedFiles.SaveToRegistry(Root, Key + '\LastOpenedFiles');
     151  Compiler.SaveToRegistry(Root, Key + '\Compiler');
    151152  FormMain.SaveToRegistry(Root, Key);
    152153end;
Note: See TracChangeset for help on using the changeset viewer.