Changeset 110


Ignore:
Timestamp:
Oct 4, 2022, 7:53:57 PM (2 years ago)
Author:
chronos
Message:
  • Fixed: Wrong registry path separator.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCity.pas

    r100 r110  
    9595begin
    9696  for City in Self do begin
    97     City.LoadFromRegistry(TRegistryContext.Create(Context.RootKey, Context.Key + '/' + City.SysName));
     97    City.LoadFromRegistry(TRegistryContext.Create(Context.RootKey, Context.Key + '\' + City.SysName));
    9898  end;
    9999end;
     
    104104begin
    105105  for City in Self do begin
    106     City.SaveToRegistry(TRegistryContext.Create(Context.RootKey, Context.Key + '/' + City.SysName));
     106    City.SaveToRegistry(TRegistryContext.Create(Context.RootKey, Context.Key + '\' + City.SysName));
    107107  end;
    108108end;
  • trunk/UEngine.pas

    r109 r110  
    33193319    HighestServedPassengerCount := ReadIntegerWithDefault('HighestPassengers', 0);
    33203320    HighestServedDaysCount := ReadIntegerWithDefault('HighestDays', 0);
    3321     Cities.LoadFromRegistry(TRegistryContext.Create(RegistryContext.RootKey, RegistryContext.Key + '/Cities'));
     3321    Cities.LoadFromRegistry(TRegistryContext.Create(RegistryContext.RootKey, RegistryContext.Key + '\Cities'));
    33223322  finally
    33233323    Free;
     
    33343334    WriteInteger('HighestPassengers', HighestServedPassengerCount);
    33353335    WriteInteger('HighestDays', HighestServedDaysCount);
    3336     Cities.SaveToRegistry(TRegistryContext.Create(RegistryContext.RootKey, RegistryContext.Key + '/Cities'));
     3336    Cities.SaveToRegistry(TRegistryContext.Create(RegistryContext.RootKey, RegistryContext.Key + '\Cities'));
    33373337  finally
    33383338    Free;
Note: See TracChangeset for help on using the changeset viewer.