Changeset 712 for trunk/GameServer.pas


Ignore:
Timestamp:
Nov 28, 2025, 11:58:30 PM (4 hours ago)
Author:
chronos
Message:
  • Fixed: Automatically create Saved and Maps user data directories if they don't exist yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r683 r712  
    606606      end;
    607607
     608  ForceDirectories(ExtractFileDir(FileName));
    608609  if Auto and AutoSaveExists then // append to existing file
    609610    LogFile := TFileStream.Create(FileName, fmOpenReadWrite or fmShareExclusive)
     
    32903291          Map.MaxTurn := MaxTurn;
    32913292          Move(RealMap, Map.Tiles[0], MapSize * 4);
     3293          ForceDirectories(ExtractFileDir(MapFileName));
    32923294          Map.SaveToFile(MapFileName);
    32933295          FreeAndNil(Map);
Note: See TracChangeset for help on using the changeset viewer.