I downloaded the source from ProQuake 4: The official continuation of ProQuake and eventually got it to compile (damn MS changing stuff in Visual Studio), but I found it crashed with a weird bug: "COM_LoadFile: bad usehunk".
I found that the variable usehunk was 10 when it crashed, which is basically impossible (due to a lengthy explanation), but I did end up finding the problem.
COM_FileBase() (in common.c) was crashing on "quake.rc" since there was no slash character in the string. (I guess no one else has a quake.rc file?)
The solution was to change
for (s2 = s ; *s2 != '/' ; s2--);
to
for (s2 = s ; *s2 > in && *s2 != '/' ; s2--);
I found that the variable usehunk was 10 when it crashed, which is basically impossible (due to a lengthy explanation), but I did end up finding the problem.
COM_FileBase() (in common.c) was crashing on "quake.rc" since there was no slash character in the string. (I guess no one else has a quake.rc file?)
The solution was to change
for (s2 = s ; *s2 != '/' ; s2--);
to
for (s2 = s ; *s2 > in && *s2 != '/' ; s2--);
Comment