X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=workshop.h;h=be9e3a5207728c7a7490d8fda4a0e96aa00e2e9c;hb=HEAD;hp=0ada01252be60952505fe5300fcabfa96243accd;hpb=f1fe55f957a3dbdb6ca20a696f0c1171e2d5e7ca;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/workshop.h b/workshop.h index 0ada012..be9e3a5 100644 --- a/workshop.h +++ b/workshop.h @@ -1,12 +1,7 @@ -#ifndef WORKSHOP_H -#define WORKSHOP_H - -#define VG_GAME +#pragma once #include "addon_types.h" -#include "vg/vg.h" #include "vg/vg_steam_remote_storage.h" #include "skaterift.h" -#include "pointcloud.h" #include "vg/vg_steam_auth.h" #include "vg/vg_steam_ugc.h" #include "vg/vg_steam_friends.h" @@ -45,12 +40,12 @@ struct workshop_form{ char title[80]; char description[512]; char author[32]; - struct ui_dropdown_value submission_type_selection; + i32 submission_type_selection; enum addon_type type; PublishedFileId_t file_id; /* 0 if not published yet */ - struct ui_dropdown_value visibility; + i32 visibility; int submit_title, /* set if the respective controls are touched */ submit_description, submit_file_and_image; @@ -129,14 +124,11 @@ struct workshop_form{ published_files_list[WORKSHOP_VIEW_PER_PAGE]; int published_files_list_length; } -static workshop_form; - - - -VG_STATIC int workshop_submit_command( int argc, const char *argv[] ); -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 ); - -#endif /* WORKSHOP_H */ +extern workshop_form; + +void workshop_init(void); +int workshop_submit_command( int argc, const char *argv[] ); +void async_workshop_get_filepath( void *data, u32 len ); +void async_workshop_get_installed_files( void *data, u32 len ); +void workshop_load_metadata( const char *path,struct workshop_file_info *info ); +void workshop_form_gui(void);