X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=menu.h;h=4f9e671304c89ce0ea04df8e4508f7058a4578f5;hb=c34dde859968ced3dc7e8dd7be29f676689813d3;hp=483449038620f4f6350e6ef96a8f56def46ba31a;hpb=b4a83d4fcab39bee5a8cd6e8e6eec06314864e5b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/menu.h b/menu.h index 4834490..4f9e671 100644 --- a/menu.h +++ b/menu.h @@ -9,7 +9,6 @@ #include "shaders/model_menu.h" #include "vg_steam_friends.h" -#include "submodules/tinydir/tinydir.h" VG_STATIC mdl_context menu_model; VG_STATIC mdl_array_ptr menu_markers; @@ -299,7 +298,8 @@ VG_STATIC void menu_btn_map( int event ) struct menu_map_file *mf = &game_menu.maps_list[ game_menu.map_count ]; vg_strncpy( file.name, mf->name, - vg_list_size(game_menu.maps_list[0].name)-1 ); + vg_list_size(game_menu.maps_list[0].name), + k_strncpy_always_add_null ); game_menu.map_count ++; if( game_menu.map_count == vg_list_size(game_menu.maps_list) ) @@ -646,6 +646,7 @@ VG_STATIC void menu_update(void) vg_input_update( 1, &input_menu_press ); vg_input_update( 1, &input_menu_toggle ); vg_input_update( 1, &input_menu_toggle_kbm ); + return; int toggle_gp = vg_input_button_down( &input_menu_toggle ), toggle_kb = vg_input_button_down( &input_menu_toggle_kbm ),