Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cnfs.h
Go to the documentation of this file.
1
53
54#ifndef _HDW_CNFS_H_
55#define _HDW_CNFS_H_
56
57#include <stdint.h>
58#include <stdbool.h>
59#include <stddef.h>
60
61#include "cnfs_image.h"
62
63bool initCnfs(void);
64bool deinitCnfs(void);
65const uint8_t* cnfsGetFile(cnfsFileIdx_t fIdx, size_t* flen);
66uint8_t* cnfsReadFile(cnfsFileIdx_t fIdx, size_t* outsize, bool readToSpiRam);
67
68#endif
const uint8_t * cnfsGetFile(cnfsFileIdx_t fIdx, size_t *flen)
Get a pointer to a file, without needing to read it. Same rules that apply to cnfsGetFile,...
Definition cnfs.c:65
bool initCnfs(void)
Initialize the CNFS file system. This is used to store assets like WSGs and fonts.
Definition cnfs.c:34
uint8_t * cnfsReadFile(cnfsFileIdx_t fIdx, 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:90
bool deinitCnfs(void)
De-initialize the CNFS file system (right now a noop)
Definition cnfs.c:51