This reminds me pretty much of this discussion http://modsonline.com/Forums-top-158856-10.html

I always wanted #ifdef and co to circumvent version depending errors (e.g. "function not found" from 1.3 to 1.2 server).

You could use the .menu parser from Enemy Territory (GPL and free to download game files, "parent" of CoD1): https://github.com/mgrdcm/ET-GPL/blo...cs/l_precomp.c (might be just easier to write the needed parts yourself)

Where we can find your current source code?