mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Ein Versuch Screenshots zu ermöglichen ohne den halben Client in den
Renderer linken zu müssen
This commit is contained in:
parent
98cadca2d9
commit
fa23a3e516
3 changed files with 6 additions and 4 deletions
|
@ -175,10 +175,11 @@ typedef struct {
|
|||
*/
|
||||
typedef struct {
|
||||
void (*Sys_Error)(int err_level, char *str, ...);
|
||||
void (*Sys_Mkdir)(char *path);
|
||||
|
||||
void (*Cmd_AddCommand)(char *name, void(*cmd)(void));
|
||||
void (*Cmd_RemoveCommand)(char *name);
|
||||
int (*Cmd_Argc)(void);
|
||||
int (*Cmd_Argc)(void);
|
||||
char *(*Cmd_Argv)(int i);
|
||||
void (*Cmd_ExecuteText)(int exec_when, char *text);
|
||||
|
||||
|
@ -189,7 +190,7 @@ typedef struct {
|
|||
or a discrete file from anywhere in the quake search path
|
||||
a -1 return means the file does not exist
|
||||
NULL can be passed for buf to just determine existance */
|
||||
int (*FS_LoadFile)(char *name, void **buf);
|
||||
int (*FS_LoadFile)(char *name, void **buf);
|
||||
void (*FS_FreeFile)(void *buf);
|
||||
|
||||
/* The gamedir is the ./baseq2 directory (read only) and the
|
||||
|
@ -199,7 +200,7 @@ typedef struct {
|
|||
|
||||
cvar_t *(*Cvar_Get)(char *name, char *value, int flags);
|
||||
cvar_t *(*Cvar_Set)(char *name, char *value);
|
||||
void (*Cvar_SetValue)(char *name, float value);
|
||||
void (*Cvar_SetValue)(char *name, float value);
|
||||
|
||||
qboolean(*Vid_GetModeInfo)(int *width, int *height, int mode);
|
||||
void (*Vid_MenuInit)(void);
|
||||
|
|
|
@ -93,7 +93,7 @@ R_ScreenShot ( void )
|
|||
|
||||
/* create the scrnshots directory if it doesn't exist */
|
||||
Com_sprintf( checkname, sizeof ( checkname ), "%s/scrnshot", ri.FS_Gamedir() );
|
||||
Sys_Mkdir( checkname );
|
||||
ri.Sys_Mkdir( checkname );
|
||||
|
||||
/* find a file name to save it to */
|
||||
strcpy( picname, "quake00.tga" );
|
||||
|
|
|
@ -262,6 +262,7 @@ VID_LoadRefresh ( char *name )
|
|||
ri.Cmd_ExecuteText = Cbuf_ExecuteText;
|
||||
ri.Con_Printf = VID_Printf;
|
||||
ri.Sys_Error = VID_Error;
|
||||
ri.Sys_Mkdir = Sys_Mkdir;
|
||||
ri.FS_LoadFile = FS_LoadFile;
|
||||
ri.FS_FreeFile = FS_FreeFile;
|
||||
ri.FS_Gamedir = FS_Gamedir;
|
||||
|
|
Loading…
Reference in a new issue