X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=addon.h;fp=addon.h;h=cae83f6b2d6e19e3ebb5d8e5bccc9b8bae8343bb;hb=d3021395f97b2ae244835c6656008386c8874343;hp=8d2409a3f1a14fafd0b961366ca848e295f21837;hpb=abc4dcca885e5a0bc45322c60b040841f69bbc58;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/addon.h b/addon.h index 8d2409a..cae83f6 100644 --- a/addon.h +++ b/addon.h @@ -19,12 +19,15 @@ struct addon_alias { char foldername[ ADDON_FOLDERNAME_MAX ]; }; +#define ADDON_REG_HIDDEN 0x1 + struct { struct addon_reg{ addon_alias alias; u32 foldername_hash; u8 metadata[512]; /* vg_msg buffer */ u32 metadata_len; + u32 flags; u16 cache_id; @@ -67,8 +70,9 @@ struct { static addon_system; static void addon_system_init( void ); -static u32 addon_count( enum addon_type type ); -static addon_reg *get_addon_from_index( enum addon_type type, u32 index ); +static u32 addon_count( enum addon_type type, u32 ignoreflags ); +static addon_reg *get_addon_from_index( enum addon_type type, u32 index, + u32 ignoreflags ); static u32 get_index_from_addon( enum addon_type type, addon_reg *a ); static int addon_get_content_folder( addon_reg *reg, vg_str *folder );