hedgewars/uFLSchemes.pas
author unc0rr
Thu, 29 Jan 2015 23:36:58 +0300
branchqmlfrontend
changeset 10754 8dd1cf1be5a2
parent 10616 20a2d5e6930a
child 10757 f71275973737
permissions -rw-r--r--
[flib] yay, some work on schemes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     1
unit uFLSchemes;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     2
interface
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     3
uses uFLTypes;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     4
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     5
function getSchemesList: PPChar; cdecl;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     6
procedure freeSchemesList;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     7
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     8
implementation
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
     9
uses uFLUtils, uFLIPC, uPhysFSLayer, uFLData;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    10
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    11
const MAX_SCHEME_NAMES = 64;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    12
type
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    13
    TScheme = record
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    14
            schemeName
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    15
            , scriptparam : shortstring;
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    16
            fortsmode
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    17
            , divteams
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    18
            , solidland
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    19
            , border
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    20
            , lowgrav
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    21
            , laser
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    22
            , invulnerability
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    23
            , mines
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    24
            , vampiric
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    25
            , karma
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    26
            , artillery
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    27
            , randomorder
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    28
            , king
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    29
            , placehog
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    30
            , sharedammo
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    31
            , disablegirders
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    32
            , randomorder
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    33
            , king
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    34
            , placehog
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    35
            , sharedammo
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    36
            , disablegirders
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    37
            , randomorder
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    38
            , king
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    39
            , placehog
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    40
            , sharedammo
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    41
            , disablegirders
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    42
            , disablewind
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    43
            , morewind
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    44
            , tagteam
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    45
            , bottomborder: boolean;
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    46
            damagefactor
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    47
            , turntime
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    48
            , health
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    49
            , suddendeath
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    50
            , caseprobability
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    51
            , minestime
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    52
            , landadds
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    53
            , minedudpct
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    54
            , explosives
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    55
            , minesnum
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    56
            , healthprobability
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    57
            , healthcaseamount
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    58
            , waterrise
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    59
            , healthdecrease
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    60
            , ropepct
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    61
            , getawaytime
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
    62
            , worldedge: LongInt
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    63
        end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    64
    PScheme = ^TScheme;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    65
    TSchemeArray = array [0..0] of TScheme;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    66
    PSchemeArray = ^TSchemeArray;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    67
var
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    68
    schemesList: PScheme;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    69
    schemesNumber: LongInt;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    70
    listOfSchemeNames: array[0..MAX_SCHEME_NAMES] of PChar;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    71
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    72
procedure loadSchemes;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    73
var f: PFSFile;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    74
    scheme: PScheme;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    75
    schemes: PSchemeArray;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    76
    s: shortstring;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    77
    l, i: Longword;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    78
begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    79
    f:= pfsOpenRead('/Config/schemes.ini');
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    80
    schemesNumber:= 0;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    81
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    82
    if f <> nil then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    83
    begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    84
        while (not pfsEOF(f)) and (schemesNumber = 0) do
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    85
        begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    86
            pfsReadLn(f, s);
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    87
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    88
            if copy(s, 1, 5) = 'size=' then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    89
                schemesNumber:= strToInt(midStr(s, 6));
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    90
        end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    91
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    92
        //inc(schemesNumber); // add some default schemes
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    93
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    94
        schemesList:= GetMem(sizeof(schemesList^) * (schemesNumber + 1));
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    95
        schemes:= PSchemeArray(schemesList);
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    96
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    97
        while (not pfsEOF(f)) do
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    98
        begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
    99
            pfsReadLn(f, s);
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   100
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   101
            i:= 1;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   102
            while(i <= length(s)) and (s[i] <> '\') do inc(i);
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   103
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   104
            if i < length(s) then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   105
            begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   106
                l:= strToInt(copy(s, 1, i - 1));
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   107
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   108
                if (l < schemesNumber) and (l > 0) then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   109
                begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   110
                    scheme:= @schemes^[l - 1];
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   111
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   112
                    if copy(s, i + 1, 5) = 'name=' then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   113
                        scheme^. schemeName:= midStr(s, i + 6);
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   114
                end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   115
            end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   116
        end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   117
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   118
        pfsClose(f)
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   119
    end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   120
{
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   121
name=AI TEST
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   122
fortsmode
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   123
divteams
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   124
solidland
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   125
border
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   126
lowgrav
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   127
laser
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   128
invulnerability
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   129
mines
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   130
damagefactor=100
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   131
turntime=40
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   132
health=100
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   133
suddendeath=0
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   134
caseprobability=5
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   135
vampiric
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   136
karma
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   137
artillery
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   138
minestime=0
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   139
landadds=4
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   140
randomorder
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   141
king
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   142
placehog
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   143
sharedammo
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   144
disablegirders
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   145
minedudpct=100
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   146
explosives=40
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   147
disablelandobjects
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   148
aisurvival
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   149
resethealth
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   150
infattack
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   151
resetweps
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   152
perhogammo
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   153
minesnum=0
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   154
healthprobability=100
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   155
healthcaseamount=50
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   156
waterrise=0
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   157
healthdecrease=0
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   158
disablewind
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   159
morewind
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   160
ropepct=100
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   161
tagteam
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   162
getawaytime=100
10754
8dd1cf1be5a2 [flib] yay, some work on schemes
unc0rr
parents: 10616
diff changeset
   163
bottomborder
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   164
worldedge=1
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   165
scriptparam=@Invalid()
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   166
}
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   167
end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   168
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   169
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   170
function getSchemesList: PPChar; cdecl;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   171
var i, t, l: Longword;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   172
    scheme: PScheme;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   173
begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   174
    if schemesList = nil then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   175
        loadSchemes;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   176
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   177
    t:= schemesNumber;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   178
    if t >= MAX_SCHEME_NAMES then 
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   179
        t:= MAX_SCHEME_NAMES;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   180
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   181
    scheme:= schemesList;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   182
    for i:= 0 to Pred(t) do
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   183
    begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   184
        l:= length(scheme^.schemeName);
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   185
        if l >= 255 then l:= 254;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   186
        scheme^.schemeName[l + 1]:= #0;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   187
        listOfSchemeNames[i]:= @scheme^.schemeName[1];
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   188
        inc(scheme)
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   189
    end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   190
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   191
    listOfSchemeNames[t]:= nil;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   192
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   193
    getSchemesList:= listOfSchemeNames
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   194
end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   195
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   196
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   197
procedure freeSchemesList;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   198
begin
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   199
    if schemesList <> nil then
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   200
        FreeMem(schemesList, sizeof(schemesList^) * schemesNumber)
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   201
end;
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   202
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents:
diff changeset
   203
end.