anchor.diff:        palettes.LoadPalettes(ExeDir + 'data\gfx\');
         try
           I := 0;
  -        while I < ParamCount do // Skip 0, as this is the EXE-path
  +        cnt := ParamCount;
  +        while I < cnt do // Skip 0, as this is the EXE-path
           begin
             Inc(I);
  -
  -          if ((LowerCase(ParamStr(I)) = 'sbd') or (LowerCase(ParamStr(I)) = 'spritesbasedir')) then
  +          paramString := ParamStr(I);
  +          if ((LowerCase(paramString) = 'sbd') or (LowerCase(paramString) = 'spritesbasedir')) then
             begin
               if (I >= ParamCount) then
               begin
  
positive.code: {$I ..\..\KaM_Remake.inc}
  {$APPTYPE CONSOLE}
  uses
    Forms, SysUtils,
    {$IFDEF FPC}Interfaces,{$ENDIF}
    {$IFDEF MSWindows} Windows, {$ENDIF}
  
negative.code:           end;
  
            for rxType := Low(TRXType) to High(TRXType) do
              if (LowerCase(paramString) = LowerCase(RXInfo[rxType].FileName)) then
              begin
                tick := GetTickCount;
                lRxxPacker.Pack(rxType, palettes);
  