Um, you missed the obvious right after that line: nfiles++; // add space for a guard- this is a null terminator. *numfiles = nfiles; // This sets the int var passed by pointer. Further changes to nfiles will not be seen by the calling function.
Further, I compared the output of FS_Path_f(), and it's not missing any paks or pk3s in baseq2 or any game dir I've tried.
Last Edit: May 7, 2019 21:39:42 GMT -5 by knightmare
// FS: Exploit. Making a userinfo key (or value) longer than 63 chars (i.e. setting name longer than this) // will actually delete the key possibly having checks elsewhere in the code turn up NULL // So let's truncate it. Info_SetValueForKey checks new key / value length before clearing the key.
Also, Info_SetValueForKey accesses value before checking if it exists.