-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
loki_launchurl.h
33 lines (27 loc) · 1.43 KB
/
loki_launchurl.h
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
/*
Loki Game Utility Functions
Copyright (C) 1999 Loki Entertainment Software
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* This function launches the user's web browser with the given URL.
The browser detection can be overridden by the LOKI_BROWSER environment
variable, which is used as the format string: %s is replaced with the
URL to be launched.
This function returns -1 if a browser could not be found, or the return
value of system("browser command") if one is available.
There is no way to tell whether or not the URL was valid.
WARNING: This function should NOT be called when a video mode is set.
*/
extern int loki_launchURL(const char *url);
/* Check if the program is in PATH */
extern int loki_valid_program(const char *program);