mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-03-21 12:28:56 +01:00
Changed version number to 1.2.1
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40183
This commit is contained in:
parent
50fe3e72d9
commit
9c0d946b0b
@ -54,6 +54,10 @@ var eStream: TFileStream;
|
||||
i: integer;
|
||||
CheckSuccessful: Boolean;
|
||||
begin
|
||||
WriteLn(FindWindow(nil, 'STEAM'));
|
||||
readln;
|
||||
exit;
|
||||
|
||||
ePath := ExtractFilePath(ParamStr(0));
|
||||
for i := 1 to ParamCount do
|
||||
eParams := eParams + #32 + ParamStr(i);
|
||||
@ -83,6 +87,12 @@ begin
|
||||
ReadLn;
|
||||
exit;
|
||||
end;
|
||||
if not FileExists(Copy(ePath, 1, Pos('\SteamApps\', ePath)) + 'steam.exe') then begin
|
||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12);
|
||||
WriteLn('Error: Cannot find steam.exe! Make sure this application is located in your listen server''s directory.');
|
||||
ReadLn;
|
||||
exit;
|
||||
end;
|
||||
{ Verify GameInfo.txt ... }
|
||||
Write('Verifying GameInfo.txt...');
|
||||
if (FindFirst(ePath + '*.*', faDirectory, eSearchRec) = 0) then begin
|
||||
@ -150,6 +160,10 @@ begin
|
||||
WriteLn('Warning: Couldn''t set GameInfo.txt to write-protected!');
|
||||
eStream := nil;
|
||||
end;
|
||||
{ Launch Steam if not opened }
|
||||
|
||||
ShellExecute(0, 'open', PChar(Copy(ePath, 1, Pos('\SteamApps\', ePath)) + 'steam.exe'), nil, PChar(Copy(ePath, 1, Pos('\SteamApps\', ePath))), SW_SHOW);
|
||||
//ShellExecute(0, 'open',
|
||||
{ Launch game }
|
||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7);
|
||||
Write('Starting HL2...');
|
||||
|
Binary file not shown.
Binary file not shown.
@ -130,7 +130,7 @@ type
|
||||
var
|
||||
frmMain: TfrmMain;
|
||||
|
||||
const VERSION = '1.2';
|
||||
const VERSION = '1.2.1';
|
||||
|
||||
implementation
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user