0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-04-22 17:45:37 +00:00

[qfcc] Strip the path for array name

I had meant to do this earlier...
This commit is contained in:
Bill Currie 2025-01-24 20:50:09 +09:00
parent 0071c138bd
commit 95f3efd237

View file

@ -337,6 +337,7 @@ write_output (const char *filename, void *data, size_t bytes)
uint32_t *words = data;
size_t count = bytes / 4;//FIXME asumes bytes is multiple of 4
const char *src = GETSTR (pr.loc.file);
src = QFS_SkipPath (src);
char buf[strlen (src) + 1];
if (!name) {
for (char *d = buf; (*d = *src); d++, src++) {