X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_build.h;h=965f14cac3941c73e687985360410d581b5008a3;hb=HEAD;hp=b582d0f9f727e9171af3877ee990208444b3c3fe;hpb=7108996fc9e1baebc3b3f09e950ce08487f9d5a6;p=vg.git diff --git a/vg_build.h b/vg_build.h index b582d0f..b40ecd3 100644 --- a/vg_build.h +++ b/vg_build.h @@ -9,6 +9,7 @@ #include "vg_opt.h" #include "vg_log.h" #include "vg_string.h" +#include "vg_build_font.h" /* we dont free dynamic vg_strs in this program. so, we dont care.. */ const char *__asan_default_options() { return "detect_leaks=0"; } @@ -433,7 +434,7 @@ struct vg_engine_config { bool use_3d, legacy_support_vg_msg1, log_source_info, steam_api, custom_game_settings, - release_mode, custom_shaders; + custom_shaders; i32 fixed_update_hz; } vg_engine_default_config = { @@ -443,12 +444,14 @@ vg_engine_default_config = { .log_source_info = 1, .steam_api = 0, .custom_game_settings = 0, - .release_mode = 0, .custom_shaders = 0 }; void vg_add_engine( struct vg_project *proj, struct vg_engine_config *config ) { + /* building assets */ + vg_build_default_font(); + if( !config ) config = &vg_engine_default_config; vg_str config_string; vg_strnull( &config_string, NULL, -1 ); @@ -462,8 +465,6 @@ void vg_add_engine( struct vg_project *proj, struct vg_engine_config *config ) vg_strcat( &config_string, "-DVG_LOG_SOURCE_INFO \\\n" ); if( config->custom_game_settings ) vg_strcat( &config_string, "-DVG_GAME_SETTINGS \\\n" ); - if( config->custom_game_settings ) - vg_strcat( &config_string, "-DVG_RELEASE \\\n" ); if( config->custom_shaders ) vg_strcat( &config_string, "-DVG_CUSTOM_SHADERS \\\n" );