clean up overlay init code
[carveJwlIkooP6JGAAIwe30JlM.git] / build.c
diff --git a/build.c b/build.c
index eb3de6285879b9f7f6c3196dd3b32349447da76f..5a078218b92914fd18cc3ff7bb10b04a8892f526 100644 (file)
--- a/build.c
+++ b/build.c
@@ -7,6 +7,12 @@
 #include "vg/vg_msg.h"
 #include "addon_types.h"
 
+#define C0_STOPGAP
+#include "vg/vg_m.h"
+#include "model.h"
+#include "model.c"
+#include "c0_stopgap.c"
+
 /* 
  * Addon metadata utilities 
  * -------------------------------------------------------------------------- */
@@ -150,12 +156,15 @@ void build_game_content( struct vg_project *proj )
 void build_game_bin( struct vg_project *proj )
 {
    static int meta = 0;
-   if( !meta ){
+   if( !meta )
+   {
       meta = 1;
       build_shaders();
       build_game_metadata();
       vg_low( "\n\n" );
    }
+   
+#include "control_overlay.h"
 
    vg_project_new_target( proj, "skaterift", k_obj_type_exe );
    vg_add_engine( proj, &(struct vg_engine_config )