Mercurial > hg > dmlib
diff tools/64vw.c @ 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 | d56a0e86067a |
children | 9807ae37ad69 |
line wrap: on
line diff
--- a/tools/64vw.c Wed Mar 02 00:31:27 2022 +0200 +++ b/tools/64vw.c Wed Mar 02 23:23:05 2022 +0200 @@ -25,7 +25,7 @@ optListOnly = FALSE; size_t noptFilenames1 = 0, noptFilenames2 = 0; char **optFilenames = NULL; -char *optCharROMFilename = NULL; +const char *optCharROMFilename = NULL; DMC64Palette *optC64Palette = NULL; char *optC64PaletteFile = NULL; @@ -78,7 +78,7 @@ "Default character ROM file for this build is:\n" " %s\n", SET_SKIP_AMOUNT, - DM_DEF_CHARGEN + dmGetChargenROMPath() ); } @@ -392,7 +392,7 @@ // Check character ROM filename if (optCharROMFilename == NULL) - optCharROMFilename = DM_DEF_CHARGEN; + optCharROMFilename = dmGetChargenROMPath(); // Attempt to read character ROM dmMsg(1, "Using character ROM file '%s'.\n",