X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fsfs%2Fsfs.pas;h=67136e9ab0c96e900accb49a8635ba56582f1768;hb=c97b4f7894fd3d797ecea3de574b58499c43aa85;hp=948b470c4f554901e00fce4f6a8b2e640c675498;hpb=ac201b02f10ef558087d50f6b03b4519ab567558;p=d2df-sdl.git diff --git a/src/sfs/sfs.pas b/src/sfs/sfs.pas index 948b470..67136e9 100644 --- a/src/sfs/sfs.pas +++ b/src/sfs/sfs.pas @@ -1,6 +1,22 @@ +(* Copyright (C) Doom 2D: Forever Developers + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + *) // streaming file system (virtual) -{$MODE DELPHI} -{$R+} +{$INCLUDE ../shared/a_modes.inc} +{$SCOPEDENUMS OFF} +{.$R+} {.$DEFINE SFS_VOLDEBUG} unit sfs; @@ -70,8 +86,6 @@ type // íèêàêèõ ïàäåíèé íà íåïðàâèëüíûå èíäåêñû! function GetFiles (index: Integer): TSFSFileInfo; virtual; - procedure removeCommonPath (); virtual; - public // pSt íå îáÿçàòåëüíî çàïîìèíàòü, åñëè îí íå íóæåí. constructor Create (const pFileName: AnsiString; pSt: TStream); virtual; @@ -402,6 +416,7 @@ end; type TVolumeInfo = class + public fFactory: TSFSVolumeFactory; fVolume: TSFSVolume; fPackName: AnsiString; // äëÿ îäíîãî è òîãî æå ôàéëà áóäåò òîëüêî îäèí òîì! @@ -744,10 +759,6 @@ begin fFiles := TObjectList.Create(true); end; -procedure TSFSVolume.removeCommonPath (); -begin -end; - procedure TSFSVolume.DoDirectoryRead (); var f, c: Integer; @@ -779,7 +790,6 @@ begin sfi.fPath := normalizePath(sfi.fPath); if (length(sfi.fPath) = 0) and (length(sfi.fName) = 0) then sfi.Free else Inc(f); end; - removeCommonPath(); end; destructor TSFSVolume.Destroy ();