bad char
[vg.git] / vg_build.h
index 9e5d9a7dcab17db3bead2b3a63c5834db6cd3b71..b40ecd3c23545040484f0ed8bb560f085ce3f7a9 100644 (file)
@@ -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;
    i32 fixed_update_hz;
 }
 vg_engine_default_config = {
@@ -443,11 +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 );
@@ -461,8 +465,8 @@ 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" );
 
    vg_strcat( &config_string, "\\\n" );