X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=workshop.h;h=4bea096ca8cc13428b4cead75f3ca5dc2dbf5cf3;hb=9eb3de757a997becb8406417a4bf613f4cb04900;hp=f328d179316444e80e5b3dfaa84672bb54a23ecc;hpb=7fb47c3eb672f4468da8b5b452c09d44e1389d5f;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/workshop.h b/workshop.h index f328d17..4bea096 100644 --- a/workshop.h +++ b/workshop.h @@ -1,9 +1,8 @@ #ifndef WORKSHOP_H #define WORKSHOP_H -#include "workshop_types.h" - #define VG_GAME +#include "addon_types.h" #include "vg/vg.h" #include "vg/vg_steam_remote_storage.h" #include "skaterift.h" @@ -34,12 +33,20 @@ struct async_workshop_metadata_info{ #define WORKSHOP_VIEW_PER_PAGE 15 struct workshop_form{ + enum workshop_op { + k_workshop_op_none, + k_workshop_op_downloading_submission, + k_workshop_op_publishing_update, + k_workshop_op_loading_model + } + op; + struct { char title[80]; char description[512]; char author[32]; struct ui_dropdown_value submission_type_selection; - enum workshop_file_type type; + enum addon_type type; PublishedFileId_t file_id; /* 0 if not published yet */ @@ -105,6 +112,7 @@ struct workshop_form{ */ const char *failure_or_success_string; + char error_msg[256]; int img_w, img_h; u8 *img_buffer; @@ -130,10 +138,4 @@ VG_STATIC void async_workshop_get_installed_files( void *data, u32 len ); VG_STATIC void workshop_load_metadata( const char *path, struct workshop_file_info *info ); -/* generic reciever */ -VG_STATIC void workshop_async_any_complete( void *data, u32 size ) -{ - skaterift_end_op(); -} - #endif /* WORKSHOP_H */