diff options
author | /dev/humancontroller <devhc@example.com> | 2015-06-18 14:21:05 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:17 +0100 |
commit | 65bcf419d4b612b7d626447924fa0fe2079c18c2 (patch) | |
tree | 087353aa52c9816209ca983de5ae5cd87d21e82b /src/cgame/cg_main.c | |
parent | b6e36560b0c06db62fbe6040a657d3f8dcab3dcd (diff) |
implement support for creating cgame&ui modules using the 1.1 interfaces
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r-- | src/cgame/cg_main.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 0adcb549..01df3af7 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -85,8 +85,10 @@ Q_EXPORT intptr_t vmMain( int command, int arg0, int arg1, int arg2, int arg3, CG_EventHandling( arg0 ); return 0; +#ifndef MODULE_INTERFACE_11 case CG_VOIP_STRING: return (intptr_t)CG_VoIPString( ); +#endif default: CG_Error( "vmMain: unknown command %i", command ); @@ -2099,3 +2101,25 @@ qboolean CG_GetRangeMarkerPreferences( qboolean *drawSurface, qboolean *drawInte return qfalse; } +#ifdef MODULE_INTERFACE_11 +int trap_S_SoundDuration( sfxHandle_t handle ) +{ + return 1; +} + +void trap_R_SetClipRegion( const float *region ) +{ +} + +static qboolean keyOverstrikeMode = qfalse; + +void trap_Key_SetOverstrikeMode( qboolean state ) +{ + keyOverstrikeMode = state; +} + +qboolean trap_Key_GetOverstrikeMode( void ) +{ + return keyOverstrikeMode; +} +#endif |