Changeset 457 for trunk/CmdList.pas


Ignore:
Timestamp:
Nov 27, 2023, 12:10:57 AM (5 months ago)
Author:
chronos
Message:
  • Modified: Use enumeration type in Help unit for better readability.
  • Fixed: Corruption external help image referenced with incorrect file name case.
  • Fixed: Chinese translation converted to UTF-8.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CmdList.pas

    r447 r457  
    6262
    6363type
    64   TData = array [0 .. MaxDataSize - 1] of Cardinal;
     64  TData = array [0..MaxDataSize - 1] of Cardinal;
    6565  PData = ^TData;
    6666
     
    335335procedure TCmdList.LoadFromFile(const F: TFileStream);
    336336begin
    337   F.read(FState.nLog, 4);
     337  F.Read(FState.nLog, 4);
    338338  LogData := nil;
    339339  LogAlloc := ((FState.nLog + 2) div LogGrow + 1) * LogGrow;
    340340  ReallocMem(LogData, LogAlloc);
    341   F.read(LogData^, FState.nLog);
     341  F.Read(LogData^, FState.nLog);
    342342  FState.LoadPos := 0;
    343343end;
     
    346346begin
    347347  CompleteMoveCode;
    348   F.write(FState.nLog, 4);
    349   F.write(LogData^, FState.nLog);
     348  F.Write(FState.nLog, 4);
     349  F.Write(LogData^, FState.nLog);
    350350end;
    351351
     
    354354begin
    355355  CompleteMoveCode;
    356   F.write(FState.nLog, 4);
     356  F.Write(FState.nLog, 4);
    357357  F.Position := F.Position + OldState.nLog;
    358   F.write(LogData[OldState.nLog], FState.nLog - OldState.nLog);
     358  F.Write(LogData[OldState.nLog], FState.nLog - OldState.nLog);
    359359end;
    360360
Note: See TracChangeset for help on using the changeset viewer.