-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsm_settings.pas
41 lines (35 loc) · 1.14 KB
/
sm_settings.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
unit sm_settings;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
type TOption = record
XMLSrvDesc: string;//host for server side description file
XMLStorage: string;//local path for local script storage
Autoupdate: boolean;//autoupdate -> yes\no
Simba_Scripts: string;//path to simba scripts folder
Simba_SRL: string;//path to simba srl folder
Simba_SPS:string;//path to Simba sps folder
Simba_Fonts: string;//path to Simba fonts folder
Simba_Plugins: string;//path to Simba plugins folder
Simba: string;//path to Simba folder
Simba_include: string;//path to Simba include folder
end;
procedure SetOptionsPaths(Server,Storage,SimbaPath: string;var opt: TOption);
implementation
procedure SetOptionsPaths(Server, Storage, SimbaPath: string; var opt: TOption);
begin
with opt do
begin
XMLStorage:= storage;
XMLSrvDesc:=Server;
Simba:=SimbaPath;
Simba_include:=Simba+'Includes/';
Simba_SPS:=Simba_include+'SPS/';
Simba_Scripts:=Simba+'Scripts/';
Simba_Plugins:=Simba+'Plugins/';
Simba_Fonts:=Simba+'Fonts/';
Simba_SRL:=Simba_include+'SRL/';
end;
end;
end.