@@ -69,6 +69,7 @@ double g_sep_overlay_scale_x = 1;
69
69
double g_sep_overlay_scale_y = 1 ;
70
70
bool g_pause_state = false ; // by RDG2010
71
71
bool g_init_mute = false ;
72
+ bool g_show_crosshair = true ;
72
73
73
74
int (*g_original_prepare_frame)(uint8_t *Yplane, uint8_t *Uplane, uint8_t *Vplane,
74
75
int Ypitch, int Upitch, int Vpitch);
@@ -554,10 +555,11 @@ void sep_startup(const char *script)
554
555
lua_register (g_se_lua_context, " overlaySetResolution" , sep_singe_two_pseudo_call_true);
555
556
lua_register (g_se_lua_context, " singeSetGameName" , sep_singe_two_pseudo_call_true);
556
557
lua_register (g_se_lua_context, " onOverlayUpdate" , sep_singe_two_pseudo_call_true);
557
- lua_register (g_se_lua_context, " singeWantsCrosshairs" , sep_singe_two_pseudo_call_false );
558
+ lua_register (g_se_lua_context, " singeWantsCrosshairs" , sep_singe_wants_crosshair );
558
559
559
560
lua_register (g_se_lua_context, " luaChangeSpeed" , sep_alter_lua_clock);
560
561
lua_register (g_se_lua_context, " mutevldpInit" , sep_mute_vldp_init);
562
+ lua_register (g_se_lua_context, " noCrosshair" , sep_no_crosshair);
561
563
562
564
// by RDG2010
563
565
lua_register (g_se_lua_context, " keyboardGetMode" , sep_keyboard_get_mode);
@@ -957,8 +959,9 @@ static int sep_singe_two_pseudo_call_true(lua_State *L)
957
959
return 0 ;
958
960
}
959
961
960
- static int sep_singe_two_pseudo_call_false (lua_State *L)
962
+ static int sep_singe_wants_crosshair (lua_State *L)
961
963
{
964
+ lua_pushboolean (L, g_show_crosshair);
962
965
return 1 ;
963
966
}
964
967
@@ -980,6 +983,12 @@ static int sep_mute_vldp_init(lua_State *L)
980
983
return 1 ;
981
984
}
982
985
986
+ static int sep_no_crosshair (lua_State *L)
987
+ {
988
+ g_show_crosshair = false ;
989
+ return 1 ;
990
+ }
991
+
983
992
static int sep_mpeg_get_width (lua_State *L)
984
993
{
985
994
lua_pushnumber (L, g_pSingeIn->g_vldp_info ->w );
0 commit comments