gsSDLSampleRate: Integer = 44100;
gsSDLBufferSize: Integer = 2048;
gSFSDebug: Boolean = False;
+ gSFSFastMode: Boolean = True;
implementation
gShowMessages := config.ReadBool('Game', 'Messages', True);
gRevertPlayers := config.ReadBool('Game', 'RevertPlayers', False);
gChatBubble := Min(Max(config.ReadInt('Game', 'ChatBubble', 4), 0), 4);
- gSFSDebug := config.ReadBool('Game', 'gSFSDebug', False);
+ gSFSDebug := config.ReadBool('Game', 'SFSDebug', False);
+ gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', True);
// Ãåéìïëåé â ñâîåé èãðå
gcMap := config.ReadStr('GameplayCustom', 'Map', '');
config.WriteBool('Game', 'RevertPlayers', gRevertPlayers);
config.WriteInt('Game', 'ChatBubble', gChatBubble);
config.WriteBool('Game', 'SFSDebug', gSFSDebug);
+ config.WriteBool('Game', 'SFSFastMode', gSFSFastMode);
config.WriteStr ('GameplayCustom', 'Map', gcMap);
config.WriteStr ('GameplayCustom', 'GameMode', gcGameMode);
// cache this wad
rfn := path+rfn;
try
- if not SFSAddDataFile(rfn) then exit;
+ if gSFSFastMode then
+ begin
+ if not SFSAddDataFile(rfn, true) then exit;
+ end
+ else
+ begin
+ if not SFSAddDataFileTemp(rfn, true) then exit;
+ end;
except
exit;
end;
try
st := TSFSMemoryStreamRO.Create(Data, Len);
- if not SFSAddSubDataFile(fn, st) then
+ if not SFSAddSubDataFile(fn, st, true) then
begin
st.Free;
Exit;