From e281c39d24793ea5793b0eabdd684c5e12ea77fe Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 11 Nov 2026 22:24:54 +0000 Subject: Add a mem_copy_fixed and mem_set_fixed to mem.h Probably self-explanatory. I was finding more use cases for the __builtin_memcpy_inline thing but boy is that ugly. --- src/speedrun.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/speedrun.c') diff --git a/src/speedrun.c b/src/speedrun.c index a0849dd..87942e2 100644 --- a/src/speedrun.c +++ b/src/speedrun.c @@ -186,8 +186,7 @@ DEF_CCMD_HERE(sst_speedrun_start, "Start recording demos for a speedrun", 0) { else { nameend = pathsz + namelen; } - __builtin_memcpy_inline(path + nameend, OS_LIT(".dem"), - sizeof(OS_LIT(".dem"))); + mem_copy_fixed(path + nameend, OS_LIT(".dem"), sizeof(OS_LIT(".dem"))); // check for an existing demo file with this name: if we started // recording, then stopped, then started again in quick succession, we // could have one. in this scenario, append a 2-digit counter to the end -- cgit v1.2.3-54-g00ecf