27#ifndef INCLUDED_SYSDEP
28#define INCLUDED_SYSDEP
31# pragma warning(disable:4091)
186# define SYS_DIR_SEP '\\'
188# define SYS_DIR_SEP '/'
ErrorReactionInternal
all choices offered by the error dialog.
Definition: debug.h:141
i64 Status
Error handling system.
Definition: status.h:173
bool sys_IsDebuggerPresent()
Definition: unix.cpp:47
Status sys_get_proxy_config(const std::wstring &url, std::wstring &proxy)
get the proxy address for accessing the given HTTP URL.
Definition: unix.cpp:346
OsPath sys_ExecutablePathname()
Definition: bsd.cpp:28
std::wstring sys_WideFromArgv(const char *argv_i)
Definition: unix.cpp:52
Status sys_pick_directory(OsPath &path)
Have the user choose a directory via OS dialog.
Definition: wsysdep.cpp:461
Status sys_open_url(const std::string &url)
Open the user's default web browser to the given URL.
Definition: unix.cpp:351
void sys_display_msg(const wchar_t *caption, const wchar_t *msg)
display a message.
Definition: unix.cpp:61
Status sys_StatusDescription(int err, wchar_t *buf, size_t max_chars)
describe the current OS error state.
Definition: unix.cpp:276
ErrorReactionInternal sys_display_error(const wchar_t *text, size_t flags)
show the error dialog.
Definition: unix.cpp:207
Status sys_get_module_filename(void *addr, OsPath &pathname)
determine filename of the module to whom an address belongs.
Definition: wsysdep.cpp:417
Status sys_generate_random_bytes(u8 *buf, size_t count)
generate high-quality random bytes.
Definition: unix.cpp:323
FILE * sys_OpenFile(const OsPath &pathname, const char *mode)
open a file like with fopen (but taking an OsPath argument).
Definition: unix.cpp:381
size_t sys_max_sector_size()
return the largest sector size [bytes] of any storage medium (HD, optical, etc.) in the system.
Definition: unix.cpp:291
std::wstring sys_get_user_name()
Get the current user's login name.
Definition: unix.cpp:300
uint8_t u8
Definition: types.h:37