revision 2
[carveJwlIkooP6JGAAIwe30JlM.git] / addon_types.h
index 5c6730fd117af91d63376faa727dfbaa63ed5c1d..a244fc0e7d6c60bc184081b1738231cf5187313c 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef ADDON_TYPES_H
-#define ADDON_TYPES_H
+#pragma once
 
 enum addon_type{
    k_addon_type_none   = 0,
@@ -10,37 +9,16 @@ enum addon_type{
 };
 
 #define ADDON_FOLDERNAME_MAX 64
-
-/* total count that we have knowledge of */
-#define ADDON_MOUNTED_MAX 128
+#define ADDON_MOUNTED_MAX 128 /* total count that we have knowledge of */
 #define ADDON_UID_MAX 76
 
 #ifdef VG_ENGINE
 
-#include "world.h"
-#include "player.h"
-
 struct addon_type_info {
    size_t cache_stride;
    u16 cache_count;
    const char *local_content_folder;
 }
-static addon_type_infos[] = {
-   [k_addon_type_board] = { 
-      .local_content_folder = "boards/",
-      .cache_stride = sizeof(struct player_board),
-      .cache_count  = 20
-   },
-   [k_addon_type_player] = {
-      .local_content_folder = "playermodels/",
-      .cache_stride = sizeof(struct player_model),
-      .cache_count  = 20
-   },
-   [k_addon_type_world] = {
-      .local_content_folder = "maps/"
-   }
-};
+extern addon_type_infos[];
 
 #endif
-
-#endif /* ADDON_TYPES_H */