projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
absolutely SHIT bug
[carveJwlIkooP6JGAAIwe30JlM.git]
/
workshop.h
diff --git
a/workshop.h
b/workshop.h
index 7751df0a1b23d241f5dd34a99838de22b2946101..f28dc7777831e6e9baf0115c661b7e59369ceead 100644
(file)
--- a/
workshop.h
+++ b/
workshop.h
@@
-1,9
+1,8
@@
#ifndef WORKSHOP_H
#define WORKSHOP_H
#ifndef WORKSHOP_H
#define WORKSHOP_H
-#include "workshop_types.h"
-
#define VG_GAME
#define VG_GAME
+#include "addon_types.h"
#include "vg/vg.h"
#include "vg/vg_steam_remote_storage.h"
#include "skaterift.h"
#include "vg/vg.h"
#include "vg/vg_steam_remote_storage.h"
#include "skaterift.h"
@@
-34,16
+33,24
@@
struct async_workshop_metadata_info{
#define WORKSHOP_VIEW_PER_PAGE 15
struct workshop_form{
#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 {
char title[80];
char description[512];
char author[32];
-
struct ui_dropdown_value
submission_type_selection;
- enum
workshop_file
_type type;
+
i32
submission_type_selection;
+ enum
addon
_type type;
PublishedFileId_t file_id; /* 0 if not published yet */
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;
int submit_title, /* set if the respective controls are touched */
submit_description,
submit_file_and_image;
@@
-66,6
+73,7
@@
struct workshop_form{
char addon_folder[128];
struct player_board board_model;
char addon_folder[128];
struct player_board board_model;
+ struct player_model player_model;
/* what does the user want to do with the image preview? */
enum workshop_form_file_intent{
/* what does the user want to do with the image preview? */
enum workshop_form_file_intent{
@@
-131,10
+139,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 );
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 */
#endif /* WORKSHOP_H */