maug
Quick and dirty C mini-augmentation library.
Macros | Typedefs | Functions
RetroFlat Assets API

Functions and macros for handling graphical asset files. More...

Collaboration diagram for RetroFlat Assets API:

Macros

#define mfile_cmp_path(a, b)   strncmp( a, b, MAUG_PATH_SZ_MAX )
 Compare two asset paths. Return 0 if they're the same.
 

Typedefs

typedef char maug_path[MAUG_PATH_SZ_MAX]
 Path/name used to load an asset from disk or access other files. More...
 

Functions

MERROR_RETVAL mfile_assign_path (maug_path tgt, const maug_path src, uint8_t flags)
 Copy a maug_path from one place to another, safely observing character limits, etc.
 

Detailed Description

Functions and macros for handling graphical asset files.

Todo:
This is kind of a mess and needs better integration with the rest!

Typedef Documentation

◆ maug_path

typedef char maug_path[MAUG_PATH_SZ_MAX]

Path/name used to load an asset from disk or access other files.

Note
This may also be used as an index in MVFS. Regardless, it should always be MAUG_PATH_SZ_MAX bytes long, including the NULL terminator! Any attempt at manual intervention should only work with MAUG_PATH_SZ_MAX - 1 bytes, as the last should always be the NULL terminator!