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:
parent
0071c138bd
commit
95f3efd237
1 changed files with 1 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue