DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
os.h
Go to the documentation of this file.
1
#ifndef BASE_OS_H
2
#define BASE_OS_H
3
4
#include "
detect.h
"
5
6
#include <cstddef>
7
13
24
void
cmdline_fix
(
int
*argc,
const
char
***argv);
25
34
void
cmdline_free
(
int
argc,
const
char
**argv);
35
42
class
CCmdlineFix
43
{
44
int
m_Argc
;
45
const
char
**
m_ppArgv
;
46
47
public
:
48
CCmdlineFix
(
int
*pArgc,
const
char
***pppArgv)
49
{
50
cmdline_fix
(pArgc, pppArgv);
51
m_Argc
= *pArgc;
52
m_ppArgv
= *pppArgv;
53
}
54
~CCmdlineFix
()
55
{
56
cmdline_free
(
m_Argc
,
m_ppArgv
);
57
}
58
CCmdlineFix
(
const
CCmdlineFix
&) =
delete
;
59
};
60
61
#if !defined(CONF_PLATFORM_ANDROID)
74
int
os_open_link
(
const
char
*link);
75
88
int
os_open_file
(
const
char
*path);
89
#endif
// !defined(CONF_PLATFORM_ANDROID)
90
101
bool
os_version_str
(
char
*version,
size_t
length
);
102
117
void
os_locale_str
(
char
*locale,
size_t
length
);
118
119
#endif
CCmdlineFix::~CCmdlineFix
~CCmdlineFix()
Definition
os.h:54
CCmdlineFix::m_Argc
int m_Argc
Definition
os.h:44
CCmdlineFix::CCmdlineFix
CCmdlineFix(const CCmdlineFix &)=delete
CCmdlineFix::m_ppArgv
const char ** m_ppArgv
Definition
os.h:45
CCmdlineFix::CCmdlineFix
CCmdlineFix(int *pArgc, const char ***pppArgv)
Definition
os.h:48
detect.h
os_version_str
bool os_version_str(char *version, size_t length)
Definition
os.cpp:148
cmdline_free
void cmdline_free(int argc, const char **argv)
Definition
os.cpp:70
os_open_file
int os_open_file(const char *path)
Definition
os.cpp:125
os_locale_str
void os_locale_str(char *locale, size_t length)
Definition
os.cpp:227
os_open_link
int os_open_link(const char *link)
Definition
os.cpp:79
cmdline_fix
void cmdline_fix(int *argc, const char ***argv)
Definition
os.cpp:32
length
float length(const vector2_base< T > &a)
Definition
vmath.h:113
src
base
os.h
Generated by
1.18.0