Skip to content

Commit 1cfc32f

Browse files
committed
Update Delphi samples
1 parent abe9cc6 commit 1cfc32f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Delphi/Get data/Unit1.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ procedure TMain.FormCreate(Sender: TObject);
228228
@GetControllersData:=GetProcAddress(DllHandle, 'GetControllersData');
229229
@SetControllerData:=GetProcAddress(DllHandle, 'SetControllerData');
230230
@SetCentering:=GetProcAddress(DllHandle, 'SetCentering');
231+
end else begin
232+
ShowMessage('TrueOpenVR not found');
233+
Halt;
231234
end;
232235
end;
233236

Delphi/Sample VR init app/Unit1.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ procedure TMain.FormCreate(Sender: TObject);
6262
Reg.CloseKey;
6363
end else begin
6464
ShowMessage('TrueOpenVR not found');
65-
Exit;
65+
Halt;
6666
end;
6767
Reg.Free;
6868

0 commit comments

Comments
 (0)