27 #ifndef INCLUDED_SYSDEP 28 #define INCLUDED_SYSDEP 47 extern void sys_display_msg(
const wchar_t* caption,
const wchar_t* msg);
183 # define SYS_DIR_SEP '\\' 185 # define SYS_DIR_SEP '/' 188 #endif // #ifndef INCLUDED_SYSDEP std::wstring sys_get_user_name()
Get the current user's login name.
Definition: unix.cpp:299
LIB_API FILE * sys_OpenFile(const OsPath &pathname, const char *mode)
open a file like with fopen (but taking an OsPath argument).
Definition: unix.cpp:377
LIB_API bool sys_IsDebuggerPresent()
Definition: unix.cpp:46
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:290
Status sys_StatusDescription(int err, wchar_t *buf, size_t max_chars)
describe the current OS error state.
Definition: unix.cpp:275
LIB_API OsPath sys_ExecutablePathname()
Definition: bsd.cpp:28
uint8_t u8
Definition: types.h:37
void sys_display_msg(const wchar_t *caption, const wchar_t *msg)
display a message.
Definition: unix.cpp:60
LIB_API Status sys_generate_random_bytes(u8 *buf, size_t count)
generate high-quality random bytes.
Definition: unix.cpp:322
LIB_API 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:342
Status sys_open_url(const std::string &url)
Open the user's default web browser to the given URL.
Definition: unix.cpp:347
i64 Status
Error handling system.
Definition: status.h:171
Status sys_pick_directory(OsPath &path)
Have the user choose a directory via OS dialog.
Definition: wsysdep.cpp:428
Status sys_get_module_filename(void *addr, OsPath &pathname)
determine filename of the module to whom an address belongs.
Definition: wsysdep.cpp:384
LIB_API std::wstring sys_WideFromArgv(const char *argv_i)
Definition: unix.cpp:51
ErrorReactionInternal sys_display_error(const wchar_t *text, size_t flags)
show the error dialog.
Definition: unix.cpp:206
ErrorReactionInternal
all choices offered by the error dialog.
Definition: debug.h:154