91904df5e8
Normally, SameBoy would use executable-relative paths for any resource files, which posed problems for packaging the software by distributions, which usually prefer FHS-compliant file locations. This commit makes it possible to specify an alternative base directory with a compile-time environment variable.
10 lines
238 B
C
10 lines
238 B
C
#ifndef utils_h
|
|
#define utils_h
|
|
#include <stddef.h>
|
|
|
|
const char *resource_folder(void);
|
|
char *resource_path(const char *filename);
|
|
void replace_extension(const char *src, size_t length, char *dest, const char *ext);
|
|
|
|
#endif /* utils_h */
|