Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
cnfs.h
Go to the documentation of this file.
1
51#ifndef _HDW_CNFS_H_
52#define _HDW_CNFS_H_
53
54#include <stdint.h>
55#include <stdbool.h>
56#include <stddef.h>
57
58bool initCnfs(void);
59bool deinitCnfs(void);
60const uint8_t* cnfsGetFile(const char* fname, size_t* flen);
61uint8_t* cnfsReadFile(const char* fname, size_t* outsize, bool readToSpiRam);
62
63#endif
uint8_t * cnfsReadFile(const char *fname, size_t *outsize, bool readToSpiRam)
Read a file from CNFS into an output array. Files that are in the assets_image folder before compilat...
Definition cnfs.c:108
bool initCnfs(void)
Initialize the CNFS file system. This is used to store assets like WSGs and fonts.
Definition cnfs.c:35
const uint8_t * cnfsGetFile(const char *fname, size_t *flen)
Get a pointer to a file, without needing to read it. Same rules that apply to cnfsGetFile,...
Definition cnfs.c:67
bool deinitCnfs(void)
De-initialize the CNFS file system (right now a noop)
Definition cnfs.c:53