X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2FCONFIG.pas;h=4aa7e659b79a47c6d0351c4002533414dc0c3fc9;hb=313f52c372a4fe70cdfb3fdfaf845b95e05be9d4;hp=00129f32124f2d829fb4453bb60fda82e5fd8e9b;hpb=88ce644db1b40111bdb380f4357fa59bdb5173be;p=d2df-sdl.git diff --git a/src/shared/CONFIG.pas b/src/shared/CONFIG.pas index 00129f3..4aa7e65 100644 --- a/src/shared/CONFIG.pas +++ b/src/shared/CONFIG.pas @@ -1,13 +1,28 @@ +(* 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 . + *) +{$INCLUDE a_modes.inc} unit CONFIG; -{ ------------------------------------ -CONFIG.PAS ÂÅÐÑÈß ÎÒ 24.09.06 ------------------------------------ -} - interface +{$IFDEF USE_MEMPOOL} +uses + mempool; +{$ENDIF} + type TParam = record Param: ShortString; @@ -15,7 +30,7 @@ type Section: Word; end; - TConfig = class(TObject) + TConfig = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF} private FParams: array of TParam; FSections: array of ShortString; @@ -42,7 +57,7 @@ type implementation uses - SysUtils, BinEditor; + SysUtils, utils; { TConfig } @@ -245,7 +260,7 @@ end; procedure TConfig.WriteBool(Section, Param: string; Value: Boolean); begin - WriteParam(Section, Param, BoolToStr(Value)); + WriteParam(Section, Param, BoolToStr(Value)); end; procedure TConfig.WriteInt(Section, Param: string; Value: Integer);