prepare launcher for UGC

This commit is contained in:
Ondrej Novak 2025-07-15 17:37:00 +02:00
parent 86d0919905
commit 4ed39ec344
11 changed files with 342 additions and 121 deletions

29
platform/ugc.h Normal file
View file

@ -0,0 +1,29 @@
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
const char *name;
const char *ddl_path;
const char *author;
time_t last_played;
} UGCItem;
typedef struct tag_UGCManager UGCManager;
void UGCSetLocalFoler(const char *path);
UGCManager *UGC_create();
size_t UGC_Fetch(UGCManager *manager);
UGCItem UGC_GetItem(UGCManager *manager, size_t pos);
void UGC_StartPlay(UGCManager *manager, size_t pos);
void UGC_Destroy(UGCManager *inst);
#ifdef __cplusplus
}
#endif