![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include <SDL.h>
#include "darkplaces.h"
#include "fs.h"
#include "vid.h"
#include <emscripten.h>
#include <emscripten/html5.h>
#include <string.h>
Go to the source code of this file.
Functions | |
EM_JS (bool, js_syncFS,(bool populate), { FS.syncfs(populate, function(err) { if(err) { alert("FileSystem Save Error: "+err);return false;} alert("Filesystem Saved!");return true;});}) | |
EM_JS (char *, js_getclipboard,(void), { return stringToNewUTF8("clipboard access requires JSPI which is not currently enabled.");}) | |
EM_JS (float, js_GetViewportHeight,(void), { return document.documentElement.clientHeight }) | |
EM_JS (float, js_GetViewportWidth,(void), { return document.documentElement.clientWidth }) | |
static EM_BOOL | em_on_resize (int etype, const EmscriptenUiEvent *event, void *UData) |
static void | em_savefs_f (cmd_state_t *cmd) |
int | main (int argc, char *argv[]) |
void | Sys_EM_Register_Commands (void) |
void | Sys_SDL_Delay (unsigned int milliseconds) |
void | Sys_SDL_Dialog (const char *title, const char *string) |
char * | Sys_SDL_GetClipboardData (void) |
unsigned int | Sys_SDL_GetTicks (void) |
void | Sys_SDL_Init (void) |
void | Sys_SDL_Shutdown (void) |
INFO: This is only called by Host_Shutdown so we dont need testing for recursion. | |
Variables | |
static qbool | nocrashdialog = true |
qbool | sys_supportsdlgetticks = true |
EM_JS | ( | bool | , |
js_syncFS | , | ||
(bool populate) | , | ||
{ FS.syncfs(populate, function(err) { if(err) { alert("FileSystem Save Error: "+err);return false;} alert("Filesystem Saved!");return true;});} | ) |
EM_JS | ( | char * | , |
js_getclipboard | , | ||
(void) | , | ||
{ return stringToNewUTF8("clipboard access requires JSPI which is not currently enabled.");} | ) |
Definition at line 22 of file sys_wasm.c.
References Cvar_SetQuick(), Cvar_SetValueQuick(), cvar_t::integer, vid_fullscreen, vid_height, vid_resizable, and vid_width.
Referenced by Sys_SDL_Init().
|
static |
Definition at line 208 of file sys_wasm.c.
References Con_Printf().
Referenced by Sys_EM_Register_Commands().
Definition at line 304 of file sys_wasm.c.
References argv(), and Sys_Main().
Definition at line 279 of file sys_wasm.c.
References CF_SHARED, Cmd_AddCommand(), and em_savefs_f().
Referenced by FS_Init_Commands().
Definition at line 299 of file sys_wasm.c.
References Sys_Error().
Referenced by Sys_Sleep().
void Sys_SDL_Dialog | ( | const char * | title, |
const char * | string ) |
Definition at line 223 of file sys_wasm.c.
References nocrashdialog, and NULL.
Referenced by Sys_Error(), and Sys_HandleCrash().
char * Sys_SDL_GetClipboardData | ( | void | ) |
Definition at line 248 of file sys_wasm.c.
References data, dp_strlcpy, MAX_INPUTLINE, min, NULL, strlen(), and Z_Malloc.
Referenced by Key_Parse_CommonKeys().
Definition at line 294 of file sys_wasm.c.
References Sys_Error().
Referenced by Sys_DirtyTime().
Definition at line 266 of file sys_wasm.c.
References em_on_resize(), nocrashdialog, Sys_CheckParm(), and Sys_Error().
Referenced by Host_Init().
INFO: This is only called by Host_Shutdown so we dont need testing for recursion.
Definition at line 214 of file sys_wasm.c.
Referenced by Host_Shutdown().
Definition at line 222 of file sys_wasm.c.
Referenced by Sys_SDL_Dialog(), and Sys_SDL_Init().
Definition at line 293 of file sys_wasm.c.
Referenced by Sys_DirtyTime(), Sys_Init_Commands(), and Sys_Sleep().