comparison tools/lib64util.h @ 2571:bb44c48cffac

Add helper function for getting C64 chargen ROM path from environment variable 'CHARGEN_ROM' and use it instead of the compile-time hardcoded value.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 02 Mar 2022 23:23:05 +0200
parents c6ee41fd98dd
children 9807ae37ad69
comparison
equal deleted inserted replaced
2570:1559011d749f 2571:bb44c48cffac
10 10
11 #include "lib64gfx.h" 11 #include "lib64gfx.h"
12 12
13 #ifdef __cplusplus 13 #ifdef __cplusplus
14 extern "C" { 14 extern "C" {
15 #endif
16
17
18 // Default character file ROM path, if not defined yet
19 #ifndef DM_DEF_CHARGEN
20 #define DM_DEF_CHARGEN "/usr/local/lib64/vice/C64/chargen"
21 #endif 15 #endif
22 16
23 17
24 // 18 //
25 // Global variables 19 // Global variables
40 void argShowC64Formats(FILE *fh, const BOOL rw, const BOOL verbose); 34 void argShowC64Formats(FILE *fh, const BOOL rw, const BOOL verbose);
41 BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile); 35 BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile);
42 36
43 int dmHandleExternalPalette(const char *filename, DMPalette **ppal); 37 int dmHandleExternalPalette(const char *filename, DMPalette **ppal);
44 38
39 const char *dmGetChargenROMPath();
40
45 41
46 #ifdef __cplusplus 42 #ifdef __cplusplus
47 } 43 }
48 #endif 44 #endif
49 45