refactor some things...
This commit is contained in:
parent
3550fad638
commit
1744e689b5
25 changed files with 2396 additions and 1307 deletions
|
|
@ -2,21 +2,18 @@
|
|||
|
||||
#include "pxl8_types.h"
|
||||
|
||||
typedef struct pxl8_cart {
|
||||
void* archive_data;
|
||||
size_t archive_size;
|
||||
char* base_path;
|
||||
bool is_folder;
|
||||
bool is_mounted;
|
||||
char* name;
|
||||
} pxl8_cart;
|
||||
typedef struct pxl8_cart pxl8_cart;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
pxl8_cart* pxl8_cart_create(void);
|
||||
pxl8_cart* pxl8_cart_current(void);
|
||||
void pxl8_cart_destroy(pxl8_cart* cart);
|
||||
bool pxl8_cart_file_exists(const pxl8_cart* cart, const char* path);
|
||||
const char* pxl8_cart_get_base_path(const pxl8_cart* cart);
|
||||
const char* pxl8_cart_get_name(const pxl8_cart* cart);
|
||||
pxl8_result pxl8_cart_load(pxl8_cart* cart, const char* path);
|
||||
pxl8_result pxl8_cart_mount(pxl8_cart* cart);
|
||||
pxl8_result pxl8_cart_pack(const char* folder_path, const char* output_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue