X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=addon_types.h;h=a244fc0e7d6c60bc184081b1738231cf5187313c;hb=be5e25dee2c54c2a22ca3bbb5bbe0eb6149343be;hp=5c6730fd117af91d63376faa727dfbaa63ed5c1d;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/addon_types.h b/addon_types.h index 5c6730f..a244fc0 100644 --- a/addon_types.h +++ b/addon_types.h @@ -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 */