Skip to content

Commit

Permalink
adding stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
NishiOwO committed Feb 12, 2025
1 parent c29d1b6 commit 97c969d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/HighballConfig.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ implementation
IniFiles;

function HighballParseConfig(ConfPath : String) : Integer;
var
INI : TINIFile;
begin
HighballParseConfig := 0;
INI := TINIFile.Create(ConfPath);
INI.Free();
end;

end.
9 changes: 9 additions & 0 deletions src/HighballDatabase.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
unit HighballDatabase;

interface

implementation
uses
postgres;

end.
5 changes: 4 additions & 1 deletion src/highball.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
HighballVersion,
HighballUtils,
HighballServer,
HighballConfig;
HighballConfig,
HighballDatabase;

function ParseArgs : Integer;
var
Expand Down Expand Up @@ -40,6 +41,8 @@ function ParseArgs : Integer;
Halt(ResultParseArgs);
end;
WriteLn('');
WriteLn('Parsing config');
HighballParseConfig('config.ini');
WriteLn('Starting server');
Halt(HighballServerStart());
end.

0 comments on commit 97c969d

Please sign in to comment.