Changeset 48 for trunk/UGame.pas


Ignore:
Timestamp:
Nov 3, 2019, 10:39:32 AM (5 years ago)
Author:
chronos
Message:
  • Fixed: Wrong slash symbol in path for storing moves history to registry.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r47 r48  
    170170    WriteInteger('Count', Count);
    171171    for I := 0 to Count - 1 do begin
    172       Items[I].SaveToRegistry(Reg, TRegistryContext.Create(RegContext.RootKey, RegContext.Key + '/' + IntToStr(I)));
     172      Items[I].SaveToRegistry(Reg, TRegistryContext.Create(RegContext.RootKey, RegContext.Key + '\' + IntToStr(I)));
    173173    end;
    174174  end;
     
    184184    for I := 0 to Count - 1 do begin
    185185      Items[I] := THistoryMove.Create;
    186       THistoryMove(Items[I]).LoadFromRegistry(Reg, TRegistryContext.Create(RegContext.RootKey, RegContext.Key + '/' + IntToStr(I)));
     186      THistoryMove(Items[I]).LoadFromRegistry(Reg, TRegistryContext.Create(RegContext.RootKey, RegContext.Key + '\' + IntToStr(I)));
    187187    end;
    188188  end;
Note: See TracChangeset for help on using the changeset viewer.