X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=workshop.h;h=36a6aa5ad2f0b7e2ce18ab4006104242ea72e8fe;hb=edd08a99f72cced7626654b04591d5a54a8b540b;hp=6418339d4851dd7811b5a89977f62a1a4f558c83;hpb=a8ba9cc44e1ae9aeca62fb579a3105c625e59133;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/workshop.h b/workshop.h index 6418339..36a6aa5 100644 --- a/workshop.h +++ b/workshop.h @@ -1,16 +1,13 @@ #ifndef WORKSHOP_H #define WORKSHOP_H +#include "workshop_types.h" + #define VG_GAME #include "vg/vg.h" #include "vg/vg_steam_remote_storage.h" #include "skaterift.h" - -struct workshop_file_info{ - u64 author; - char author_name[32]; - char title[64]; -}; +#include "pointcloud.h" struct async_workshop_filepath_info{ PublishedFileId_t id; @@ -28,16 +25,15 @@ struct async_workshop_metadata_info{ const char *path; }; -VG_STATIC void workshop_file_info_clear( struct workshop_file_info *info ) -{ - info->author = 0ul; - info->author_name[0] = '\0'; - info->title[0] = '\0'; -} - VG_STATIC void async_workshop_get_filepath( void *data, u32 len ); 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 */