├── MacOSX ├── SDL.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── SDL │ │ │ ├── Resources │ │ │ ├── SDLMain.nib │ │ │ │ └── objects.nib │ │ │ └── Info.plist │ │ │ ├── Headers │ │ │ ├── SDL_name.h │ │ │ ├── SDL_copying.h │ │ │ ├── SDL_getenv.h │ │ │ ├── SDL_types.h │ │ │ ├── SDL_byteorder.h │ │ │ ├── SDL_config.h │ │ │ ├── close_code.h │ │ │ ├── SDL_error.h │ │ │ ├── SDL_active.h │ │ │ ├── SDL_quit.h │ │ │ └── SDL_cpuinfo.h │ │ │ └── devel-lite │ │ │ ├── SDLMain.h │ │ │ └── ReadMeDevLite.txt │ ├── SDL │ ├── Headers │ └── Resources ├── SDL2.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── SDL2 │ │ │ ├── Resources │ │ │ ├── default.metallib │ │ │ ├── License.txt │ │ │ ├── ReadMe.txt │ │ │ └── Info.plist │ │ │ └── Headers │ │ │ ├── SDL_revision.h │ │ │ ├── SDL_opengles2_gl2platform.h │ │ │ ├── SDL_types.h │ │ │ ├── SDL_name.h │ │ │ ├── SDL_opengles.h │ │ │ ├── close_code.h │ │ │ ├── SDL_opengles2.h │ │ │ ├── SDL_config.h │ │ │ └── SDL_quit.h │ ├── SDL2 │ ├── Headers │ └── Resources ├── .gitignore ├── QuakeSpasm.icns ├── codecs │ ├── lib │ │ ├── libFLAC.dylib │ │ ├── libmad.dylib │ │ ├── libxmp.dylib │ │ ├── libmikmod.dylib │ │ └── libmpg123.dylib │ └── include │ │ ├── flac_config.txt │ │ ├── mikmod_config.txt │ │ ├── mpg123_config.txt │ │ └── FLAC │ │ └── ordinals.h ├── English.lproj │ ├── Launcher.nib │ │ └── keyedobjects.nib │ └── InfoPlist.strings ├── QuakeSpasm.xcodeproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── custom-triplets │ └── x64-osx-10.9.cmake ├── setup-vcpkg.sh ├── SDLMain.h ├── build-macos.sh ├── Launcher-Info.plist ├── Build_Instructions.md ├── SDLApplication.h ├── ScreenInfo.h ├── QuakeArgument.h ├── QuakeArguments.h ├── Info.plist ├── SDLApplication.m ├── ScreenInfo.m ├── AppController.h └── QuakeArgument.m ├── Windows ├── QuakeSpasm.rc ├── QuakeSpasm.ico ├── SDL │ ├── lib │ │ ├── SDL.dll │ │ ├── SDL.lib │ │ ├── SDLmain.lib │ │ ├── libSDL.dll.a │ │ └── libSDLmain.a │ ├── lib64 │ │ ├── SDL.dll │ │ ├── SDL.lib │ │ ├── SDLmain.lib │ │ ├── libSDL.dll.a │ │ └── libSDLmain.a │ ├── watcom │ │ ├── SDL.lib │ │ ├── makefile │ │ └── def2lbc.awk │ ├── include │ │ ├── SDL_name.h │ │ ├── SDL_copying.h │ │ ├── SDL_getenv.h │ │ ├── SDL_types.h │ │ ├── SDL_byteorder.h │ │ ├── SDL_config.h │ │ ├── close_code.h │ │ ├── SDL_error.h │ │ ├── SDL_active.h │ │ ├── SDL_quit.h │ │ ├── SDL_cpuinfo.h │ │ └── SDL_version.h │ ├── README-SDL.txt │ ├── BUGS │ └── bin │ │ └── sdl-config ├── QuakeSpasm-old.ico ├── SDL2 │ ├── lib │ │ ├── SDL2.dll │ │ ├── SDL2.lib │ │ ├── SDL2main.lib │ │ ├── libSDL2.dll.a │ │ └── libSDL2main.a │ ├── lib64 │ │ ├── SDL2.dll │ │ ├── SDL2.lib │ │ ├── SDL2main.lib │ │ ├── libSDL2.dll.a │ │ └── libSDL2main.a │ ├── watcom │ │ ├── SDL2.lib │ │ ├── makefile │ │ └── def2lbc.awk │ ├── include │ │ ├── SDL_revision.h │ │ ├── SDL_opengles2_gl2platform.h │ │ ├── SDL_types.h │ │ ├── SDL_name.h │ │ ├── SDL_opengles.h │ │ ├── close_code.h │ │ ├── SDL_opengles2.h │ │ ├── SDL_config.h │ │ └── SDL_quit.h │ ├── README-SDL.txt │ ├── BUGS.txt │ ├── README.md │ ├── LICENSE.txt │ └── bin │ │ └── sdl2-config ├── codecs │ ├── x64 │ │ ├── libmad.lib │ │ ├── libogg.lib │ │ ├── libxmp.dll │ │ ├── libxmp.lib │ │ ├── libFLAC-8.dll │ │ ├── libFLAC.dll.a │ │ ├── libFLAC.lib │ │ ├── libmad-0.dll │ │ ├── libmad.dll.a │ │ ├── libmikmod.lib │ │ ├── libmpg123.lib │ │ ├── libogg-0.dll │ │ ├── libogg.dll.a │ │ ├── libopus-0.dll │ │ ├── libopus.dll.a │ │ ├── libopus.lib │ │ ├── libvorbis.lib │ │ ├── libxmp.dll.a │ │ ├── libmikmod-3.dll │ │ ├── libmikmod.dll.a │ │ ├── libmpg123-0.dll │ │ ├── libmpg123.dll.a │ │ ├── libopusfile.lib │ │ ├── libvorbis-0.dll │ │ ├── libvorbis.dll.a │ │ ├── libopusfile-0.dll │ │ ├── libopusfile.dll.a │ │ ├── libvorbisfile.lib │ │ ├── libvorbisfile-3.dll │ │ └── libvorbisfile.dll.a │ ├── x86 │ │ ├── libmad.lib │ │ ├── libogg.lib │ │ ├── libxmp.dll │ │ ├── libxmp.lib │ │ ├── libFLAC-8.dll │ │ ├── libFLAC.dll.a │ │ ├── libFLAC.lib │ │ ├── libmad-0.dll │ │ ├── libmad.dll.a │ │ ├── libmikmod.lib │ │ ├── libmpg123.lib │ │ ├── libogg-0.dll │ │ ├── libogg.dll.a │ │ ├── libopus-0.dll │ │ ├── libopus.dll.a │ │ ├── libopus.lib │ │ ├── libvorbis.lib │ │ ├── libxmp.dll.a │ │ ├── libmikmod-3.dll │ │ ├── libmikmod.dll.a │ │ ├── libmpg123-0.dll │ │ ├── libmpg123.dll.a │ │ ├── libopusfile.lib │ │ ├── libvorbis-0.dll │ │ ├── libvorbis.dll.a │ │ ├── libopusfile-0.dll │ │ ├── libopusfile.dll.a │ │ ├── libvorbisfile.lib │ │ ├── libvorbisfile-3.dll │ │ └── libvorbisfile.dll.a │ ├── x86-watcom │ │ ├── FLAC.lib │ │ ├── mad.lib │ │ ├── ogg.lib │ │ ├── opus.lib │ │ ├── libxmp.lib │ │ ├── mikmod.lib │ │ ├── mpg123.lib │ │ ├── vorbis.lib │ │ ├── opusfile.lib │ │ └── vorbisfile.lib │ └── include │ │ ├── opusfile.h │ │ ├── flac_config.txt │ │ ├── mikmod_config.txt │ │ ├── mpg123_config.txt │ │ └── ogg │ │ └── config_types.h ├── misc │ └── include │ │ └── msinttypes │ │ └── README.txt └── VisualStudio │ └── quakespasm.sln ├── Quake ├── quakespasm.pak ├── snd_umx.h ├── snd_wave.h ├── snd_flac.h ├── snd_opus.h ├── snd_xmp.h ├── snd_vorbis.h ├── snd_mikmod.h ├── snd_modplug.h ├── snd_mp3.h ├── strl_fn.h ├── build_cross_haiku64-sdl2.sh ├── build_cross_haiku32-sdl2.sh ├── build_cross_win64.sh ├── build_cross_win64-sdl2.sh ├── build_cross_win32-sdl2.sh ├── build_cross_win32.sh ├── resource.h ├── progdefs.h ├── detect.sh ├── build_cross_osx-sdl2.sh ├── cdaudio.h ├── cd_null.c ├── view.h ├── crc.h ├── platform.h ├── bgmusic.h ├── net_loop.h ├── build_cross_osx.sh ├── cfgfile.h ├── net_dgrm.h ├── sbar.h ├── image.h ├── strlcpy.c ├── ice │ └── ice_quake.h ├── strlcat.c ├── input.h ├── menu.h ├── net_wipx.h ├── snd_codeci.h ├── wad.h ├── default_cfg.h ├── sys.h ├── screen.h ├── q_ctype.h ├── console.h ├── net_wins.h ├── pl_linux.c └── snd_voip.h ├── Misc ├── QuakeSpasm_512.png ├── qs_pak │ ├── gfx │ │ └── conback.lmp │ ├── Makefile │ ├── default.cfg.orig │ └── default.cfg ├── fs_search_order.patch └── mk_header.c ├── Linux └── sgml │ ├── sgml2rawtxt │ └── Makefile.sgml └── .github └── workflows ├── build-macos.yml ├── build-linux.yml └── build-mingw.yml /MacOSX/SDL.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /MacOSX/SDL.framework/SDL: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/SDL2: -------------------------------------------------------------------------------- 1 | Versions/Current/SDL2 -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /MacOSX/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | vcpkg/ 3 | **/xcuserdata/ 4 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Windows/QuakeSpasm.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | icon ICON "QuakeSpasm.ico" 4 | 5 | -------------------------------------------------------------------------------- /MacOSX/QuakeSpasm.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/QuakeSpasm.icns -------------------------------------------------------------------------------- /Quake/quakespasm.pak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Quake/quakespasm.pak -------------------------------------------------------------------------------- /Windows/QuakeSpasm.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/QuakeSpasm.ico -------------------------------------------------------------------------------- /Misc/QuakeSpasm_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Misc/QuakeSpasm_512.png -------------------------------------------------------------------------------- /Windows/SDL/lib/SDL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib/SDL.dll -------------------------------------------------------------------------------- /Windows/SDL/lib/SDL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib/SDL.lib -------------------------------------------------------------------------------- /Misc/qs_pak/gfx/conback.lmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Misc/qs_pak/gfx/conback.lmp -------------------------------------------------------------------------------- /Windows/QuakeSpasm-old.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/QuakeSpasm-old.ico -------------------------------------------------------------------------------- /Windows/SDL/lib/SDLmain.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib/SDLmain.lib -------------------------------------------------------------------------------- /Windows/SDL/lib64/SDL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib64/SDL.dll -------------------------------------------------------------------------------- /Windows/SDL/lib64/SDL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib64/SDL.lib -------------------------------------------------------------------------------- /Windows/SDL/watcom/SDL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/watcom/SDL.lib -------------------------------------------------------------------------------- /Windows/SDL2/lib/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib/SDL2.dll -------------------------------------------------------------------------------- /Windows/SDL2/lib/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib/SDL2.lib -------------------------------------------------------------------------------- /Windows/SDL2/lib64/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib64/SDL2.dll -------------------------------------------------------------------------------- /Windows/SDL2/lib64/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib64/SDL2.lib -------------------------------------------------------------------------------- /Windows/SDL/lib/libSDL.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib/libSDL.dll.a -------------------------------------------------------------------------------- /Windows/SDL/lib/libSDLmain.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib/libSDLmain.a -------------------------------------------------------------------------------- /Windows/SDL/lib64/SDLmain.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib64/SDLmain.lib -------------------------------------------------------------------------------- /Windows/SDL2/lib/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib/SDL2main.lib -------------------------------------------------------------------------------- /Windows/SDL2/watcom/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/watcom/SDL2.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libmad.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmad.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libogg.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libogg.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libxmp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libxmp.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libxmp.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libxmp.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libmad.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmad.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libogg.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libogg.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libxmp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libxmp.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libxmp.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libxmp.lib -------------------------------------------------------------------------------- /MacOSX/codecs/lib/libFLAC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/codecs/lib/libFLAC.dylib -------------------------------------------------------------------------------- /MacOSX/codecs/lib/libmad.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/codecs/lib/libmad.dylib -------------------------------------------------------------------------------- /MacOSX/codecs/lib/libxmp.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/codecs/lib/libxmp.dylib -------------------------------------------------------------------------------- /Windows/SDL/lib64/libSDL.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib64/libSDL.dll.a -------------------------------------------------------------------------------- /Windows/SDL/lib64/libSDLmain.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL/lib64/libSDLmain.a -------------------------------------------------------------------------------- /Windows/SDL2/lib/libSDL2.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib/libSDL2.dll.a -------------------------------------------------------------------------------- /Windows/SDL2/lib/libSDL2main.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib/libSDL2main.a -------------------------------------------------------------------------------- /Windows/SDL2/lib64/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib64/SDL2main.lib -------------------------------------------------------------------------------- /Windows/SDL2/lib64/libSDL2.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib64/libSDL2.dll.a -------------------------------------------------------------------------------- /Windows/SDL2/lib64/libSDL2main.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/SDL2/lib64/libSDL2main.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libFLAC-8.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libFLAC-8.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libFLAC.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libFLAC.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libFLAC.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libFLAC.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libmad-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmad-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libmad.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmad.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libmikmod.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmikmod.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libmpg123.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmpg123.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libogg-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libogg-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libogg.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libogg.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libopus-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libopus-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libopus.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libopus.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libopus.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libopus.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libvorbis.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libvorbis.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libxmp.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libxmp.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libFLAC-8.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libFLAC-8.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libFLAC.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libFLAC.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libFLAC.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libFLAC.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libmad-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmad-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libmad.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmad.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libmikmod.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmikmod.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libmpg123.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmpg123.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libogg-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libogg-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libogg.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libogg.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libopus-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libopus-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libopus.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libopus.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libopus.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libopus.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libvorbis.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libvorbis.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libxmp.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libxmp.dll.a -------------------------------------------------------------------------------- /MacOSX/codecs/lib/libmikmod.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/codecs/lib/libmikmod.dylib -------------------------------------------------------------------------------- /MacOSX/codecs/lib/libmpg123.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/codecs/lib/libmpg123.dylib -------------------------------------------------------------------------------- /Windows/codecs/x64/libmikmod-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmikmod-3.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libmikmod.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmikmod.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libmpg123-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmpg123-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libmpg123.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libmpg123.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libopusfile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libopusfile.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libvorbis-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libvorbis-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libvorbis.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libvorbis.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/FLAC.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/FLAC.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/mad.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/mad.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/ogg.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/ogg.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/opus.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/opus.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libmikmod-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmikmod-3.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libmikmod.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmikmod.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libmpg123-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmpg123-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libmpg123.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libmpg123.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libopusfile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libopusfile.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libvorbis-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libvorbis-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libvorbis.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libvorbis.dll.a -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/SDL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/SDL.framework/Versions/A/SDL -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/SDL2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/SDL2.framework/Versions/A/SDL2 -------------------------------------------------------------------------------- /Windows/codecs/x64/libopusfile-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libopusfile-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libopusfile.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libopusfile.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x64/libvorbisfile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libvorbisfile.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/libxmp.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/libxmp.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/mikmod.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/mikmod.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/mpg123.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/mpg123.lib -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/vorbis.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/vorbis.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libopusfile-0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libopusfile-0.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libopusfile.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libopusfile.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86/libvorbisfile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libvorbisfile.lib -------------------------------------------------------------------------------- /Windows/codecs/x64/libvorbisfile-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libvorbisfile-3.dll -------------------------------------------------------------------------------- /Windows/codecs/x64/libvorbisfile.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x64/libvorbisfile.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/opusfile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/opusfile.lib -------------------------------------------------------------------------------- /Windows/codecs/x86/libvorbisfile-3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libvorbisfile-3.dll -------------------------------------------------------------------------------- /Windows/codecs/x86/libvorbisfile.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86/libvorbisfile.dll.a -------------------------------------------------------------------------------- /Windows/codecs/x86-watcom/vorbisfile.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/Windows/codecs/x86-watcom/vorbisfile.lib -------------------------------------------------------------------------------- /Linux/sgml/sgml2rawtxt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sgml2txt -b 2 "$1" 3 | cat "$1.txt" | sed -e 's/[^m]*m//g' -e 's/.//g' >tmp$$ 4 | mv tmp$$ "$1.txt" 5 | -------------------------------------------------------------------------------- /MacOSX/English.lproj/Launcher.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/English.lproj/Launcher.nib/keyedobjects.nib -------------------------------------------------------------------------------- /Windows/misc/include/msinttypes/README.txt: -------------------------------------------------------------------------------- 1 | 2 | msinttypes-r29 from: 3 | 4 | http://msinttypes.googlecode.com/ 5 | http://code.google.com/p/msinttypes/ 6 | 7 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Resources/default.metallib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/SDL2.framework/Versions/A/Resources/default.metallib -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Resources/SDLMain.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shpoike/Quakespasm/HEAD/MacOSX/SDL.framework/Versions/A/Resources/SDLMain.nib/objects.nib -------------------------------------------------------------------------------- /Windows/codecs/include/opusfile.h: -------------------------------------------------------------------------------- 1 | /* just a wrapper to bypass the pkg-config thingy: the 2 | * headers under opus/ are edited accordingly for this */ 3 | #include 4 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "https://github.com/sezero/SDL.git@07bb804955f66a954dbe7a71db29d76847de69f2" 2 | #define SDL_REVISION_NUMBER 0 3 | -------------------------------------------------------------------------------- /MacOSX/codecs/include/flac_config.txt: -------------------------------------------------------------------------------- 1 | FLAC v1.3.0 release + several fixes from the flac git repo at xiph.org. 2 | Decoder-only functionality, which is what we need: the encoder stuff is 3 | left out of the build. 4 | -------------------------------------------------------------------------------- /Windows/codecs/include/flac_config.txt: -------------------------------------------------------------------------------- 1 | FLAC v1.3.0 release + several fixes from the flac git repo at xiph.org. 2 | Decoder-only functionality, which is what we need: the encoder stuff is 3 | left out of the build. 4 | -------------------------------------------------------------------------------- /Linux/sgml/Makefile.sgml: -------------------------------------------------------------------------------- 1 | # sgml tools are from linuxdoc-tools 2 | default: Quakespasm.sgml 3 | sgml2html -s 0 -T 2 Quakespasm.sgml 2>/dev/null 4 | all: default text 5 | text txt: Quakespasm.sgml 6 | ./sgml2rawtxt Quakespasm 7 | -------------------------------------------------------------------------------- /MacOSX/QuakeSpasm.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Quake/snd_umx.h: -------------------------------------------------------------------------------- 1 | /* Unreal UMX format support */ 2 | #if !defined(_SND_UMX_H_) 3 | #define _SND_UMX_H_ 4 | 5 | #if defined(USE_CODEC_UMX) 6 | 7 | extern snd_codec_t umx_codec; 8 | 9 | #endif /* USE_CODEC_UMX */ 10 | 11 | #endif /* ! _SND_UMX_H_ */ 12 | 13 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SDLname_h_ 3 | #define _SDLname_h_ 4 | 5 | #if defined(__STDC__) || defined(__cplusplus) 6 | #define NeedFunctionPrototypes 1 7 | #endif 8 | 9 | #define SDL_NAME(X) SDL_##X 10 | 11 | #endif /* _SDLname_h_ */ 12 | -------------------------------------------------------------------------------- /MacOSX/codecs/include/mikmod_config.txt: -------------------------------------------------------------------------------- 1 | libmikmod-3.3.9 (mercurial repo as of 2016-08-12) 2 | only the "nosound" driver (drv_nos) is included, all of 3 | the other libmikmod drivers were made "MISSING" drivers. 4 | we only need/register/use drv_nos here and nothing else. 5 | -------------------------------------------------------------------------------- /Windows/codecs/include/mikmod_config.txt: -------------------------------------------------------------------------------- 1 | libmikmod-3.3.9 (mercurial repo as of 2016-08-12) 2 | only the "nosound" driver (drv_nos) is included, all of 3 | the other libmikmod drivers were made "MISSING" drivers. 4 | we only need/register/use drv_nos here and nothing else. 5 | -------------------------------------------------------------------------------- /MacOSX/custom-triplets/x64-osx-10.9.cmake: -------------------------------------------------------------------------------- 1 | set(VCPKG_TARGET_ARCHITECTURE x64) 2 | set(VCPKG_CRT_LINKAGE dynamic) 3 | set(VCPKG_LIBRARY_LINKAGE static) 4 | 5 | set(VCPKG_CMAKE_SYSTEM_NAME Darwin) 6 | set(VCPKG_OSX_ARCHITECTURES x86_64) 7 | 8 | set(VCPKG_OSX_DEPLOYMENT_TARGET 10.9) -------------------------------------------------------------------------------- /Quake/snd_wave.h: -------------------------------------------------------------------------------- 1 | /* WAV streaming music support. */ 2 | 3 | #if !defined(_SND_WAVE_H_) 4 | #define _SND_WAVE_H_ 5 | 6 | #if defined(USE_CODEC_WAVE) 7 | 8 | extern snd_codec_t wav_codec; 9 | 10 | #endif /* USE_CODEC_WAVE */ 11 | 12 | #endif /* ! _SND_WAVE_H_ */ 13 | 14 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SDLname_h_ 3 | #define _SDLname_h_ 4 | 5 | #if defined(__STDC__) || defined(__cplusplus) 6 | #define NeedFunctionPrototypes 1 7 | #endif 8 | 9 | #define SDL_NAME(X) SDL_##X 10 | 11 | #endif /* _SDLname_h_ */ 12 | -------------------------------------------------------------------------------- /Quake/snd_flac.h: -------------------------------------------------------------------------------- 1 | /* fLaC streaming music support. */ 2 | 3 | #if !defined(_SND_FLAC_H_) 4 | #define _SND_FLAC_H_ 1 5 | 6 | #if defined(USE_CODEC_FLAC) 7 | 8 | extern snd_codec_t flac_codec; 9 | 10 | #endif /* USE_CODEC_FLAC */ 11 | 12 | #endif /* ! _SND_FLAC_H_ */ 13 | 14 | -------------------------------------------------------------------------------- /Quake/snd_opus.h: -------------------------------------------------------------------------------- 1 | /* Ogg/Opus streaming music support. */ 2 | 3 | #if !defined(_SND_OPUS_H_) 4 | #define _SND_OPUS_H_ 1 5 | 6 | #if defined(USE_CODEC_OPUS) 7 | 8 | extern snd_codec_t opus_codec; 9 | 10 | #endif /* USE_CODEC_OPUS */ 11 | 12 | #endif /* ! _SND_OPUS_H_ */ 13 | 14 | -------------------------------------------------------------------------------- /Quake/snd_xmp.h: -------------------------------------------------------------------------------- 1 | /* module tracker decoding support using libxmp */ 2 | #if !defined(_SND_XMP_H_) 3 | #define _SND_XMP_H_ 4 | 5 | #if defined(USE_CODEC_XMP) 6 | 7 | extern snd_codec_t xmp_codec; 8 | 9 | #endif /* USE_CODEC_XMP */ 10 | 11 | #endif /* ! _SND_XMP_H_ */ 12 | 13 | -------------------------------------------------------------------------------- /MacOSX/setup-vcpkg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ ! -d "vcpkg" ]; then 4 | git clone --depth 1 https://github.com/microsoft/vcpkg 5 | ./vcpkg/bootstrap-vcpkg.sh 6 | fi 7 | 8 | ./vcpkg/vcpkg install --overlay-triplets=custom-triplets --triplet=x64-osx-10.9 zlib libogg opus opusfile libvorbis 9 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | /* Generated by updaterev.sh, do not edit */ 2 | #ifdef SDL_VENDOR_INFO 3 | #define SDL_REVISION "SDL-release-2.26.3-0-gadf31f6ec (" SDL_VENDOR_INFO ")" 4 | #else 5 | #define SDL_REVISION "SDL-release-2.26.3-0-gadf31f6ec" 6 | #endif 7 | #define SDL_REVISION_NUMBER 0 8 | -------------------------------------------------------------------------------- /Quake/snd_vorbis.h: -------------------------------------------------------------------------------- 1 | /* Ogg/Vorbis streaming music support. */ 2 | 3 | #if !defined(_SND_VORBIS_H_) 4 | #define _SND_VORBIS_H_ 1 5 | 6 | #if defined(USE_CODEC_VORBIS) 7 | 8 | extern snd_codec_t vorbis_codec; 9 | 10 | #endif /* USE_CODEC_VORBIS */ 11 | 12 | #endif /* ! _SND_VORBIS_H_ */ 13 | 14 | -------------------------------------------------------------------------------- /Quake/snd_mikmod.h: -------------------------------------------------------------------------------- 1 | /* module tracker decoding support using libmikmod */ 2 | 3 | #if !defined(_SND_MIKMOD_H_) 4 | #define _SND_MIKMOD_H_ 5 | 6 | #if defined(USE_CODEC_MIKMOD) 7 | 8 | extern snd_codec_t mikmod_codec; 9 | 10 | #endif /* USE_CODEC_MIKMOD */ 11 | 12 | #endif /* ! _SND_MIKMOD_H_ */ 13 | 14 | -------------------------------------------------------------------------------- /Quake/snd_modplug.h: -------------------------------------------------------------------------------- 1 | /* module tracker decoding support using libmodplug */ 2 | #if !defined(_SND_MODPLUG_H_) 3 | #define _SND_MODPLUG_H_ 4 | 5 | #if defined(USE_CODEC_MODPLUG) 6 | 7 | extern snd_codec_t modplug_codec; 8 | 9 | #endif /* USE_CODEC_MODPLUG */ 10 | 11 | #endif /* ! _SND_MODPLUG_H_ */ 12 | 13 | -------------------------------------------------------------------------------- /Quake/snd_mp3.h: -------------------------------------------------------------------------------- 1 | /* MP3 decoding support using libmad or libmpg123. */ 2 | 3 | #if !defined(_SND_MP3_H_) 4 | #define _SND_MP3_H_ 5 | 6 | #if defined(USE_CODEC_MP3) 7 | 8 | extern snd_codec_t mp3_codec; 9 | int mp3_skiptags(snd_stream_t *); 10 | 11 | #endif /* USE_CODEC_MP3 */ 12 | 13 | #endif /* ! _SND_MP3_H_ */ 14 | 15 | -------------------------------------------------------------------------------- /MacOSX/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | CFBundleName = "QuakeSpasm-Spiked"; 4 | CFBundleShortVersionString = "0.96.0"; 5 | CFBundleGetInfoString = "QuakeSpasm-Spiked 0.96.0, Copyright 2023 by the QuakeSpasm team."; 6 | NSHumanReadableCopyright = "Copyright 2023 by the QuakeSpasm team."; 7 | -------------------------------------------------------------------------------- /Windows/SDL/watcom/makefile: -------------------------------------------------------------------------------- 1 | # Open Watcom makefile to generate SDL.lib 2 | # def2lbc.awk (from OW source tree) requires 'awk' 3 | # run 'wmake' 4 | 5 | all: SDL.lib 6 | 7 | SDL.exp: SDL.def def2lbc.awk 8 | awk -v cpu=386 -f def2lbc.awk SDL.def > SDL.exp 9 | 10 | SDL.lib: SDL.exp 11 | wlib -q -b -n -c -pa -s -t -zld -ii -io SDL.lib @SDL.exp 12 | -------------------------------------------------------------------------------- /Windows/SDL2/watcom/makefile: -------------------------------------------------------------------------------- 1 | # Open Watcom makefile to generate SDL2.lib 2 | # def2lbc.awk (from OW source tree) requires 'awk' 3 | # run 'wmake' 4 | 5 | all: SDL2.lib 6 | 7 | SDL2.exp: SDL2.def def2lbc.awk 8 | awk -v cpu=386 -f def2lbc.awk SDL2.def > SDL2.exp 9 | 10 | SDL2.lib: SDL2.exp 11 | wlib -q -b -n -c -pa -s -t -zld -ii -io SDL2.lib @SDL2.exp 12 | -------------------------------------------------------------------------------- /MacOSX/codecs/include/mpg123_config.txt: -------------------------------------------------------------------------------- 1 | mpg123-1.22.4, configured using: 2 | --disable-modules --disable-debug --disable-fifo --disable-ipv6 --disable-network --disable-messages --disable-lfs-alias --with-audio=dummy 3 | edited src/libmpg123/mpg123lib_intern.h and changed macros 4 | NOQUIET, VERBOSE* and PVERB() to be 0, in order to disable 5 | some debug messages from the library. 6 | -------------------------------------------------------------------------------- /Windows/codecs/include/mpg123_config.txt: -------------------------------------------------------------------------------- 1 | mpg123-1.22.4, configured using: 2 | --disable-modules --disable-debug --disable-fifo --disable-ipv6 --disable-network --disable-messages --disable-lfs-alias --with-audio=dummy 3 | edited src/libmpg123/mpg123lib_intern.h and changed macros 4 | NOQUIET, VERBOSE* and PVERB() to be 0, in order to disable 5 | some debug messages from the library. 6 | -------------------------------------------------------------------------------- /Quake/strl_fn.h: -------------------------------------------------------------------------------- 1 | /* header file for BSD strlcat and strlcpy */ 2 | 3 | #ifndef __STRLFUNCS_H 4 | #define __STRLFUNCS_H 5 | 6 | /* use our own copies of strlcpy and strlcat taken from OpenBSD */ 7 | extern size_t q_strlcpy (char *dst, const char *src, size_t size); 8 | extern size_t q_strlcat (char *dst, const char *src, size_t size); 9 | 10 | #endif /* __STRLFUNCS_H */ 11 | 12 | -------------------------------------------------------------------------------- /Misc/qs_pak/Makefile: -------------------------------------------------------------------------------- 1 | INPUT := gfx/conback.lmp \ 2 | maps/e1m1@c49d.ent \ 3 | maps/e1m2@0caa.ent \ 4 | maps/e1m4@958e.ent \ 5 | maps/e2m2@fbfe.ent \ 6 | maps/e2m3@237a.ent \ 7 | maps/e2m7@10a8.ent \ 8 | default.cfg 9 | 10 | OUTPUT := quakespasm.pak 11 | 12 | $(OUTPUT): $(INPUT) 13 | ./mkpak.sh $(INPUT) > $(OUTPUT) 14 | 15 | .PHONY: clean 16 | clean: 17 | rm -f $(OUTPUT) 18 | 19 | -------------------------------------------------------------------------------- /Quake/build_cross_haiku64-sdl2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Change this script to meet your needs and/or environment. 4 | 5 | TARGET=x86_64-unknown-haiku 6 | 7 | MAKE_CMD=make 8 | 9 | CC="$TARGET-gcc" 10 | AS="$TARGET-as" 11 | RANLIB="$TARGET-ranlib" 12 | AR="$TARGET-ar" 13 | STRIP="$TARGET-strip" 14 | export CC AS AR RANLIB STRIP 15 | 16 | exec $MAKE_CMD HAIKU_OS=1 LINK_M=0 USE_SDL2=1 CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR STRIP=$STRIP -f Makefile $* 17 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/devel-lite/SDLMain.h: -------------------------------------------------------------------------------- 1 | /* SDLMain.m - main entry point for our Cocoa-ized SDL app 2 | Initial Version: Darrell Walisser 3 | Non-NIB-Code & other changes: Max Horn 4 | 5 | Feel free to customize this file to suit your needs 6 | */ 7 | 8 | #ifndef _SDLMain_h_ 9 | #define _SDLMain_h_ 10 | 11 | #import 12 | 13 | @interface SDLMain : NSObject 14 | @end 15 | 16 | #endif /* _SDLMain_h_ */ 17 | -------------------------------------------------------------------------------- /MacOSX/SDLMain.h: -------------------------------------------------------------------------------- 1 | /* SDLMain.m - main entry point for our Cocoa-ized SDL app 2 | Initial Version: Darrell Walisser 3 | Non-NIB-Code & other changes: Max Horn 4 | 5 | Feel free to customize this file to suit your needs 6 | */ 7 | 8 | #import 9 | 10 | extern int gArgc; 11 | extern char **gArgv; 12 | extern BOOL gFinderLaunch; 13 | extern BOOL gCalledAppMainline; 14 | 15 | @interface SDLMain : NSObject 16 | @end 17 | -------------------------------------------------------------------------------- /Quake/build_cross_haiku32-sdl2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Change this script to meet your needs and/or environment. 4 | 5 | TARGET=i586-pc-haiku 6 | 7 | MAKE_CMD=make 8 | 9 | CC="$TARGET-gcc" 10 | AS="$TARGET-as" 11 | RANLIB="$TARGET-ranlib" 12 | AR="$TARGET-ar" 13 | STRIP="$TARGET-strip" 14 | LDFLAGS=-L/usr/lib32 # hack 15 | export CC AS AR RANLIB STRIP LDFLAGS 16 | 17 | exec $MAKE_CMD HAIKU_OS=1 LINK_M=0 USE_SDL2=1 LDFLAGS=$LDFLAGS CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR STRIP=$STRIP -f Makefile $* 18 | -------------------------------------------------------------------------------- /Windows/SDL2/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games 6 | and emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | https://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /Windows/SDL/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library 5 | designed to make it easy to write multi-media software, such as games and 6 | emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | http://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the GNU LGPL license: 12 | http://www.gnu.org/copyleft/lesser.html 13 | 14 | -------------------------------------------------------------------------------- /Quake/build_cross_win64.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Change this script to meet your needs and/or environment. 4 | 5 | TARGET=x86_64-w64-mingw32 6 | PREFIX=/opt/cross_win64 7 | 8 | PATH="$PREFIX/bin:$PATH" 9 | export PATH 10 | 11 | MAKE_CMD=make 12 | 13 | CC="$TARGET-gcc" 14 | AS="$TARGET-as" 15 | RANLIB="$TARGET-ranlib" 16 | AR="$TARGET-ar" 17 | WINDRES="$TARGET-windres" 18 | STRIP="$TARGET-strip" 19 | export PATH CC AS AR RANLIB WINDRES STRIP 20 | 21 | exec $MAKE_CMD CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w64 $* 22 | -------------------------------------------------------------------------------- /.github/workflows/build-macos.yml: -------------------------------------------------------------------------------- 1 | name: macOS CI 2 | 3 | on: 4 | push 5 | 6 | jobs: 7 | build: 8 | name: Build macOS 9 | runs-on: macos-12 10 | strategy: 11 | fail-fast: false 12 | 13 | steps: 14 | - uses: actions/checkout@v4 15 | 16 | - name: macOS Build 17 | run: | 18 | cd MacOSX 19 | ./build-macos.sh 20 | 21 | - name: Upload macOS artifact 22 | uses: actions/upload-artifact@v3 23 | with: 24 | name: macos 25 | path: | 26 | MacOSX/build/Release/*.zip 27 | -------------------------------------------------------------------------------- /Quake/build_cross_win64-sdl2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Change this script to meet your needs and/or environment. 4 | 5 | TARGET=x86_64-w64-mingw32 6 | PREFIX=/opt/cross_win64 7 | 8 | PATH="$PREFIX/bin:$PATH" 9 | export PATH 10 | 11 | MAKE_CMD=make 12 | 13 | CC="$TARGET-gcc" 14 | AS="$TARGET-as" 15 | RANLIB="$TARGET-ranlib" 16 | AR="$TARGET-ar" 17 | WINDRES="$TARGET-windres" 18 | STRIP="$TARGET-strip" 19 | export PATH CC AS AR RANLIB WINDRES STRIP 20 | 21 | exec $MAKE_CMD USE_SDL2=1 CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w64 $* 22 | -------------------------------------------------------------------------------- /Windows/SDL2/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL issue tracker, here: 3 | 4 | https://github.com/libsdl-org/SDL/issues 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help at the SDL forums/mailing list: 11 | 12 | https://discourse.libsdl.org/ 13 | 14 | Bug reports are welcome here, but we really appreciate if you use the issue 15 | tracker, as bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /Quake/build_cross_win32-sdl2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Change this script to meet your needs and/or environment. 4 | 5 | TARGET=i686-w64-mingw32 6 | PREFIX=/opt/cross_win32 7 | 8 | PATH="$PREFIX/bin:$PATH" 9 | export PATH 10 | 11 | MAKE_CMD=make 12 | 13 | CC="$TARGET-gcc" 14 | AS="$TARGET-as" 15 | RANLIB="$TARGET-ranlib" 16 | AR="$TARGET-ar" 17 | WINDRES="$TARGET-windres" 18 | STRIP="$TARGET-strip" 19 | export PATH CC AS AR RANLIB WINDRES STRIP 20 | 21 | exec $MAKE_CMD USE_SDL2=1 WINSOCK2=1 CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w32 $* 22 | -------------------------------------------------------------------------------- /Windows/SDL/BUGS: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | http://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | 11 | You may also find help at the SDL mailing list. Subscription information: 12 | 13 | http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org 14 | 15 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 16 | bugs discussed on the mailing list may be forgotten or missed. 17 | 18 | 19 | -------------------------------------------------------------------------------- /Quake/build_cross_win32.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Change this script to meet your needs and/or environment. 4 | 5 | #TARGET=i686-w64-mingw32 6 | TARGET=i686-pc-mingw32 7 | #PREFIX=/opt/cross_win32 8 | PREFIX=/usr/local/cross-win32 9 | 10 | PATH="$PREFIX/bin:$PATH" 11 | export PATH 12 | 13 | MAKE_CMD=make 14 | 15 | CC="$TARGET-gcc" 16 | AS="$TARGET-as" 17 | RANLIB="$TARGET-ranlib" 18 | AR="$TARGET-ar" 19 | WINDRES="$TARGET-windres" 20 | STRIP="$TARGET-strip" 21 | export PATH CC AS AR RANLIB WINDRES STRIP 22 | 23 | exec $MAKE_CMD CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w32 $* 24 | -------------------------------------------------------------------------------- /MacOSX/build-macos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./setup-vcpkg.sh 4 | 5 | (xcodebuild -project QuakeSpasm.xcodeproj -target QuakeSpasm-Spiked-SDL2) || exit $? 6 | 7 | cat < build/Release/Quakespasm-Spiked-Revision.txt 8 | Git URL: $(git config --get remote.origin.url) 9 | Git Revision: $(git rev-parse HEAD) 10 | Git Date: $(git show --no-patch --no-notes --pretty='%ai' HEAD) 11 | Compile Date: $(date) 12 | EOF 13 | 14 | # zip the files in `build/Release` to create the final archive for distribution 15 | cd build/Release 16 | rm Quakespasm-Spiked-macos.zip 17 | zip --symlinks --recurse-paths Quakespasm-Spiked-macos.zip * 18 | -------------------------------------------------------------------------------- /Windows/SDL2/README.md: -------------------------------------------------------------------------------- 1 | 2 | # Simple DirectMedia Layer (SDL) Version 2.0 3 | 4 | https://www.libsdl.org/ 5 | 6 | Simple DirectMedia Layer is a cross-platform development library designed 7 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 8 | hardware via OpenGL and Direct3D. It is used by video playback software, 9 | emulators, and popular games including Valve's award winning catalog 10 | and many Humble Bundle games. 11 | 12 | More extensive documentation is available in the docs directory, starting 13 | with README.md 14 | 15 | Enjoy! 16 | 17 | Sam Lantinga (slouken@libsdl.org) 18 | -------------------------------------------------------------------------------- /Windows/codecs/include/ogg/config_types.h: -------------------------------------------------------------------------------- 1 | #ifndef __CONFIG_TYPES_H__ 2 | #define __CONFIG_TYPES_H__ 3 | 4 | /* these are filled in by configure */ 5 | #define INCLUDE_INTTYPES_H 0 6 | #define INCLUDE_STDINT_H 0 7 | #define INCLUDE_SYS_TYPES_H 1 8 | 9 | #if INCLUDE_INTTYPES_H 10 | # include 11 | #endif 12 | #if INCLUDE_STDINT_H 13 | # include 14 | #endif 15 | #if INCLUDE_SYS_TYPES_H 16 | # include 17 | #endif 18 | 19 | typedef short ogg_int16_t; 20 | typedef unsigned short ogg_uint16_t; 21 | typedef int ogg_int32_t; 22 | typedef unsigned int ogg_uint32_t; 23 | typedef long long ogg_int64_t; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /.github/workflows/build-linux.yml: -------------------------------------------------------------------------------- 1 | name: Linux CI 2 | 3 | on: 4 | push 5 | 6 | jobs: 7 | build-linux: 8 | name: Build Linux 9 | runs-on: ubuntu-22.04 10 | strategy: 11 | fail-fast: false 12 | matrix: 13 | compiler: ["clang", "gcc"] 14 | 15 | steps: 16 | - uses: actions/checkout@v4 17 | 18 | - name: Install Dependencies 19 | run: sudo apt update && sudo apt install libmad0-dev libopusfile-dev libsdl2-dev libvorbis-dev 20 | 21 | - name: Build with ${{ matrix.compiler }} 22 | run: | 23 | export MAKEFLAGS=--jobs=3\ --keep-going 24 | make --jobs=3 --keep-going --directory=Quake CC=${{ matrix.compiler }} USE_SDL2=1 25 | -------------------------------------------------------------------------------- /MacOSX/Launcher-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.Launcher 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* 5 | ** Copyright 2017-2020 The Khronos Group Inc. 6 | ** SPDX-License-Identifier: Apache-2.0 7 | */ 8 | 9 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 10 | * 11 | * Adopters may modify khrplatform.h and this file to suit their platform. 12 | * Please contribute modifications back to Khronos as pull requests on the 13 | * public github repository: 14 | * https://github.com/KhronosGroup/OpenGL-Registry 15 | */ 16 | 17 | /*#include */ 18 | 19 | #ifndef GL_APICALL 20 | #define GL_APICALL KHRONOS_APICALL 21 | #endif 22 | 23 | #ifndef GL_APIENTRY 24 | #define GL_APIENTRY KHRONOS_APIENTRY 25 | #endif 26 | 27 | #endif /* __gl2platform_h_ */ 28 | -------------------------------------------------------------------------------- /.github/workflows/build-mingw.yml: -------------------------------------------------------------------------------- 1 | name: MinGW CI 2 | 3 | on: 4 | push 5 | 6 | jobs: 7 | build-linux: 8 | name: Build MinGW 9 | runs-on: ubuntu-22.04 10 | strategy: 11 | fail-fast: false 12 | matrix: 13 | config: 14 | - target: win32 15 | package: i686-win32 16 | 17 | - target: win64 18 | package: x86-64 19 | 20 | steps: 21 | - uses: actions/checkout@v4 22 | 23 | - name: Install Dependencies 24 | run: sudo apt update && sudo apt install gcc-mingw-w64-${{ matrix.config.package }} libz-mingw-w64-dev 25 | 26 | - name: Build with MinGW ${{ matrix.config.target }} 27 | run: | 28 | export MAKEFLAGS=--jobs=3\ --keep-going 29 | cd Quake && ./build_cross_${{ matrix.config.target }}-sdl2.sh 30 | -------------------------------------------------------------------------------- /Quake/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef _QUAKE_RESOURCE_H 2 | #define _QUAKE_RESOURCE_H 3 | 4 | //{{NO_DEPENDENCIES}} 5 | // Microsoft Developer Studio generated include file. 6 | // Used by winquake.rc 7 | // 8 | #define IDS_STRING1 1 9 | #define IDI_ICON2 1 10 | #define IDD_DIALOG1 108 11 | #define IDD_PROGRESS 109 12 | #define IDC_PROGRESS 1000 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 113 19 | #define _APS_NEXT_COMMAND_VALUE 40001 20 | #define _APS_NEXT_CONTROL_VALUE 1004 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | 25 | #endif /* _QUAKE_RESOURCE_H */ 26 | 27 | -------------------------------------------------------------------------------- /MacOSX/Build_Instructions.md: -------------------------------------------------------------------------------- 1 | # macOS Build 2 | 3 | Tested on macOS 10.15.7, Xcode 12.4, x86_64. 4 | 5 | 1. Prerequisites: 6 | 7 | - vcpkg requires `brew install pkg-config` 8 | 9 | 2. Run `setup-vcpkg.sh` (fetches + builds vorbis, opus, zlib from vcpkg, as static libraries.) 10 | 11 | The Opus .dylibs included with QuakeSpasm lack the encoder, which is needed by `snd_voip.c`, necessitating building it from source. 12 | 13 | 3. For a release build, run `xcodebuild -project QuakeSpasm.xcodeproj -target QuakeSpasm-Spiked-SDL2` 14 | 15 | 16 | ## Limitations 17 | 18 | - SDL 1.2 is no longer supported 19 | - Some code assumes SDL 2.0+ (e.g. `VID_UpdateCursor`) 20 | - Only x86_64 is currently supported 21 | - arm64 should be possible in theory, just needs someone with an M1 mac to implement and test it. 22 | - Minimum macOS version raised to 10.9; PowerPC and i386 dropped 23 | - This is the lowest version I can target with macOS 10.15.7, Xcode 12.4 24 | -------------------------------------------------------------------------------- /MacOSX/SDLApplication.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import 22 | 23 | #if !defined(USE_SDL2) 24 | @interface SDLApplication : NSApplication { 25 | 26 | } 27 | 28 | @end 29 | #endif 30 | -------------------------------------------------------------------------------- /Windows/SDL2/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (C) 1997-2022 Sam Lantinga 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 2. Altered source versions must be plainly marked as such, and must not be 16 | misrepresented as being the original software. 17 | 3. This notice may not be removed or altered from any source distribution. 18 | 19 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | -------------------------------------------------------------------------------- /Quake/progdefs.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __PROGDEFS_H 23 | #define __PROGDEFS_H 24 | 25 | #include "progdefs.q1" 26 | 27 | #endif /* __PROGDEFS_H */ 28 | 29 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Resources/License.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /Quake/detect.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # script from loki_setup tools 4 | 5 | DetectARCH() 6 | { 7 | status=1 8 | case `uname -m` in 9 | amd64 | x86_64) 10 | echo "x86_64" 11 | status=0;; 12 | i?86 | i86*) 13 | echo "x86" 14 | status=0;; 15 | 90*/*) 16 | echo "hppa" 17 | status=0;; 18 | *) 19 | case `uname -s` in 20 | IRIX*) 21 | echo "mips" 22 | status=0;; 23 | AIX*) 24 | echo "ppc" 25 | status=0;; 26 | *) 27 | arch=`uname -p 2> /dev/null || uname -m` 28 | if test "$arch" = powerpc; then 29 | echo "ppc" 30 | else 31 | echo $arch 32 | fi 33 | status=0;; 34 | esac 35 | esac 36 | return $status 37 | } 38 | 39 | DetectOS() 40 | { 41 | os=`uname -s` 42 | if test "$os" = "OpenUNIX"; then 43 | echo SCO_SV 44 | else 45 | echo $os 46 | fi 47 | return 0 48 | } 49 | 50 | if test "$1" = "os"; then 51 | result=`DetectOS` 52 | elif test "$1" = "arch"; then 53 | result=`DetectARCH` 54 | else 55 | result="OS: `DetectOS`, Arch: `DetectARCH`" 56 | fi 57 | 58 | status="$?" 59 | echo $result 60 | 61 | exit $status 62 | 63 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_getenv.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_getenv.h 24 | * @deprecated Use SDL_stdinc.h instead 25 | */ 26 | 27 | /* DEPRECATED */ 28 | #include "SDL_stdinc.h" 29 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_types.h 24 | * @deprecated Use SDL_stdinc.h instead. 25 | */ 26 | 27 | /* DEPRECATED */ 28 | #include "SDL_stdinc.h" 29 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_byteorder.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_byteorder.h 25 | * @deprecated Use SDL_endian.h instead 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_endian.h" 30 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_getenv.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_getenv.h 24 | * @deprecated Use SDL_stdinc.h instead 25 | */ 26 | 27 | /* DEPRECATED */ 28 | #include "SDL_stdinc.h" 29 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_types.h 24 | * @deprecated Use SDL_stdinc.h instead. 25 | */ 26 | 27 | /* DEPRECATED */ 28 | #include "SDL_stdinc.h" 29 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_byteorder.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_byteorder.h 25 | * @deprecated Use SDL_endian.h instead 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_endian.h" 30 | -------------------------------------------------------------------------------- /MacOSX/ScreenInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import 22 | 23 | 24 | @interface ScreenInfo : NSObject { 25 | int width; 26 | int height; 27 | int bpp; 28 | NSString *description; 29 | } 30 | 31 | - (id)initWithWidth:(int)w height:(int)h bpp:(int)b; 32 | 33 | - (int)width; 34 | - (int)height; 35 | - (int)bpp; 36 | - (NSString *)description; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /MacOSX/QuakeArgument.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import 22 | 23 | 24 | @interface QuakeArgument : NSObject { 25 | NSString *name; 26 | NSString *value; 27 | } 28 | 29 | - (id)initWithArgument:(NSString *)n; 30 | - (id)initWithArgument:(NSString *)n andValue:(NSString *)v; 31 | 32 | - (NSString *)name; 33 | - (NSString *)value; 34 | 35 | - (BOOL)hasValue; 36 | @end 37 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /Quake/build_cross_osx-sdl2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -f quakespasm.x86 quakespasm.x86_64 QuakeSpasm 4 | make clean 5 | 6 | OLDPATH=$PATH 7 | MAKE_CMD=make 8 | 9 | OSXBUILD=1 10 | export OSXBUILD 11 | STRIP=/bin/true 12 | export STRIP 13 | 14 | # x86 15 | PATH=/opt/cross_osx-x86.5/usr/bin:$OLDPATH 16 | CC=i686-apple-darwin9-gcc 17 | AS=i686-apple-darwin9-as 18 | AR=i686-apple-darwin9-ar 19 | RANLIB=i686-apple-darwin9-ranlib 20 | LIPO=i686-apple-darwin9-lipo 21 | export PATH CC AS AR RANLIB LIPO 22 | $MAKE_CMD MACH_TYPE=x86 USE_SDL2=1 -f Makefile.darwin $* || exit 1 23 | i686-apple-darwin9-strip -S quakespasm || exit 1 24 | mv quakespasm quakespasm.x86 || exit 1 25 | $MAKE_CMD clean 26 | 27 | # x86_64 28 | PATH=/opt/cross_osx-x86_64/usr/bin:$OLDPATH 29 | CC=x86_64-apple-darwin9-gcc 30 | AS=x86_64-apple-darwin9-as 31 | AR=x86_64-apple-darwin9-ar 32 | RANLIB=x86_64-apple-darwin9-ranlib 33 | LIPO=x86_64-apple-darwin9-lipo 34 | export PATH CC AS AR RANLIB LIPO 35 | $MAKE_CMD MACH_TYPE=x86_64 USE_SDL2=1 -f Makefile.darwin $* || exit 1 36 | x86_64-apple-darwin9-strip -S quakespasm || exit 1 37 | mv quakespasm quakespasm.x86_64 || exit 1 38 | $MAKE_CMD clean 39 | 40 | $LIPO -create -o QuakeSpasm quakespasm.x86 quakespasm.x86_64 || exit 1 41 | 42 | -------------------------------------------------------------------------------- /Quake/cdaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __CDAUDIO_H 23 | #define __CDAUDIO_H 24 | 25 | int CDAudio_Init (void); 26 | int CDAudio_Play (byte track, qboolean looping); 27 | /* returns 0 for success, -1 for failure. */ 28 | void CDAudio_Stop (void); 29 | void CDAudio_Pause (void); 30 | void CDAudio_Resume (void); 31 | void CDAudio_Shutdown (void); 32 | void CDAudio_Update (void); 33 | 34 | #endif /* __CDAUDIO_H */ 35 | 36 | -------------------------------------------------------------------------------- /Misc/fs_search_order.patch: -------------------------------------------------------------------------------- 1 | allow plain files to override files inside a PAK file -- Sander van Dijk. 2 | 3 | diff --git a/Quake/common.c b/Quake/common.c 4 | index eff4c30..1478d77 100644 5 | --- a/Quake/common.c 6 | +++ b/Quake/common.c 7 | @@ -2030,13 +2030,6 @@ static void COM_AddGameDirectory (const char *base, const char *dir) 8 | else path_id = 1U; 9 | 10 | _add_path: 11 | - // add the directory to the search path 12 | - search = (searchpath_t *) Z_Malloc(sizeof(searchpath_t)); 13 | - search->path_id = path_id; 14 | - q_strlcpy (search->filename, com_gamedir, sizeof(search->filename)); 15 | - search->next = com_searchpaths; 16 | - com_searchpaths = search; 17 | - 18 | // add any pak files in the format pak0.pak pak1.pak, ... 19 | for (i = 0; ; i++) 20 | { 21 | @@ -2068,6 +2061,13 @@ _add_path: 22 | if (!pak) break; 23 | } 24 | 25 | + // add the directory to the search path -- moved here from before the pakX.pak loop -- svdijk. 26 | + search = (searchpath_t *) Z_Malloc(sizeof(searchpath_t)); 27 | + search->path_id = path_id; 28 | + q_strlcpy (search->filename, com_gamedir, sizeof(search->filename)); 29 | + search->next = com_searchpaths; 30 | + com_searchpaths = search; 31 | + 32 | if (!been_here && host_parms->userdir != host_parms->basedir) 33 | { 34 | been_here = true; 35 | 36 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDLname_h_ 23 | #define SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /Quake/cd_null.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cd_null.c 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or (at 7 | * your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | * 13 | * See the GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License along 16 | * with this program; if not, write to the Free Software Foundation, Inc., 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | 21 | #include "quakedef.h" 22 | 23 | int CDAudio_Play(byte track, qboolean looping) 24 | { 25 | return -1; 26 | } 27 | 28 | void CDAudio_Stop(void) 29 | { 30 | } 31 | 32 | void CDAudio_Pause(void) 33 | { 34 | } 35 | 36 | void CDAudio_Resume(void) 37 | { 38 | } 39 | 40 | void CDAudio_Update(void) 41 | { 42 | } 43 | 44 | int CDAudio_Init(void) 45 | { 46 | Con_Printf("CDAudio disabled at compile time\n"); 47 | return -1; 48 | } 49 | 50 | void CDAudio_Shutdown(void) 51 | { 52 | } 53 | 54 | -------------------------------------------------------------------------------- /Windows/SDL2/bin/sdl2-config: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix=/opt/cross_sdl2 4 | exec_prefix=${prefix} 5 | exec_prefix_set=no 6 | lib_suffix= 7 | 8 | usage="\ 9 | Usage: $0 [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--lib-suffix=SUFFIX] [--libs]" 10 | 11 | if test $# -eq 0; then 12 | echo "${usage}" 1>&2 13 | exit 1 14 | fi 15 | 16 | while test $# -gt 0; do 17 | case "$1" in 18 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 19 | *) optarg= ;; 20 | esac 21 | 22 | case $1 in 23 | --prefix=*) 24 | prefix=$optarg 25 | if test $exec_prefix_set = no ; then 26 | exec_prefix=$optarg 27 | fi 28 | ;; 29 | --prefix) 30 | echo $prefix 31 | ;; 32 | --exec-prefix=*) 33 | exec_prefix=$optarg 34 | exec_prefix_set=yes 35 | ;; 36 | --exec-prefix) 37 | echo $exec_prefix 38 | ;; 39 | --lib-suffix=*) 40 | lib_suffix=$optarg 41 | ;; 42 | --version) 43 | echo 2.26.3 44 | ;; 45 | --cflags) 46 | echo -I${prefix}/include -Dmain=SDL_main 47 | ;; 48 | --libs) 49 | echo -L${exec_prefix}/lib${lib_suffix} -lmingw32 -lSDL2main -lSDL2 -mwindows 50 | ;; 51 | *) 52 | echo "${usage}" 1>&2 53 | exit 1 54 | ;; 55 | esac 56 | shift 57 | done 58 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDLname_h_ 23 | #define SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /Windows/SDL/watcom/def2lbc.awk: -------------------------------------------------------------------------------- 1 | # get uppercased module name 2 | /^[ \t]*LIBRARY/ { ModuleName = toupper( $2 ); next } 3 | 4 | # skip uninteresting lines 5 | /^[ \t]*(EXPORTS|;)/ { next } 6 | 7 | # NB: Calling conventions essentially do not exist on non-x86 platforms, 8 | # we simply strip the decoration unless 'cpu' equals 386. 9 | 10 | # process fastcall symbols "@symbol@size" 11 | /^[ \t]*@[A-Za-z0-9_]+@[0-9]+/ { 12 | split( $1, parts, "@" ) # split the import name on the at signs 13 | if( cpu == "386" ) 14 | printf( "++'%s'.'%s'..'%s'\n", $1, ModuleName, parts[2] ) 15 | else 16 | printf( "++'%s'.'%s'\n", parts[2], ModuleName ) 17 | next 18 | } 19 | 20 | # process stdcall symbols using "symbol@size" format 21 | /^[ \t]*[A-Za-z0-9_]+@[0-9]+/ { 22 | split( $1, parts, "@" ) # split the import name on the at sign 23 | if( cpu == "386" ) 24 | printf( "++'_%s'.'%s'..'%s'\n", $1, ModuleName, parts[1] ) 25 | else 26 | printf( "++'%s'.'%s'\n", parts[1], ModuleName ) 27 | next 28 | } 29 | 30 | # process cdecl symbols using plain "symbol" format 31 | /^[ \t]*[A-Za-z0-9_]+/ { 32 | split( $1, parts, "@" ) # split the import name on the at sign 33 | if( cpu == "386" ) 34 | printf( "++'_%s'.'%s'..'%s'\n", $1, ModuleName, $1 ) 35 | else 36 | printf( "++'%s'.'%s'\n", parts[1], ModuleName ) 37 | next 38 | } 39 | -------------------------------------------------------------------------------- /Windows/SDL2/watcom/def2lbc.awk: -------------------------------------------------------------------------------- 1 | # get uppercased module name 2 | /^[ \t]*LIBRARY/ { ModuleName = toupper( $2 ); next } 3 | 4 | # skip uninteresting lines 5 | /^[ \t]*(EXPORTS|;)/ { next } 6 | 7 | # NB: Calling conventions essentially do not exist on non-x86 platforms, 8 | # we simply strip the decoration unless 'cpu' equals 386. 9 | 10 | # process fastcall symbols "@symbol@size" 11 | /^[ \t]*@[A-Za-z0-9_]+@[0-9]+/ { 12 | split( $1, parts, "@" ) # split the import name on the at signs 13 | if( cpu == "386" ) 14 | printf( "++'%s'.'%s'..'%s'\n", $1, ModuleName, parts[2] ) 15 | else 16 | printf( "++'%s'.'%s'\n", parts[2], ModuleName ) 17 | next 18 | } 19 | 20 | # process stdcall symbols using "symbol@size" format 21 | /^[ \t]*[A-Za-z0-9_]+@[0-9]+/ { 22 | split( $1, parts, "@" ) # split the import name on the at sign 23 | if( cpu == "386" ) 24 | printf( "++'_%s'.'%s'..'%s'\n", $1, ModuleName, parts[1] ) 25 | else 26 | printf( "++'%s'.'%s'\n", parts[1], ModuleName ) 27 | next 28 | } 29 | 30 | # process cdecl symbols using plain "symbol" format 31 | /^[ \t]*[A-Za-z0-9_]+/ { 32 | split( $1, parts, "@" ) # split the import name on the at sign 33 | if( cpu == "386" ) 34 | printf( "++'_%s'.'%s'..'%s'\n", $1, ModuleName, $1 ) 35 | else 36 | printf( "++'%s'.'%s'\n", parts[1], ModuleName ) 37 | next 38 | } 39 | -------------------------------------------------------------------------------- /Windows/SDL/bin/sdl-config: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix=/opt/cross_sdl12 4 | exec_prefix=${prefix} 5 | exec_prefix_set=no 6 | lib_suffix= 7 | 8 | usage="\ 9 | Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--lib-suffix=SUFFIX] [--version] [--cflags] [--libs]" 10 | 11 | if test $# -eq 0; then 12 | echo "${usage}" 1>&2 13 | exit 1 14 | fi 15 | 16 | while test $# -gt 0; do 17 | case "$1" in 18 | -*=*) optarg=`echo "$1" | LC_ALL="C" sed 's/[-_a-zA-Z0-9]*=//'` ;; 19 | *) optarg= ;; 20 | esac 21 | 22 | case $1 in 23 | --prefix=*) 24 | prefix=$optarg 25 | if test $exec_prefix_set = no ; then 26 | exec_prefix=$optarg 27 | fi 28 | ;; 29 | --prefix) 30 | echo $prefix 31 | ;; 32 | --exec-prefix=*) 33 | exec_prefix=$optarg 34 | exec_prefix_set=yes 35 | ;; 36 | --exec-prefix) 37 | echo $exec_prefix 38 | ;; 39 | --lib-suffix=*) 40 | lib_suffix=$optarg 41 | ;; 42 | --version) 43 | echo 1.2.16 44 | ;; 45 | --cflags) 46 | echo -I${prefix}/include -Dmain=SDL_main 47 | ;; 48 | --libs) 49 | echo -L${exec_prefix}/lib${lib_suffix} -lmingw32 -lSDLmain -lSDL -mwindows 50 | ;; 51 | *) 52 | echo "${usage}" 1>&2 53 | exit 1 54 | ;; 55 | esac 56 | shift 57 | done 58 | 59 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Resources/ReadMe.txt: -------------------------------------------------------------------------------- 1 | The Simple DirectMedia Layer (SDL for short) is a cross-platform 2 | library designed to make it easy to write multi-media software, 3 | such as games and emulators. 4 | 5 | The Simple DirectMedia Layer library source code is available from: 6 | http://www.libsdl.org/ 7 | 8 | This library is distributed under the terms of the zlib license: 9 | http://zlib.net/zlib_license.html 10 | 11 | 12 | This packages contains the SDL framework for OS X. 13 | Conforming with Apple guidelines, this framework 14 | contains both the SDL runtime component and development header files. 15 | 16 | 17 | To Install: 18 | Copy the SDL2.framework to /Library/Frameworks 19 | 20 | You may alternatively install it in /Library/Frameworks 21 | if your access privileges are not high enough. 22 | 23 | 24 | Additional References: 25 | 26 | - Screencast tutorials for getting started with OpenSceneGraph/Mac OS X are 27 | available at: 28 | http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/MacOSXTips 29 | Though these are OpenSceneGraph centric, the same exact concepts apply to 30 | SDL, thus the videos are recommended for everybody getting started with 31 | developing on Mac OS X. (You can skim over the PlugIns stuff since SDL 32 | doesn't have any PlugIns to worry about.) 33 | -------------------------------------------------------------------------------- /MacOSX/QuakeArguments.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import 22 | #import "QuakeArgument.h" 23 | 24 | 25 | @interface QuakeArguments : NSObject { 26 | NSMutableArray *quakeArgs; 27 | } 28 | 29 | - (id)initWithArguments:(char **)argv count:(int)argc; 30 | - (void)parseArguments:(NSString *)args; 31 | 32 | - (void)addArgument:(NSString *)arg; 33 | - (void)addArgument:(NSString *)arg withValue:(NSString *)value; 34 | 35 | - (QuakeArgument *)argument:(NSString *)name; 36 | - (void)removeArgument:(NSString *)arg; 37 | 38 | - (int)count; 39 | - (void)setArguments:(char **)args; 40 | @end 41 | -------------------------------------------------------------------------------- /Quake/view.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef _QUAKE_VIEW_H 24 | #define _QUAKE_VIEW_H 25 | 26 | extern cvar_t vid_gamma; 27 | extern cvar_t vid_contrast; 28 | 29 | extern float v_blend[4]; 30 | 31 | void V_Init (void); 32 | void V_RenderView (void); 33 | void V_CalcBlend (void); 34 | void V_UpdateBlend (void); 35 | float V_CalcRoll (vec3_t angles, vec3_t velocity); 36 | void V_RestoreAngles (void); 37 | //void V_UpdatePalette (void); //johnfitz 38 | 39 | #endif /* _QUAKE_VIEW_H */ 40 | 41 | -------------------------------------------------------------------------------- /MacOSX/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | QuakeSpasm 11 | CFBundleIdentifier 12 | net.sf.quakespasm.QuakeSpasm 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.96.0 21 | CFBundleSignature 22 | ???? 23 | LSApplicationCategoryType 24 | public.app-category.action-games 25 | LSMinimumSystemVersionByArchitecture 26 | 27 | i386 28 | 10.4.0 29 | ppc 30 | 10.4.0 31 | x86_64 32 | 10.6.0 33 | arm64 34 | 11.0.0 35 | 36 | NSMainNibFile 37 | Launcher 38 | NSPrincipalClass 39 | SDLApplication 40 | 41 | 42 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 11C74 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL 11 | CFBundleGetInfoString 12 | http://www.libsdl.org 13 | CFBundleIdentifier 14 | SDL 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | Simple DirectMedia Layer 19 | CFBundlePackageType 20 | FMWK 21 | CFBundleShortVersionString 22 | 1.2.16 23 | CFBundleSignature 24 | SDLX 25 | CFBundleVersion 26 | 1.2.16 27 | DTCompiler 28 | 29 | DTPlatformBuild 30 | 10M2518 31 | DTPlatformVersion 32 | PG 33 | DTSDKBuild 34 | 10M2518 35 | DTSDKName 36 | macosx10.6 37 | DTXcode 38 | 0400 39 | DTXcodeBuild 40 | 10M2518 41 | 42 | 43 | -------------------------------------------------------------------------------- /MacOSX/SDLApplication.m: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import "SDLApplication.h" 22 | 23 | // ericw -- with SDL2, this is unneeded and clashes; it has an SDLApplication class internally which does the same thing 24 | #if !defined(USE_SDL2) 25 | 26 | #if defined(SDL_FRAMEWORK) || defined(NO_SDL_CONFIG) 27 | #import 28 | #else 29 | #import "SDL.h" 30 | #endif 31 | 32 | @implementation SDLApplication 33 | - (void)terminate:(id)sender 34 | { 35 | /* Post a SDL_QUIT event */ 36 | SDL_Event event; 37 | event.type = SDL_QUIT; 38 | SDL_PushEvent(&event); 39 | 40 | [super terminate:sender]; 41 | } 42 | @end 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /Quake/crc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef _QUAKE_CRC_H 23 | #define _QUAKE_CRC_H 24 | 25 | /* crc.h */ 26 | 27 | void CRC_Init(unsigned short *crcvalue); 28 | void CRC_ProcessByte(unsigned short *crcvalue, byte data); 29 | unsigned short CRC_Value(unsigned short crcvalue); 30 | unsigned short CRC_Block (const byte *start, size_t count); //johnfitz -- texture crc 31 | 32 | //additional hash functions... 33 | unsigned Com_BlockChecksum (const void *buffer, size_t length); 34 | void Com_BlockFullChecksum (const void *buffer, size_t len, unsigned char *outbuf); 35 | 36 | #endif /* _QUAKE_CRC_H */ 37 | 38 | -------------------------------------------------------------------------------- /Quake/platform.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2005 John Fitzgibbons and others 4 | Copyright (C) 2007-2008 Kristian Duske 5 | Copyright (C) 2010-2014 QuakeSpasm developers 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License 9 | as published by the Free Software Foundation; either version 2 10 | of the License, or (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 | 16 | See the GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program; if not, write to the Free Software 20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 | 22 | */ 23 | 24 | #ifndef _QUAKE_PLATFORM_H 25 | #define _QUAKE_PLATFORM_H 26 | 27 | /* platform dependent way to set the window icon */ 28 | void PL_SetWindowIcon(void); 29 | 30 | /* platform dependent cleanup */ 31 | void PL_VID_Shutdown (void); 32 | 33 | /* retrieve text from the clipboard (returns Z_Malloc()'ed data) */ 34 | char *PL_GetClipboardData (void); 35 | 36 | /* show an error dialog */ 37 | void PL_ErrorDialog(const char *text); 38 | 39 | #endif /* _QUAKE_PLATFORM_H */ 40 | 41 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /MacOSX/ScreenInfo.m: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import "ScreenInfo.h" 22 | 23 | 24 | @implementation ScreenInfo 25 | 26 | - (id)initWithWidth:(int)w height:(int)h bpp:(int)b { 27 | 28 | self = [super init]; 29 | if (!self) 30 | return nil; 31 | 32 | width = w; 33 | height = h; 34 | bpp = b; 35 | 36 | description = [NSString stringWithFormat:@"%d x %d %d Bit", width, height, bpp]; 37 | 38 | return self; 39 | } 40 | 41 | - (int)width { 42 | 43 | return width; 44 | } 45 | 46 | - (int)height { 47 | 48 | return height; 49 | } 50 | 51 | - (int)bpp { 52 | 53 | return bpp; 54 | } 55 | 56 | - (NSString *)description { 57 | 58 | return description; 59 | } 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /Quake/bgmusic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Background music handling for Quakespasm (adapted from uHexen2) 3 | * Handles streaming music as raw sound samples and runs the midi driver 4 | * 5 | * Copyright (C) 1999-2005 Id Software, Inc. 6 | * Copyright (C) 2010-2012 O.Sezer 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; either version 2 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, but 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 | * 17 | * See the GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License along 20 | * with this program; if not, write to the Free Software Foundation, Inc., 21 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 | * 23 | */ 24 | 25 | #ifndef _BGMUSIC_H_ 26 | #define _BGMUSIC_H_ 27 | 28 | extern qboolean bgmloop; 29 | extern cvar_t bgm_extmusic; 30 | 31 | qboolean BGM_Init (void); 32 | void BGM_Shutdown (void); 33 | 34 | void BGM_Play (const char *filename); 35 | void BGM_Stop (void); 36 | void BGM_Update (void); 37 | void BGM_Pause (void); 38 | void BGM_Resume (void); 39 | 40 | void BGM_PlayCDtrack (byte track, qboolean looping); 41 | 42 | #endif /* _BGMUSIC_H_ */ 43 | 44 | -------------------------------------------------------------------------------- /MacOSX/AppController.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import 22 | #import 23 | #import "QuakeArguments.h" 24 | 25 | extern NSString *FQPrefCommandLineKey; 26 | extern NSString *FQPrefFullscreenKey; 27 | extern NSString *FQPrefScreenModeKey; 28 | 29 | @interface AppController : NSObject { 30 | IBOutlet NSWindow *launcherWindow; 31 | IBOutlet NSTextField *paramTextField; 32 | IBOutlet NSPopUpButton *screenModePopUp; 33 | IBOutlet NSButton *fullscreenCheckBox; 34 | 35 | NSMutableArray *screenModes; 36 | QuakeArguments *arguments; 37 | } 38 | 39 | - (IBAction)changeScreenMode:(id)sender; 40 | - (IBAction)launchQuake:(id)sender; 41 | - (IBAction)cancel:(id)sender; 42 | 43 | - (NSArray *)screenModes; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/devel-lite/ReadMeDevLite.txt: -------------------------------------------------------------------------------- 1 | This directory is for developers. This directory contains some basic essentials you will need for developing SDL based applications on OS X. The SDL-devel package contains all of this stuff plus more, so you can ignore this if you install the SDL-devel.pkg. The SDL-devel package contains Xcode templates, SDL documentation, and different variations of SDLmain and NIB files for SDL. 2 | 3 | To compile an SDL based application on OS X, SDLMain.m must be compiled into your program. (See the SDL FAQ). The SDL-devel.pkg includes Xcode templates which already do this for you. But for those who may not want to install the dev package, an SDLMain is provided here as a convenience. Be aware that there are different variations of SDLMain.m depending on what class of SDL application you make and they are intended to work with NIB files. Only one SDLMain variant is provided here and without any NIB files. You should look to the SDL-devel package for the others. We currently do not provide a SDLMain.a file, partly to call to attention that there are different variations of SDLmain. 4 | 5 | To build from the command line, your gcc line will look something like this: 6 | 7 | gcc -I/Library/Frameworks/SDL.framework/Headers MyProgram.c SDLmain.m -framework SDL -framework Cocoa 8 | 9 | An SDL/OpenGL based application might look like: 10 | 11 | gcc -I/Library/Frameworks/SDL.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers MyProgram.c SDLmain.m -framework SDL -framework Cocoa -framework OpenGL 12 | 13 | -------------------------------------------------------------------------------- /Quake/net_loop.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __NET_LOOP_H 23 | #define __NET_LOOP_H 24 | 25 | // net_loop.h 26 | int Loop_Init (void); 27 | void Loop_Listen (qboolean state); 28 | #define Loop_QueryAddresses NULL 29 | qboolean Loop_SearchForHosts (qboolean xmit); 30 | qsocket_t *Loop_Connect (const char *host); 31 | qsocket_t *Loop_CheckNewConnections (void); 32 | void Loop_GetAnyMessages(void(*callback)(qsocket_t *)); 33 | int Loop_GetMessage (qsocket_t *sock); 34 | int Loop_SendMessage (qsocket_t *sock, sizebuf_t *data); 35 | int Loop_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 36 | qboolean Loop_CanSendMessage (qsocket_t *sock); 37 | qboolean Loop_CanSendUnreliableMessage (qsocket_t *sock); 38 | void Loop_Close (qsocket_t *sock); 39 | void Loop_Shutdown (void); 40 | 41 | #endif /* __NET_LOOP_H */ 42 | 43 | -------------------------------------------------------------------------------- /Windows/SDL2/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #pragma pack(pop) 40 | #endif /* Compiler needs structure packing set */ 41 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 21E258 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | SDL2 11 | CFBundleGetInfoString 12 | http://www.libsdl.org 13 | CFBundleIdentifier 14 | org.libsdl.SDL2 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | Simple DirectMedia Layer 19 | CFBundlePackageType 20 | FMWK 21 | CFBundleShortVersionString 22 | 2.0.22 23 | CFBundleSignature 24 | SDLX 25 | CFBundleSupportedPlatforms 26 | 27 | MacOSX 28 | 29 | CFBundleVersion 30 | 2.0.22 31 | DTCompiler 32 | com.apple.compilers.llvm.clang.1_0 33 | DTPlatformBuild 34 | 13E500a 35 | DTPlatformName 36 | macosx 37 | DTPlatformVersion 38 | 12.3 39 | DTSDKBuild 40 | 21E226 41 | DTSDKName 42 | macosx12.3 43 | DTXcode 44 | 1331 45 | DTXcodeBuild 46 | 13E500a 47 | LSMinimumSystemVersion 48 | 10.6 49 | 50 | 51 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | #ifndef _SDL_config_h 24 | #define _SDL_config_h 25 | 26 | #include "SDL_platform.h" 27 | 28 | /* Add any platform that doesn't build using the configure system */ 29 | #if defined(__DREAMCAST__) 30 | #include "SDL_config_dreamcast.h" 31 | #elif defined(__MACOS__) 32 | #include "SDL_config_macos.h" 33 | #elif defined(__MACOSX__) 34 | #include "SDL_config_macosx.h" 35 | #elif defined(__SYMBIAN32__) 36 | #include "SDL_config_symbian.h" /* must be before win32! */ 37 | #elif defined(__WIN32__) 38 | #include "SDL_config_win32.h" 39 | #elif defined(__OS2__) 40 | #include "SDL_config_os2.h" 41 | #else 42 | #include "SDL_config_minimal.h" 43 | #endif /* platform config */ 44 | 45 | #endif /* _SDL_config_h */ 46 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #pragma pack(pop) 40 | #endif /* Compiler needs structure packing set */ 41 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | #ifndef _SDL_config_h 24 | #define _SDL_config_h 25 | 26 | #include "SDL_platform.h" 27 | 28 | /* Add any platform that doesn't build using the configure system */ 29 | #if defined(__DREAMCAST__) 30 | #include "SDL_config_dreamcast.h" 31 | #elif defined(__MACOS__) 32 | #include "SDL_config_macos.h" 33 | #elif defined(__MACOSX__) 34 | #include "SDL_config_macosx.h" 35 | #elif defined(__SYMBIAN32__) 36 | #include "SDL_config_symbian.h" /* must be before win32! */ 37 | #elif defined(__WIN32__) 38 | #include "SDL_config_win32.h" 39 | #elif defined(__OS2__) 40 | #include "SDL_config_os2.h" 41 | #else 42 | #include "SDL_config_minimal.h" 43 | #endif /* platform config */ 44 | 45 | #endif /* _SDL_config_h */ 46 | -------------------------------------------------------------------------------- /Quake/build_cross_osx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -f quakespasm.ppc \ 4 | quakespasm.x86 \ 5 | quakespasm.x86_64 \ 6 | QuakeSpasm 7 | make clean 8 | 9 | OLDPATH=$PATH 10 | MAKE_CMD=make 11 | 12 | OSXBUILD=1 13 | export OSXBUILD 14 | STRIP=/bin/true 15 | export STRIP 16 | 17 | # ppc 18 | PATH=/opt/cross_osx-ppc/bin:$OLDPATH 19 | CC=powerpc-apple-darwin9-gcc 20 | AS=powerpc-apple-darwin9-as 21 | AR=powerpc-apple-darwin9-ar 22 | RANLIB=powerpc-apple-darwin9-ranlib 23 | LIPO=powerpc-apple-darwin9-lipo 24 | export PATH CC AS AR RANLIB LIPO 25 | $MAKE_CMD MACH_TYPE=ppc -f Makefile.darwin $* || exit 1 26 | powerpc-apple-darwin9-strip -S quakespasm || exit 1 27 | mv quakespasm quakespasm.ppc || exit 1 28 | $MAKE_CMD clean 29 | 30 | # x86 31 | PATH=/opt/cross_osx-x86/bin:$OLDPATH 32 | CC=i686-apple-darwin9-gcc 33 | AS=i686-apple-darwin9-as 34 | AR=i686-apple-darwin9-ar 35 | RANLIB=i686-apple-darwin9-ranlib 36 | LIPO=i686-apple-darwin9-lipo 37 | export PATH CC AS AR RANLIB LIPO 38 | $MAKE_CMD MACH_TYPE=x86 -f Makefile.darwin $* || exit 1 39 | i686-apple-darwin9-strip -S quakespasm || exit 1 40 | mv quakespasm quakespasm.x86 || exit 1 41 | $MAKE_CMD clean 42 | 43 | # x86_64 44 | PATH=/opt/cross_osx-x86_64/usr/bin:$OLDPATH 45 | CC=x86_64-apple-darwin9-gcc 46 | AS=x86_64-apple-darwin9-as 47 | AR=x86_64-apple-darwin9-ar 48 | RANLIB=x86_64-apple-darwin9-ranlib 49 | LIPO=x86_64-apple-darwin9-lipo 50 | export PATH CC AS AR RANLIB LIPO 51 | $MAKE_CMD MACH_TYPE=x86_64 -f Makefile.darwin $* || exit 1 52 | x86_64-apple-darwin9-strip -S quakespasm || exit 1 53 | mv quakespasm quakespasm.x86_64 || exit 1 54 | $MAKE_CMD clean 55 | 56 | $LIPO -create -o QuakeSpasm quakespasm.ppc quakespasm.x86 quakespasm.x86_64 || exit 1 57 | 58 | -------------------------------------------------------------------------------- /Windows/SDL/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file close_code.h 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #if (defined(__MWERKS__) && defined(__MACOS__)) 40 | #pragma options align=reset 41 | #pragma enumsalwaysint reset 42 | #else 43 | #pragma pack(pop) 44 | #endif 45 | #endif /* Compiler needs structure packing set */ 46 | -------------------------------------------------------------------------------- /Quake/cfgfile.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cfgfile.h -- misc reads from the config file 3 | * 4 | * Copyright (C) 2008-2012 O.Sezer 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or (at 9 | * your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | * 15 | * See the GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License along 18 | * with this program; if not, write to the Free Software Foundation, Inc., 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef __CFGFILE_H 23 | #define __CFGFILE_H 24 | 25 | int CFG_OpenConfig (const char *cfg_name); 26 | // opens the given config file. only one open config file is 27 | // kept: previosly opened one, if any, will be closed. 28 | 29 | void CFG_CloseConfig (void); 30 | // closes the currently open config file. 31 | 32 | void CFG_ReadCvars (const char **vars, int num_vars); 33 | // reads the values of cvars in the given list from the opened 34 | // config file. 35 | 36 | void CFG_ReadCvarOverrides (const char **vars, int num_vars); 37 | // convenience function, reading the "+" command line override 38 | // values of cvars in the given list. doesn't do anything with 39 | // the config file. call this after CFG_ReadCvars() and before 40 | // locking your cvars. 41 | 42 | #endif /* __CFGFILE_H */ 43 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file close_code.h 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #if (defined(__MWERKS__) && defined(__MACOS__)) 40 | #pragma options align=reset 41 | #pragma enumsalwaysint reset 42 | #else 43 | #pragma pack(pop) 44 | #endif 45 | #endif /* Compiler needs structure packing set */ 46 | -------------------------------------------------------------------------------- /Quake/net_dgrm.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __NET_DATAGRAM_H 23 | #define __NET_DATAGRAM_H 24 | 25 | int Datagram_Init (void); 26 | void Datagram_Listen (qboolean state); 27 | int Datagram_QueryAddresses(qhostaddr_t *addresses, int maxaddresses); 28 | qboolean Datagram_SearchForHosts (qboolean xmit); 29 | qsocket_t *Datagram_Connect (const char *host); 30 | qsocket_t *Datagram_CheckNewConnections (void); 31 | void Datagram_GetAnyMessages (void(*callback)(qsocket_t *)); 32 | int Datagram_GetMessage (qsocket_t *sock); 33 | int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data); 34 | int Datagram_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 35 | qboolean Datagram_CanSendMessage (qsocket_t *sock); 36 | qboolean Datagram_CanSendUnreliableMessage (qsocket_t *sock); 37 | void Datagram_Close (qsocket_t *sock); 38 | void Datagram_Shutdown (void); 39 | 40 | #endif /* __NET_DATAGRAM_H */ 41 | 42 | -------------------------------------------------------------------------------- /Quake/sbar.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef _QUAKE_SBAR_H 24 | #define _QUAKE_SBAR_H 25 | 26 | // the status bar is only redrawn if something has changed, but if anything 27 | // does, the entire thing will be redrawn for the next vid.numpages frames. 28 | 29 | extern int sb_lines; // scan lines to draw 30 | 31 | void Sbar_Init (void); 32 | void Sbar_LoadPics (void); 33 | 34 | void Sbar_Changed (void); 35 | // call whenever any of the client stats represented on the sbar changes 36 | 37 | void Sbar_Draw (void); 38 | // called every frame by screen 39 | 40 | void Sbar_IntermissionOverlay (void); 41 | // called each frame after the level has been completed 42 | 43 | void Sbar_FinaleOverlay (void); 44 | 45 | //csqc needs some of the helpers. 46 | extern int fragsort[MAX_SCOREBOARD]; 47 | extern int scoreboardlines; 48 | extern int Sbar_ColorForMap (int m); 49 | 50 | #endif /* _QUAKE_SBAR_H */ 51 | 52 | -------------------------------------------------------------------------------- /Quake/image.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef GL_IMAGE_H 24 | #define GL_IMAGE_H 25 | 26 | //image.h -- image reading / writing 27 | 28 | enum srcformat; 29 | 30 | //be sure to free the hunk after using these loading functions 31 | byte *Image_LoadTGA (FILE *f, int *width, int *height); 32 | byte *Image_LoadPCX (FILE *f, int *width, int *height); 33 | byte *Image_LoadLMP (FILE *f, int *width, int *height, enum srcformat *fmt); 34 | byte *Image_LoadImage (const char *name, int *width, int *height, enum srcformat *fmt, qboolean *malloced); 35 | 36 | qboolean Image_WriteTGA (const char *name, byte *data, int width, int height, int bpp, qboolean upsidedown); 37 | qboolean Image_WritePNG (const char *name, byte *data, int width, int height, int bpp, qboolean upsidedown); 38 | qboolean Image_WriteJPG (const char *name, byte *data, int width, int height, int bpp, int quality, qboolean upsidedown); 39 | 40 | #endif /* GL_IMAGE_H */ 41 | 42 | -------------------------------------------------------------------------------- /Quake/strlcpy.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 1998 Todd C. Miller 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | #include "strl_fn.h" 23 | 24 | /* 25 | * Copy src to string dst of size siz. At most siz-1 characters 26 | * will be copied. Always NUL terminates (unless siz == 0). 27 | * Returns strlen(src); if retval >= siz, truncation occurred. 28 | */ 29 | 30 | size_t 31 | q_strlcpy (char *dst, const char *src, size_t siz) 32 | { 33 | char *d = dst; 34 | const char *s = src; 35 | size_t n = siz; 36 | 37 | /* Copy as many bytes as will fit */ 38 | if (n != 0) { 39 | while (--n != 0) { 40 | if ((*d++ = *s++) == '\0') 41 | break; 42 | } 43 | } 44 | 45 | /* Not enough room in dst, add NUL and traverse rest of src */ 46 | if (n == 0) { 47 | if (siz != 0) 48 | *d = '\0'; /* NUL-terminate dst */ 49 | while (*s++) 50 | ; 51 | } 52 | 53 | return(s - src - 1); /* count does not include NUL */ 54 | } 55 | 56 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles2.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #if !defined(_MSC_VER) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS) 30 | 31 | #ifdef __IPHONEOS__ 32 | #include 33 | #include 34 | #else 35 | #include 36 | #include 37 | #include 38 | #endif 39 | 40 | #else /* _MSC_VER */ 41 | 42 | /* OpenGL ES2 headers for Visual Studio */ 43 | #include "SDL_opengles2_khrplatform.h" 44 | #include "SDL_opengles2_gl2platform.h" 45 | #include "SDL_opengles2_gl2.h" 46 | #include "SDL_opengles2_gl2ext.h" 47 | 48 | #endif /* _MSC_VER */ 49 | 50 | #ifndef APIENTRY 51 | #define APIENTRY GL_APIENTRY 52 | #endif 53 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles2.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #if !defined(_MSC_VER) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS) 30 | 31 | #ifdef __IPHONEOS__ 32 | #include 33 | #include 34 | #else 35 | #include 36 | #include 37 | #include 38 | #endif 39 | 40 | #else /* _MSC_VER */ 41 | 42 | /* OpenGL ES2 headers for Visual Studio */ 43 | #include "SDL_opengles2_khrplatform.h" 44 | #include "SDL_opengles2_gl2platform.h" 45 | #include "SDL_opengles2_gl2.h" 46 | #include "SDL_opengles2_gl2ext.h" 47 | 48 | #endif /* _MSC_VER */ 49 | 50 | #ifndef APIENTRY 51 | #define APIENTRY GL_APIENTRY 52 | #endif 53 | -------------------------------------------------------------------------------- /Quake/ice/ice_quake.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __ICE_QUAKE_H 23 | #define __ICE_QUAKE_H 24 | 25 | int NQICE_Init (void); 26 | void NQICE_Listen (qboolean state); //used by server (enables websocket connection). 27 | int NQICE_QueryAddresses(qhostaddr_t *addresses, int maxaddresses); 28 | qboolean NQICE_SearchForHosts (qboolean xmit); 29 | qsocket_t *NQICE_Connect (const char *host); //used by client (enables websocket connection). fails when not ice, fails when unable to resolve broker, otherwise succeeds pending broker failure. 30 | qsocket_t *NQICE_CheckNewConnections (void); //used by server. 31 | void NQICE_GetAnyMessages(void(*callback)(qsocket_t *)); //used by server. 32 | int NQICE_GetMessage (qsocket_t *sock); //used by client. 33 | int NQICE_SendMessage (qsocket_t *sock, sizebuf_t *data); 34 | int NQICE_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 35 | qboolean NQICE_CanSendMessage (qsocket_t *sock); 36 | qboolean NQICE_CanSendUnreliableMessage (qsocket_t *sock); 37 | void NQICE_Close (qsocket_t *sock); 38 | void NQICE_Shutdown (void); 39 | 40 | #endif /* __ICE_QUAKE_H */ 41 | 42 | -------------------------------------------------------------------------------- /Quake/strlcat.c: -------------------------------------------------------------------------------- 1 | /* $OpenBSD: strlcat.c,v 1.13 2005/08/08 08:05:37 espie Exp $ */ 2 | 3 | /* 4 | * Copyright (c) 1998 Todd C. Miller 5 | * 6 | * Permission to use, copy, modify, and distribute this software for any 7 | * purpose with or without fee is hereby granted, provided that the above 8 | * copyright notice and this permission notice appear in all copies. 9 | * 10 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | #include "strl_fn.h" 23 | 24 | /* 25 | * Appends src to string dst of size siz (unlike strncat, siz is the 26 | * full size of dst, not space left). At most siz-1 characters 27 | * will be copied. Always NUL terminates (unless siz <= strlen(dst)). 28 | * Returns strlen(src) + MIN(siz, strlen(initial dst)). 29 | * If retval >= siz, truncation occurred. 30 | */ 31 | 32 | size_t 33 | q_strlcat (char *dst, const char *src, size_t siz) 34 | { 35 | char *d = dst; 36 | const char *s = src; 37 | size_t n = siz; 38 | size_t dlen; 39 | 40 | /* Find the end of dst and adjust bytes left but don't go past end */ 41 | while (n-- != 0 && *d != '\0') 42 | d++; 43 | dlen = d - dst; 44 | n = siz - dlen; 45 | 46 | if (n == 0) 47 | return(dlen + strlen(s)); 48 | while (*s != '\0') { 49 | if (n != 1) { 50 | *d++ = *s; 51 | n--; 52 | } 53 | s++; 54 | } 55 | *d = '\0'; 56 | 57 | return(dlen + (s - src)); /* count does not include NUL */ 58 | } 59 | 60 | -------------------------------------------------------------------------------- /MacOSX/QuakeArgument.m: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007-2008 Kristian Duske 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | 13 | See the GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 | 19 | */ 20 | 21 | #import "QuakeArgument.h" 22 | 23 | 24 | @implementation QuakeArgument 25 | 26 | - (id)initWithArgument:(NSString *)n { 27 | 28 | return [self initWithArgument:n andValue:nil]; 29 | } 30 | 31 | - (id)initWithArgument:(NSString *)n andValue:(NSString *)v { 32 | 33 | self = [super init]; 34 | if (self == nil) 35 | return nil; 36 | 37 | name = [n retain]; 38 | if (v != nil) 39 | value = [v retain]; 40 | 41 | return self; 42 | } 43 | 44 | - (NSString *)name { 45 | 46 | return name; 47 | } 48 | 49 | - (NSString *)value { 50 | 51 | return value; 52 | } 53 | 54 | - (BOOL)hasValue { 55 | 56 | return value != nil; 57 | } 58 | 59 | - (NSString *)description { 60 | 61 | NSMutableString *buffer = [[NSMutableString alloc] init]; 62 | 63 | [buffer appendString:name]; 64 | if ([self hasValue]) { 65 | [buffer appendString:@" "]; 66 | [buffer appendString:value]; 67 | } 68 | 69 | return buffer; 70 | } 71 | 72 | - (void) dealloc 73 | { 74 | [name release]; 75 | [value release]; 76 | 77 | [super dealloc]; 78 | } 79 | 80 | @end 81 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_h_ 23 | #define SDL_config_h_ 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #if defined(__WIN32__) 33 | #include "SDL_config_windows.h" 34 | #elif defined(__WINRT__) 35 | #include "SDL_config_winrt.h" 36 | #elif defined(__MACOSX__) 37 | #include "SDL_config_macosx.h" 38 | #elif defined(__IPHONEOS__) 39 | #include "SDL_config_iphoneos.h" 40 | #elif defined(__ANDROID__) 41 | #include "SDL_config_android.h" 42 | #elif defined(__OS2__) 43 | #include "SDL_config_os2.h" 44 | #elif defined(__EMSCRIPTEN__) 45 | #include "SDL_config_emscripten.h" 46 | #else 47 | /* This is a minimal configuration just to get SDL running on new platforms. */ 48 | #include "SDL_config_minimal.h" 49 | #endif /* platform config */ 50 | 51 | #ifdef USING_GENERATED_CONFIG_H 52 | #error Wrong SDL_config.h, check your include path? 53 | #endif 54 | 55 | #endif /* SDL_config_h_ */ 56 | -------------------------------------------------------------------------------- /Quake/input.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef _QUAKE_INPUT_H 23 | #define _QUAKE_INPUT_H 24 | 25 | // input.h -- external (non-keyboard) input devices 26 | 27 | void IN_Init (void); 28 | 29 | void IN_Shutdown (void); 30 | 31 | void IN_Commands (void); 32 | // oportunity for devices to stick commands on the script buffer 33 | 34 | // mouse moved by dx and dy pixels 35 | void IN_MouseMotion(int dx, int dy, int wx, int wy); 36 | 37 | 38 | void IN_SendKeyEvents (void); 39 | // used as a callback for Sys_SendKeyEvents() by some drivers 40 | 41 | void IN_UpdateInputMode (void); 42 | // do stuff if input mode (text/non-text) changes matter to the keyboard driver 43 | 44 | void IN_Move (usercmd_t *cmd); 45 | // add additional movement on top of the keyboard move cmd 46 | 47 | void IN_ClearStates (void); 48 | // restores all button and position states to defaults 49 | 50 | // spike - called whenever mouse focus etc has changed (including console toggled). this is optional, but there's still a number of blocking commands, like connect 51 | // doing all the mode, state, etc checks in one place ensures that they're consistent, regardless of what else is happening. 52 | void IN_UpdateGrabs(void); 53 | 54 | #endif /* _QUAKE_INPUT_H */ 55 | 56 | -------------------------------------------------------------------------------- /Quake/menu.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef _QUAKE_MENU_H 24 | #define _QUAKE_MENU_H 25 | 26 | enum m_state_e { 27 | m_none, 28 | m_main, 29 | m_singleplayer, 30 | m_load, 31 | m_save, 32 | m_multiplayer, 33 | m_setup, 34 | m_net, 35 | m_options, 36 | m_video, 37 | m_extras, 38 | m_keys, 39 | m_help, 40 | m_quit, 41 | m_lanconfig, 42 | m_gameoptions, 43 | m_search, 44 | m_slist 45 | }; 46 | 47 | extern enum m_state_e m_state; 48 | extern enum m_state_e m_return_state; 49 | 50 | extern qboolean m_entersound; 51 | 52 | // 53 | // menus 54 | // 55 | void M_Init (void); 56 | void M_Keydown (int key); 57 | void M_Charinput (int key); 58 | qboolean M_TextEntry (void); 59 | void M_ToggleMenu (int mode); 60 | void MQC_Shutdown(void); 61 | 62 | void M_Menu_Main_f (void); 63 | void M_Menu_Options_f (void); 64 | void M_Menu_Quit_f (void); 65 | 66 | void M_Print (int cx, int cy, const char *str); 67 | void M_PrintWhite (int cx, int cy, const char *str); 68 | 69 | void M_Draw (void); 70 | void M_DrawCharacter (int cx, int line, int num); 71 | 72 | void M_DrawPic (int x, int y, qpic_t *pic); 73 | void M_DrawTransPic (int x, int y, qpic_t *pic); 74 | void M_DrawCheckbox (int x, int y, int on); 75 | 76 | #endif /* _QUAKE_MENU_H */ 77 | 78 | -------------------------------------------------------------------------------- /Windows/VisualStudio/quakespasm.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual Studio 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quakespasm", "quakespasm.vcproj", "{C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quakespasm-sdl2", "quakespasm-sdl2.vcproj", "{AE77266F-0A23-4F08-A491-369DE664B273}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Debug|Win32.Build.0 = Debug|Win32 18 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Debug|x64.ActiveCfg = Debug|x64 19 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Debug|x64.Build.0 = Debug|x64 20 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Release|Win32.ActiveCfg = Release|Win32 21 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Release|Win32.Build.0 = Release|Win32 22 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Release|x64.ActiveCfg = Release|x64 23 | {C0F747A3-D796-4EC0-BF2A-53722CAA3B6A}.Release|x64.Build.0 = Release|x64 24 | {AE77266F-0A23-4F08-A491-369DE664B273}.Debug|Win32.ActiveCfg = Debug|Win32 25 | {AE77266F-0A23-4F08-A491-369DE664B273}.Debug|Win32.Build.0 = Debug|Win32 26 | {AE77266F-0A23-4F08-A491-369DE664B273}.Debug|x64.ActiveCfg = Debug|x64 27 | {AE77266F-0A23-4F08-A491-369DE664B273}.Debug|x64.Build.0 = Debug|x64 28 | {AE77266F-0A23-4F08-A491-369DE664B273}.Release|Win32.ActiveCfg = Release|Win32 29 | {AE77266F-0A23-4F08-A491-369DE664B273}.Release|Win32.Build.0 = Release|Win32 30 | {AE77266F-0A23-4F08-A491-369DE664B273}.Release|x64.ActiveCfg = Release|x64 31 | {AE77266F-0A23-4F08-A491-369DE664B273}.Release|x64.Build.0 = Release|x64 32 | EndGlobalSection 33 | GlobalSection(SolutionProperties) = preSolution 34 | HideSolutionNode = FALSE 35 | EndGlobalSection 36 | EndGlobal 37 | -------------------------------------------------------------------------------- /Quake/net_wipx.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __NET_WINIPX_H 23 | #define __NET_WINIPX_H 24 | 25 | sys_socket_t WIPX_Init (void); 26 | void WIPX_Shutdown (void); 27 | sys_socket_t WIPX_Listen (qboolean state); 28 | int WIPX_GetAddresses (qhostaddr_t *addresses, int maxaddresses); 29 | sys_socket_t WIPX_OpenSocket (int port); 30 | int WIPX_CloseSocket (sys_socket_t socketid); 31 | int WIPX_Connect (sys_socket_t socketid, struct qsockaddr *addr); 32 | sys_socket_t WIPX_CheckNewConnections (void); 33 | int WIPX_Read (sys_socket_t socketid, byte *buf, int len, struct qsockaddr *addr); 34 | int WIPX_Write (sys_socket_t socketid, byte *buf, int len, struct qsockaddr *addr); 35 | int WIPX_Broadcast (sys_socket_t socketid, byte *buf, int len); 36 | const char *WIPX_AddrToString (struct qsockaddr *addr, qboolean masked); 37 | int WIPX_StringToAddr (const char *string, struct qsockaddr *addr); 38 | int WIPX_GetSocketAddr (sys_socket_t socketid, struct qsockaddr *addr); 39 | int WIPX_GetNameFromAddr (struct qsockaddr *addr, char *name); 40 | int WIPX_GetAddrFromName (const char *name, struct qsockaddr *addr); 41 | int WIPX_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 42 | int WIPX_GetSocketPort (struct qsockaddr *addr); 43 | int WIPX_SetSocketPort (struct qsockaddr *addr, int port); 44 | 45 | #endif /* __NET_WINIPX_H */ 46 | 47 | -------------------------------------------------------------------------------- /Misc/mk_header.c: -------------------------------------------------------------------------------- 1 | /* 2 | gcc -Wall mk_header.c -o mk_header 3 | 4 | dumps the bytes of given input to a C header as 5 | comma separated hexadecimal values. the output 6 | header can be used in a C source like: 7 | 8 | const char bin[] = 9 | { 10 | # include "output.h" 11 | }; 12 | 13 | */ 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | int main (int argc, char **argv) 20 | { 21 | FILE *f; 22 | struct stat s; 23 | unsigned char *buf, *ptr; 24 | const char *output; 25 | long i, j; 26 | 27 | if (argc != 2 && argc != 3) 28 | { 29 | printf ("Usage: mk_header [output]\n" 30 | "Default output file is \"output.h\"\n"); 31 | return 1; 32 | } 33 | 34 | if (stat(argv[1], &s) == -1 || 35 | ! S_ISREG(s.st_mode) ) 36 | { 37 | printf ("Couldn't stat %s\n", argv[1]); 38 | return 1; 39 | } 40 | 41 | if (s.st_size == 0) 42 | { 43 | printf ("%s is an empty file\n", argv[1]); 44 | return 1; 45 | } 46 | 47 | buf = (unsigned char *) malloc (s.st_size); 48 | if (buf == NULL) 49 | { 50 | printf ("Couldn't malloc %ld bytes\n", 51 | (long)s.st_size); 52 | return 1; 53 | } 54 | 55 | f = fopen (argv[1], "rb"); 56 | if (f == NULL) 57 | { 58 | free(buf); 59 | printf ("Couldn't open %s\n", argv[1]); 60 | return 1; 61 | } 62 | 63 | if (fread (buf, 1, s.st_size, f) != (size_t) s.st_size) 64 | { 65 | fclose (f); 66 | free (buf); 67 | printf ("Error reading %s\n", argv[1]); 68 | return 1; 69 | } 70 | fclose (f); 71 | 72 | output = (argc == 3) ? argv[2] : "output.h"; 73 | f = fopen (output, "wb"); 74 | if (!f) 75 | { 76 | free (buf); 77 | printf ("Couldn't open %s\n", output); 78 | return 1; 79 | } 80 | 81 | for (i = 0, j = 0, ptr = buf; i < s.st_size; ++i) 82 | { 83 | fprintf (f, "0x%02x", *ptr++); 84 | if (i == s.st_size - 1) 85 | break; 86 | fprintf (f, ","); 87 | if (++j < 16) 88 | fprintf (f, " "); 89 | else 90 | { 91 | j = 0; 92 | fprintf (f, "\n"); 93 | } 94 | } 95 | fprintf (f, "\n"); 96 | 97 | fclose (f); 98 | free (buf); 99 | 100 | return 0; 101 | } 102 | 103 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_error.h 25 | * Simple error message routines for SDL 26 | */ 27 | 28 | #ifndef _SDL_error_h 29 | #define _SDL_error_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * @name Public functions 41 | */ 42 | /*@{*/ 43 | extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...); 44 | extern DECLSPEC char * SDLCALL SDL_GetError(void); 45 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 46 | /*@}*/ 47 | 48 | /** 49 | * @name Private functions 50 | * @internal Private error message function - used internally 51 | */ 52 | /*@{*/ 53 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 54 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 55 | typedef enum { 56 | SDL_ENOMEM, 57 | SDL_EFREAD, 58 | SDL_EFWRITE, 59 | SDL_EFSEEK, 60 | SDL_UNSUPPORTED, 61 | SDL_LASTERROR 62 | } SDL_errorcode; 63 | extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code); 64 | /*@}*/ 65 | 66 | /* Ends C function definitions when using C++ */ 67 | #ifdef __cplusplus 68 | } 69 | #endif 70 | #include "close_code.h" 71 | 72 | #endif /* _SDL_error_h */ 73 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_active.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_active.h 25 | * Include file for SDL application focus event handling 26 | */ 27 | 28 | #ifndef _SDL_active_h 29 | #define _SDL_active_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | #include "begin_code.h" 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** @name The available application states */ 41 | /*@{*/ 42 | #define SDL_APPMOUSEFOCUS 0x01 /**< The app has mouse coverage */ 43 | #define SDL_APPINPUTFOCUS 0x02 /**< The app has input focus */ 44 | #define SDL_APPACTIVE 0x04 /**< The application is active */ 45 | /*@}*/ 46 | 47 | /* Function prototypes */ 48 | /** 49 | * This function returns the current state of the application, which is a 50 | * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and 51 | * SDL_APPACTIVE. If SDL_APPACTIVE is set, then the user is able to 52 | * see your application, otherwise it has been iconified or disabled. 53 | */ 54 | extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); 55 | 56 | 57 | /* Ends C function definitions when using C++ */ 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | #include "close_code.h" 62 | 63 | #endif /* _SDL_active_h */ 64 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_error.h 25 | * Simple error message routines for SDL 26 | */ 27 | 28 | #ifndef _SDL_error_h 29 | #define _SDL_error_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * @name Public functions 41 | */ 42 | /*@{*/ 43 | extern DECLSPEC void SDLCALL SDL_SetError(const char *fmt, ...); 44 | extern DECLSPEC char * SDLCALL SDL_GetError(void); 45 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 46 | /*@}*/ 47 | 48 | /** 49 | * @name Private functions 50 | * @internal Private error message function - used internally 51 | */ 52 | /*@{*/ 53 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 54 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 55 | typedef enum { 56 | SDL_ENOMEM, 57 | SDL_EFREAD, 58 | SDL_EFWRITE, 59 | SDL_EFSEEK, 60 | SDL_UNSUPPORTED, 61 | SDL_LASTERROR 62 | } SDL_errorcode; 63 | extern DECLSPEC void SDLCALL SDL_Error(SDL_errorcode code); 64 | /*@}*/ 65 | 66 | /* Ends C function definitions when using C++ */ 67 | #ifdef __cplusplus 68 | } 69 | #endif 70 | #include "close_code.h" 71 | 72 | #endif /* _SDL_error_h */ 73 | -------------------------------------------------------------------------------- /Quake/snd_codeci.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Audio Codecs: Adapted from ioquake3 with changes. 3 | * For now, only handles streaming music, not sound effects. 4 | * 5 | * Copyright (C) 1999-2005 Id Software, Inc. 6 | * Copyright (C) 2005 Stuart Dalton 7 | * Copyright (C) 2010-2012 O.Sezer 8 | * 9 | * This program is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or (at 12 | * your option) any later version. 13 | * 14 | * This program is distributed in the hope that it will be useful, but 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * 18 | * See the GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License along 21 | * with this program; if not, write to the Free Software Foundation, Inc., 22 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23 | * 24 | */ 25 | 26 | #ifndef _SND_CODECI_H_ 27 | #define _SND_CODECI_H_ 28 | 29 | /* Codec internals */ 30 | typedef qboolean (*CODEC_INIT)(void); 31 | typedef void (*CODEC_SHUTDOWN)(void); 32 | typedef qboolean (*CODEC_OPEN)(snd_stream_t *stream); 33 | typedef int (*CODEC_READ)(snd_stream_t *stream, int bytes, void *buffer); 34 | typedef int (*CODEC_REWIND)(snd_stream_t *stream); 35 | typedef int (*CODEC_JUMP)(snd_stream_t *stream, int order); 36 | typedef void (*CODEC_CLOSE)(snd_stream_t *stream); 37 | 38 | struct snd_codec_s 39 | { 40 | unsigned int type; /* handled data type. (1U << n) */ 41 | qboolean initialized; /* init succeedded */ 42 | const char *ext; /* expected extension */ 43 | CODEC_INIT initialize; 44 | CODEC_SHUTDOWN shutdown; 45 | CODEC_OPEN codec_open; 46 | CODEC_READ codec_read; 47 | CODEC_REWIND codec_rewind; 48 | CODEC_JUMP codec_jump; 49 | CODEC_CLOSE codec_close; 50 | snd_codec_t *next; 51 | }; 52 | 53 | qboolean S_CodecForwardStream (snd_stream_t *stream, unsigned int type); 54 | /* Forward a stream to another codec of 'type' type. */ 55 | 56 | #endif /* _SND_CODECI_H_ */ 57 | 58 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_active.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_active.h 25 | * Include file for SDL application focus event handling 26 | */ 27 | 28 | #ifndef _SDL_active_h 29 | #define _SDL_active_h 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | #include "begin_code.h" 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** @name The available application states */ 41 | /*@{*/ 42 | #define SDL_APPMOUSEFOCUS 0x01 /**< The app has mouse coverage */ 43 | #define SDL_APPINPUTFOCUS 0x02 /**< The app has input focus */ 44 | #define SDL_APPACTIVE 0x04 /**< The application is active */ 45 | /*@}*/ 46 | 47 | /* Function prototypes */ 48 | /** 49 | * This function returns the current state of the application, which is a 50 | * bitwise combination of SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS, and 51 | * SDL_APPACTIVE. If SDL_APPACTIVE is set, then the user is able to 52 | * see your application, otherwise it has been iconified or disabled. 53 | */ 54 | extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); 55 | 56 | 57 | /* Ends C function definitions when using C++ */ 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | #include "close_code.h" 62 | 63 | #endif /* _SDL_active_h */ 64 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_quit.h 24 | * Include file for SDL quit event handling 25 | */ 26 | 27 | #ifndef _SDL_quit_h 28 | #define _SDL_quit_h 29 | 30 | #include "SDL_stdinc.h" 31 | #include "SDL_error.h" 32 | 33 | /** @file SDL_quit.h 34 | * An SDL_QUITEVENT is generated when the user tries to close the application 35 | * window. If it is ignored or filtered out, the window will remain open. 36 | * If it is not ignored or filtered, it is queued normally and the window 37 | * is allowed to close. When the window is closed, screen updates will 38 | * complete, but have no effect. 39 | * 40 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 41 | * and SIGTERM (system termination request), if handlers do not already 42 | * exist, that generate SDL_QUITEVENT events as well. There is no way 43 | * to determine the cause of an SDL_QUITEVENT, but setting a signal 44 | * handler in your application will override the default generation of 45 | * quit events for that signal. 46 | */ 47 | 48 | /** @file SDL_quit.h 49 | * There are no functions directly affecting the quit event 50 | */ 51 | 52 | #define SDL_QuitRequested() \ 53 | (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) 54 | 55 | #endif /* _SDL_quit_h */ 56 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_h_ 23 | #define SDL_config_h_ 24 | 25 | #include "SDL_platform.h" 26 | 27 | /** 28 | * \file SDL_config.h 29 | */ 30 | 31 | /* Add any platform that doesn't build using the configure system. */ 32 | #if defined(__WIN32__) 33 | #include "SDL_config_windows.h" 34 | #elif defined(__WINRT__) 35 | #include "SDL_config_winrt.h" 36 | #elif defined(__WINGDK__) 37 | #include "SDL_config_wingdk.h" 38 | #elif defined(__XBOXONE__) || defined(__XBOXSERIES__) 39 | #include "SDL_config_xbox.h" 40 | #elif defined(__MACOSX__) 41 | #include "SDL_config_macosx.h" 42 | #elif defined(__IPHONEOS__) 43 | #include "SDL_config_iphoneos.h" 44 | #elif defined(__ANDROID__) 45 | #include "SDL_config_android.h" 46 | #elif defined(__OS2__) 47 | #include "SDL_config_os2.h" 48 | #elif defined(__EMSCRIPTEN__) 49 | #include "SDL_config_emscripten.h" 50 | #elif defined(__NGAGE__) 51 | #include "SDL_config_ngage.h" 52 | #else 53 | /* This is a minimal configuration just to get SDL running on new platforms. */ 54 | #include "SDL_config_minimal.h" 55 | #endif /* platform config */ 56 | 57 | #ifdef USING_GENERATED_CONFIG_H 58 | #error Wrong SDL_config.h, check your include path? 59 | #endif 60 | 61 | #endif /* SDL_config_h_ */ 62 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_quit.h 24 | * Include file for SDL quit event handling 25 | */ 26 | 27 | #ifndef _SDL_quit_h 28 | #define _SDL_quit_h 29 | 30 | #include "SDL_stdinc.h" 31 | #include "SDL_error.h" 32 | 33 | /** @file SDL_quit.h 34 | * An SDL_QUITEVENT is generated when the user tries to close the application 35 | * window. If it is ignored or filtered out, the window will remain open. 36 | * If it is not ignored or filtered, it is queued normally and the window 37 | * is allowed to close. When the window is closed, screen updates will 38 | * complete, but have no effect. 39 | * 40 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 41 | * and SIGTERM (system termination request), if handlers do not already 42 | * exist, that generate SDL_QUITEVENT events as well. There is no way 43 | * to determine the cause of an SDL_QUITEVENT, but setting a signal 44 | * handler in your application will override the default generation of 45 | * quit events for that signal. 46 | */ 47 | 48 | /** @file SDL_quit.h 49 | * There are no functions directly affecting the quit event 50 | */ 51 | 52 | #define SDL_QuitRequested() \ 53 | (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) 54 | 55 | #endif /* _SDL_quit_h */ 56 | -------------------------------------------------------------------------------- /Misc/qs_pak/default.cfg.orig: -------------------------------------------------------------------------------- 1 | // 2 | // load keybindings 3 | // 4 | // commands with a leading + will also be called for key up events with 5 | // the + changed to a - 6 | unbindall 7 | 8 | // 9 | // character controls 10 | // 11 | 12 | bind ALT +strafe 13 | 14 | bind , +moveleft 15 | bind . +moveright 16 | bind DEL +lookdown 17 | bind PGDN +lookup 18 | bind END centerview 19 | bind z +lookdown 20 | bind a +lookup 21 | 22 | bind d +moveup 23 | bind c +movedown 24 | bind SHIFT +speed 25 | bind CTRL +attack 26 | bind UPARROW +forward 27 | bind DOWNARROW +back 28 | bind LEFTARROW +left 29 | bind RIGHTARROW +right 30 | 31 | bind SPACE +jump 32 | bind ENTER +jump 33 | 34 | bind TAB +showscores 35 | 36 | bind 1 "impulse 1" 37 | bind 2 "impulse 2" 38 | bind 3 "impulse 3" 39 | bind 4 "impulse 4" 40 | bind 5 "impulse 5" 41 | bind 6 "impulse 6" 42 | bind 7 "impulse 7" 43 | bind 8 "impulse 8" 44 | 45 | bind 0 "impulse 0" 46 | 47 | bind / "impulse 10" // change weapon 48 | 49 | // zoom 50 | alias zoom_in "sensitivity 2;fov 90;wait;fov 70;wait;fov 50;wait;fov 30;wait;fov 10;wait;fov 5;bind F11 zoom_out" 51 | alias zoom_out "sensitivity 4;fov 5;wait;fov 10;wait;fov 30;wait;fov 50;wait;fov 70;wait;fov 90;bind F11 zoom_in; sensitivity 3" 52 | bind F11 zoom_in 53 | 54 | // Function keys 55 | bind F1 "help" 56 | bind F2 "menu_save" 57 | bind F3 "menu_load" 58 | bind F4 "menu_options" 59 | bind F5 "menu_multiplayer" 60 | bind F6 "echo Quicksaving...; wait; save quick" 61 | bind F9 "echo Quickloading...; wait; load quick" 62 | bind F10 "quit" 63 | bind F12 "screenshot" 64 | 65 | // mouse options 66 | bind \ +mlook 67 | 68 | // 69 | // client environment commands 70 | // 71 | bind PAUSE "pause" 72 | bind ESCAPE "togglemenu" 73 | bind ~ "toggleconsole" 74 | bind ` "toggleconsole" 75 | 76 | bind t "messagemode" 77 | 78 | bind + "sizeup" 79 | bind = "sizeup" 80 | bind - "sizedown" 81 | 82 | bind INS +klook 83 | 84 | // 85 | // mouse buttons 86 | // 87 | bind MOUSE1 +attack 88 | bind MOUSE2 +forward 89 | bind MOUSE3 +mlook 90 | 91 | // 92 | // default cvars 93 | // 94 | viewsize 100 95 | gamma 1.0 96 | volume 0.7 97 | sensitivity 3 98 | 99 | -------------------------------------------------------------------------------- /Quake/wad.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef _QUAKE_WAD_H 24 | #define _QUAKE_WAD_H 25 | 26 | //=============== 27 | // TYPES 28 | //=============== 29 | 30 | #define CMP_NONE 0 31 | #define CMP_LZSS 1 32 | 33 | #define TYP_NONE 0 34 | #define TYP_LABEL 1 35 | 36 | #define TYP_LUMPY 64 // 64 + grab command number 37 | #define TYP_PALETTE 64 38 | #define TYP_QTEX 65 39 | #define TYP_QPIC 66 40 | #define TYP_SOUND 67 41 | #define TYP_MIPTEX 68 42 | 43 | #define WADFILENAME "gfx.wad" //johnfitz -- filename is now hard-coded for honesty 44 | 45 | typedef struct 46 | { 47 | unsigned int width, height; 48 | byte data[4]; // variably sized 49 | } qpic_t; 50 | 51 | typedef struct 52 | { 53 | char identification[4]; // should be WAD2 or 2DAW 54 | unsigned int numlumps; 55 | unsigned int infotableofs; 56 | } wadinfo_t; 57 | 58 | typedef struct 59 | { 60 | unsigned int filepos; 61 | unsigned int disksize; 62 | unsigned int size; // uncompressed 63 | char type; 64 | char compression; 65 | char pad1, pad2; 66 | char name[16]; // must be null terminated 67 | } lumpinfo_t; 68 | 69 | extern unsigned int wad_numlumps; 70 | extern lumpinfo_t *wad_lumps; 71 | extern byte *wad_base; 72 | 73 | void W_LoadWadFile (void); //johnfitz -- filename is now hard-coded for honesty 74 | void *W_GetLumpName (const char *name, lumpinfo_t **out_info); 75 | 76 | void SwapPic (qpic_t *pic); 77 | 78 | #endif /* _QUAKE_WAD_H */ 79 | 80 | -------------------------------------------------------------------------------- /Windows/SDL2/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2023 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef SDL_quit_h_ 29 | #define SDL_quit_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* SDL_quit_h_ */ 59 | -------------------------------------------------------------------------------- /MacOSX/SDL2.framework/Versions/A/Headers/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2022 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef SDL_quit_h_ 29 | #define SDL_quit_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* SDL_quit_h_ */ 59 | -------------------------------------------------------------------------------- /Quake/default_cfg.h: -------------------------------------------------------------------------------- 1 | // keep in sync with Misc/qs_pak/default.cfg 2 | 3 | static char default_cfg[] = 4 | "unbindall\n" 5 | 6 | "bind ALT +strafe\n" 7 | 8 | "bind , +moveleft\n" 9 | "bind a +moveleft\n" 10 | "bind . +moveright\n" 11 | "bind d +moveright\n" 12 | "bind DEL +lookdown\n" 13 | "bind PGDN +lookup\n" 14 | "bind END centerview\n" 15 | 16 | "bind e +moveup\n" 17 | "bind c +movedown\n" 18 | "bind SHIFT +speed\n" 19 | "bind CTRL +attack\n" 20 | "bind UPARROW +forward\n" 21 | "bind w +forward\n" 22 | "bind DOWNARROW +back\n" 23 | "bind s +back\n" 24 | "bind LEFTARROW +left\n" 25 | "bind RIGHTARROW +right\n" 26 | 27 | "bind SPACE +jump\n" 28 | 29 | "bind TAB +showscores\n" 30 | 31 | "bind 1 \"impulse 1\"\n" 32 | "bind 2 \"impulse 2\"\n" 33 | "bind 3 \"impulse 3\"\n" 34 | "bind 4 \"impulse 4\"\n" 35 | "bind 5 \"impulse 5\"\n" 36 | "bind 6 \"impulse 6\"\n" 37 | "bind 7 \"impulse 7\"\n" 38 | "bind 8 \"impulse 8\"\n" 39 | 40 | "bind 0 \"impulse 0\"\n" 41 | 42 | "bind / \"impulse 10\"\n" 43 | "bind MWHEELDOWN \"impulse 10\"\n" 44 | "bind MWHEELUP \"impulse 12\"\n" 45 | 46 | "alias zoom_in \"sensitivity 2;fov 90;wait;fov 70;wait;fov 50;wait;fov 30;wait;fov 10;wait;fov 5;bind F11 zoom_out\"\n" 47 | "alias zoom_out \"sensitivity 4;fov 5;wait;fov 10;wait;fov 30;wait;fov 50;wait;fov 70;wait;fov 90;bind F11 zoom_in; sensitivity 3\"\n" 48 | "bind F11 zoom_in\n" 49 | 50 | "bind F1 \"help\"\n" 51 | "bind F2 \"menu_save\"\n" 52 | "bind F3 \"menu_load\"\n" 53 | "bind F4 \"menu_options\"\n" 54 | "bind F5 \"menu_multiplayer\"\n" 55 | "bind F6 \"echo Quicksaving...; wait; save quick\"\n" 56 | "bind F9 \"echo Quickloading...; wait; load quick\"\n" 57 | "bind F10 \"quit\"\n" 58 | "bind F12 \"screenshot\"\n" 59 | 60 | "bind \\ +mlook\n" 61 | 62 | "bind PAUSE \"pause\"\n" 63 | "bind ESCAPE \"togglemenu\"\n" 64 | "bind ~ \"toggleconsole\"\n" 65 | "bind ` \"toggleconsole\"\n" 66 | 67 | "bind t \"messagemode\"\n" 68 | 69 | "bind + \"sizeup\"\n" 70 | "bind = \"sizeup\"\n" 71 | "bind - \"sizedown\"\n" 72 | 73 | "bind INS +klook\n" 74 | 75 | "bind MOUSE1 +attack\n" 76 | "bind MOUSE2 +jump\n" 77 | 78 | "bind LSHOULDER \"impulse 12\"\n" 79 | "bind RSHOULDER \"impulse 10\"\n" 80 | "bind LTRIGGER +jump\n" 81 | "bind RTRIGGER +attack\n" 82 | 83 | "gamma 1.0\n" 84 | "volume 0.7\n" 85 | "sensitivity 3\n" 86 | 87 | "viewsize 110\n" 88 | "scr_conscale 1.6\n" 89 | "scr_menuscale 1.6\n" 90 | "scr_sbarscale 1.6\n" 91 | 92 | "+mlook\n"; 93 | -------------------------------------------------------------------------------- /Quake/sys.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef _QUAKE_SYS_H 23 | #define _QUAKE_SYS_H 24 | 25 | // sys.h -- non-portable functions 26 | 27 | void Sys_Init (void); 28 | 29 | // 30 | // file IO 31 | // 32 | 33 | // returns the file size or -1 if file is not present. 34 | // the file should be in BINARY mode for stupid OSs that care 35 | qofs_t Sys_FileOpenRead (const char *path, int *hndl); 36 | int Sys_FileOpenWrite (const char *path); 37 | int Sys_FileOpenStdio (FILE *file); 38 | 39 | void Sys_FileClose (int handle); 40 | void Sys_FileSeek (int handle, qofs_t position); 41 | int Sys_FileRead (int handle, void *dest, int count); 42 | int Sys_FileWrite (int handle,const void *data, int count); 43 | void Sys_mkdir (const char *path); 44 | 45 | int Sys_FileType (const char *path); 46 | /* returns an FS entity type, i.e. FS_ENT_FILE or FS_ENT_DIRECTORY. 47 | * returns FS_ENT_NONE (0) if no such file or directory is present. */ 48 | 49 | // 50 | // system IO 51 | // 52 | FUNC_NORETURN void Sys_Quit (void); 53 | FUNC_NORETURN void Sys_Error (const char *error, ...) FUNC_PRINTF(1,2); 54 | // an error will cause the entire program to exit 55 | #ifdef __WATCOMC__ 56 | #pragma aux Sys_Error aborts; 57 | #pragma aux Sys_Quit aborts; 58 | #endif 59 | 60 | void Sys_Printf (const char *fmt, ...) FUNC_PRINTF(1,2); 61 | // send text to the console 62 | 63 | double Sys_DoubleTime (void); 64 | 65 | const char *Sys_ConsoleInput (void); 66 | 67 | void Sys_Sleep (unsigned long msecs); 68 | // yield for about 'msecs' milliseconds. 69 | 70 | void Sys_SendKeyEvents (void); 71 | // Perform Key_Event () callbacks until the input que is empty 72 | 73 | #endif /* _QUAKE_SYS_H */ 74 | 75 | -------------------------------------------------------------------------------- /Quake/screen.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef _QUAKE_SCREEN_H 24 | #define _QUAKE_SCREEN_H 25 | 26 | // screen.h 27 | 28 | void SCR_Init (void); 29 | void SCR_LoadPics (void); 30 | 31 | void SCR_UpdateScreen (void); 32 | 33 | 34 | void SCR_SizeUp (void); 35 | void SCR_SizeDown (void); 36 | void SCR_BringDownConsole (void); 37 | void SCR_CenterPrint (const char *str); 38 | 39 | void SCR_BeginLoadingPlaque (void); 40 | void SCR_EndLoadingPlaque (void); 41 | 42 | int SCR_ModalMessage (const char *text, float timeout); //johnfitz -- added timeout 43 | 44 | extern float scr_con_current; 45 | extern float scr_conlines; // lines of console to display 46 | 47 | extern int sb_lines; 48 | 49 | extern int clearnotify; // set to 0 whenever notify text is drawn 50 | extern qboolean scr_disabled_for_loading; 51 | extern qboolean scr_skipupdate; 52 | 53 | extern cvar_t scr_viewsize; 54 | 55 | extern cvar_t scr_sbaralpha; //johnfitz 56 | 57 | void SCR_UpdateWholeScreen (void); 58 | 59 | //johnfitz -- stuff for 2d drawing control 60 | typedef enum { 61 | CANVAS_NONE, 62 | CANVAS_DEFAULT, 63 | CANVAS_CONSOLE, 64 | CANVAS_MENU, 65 | CANVAS_SBAR, 66 | CANVAS_CROSSHAIR, 67 | CANVAS_BOTTOMLEFT, 68 | CANVAS_BOTTOMRIGHT, 69 | CANVAS_TOPRIGHT, 70 | CANVAS_CSQC, 71 | CANVAS_MENUQC, 72 | CANVAS_INVALID = -1 73 | } canvastype; 74 | extern cvar_t scr_menuscale; 75 | extern cvar_t scr_sbarscale; 76 | extern cvar_t scr_conwidth; 77 | extern cvar_t scr_conscale; 78 | extern cvar_t scr_scale; 79 | extern cvar_t scr_crosshairscale; 80 | //johnfitz 81 | 82 | extern int scr_tileclear_updates; //johnfitz 83 | 84 | #endif /* _QUAKE_SCREEN_H */ 85 | 86 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_cpuinfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_cpuinfo.h 25 | * CPU feature detection for SDL 26 | */ 27 | 28 | #ifndef _SDL_cpuinfo_h 29 | #define _SDL_cpuinfo_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** This function returns true if the CPU has the RDTSC instruction */ 40 | extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); 41 | 42 | /** This function returns true if the CPU has MMX features */ 43 | extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void); 44 | 45 | /** This function returns true if the CPU has MMX Ext. features */ 46 | extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void); 47 | 48 | /** This function returns true if the CPU has 3DNow features */ 49 | extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void); 50 | 51 | /** This function returns true if the CPU has 3DNow! Ext. features */ 52 | extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void); 53 | 54 | /** This function returns true if the CPU has SSE features */ 55 | extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void); 56 | 57 | /** This function returns true if the CPU has SSE2 features */ 58 | extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void); 59 | 60 | /** This function returns true if the CPU has AltiVec features */ 61 | extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void); 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_cpuinfo_h */ 70 | -------------------------------------------------------------------------------- /MacOSX/SDL.framework/Versions/A/Headers/SDL_cpuinfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** 24 | * @file SDL_cpuinfo.h 25 | * CPU feature detection for SDL 26 | */ 27 | 28 | #ifndef _SDL_cpuinfo_h 29 | #define _SDL_cpuinfo_h 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** This function returns true if the CPU has the RDTSC instruction */ 40 | extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); 41 | 42 | /** This function returns true if the CPU has MMX features */ 43 | extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void); 44 | 45 | /** This function returns true if the CPU has MMX Ext. features */ 46 | extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void); 47 | 48 | /** This function returns true if the CPU has 3DNow features */ 49 | extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void); 50 | 51 | /** This function returns true if the CPU has 3DNow! Ext. features */ 52 | extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void); 53 | 54 | /** This function returns true if the CPU has SSE features */ 55 | extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void); 56 | 57 | /** This function returns true if the CPU has SSE2 features */ 58 | extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void); 59 | 60 | /** This function returns true if the CPU has AltiVec features */ 61 | extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void); 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* _SDL_cpuinfo_h */ 70 | -------------------------------------------------------------------------------- /Quake/q_ctype.h: -------------------------------------------------------------------------------- 1 | /* Locale insensitive ctype.h functions taken from the RPM library - 2 | * RPM is Copyright (c) 1998 by Red Hat Software, Inc. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or (at 7 | * your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, but 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | * 13 | * See the GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License along 16 | * with this program; if not, write to the Free Software Foundation, Inc., 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef Q_CTYPE_H 21 | #define Q_CTYPE_H 22 | 23 | static inline int q_isascii(int c) 24 | { 25 | return ((c & ~0x7f) == 0); 26 | } 27 | 28 | static inline int q_islower(int c) 29 | { 30 | return (c >= 'a' && c <= 'z'); 31 | } 32 | 33 | static inline int q_isupper(int c) 34 | { 35 | return (c >= 'A' && c <= 'Z'); 36 | } 37 | 38 | static inline int q_isalpha(int c) 39 | { 40 | return (q_islower(c) || q_isupper(c)); 41 | } 42 | 43 | static inline int q_isdigit(int c) 44 | { 45 | return (c >= '0' && c <= '9'); 46 | } 47 | 48 | static inline int q_isxdigit(int c) 49 | { 50 | return (q_isdigit(c) || (c >= 'a' && c <= 'f') || 51 | (c >= 'A' && c <= 'F')); 52 | } 53 | 54 | static inline int q_isalnum(int c) 55 | { 56 | return (q_isalpha(c) || q_isdigit(c)); 57 | } 58 | 59 | static inline int q_isblank(int c) 60 | { 61 | return (c == ' ' || c == '\t'); 62 | } 63 | 64 | static inline int q_isspace(int c) 65 | { 66 | switch(c) { 67 | case ' ': case '\t': 68 | case '\n': case '\r': 69 | case '\f': case '\v': return 1; 70 | } 71 | return 0; 72 | } 73 | 74 | static inline int q_isgraph(int c) 75 | { 76 | return (c > 0x20 && c <= 0x7e); 77 | } 78 | 79 | static inline int q_isprint(int c) 80 | { 81 | return (c >= 0x20 && c <= 0x7e); 82 | } 83 | 84 | static inline int q_toascii(int c) 85 | { 86 | return (c & 0x7f); 87 | } 88 | 89 | static inline int q_tolower(int c) 90 | { 91 | return ((q_isupper(c)) ? (c | ('a' - 'A')) : c); 92 | } 93 | 94 | static inline int q_toupper(int c) 95 | { 96 | return ((q_islower(c)) ? (c & ~('a' - 'A')) : c); 97 | } 98 | 99 | #endif /* Q_CTYPE_H */ 100 | -------------------------------------------------------------------------------- /Quake/console.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2009 John Fitzgibbons and others 4 | Copyright (C) 2010-2014 QuakeSpasm developers 5 | 6 | This program is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU General Public License 8 | as published by the Free Software Foundation; either version 2 9 | of the License, or (at your option) any later version. 10 | 11 | This program is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 | 15 | See the GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 | 21 | */ 22 | 23 | #ifndef __CONSOLE_H 24 | #define __CONSOLE_H 25 | 26 | // 27 | // console 28 | // 29 | extern int con_totallines; 30 | extern int con_backscroll; 31 | extern int con_x; //for testing if there's trailing junk that needs an \n 32 | extern qboolean con_forcedup; // because no entities to refresh 33 | extern qboolean con_initialized; 34 | extern byte *con_chars; 35 | 36 | extern char con_lastcenterstring[]; //johnfitz 37 | 38 | void Con_DrawCharacter (int cx, int line, int num); 39 | 40 | void Con_CheckResize (void); 41 | void Con_Init (void); 42 | void Con_DrawConsole (int lines, qboolean drawinput); 43 | void Con_Printf (const char *fmt, ...) FUNC_PRINTF(1,2); 44 | void Con_DWarning (const char *fmt, ...) FUNC_PRINTF(1,2); //ericw 45 | void Con_Warning (const char *fmt, ...) FUNC_PRINTF(1,2); //johnfitz 46 | void Con_DPrintf (const char *fmt, ...) FUNC_PRINTF(1,2); 47 | void Con_DPrintf2 (const char *fmt, ...) FUNC_PRINTF(1,2); //johnfitz 48 | void Con_SafePrintf (const char *fmt, ...) FUNC_PRINTF(1,2); 49 | void Con_DrawNotify (void); 50 | void Con_ClearNotify (void); 51 | void Con_ToggleConsole_f (void); 52 | qboolean Con_IsRedirected(void); //returns true if its redirected. this generally means that things are a little more verbose. 53 | void Con_Redirect(void(*flush)(const char *text)); 54 | 55 | void Con_NotifyBox (const char *text); // during startup for sound / cd warnings 56 | 57 | void Con_Show (void); 58 | void Con_Hide (void); 59 | 60 | const char *Con_Quakebar (int len); 61 | void Con_TabComplete (void); 62 | void Con_LogCenterPrint (const char *str); 63 | 64 | // 65 | // debuglog 66 | // 67 | void LOG_Init (quakeparms_t *parms); 68 | void LOG_Close (void); 69 | void Con_DebugLog (const char *msg); 70 | 71 | #endif /* __CONSOLE_H */ 72 | 73 | -------------------------------------------------------------------------------- /Misc/qs_pak/default.cfg: -------------------------------------------------------------------------------- 1 | // 2 | // load keybindings 3 | // 4 | // commands with a leading + will also be called for key up events with 5 | // the + changed to a - 6 | unbindall 7 | 8 | // 9 | // character controls 10 | // 11 | 12 | bind ALT +strafe 13 | 14 | bind , +moveleft 15 | bind a +moveleft 16 | bind . +moveright 17 | bind d +moveright 18 | bind DEL +lookdown 19 | bind PGDN +lookup 20 | bind END centerview 21 | 22 | bind e +moveup 23 | bind c +movedown 24 | bind SHIFT +speed 25 | bind CTRL +attack 26 | bind UPARROW +forward 27 | bind w +forward 28 | bind DOWNARROW +back 29 | bind s +back 30 | bind LEFTARROW +left 31 | bind RIGHTARROW +right 32 | 33 | bind SPACE +jump 34 | //bind ENTER +jump 35 | 36 | bind TAB +showscores 37 | 38 | bind 1 "impulse 1" 39 | bind 2 "impulse 2" 40 | bind 3 "impulse 3" 41 | bind 4 "impulse 4" 42 | bind 5 "impulse 5" 43 | bind 6 "impulse 6" 44 | bind 7 "impulse 7" 45 | bind 8 "impulse 8" 46 | 47 | bind 0 "impulse 0" 48 | 49 | bind / "impulse 10" // change weapon 50 | bind MWHEELDOWN "impulse 10" 51 | bind MWHEELUP "impulse 12" 52 | 53 | // zoom 54 | alias zoom_in "sensitivity 2;fov 90;wait;fov 70;wait;fov 50;wait;fov 30;wait;fov 10;wait;fov 5;bind F11 zoom_out" 55 | alias zoom_out "sensitivity 4;fov 5;wait;fov 10;wait;fov 30;wait;fov 50;wait;fov 70;wait;fov 90;bind F11 zoom_in; sensitivity 3" 56 | bind F11 zoom_in 57 | 58 | // Function keys 59 | bind F1 "help" 60 | bind F2 "menu_save" 61 | bind F3 "menu_load" 62 | bind F4 "menu_options" 63 | bind F5 "menu_multiplayer" 64 | bind F6 "echo Quicksaving...; wait; save quick" 65 | bind F9 "echo Quickloading...; wait; load quick" 66 | bind F10 "quit" 67 | bind F12 "screenshot" 68 | 69 | // mouse options 70 | bind \ +mlook 71 | 72 | // 73 | // client environment commands 74 | // 75 | bind PAUSE "pause" 76 | bind ESCAPE "togglemenu" 77 | bind ~ "toggleconsole" 78 | bind ` "toggleconsole" 79 | 80 | bind t "messagemode" 81 | 82 | bind + "sizeup" 83 | bind = "sizeup" 84 | bind - "sizedown" 85 | 86 | bind INS +klook 87 | 88 | // 89 | // mouse buttons 90 | // 91 | bind MOUSE1 +attack 92 | //bind MOUSE2 +forward 93 | bind MOUSE2 +jump 94 | //bind MOUSE3 +mlook 95 | 96 | // 97 | // game controller 98 | // 99 | bind LSHOULDER "impulse 12" 100 | bind RSHOULDER "impulse 10" 101 | bind LTRIGGER +jump 102 | bind RTRIGGER +attack 103 | 104 | // 105 | // default cvars 106 | // 107 | gamma 1.0 108 | volume 0.7 109 | sensitivity 3 110 | 111 | //viewsize 100 112 | viewsize 110 113 | scr_conscale 1.6 114 | scr_menuscale 1.6 115 | scr_sbarscale 1.6 116 | 117 | // default to mouse-look enabled 118 | +mlook 119 | -------------------------------------------------------------------------------- /Quake/net_wins.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2010-2014 QuakeSpasm developers 4 | 5 | This program is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU General Public License 7 | as published by the Free Software Foundation; either version 2 8 | of the License, or (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, write to the Free Software 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | 20 | */ 21 | 22 | #ifndef __NET_WINSOCK_H 23 | #define __NET_WINSOCK_H 24 | 25 | int WINS_CloseSocket (sys_socket_t socketid); 26 | int WINS_Connect (sys_socket_t socketid, struct qsockaddr *addr); 27 | int WINS_Read (sys_socket_t socketid, byte *buf, int len, struct qsockaddr *addr); 28 | int WINS_Write (sys_socket_t socketid, byte *buf, int len, struct qsockaddr *addr); 29 | const char *WINS_AddrToString (struct qsockaddr *addr, qboolean masked); 30 | int WINS_GetSocketAddr (sys_socket_t socketid, struct qsockaddr *addr); 31 | int WINS_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 32 | int WINS_GetSocketPort (struct qsockaddr *addr); 33 | int WINS_SetSocketPort (struct qsockaddr *addr, int port); 34 | 35 | sys_socket_t WINIPv4_Init (void); 36 | void WINIPv4_Shutdown (void); 37 | sys_socket_t WINIPv4_Listen (qboolean state); 38 | int WINIPv4_GetAddresses (qhostaddr_t *addresses, int maxaddresses); 39 | sys_socket_t WINIPv4_OpenSocket (int port); 40 | sys_socket_t WINIPv4_CheckNewConnections (void); 41 | int WINIPv4_Broadcast (sys_socket_t socketid, byte *buf, int len); 42 | int WINIPv4_StringToAddr (const char *string, struct qsockaddr *addr); 43 | int WINIPv4_GetNameFromAddr (struct qsockaddr *addr, char *name); 44 | int WINIPv4_GetAddrFromName (const char *name, struct qsockaddr *addr); 45 | 46 | 47 | #ifdef IPPROTO_IPV6 48 | sys_socket_t WINIPv6_Init (void); 49 | void WINIPv6_Shutdown (void); 50 | sys_socket_t WINIPv6_Listen (qboolean state); 51 | int WINIPv6_GetAddresses (qhostaddr_t *addresses, int maxaddresses); 52 | sys_socket_t WINIPv6_OpenSocket (int port); 53 | sys_socket_t WINIPv6_CheckNewConnections (void); 54 | int WINIPv6_Broadcast (sys_socket_t socketid, byte *buf, int len); 55 | int WINIPv6_StringToAddr (const char *string, struct qsockaddr *addr); 56 | int WINIPv6_GetNameFromAddr (struct qsockaddr *addr, char *name); 57 | int WINIPv6_GetAddrFromName (const char *name, struct qsockaddr *addr); 58 | #endif 59 | 60 | #endif /* __NET_WINSOCK_H */ 61 | 62 | -------------------------------------------------------------------------------- /Quake/pl_linux.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-2001 Id Software, Inc. 3 | Copyright (C) 2002-2005 John Fitzgibbons and others 4 | Copyright (C) 2007-2008 Kristian Duske 5 | Copyright (C) 2010-2014 QuakeSpasm developers 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License 9 | as published by the Free Software Foundation; either version 2 10 | of the License, or (at your option) any later version. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 | 16 | See the GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program; if not, write to the Free Software 20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 | 22 | */ 23 | 24 | #include "quakedef.h" 25 | #if defined(SDL_FRAMEWORK) || defined(NO_SDL_CONFIG) 26 | #if defined(USE_SDL2) 27 | #include 28 | #else 29 | #include 30 | #endif 31 | #else 32 | #include "SDL.h" 33 | #endif 34 | 35 | static const Uint8 bmp_bytes[] = 36 | { 37 | #include "qs_bmp.h" 38 | }; 39 | 40 | void PL_SetWindowIcon (void) 41 | { 42 | SDL_RWops *rwop; 43 | SDL_Surface *icon; 44 | Uint32 colorkey; 45 | 46 | /* SDL_RWFromConstMem() requires SDL >= 1.2.7 */ 47 | rwop = SDL_RWFromConstMem(bmp_bytes, sizeof(bmp_bytes)); 48 | if (rwop == NULL) 49 | return; 50 | icon = SDL_LoadBMP_RW(rwop, 1); 51 | if (icon == NULL) 52 | return; 53 | /* make pure magenta (#ff00ff) tranparent */ 54 | colorkey = SDL_MapRGB(icon->format, 255, 0, 255); 55 | #if defined(USE_SDL2) 56 | SDL_SetColorKey(icon, SDL_TRUE, colorkey); 57 | SDL_SetWindowIcon((SDL_Window*) VID_GetWindow(), icon); 58 | #else 59 | SDL_SetColorKey(icon, SDL_SRCCOLORKEY, colorkey); 60 | SDL_WM_SetIcon(icon, NULL); 61 | #endif 62 | SDL_FreeSurface(icon); 63 | } 64 | 65 | void PL_VID_Shutdown (void) 66 | { 67 | } 68 | 69 | #define MAX_CLIPBOARDTXT MAXCMDLINE /* 256 */ 70 | char *PL_GetClipboardData (void) 71 | { 72 | char *data = NULL; 73 | #if defined(USE_SDL2) 74 | char *cliptext = SDL_GetClipboardText(); 75 | 76 | if (cliptext != NULL) 77 | { 78 | size_t size = strlen(cliptext) + 1; 79 | /* this is intended for simple small text copies 80 | * such as an ip address, etc: do chop the size 81 | * here, otherwise we may experience Z_Malloc() 82 | * failures and all other not-oh-so-fun stuff. */ 83 | size = q_min((size_t)(MAX_CLIPBOARDTXT), size); 84 | data = (char *) Z_Malloc((int)size); 85 | q_strlcpy (data, cliptext, size); 86 | } 87 | #endif 88 | 89 | return data; 90 | } 91 | 92 | void PL_ErrorDialog (const char *errorMsg) 93 | { 94 | #if SDL_MAJOR_VERSION >= 2 95 | SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Sys_Error", errorMsg, NULL); 96 | #endif 97 | } 98 | 99 | -------------------------------------------------------------------------------- /Quake/snd_voip.h: -------------------------------------------------------------------------------- 1 | //spike -- this file contains prototypes+etc for voice chat. 2 | //it should be fairly straight forward to integrate this into other engines, however, to implement it properly you'll need to deal with the whole pext2_voicechat handshake thing. 3 | //for quakespasm-spiked this is already handled for entity deltas etc. 4 | //you'll also need to figure out something with the 4 clientcommands that servers might receive. 5 | //to test, cl_voip_test 1;sv_voip_echo 0;+voip should start playing even without any protocol extensions. then move on to cl_voip_test 0;sv_voip_echo 1;+voip once you have protocol stuff working. 6 | //you'll also want to add the various voip settings to the menu, especially cl_voip_play (slider 0-1), cl_voip_send (boolean), +voip binding. 7 | 8 | //defined elsewhere 9 | //#define svcfte_voicechat 84 10 | //#define clcfte_voicechat 83 11 | struct client_s; 12 | 13 | 14 | //client functions 15 | void S_Voip_Transmit(unsigned char clc, sizebuf_t *buf); //call from CL_SendMove (null buf if not connecting, grabs new data, encodes, and writes into the buffer) 16 | void S_Voip_MapChange(void); //call from end of CL_ParseServerinfo (tells server to reenable voice chat) 17 | void S_Voip_Parse(void); //call from CL_ParseServerMessage+svcfte_voicechat. processes voip data from the server 18 | int S_Voip_Loudness(qboolean ignorevad); //for sbar stuff, if you want to draw some mic-level bar (returns 0-100, or -1 for not transmitting) 19 | qboolean S_Voip_Speaking(unsigned int plno); //for sbar stuff, if you want to query which other players are speaking (add a scoreboard back-colour or something). 20 | void S_Voip_Init(void); //call from S_Init, registers client cvars+commands 21 | 22 | //server functions 23 | void SV_VoiceInit(void); //call from SV_Init, registers server cvars+commands 24 | void SV_VoiceInitClient(struct client_s *client); //call from start of SV_SendServerinfo, disables voice chat until the client is ready to re-enable it 25 | void SV_VoiceSendPacket(struct client_s *client, sizebuf_t *buf); //call from near end of SV_SendClientDatagram, to forward voice data to other clients 26 | void SV_VoiceReadPacket(struct client_s *client); //call from SV_ReadClientMessage+clcfte_voicechat. processes voip data from clients and figures out which clients to forward to 27 | typedef struct 28 | { 29 | unsigned int read; /*place in ring*/ 30 | unsigned char mute[MAX_SCOREBOARD/8]; /*which other clients should be muted for this player, reducing bandwidth from annoying cunts*/ 31 | qboolean active; /*client wants to hear other people*/ 32 | enum 33 | { 34 | /*should we add one to respond to the last speaker? or should that be an automagic +voip_reply instead?*/ 35 | VT_TEAM, 36 | VT_ALL, 37 | VT_NONMUTED, /*cheap, but allows custom private channels with no external pesters*/ 38 | VT_PLAYERSLOT0 39 | /*player0+...*/ 40 | } target; 41 | } client_voip_t; //embedded within struct client_s as a member named voip 42 | -------------------------------------------------------------------------------- /Windows/SDL/include/SDL_version.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2012 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /** @file SDL_version.h 24 | * This header defines the current SDL version 25 | */ 26 | 27 | #ifndef _SDL_version_h 28 | #define _SDL_version_h 29 | 30 | #include "SDL_stdinc.h" 31 | 32 | #include "begin_code.h" 33 | /* Set up for C function definitions, even when using C++ */ 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | /** @name Version Number 39 | * Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL 40 | */ 41 | /*@{*/ 42 | #define SDL_MAJOR_VERSION 1 43 | #define SDL_MINOR_VERSION 2 44 | #define SDL_PATCHLEVEL 16 45 | /*@}*/ 46 | 47 | typedef struct SDL_version { 48 | Uint8 major; 49 | Uint8 minor; 50 | Uint8 patch; 51 | } SDL_version; 52 | 53 | /** 54 | * This macro can be used to fill a version structure with the compile-time 55 | * version of the SDL library. 56 | */ 57 | #define SDL_VERSION(X) \ 58 | { \ 59 | (X)->major = SDL_MAJOR_VERSION; \ 60 | (X)->minor = SDL_MINOR_VERSION; \ 61 | (X)->patch = SDL_PATCHLEVEL; \ 62 | } 63 | 64 | /** This macro turns the version numbers into a numeric value: 65 | * (1,2,3) -> (1203) 66 | * This assumes that there will never be more than 100 patchlevels 67 | */ 68 | #define SDL_VERSIONNUM(X, Y, Z) \ 69 | ((X)*1000 + (Y)*100 + (Z)) 70 | 71 | /** This is the version number macro for the current SDL version */ 72 | #define SDL_COMPILEDVERSION \ 73 | SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL) 74 | 75 | /** This macro will evaluate to true if compiled with SDL at least X.Y.Z */ 76 | #define SDL_VERSION_ATLEAST(X, Y, Z) \ 77 | (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) 78 | 79 | /** This function gets the version of the dynamically linked SDL library. 80 | * it should NOT be used to fill a version structure, instead you should 81 | * use the SDL_Version() macro. 82 | */ 83 | extern DECLSPEC const SDL_version * SDLCALL SDL_Linked_Version(void); 84 | 85 | /* Ends C function definitions when using C++ */ 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | #include "close_code.h" 90 | 91 | #endif /* _SDL_version_h */ 92 | -------------------------------------------------------------------------------- /MacOSX/codecs/include/FLAC/ordinals.h: -------------------------------------------------------------------------------- 1 | /* libFLAC - Free Lossless Audio Codec library 2 | * Copyright (C) 2000-2009 Josh Coalson 3 | * Copyright (C) 2011-2013 Xiph.Org Foundation 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions 7 | * are met: 8 | * 9 | * - Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * 12 | * - Redistributions in binary form must reproduce the above copyright 13 | * notice, this list of conditions and the following disclaimer in the 14 | * documentation and/or other materials provided with the distribution. 15 | * 16 | * - Neither the name of the Xiph.org Foundation nor the names of its 17 | * contributors may be used to endorse or promote products derived from 18 | * this software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 24 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | */ 32 | 33 | #ifndef FLAC__ORDINALS_H 34 | #define FLAC__ORDINALS_H 35 | 36 | #if defined(_MSC_VER) && _MSC_VER < 1600 37 | 38 | /* Microsoft Visual Studio earlier than the 2010 version did not provide 39 | * the 1999 ISO C Standard header file . 40 | */ 41 | 42 | typedef __int8 FLAC__int8; 43 | typedef unsigned __int8 FLAC__uint8; 44 | 45 | typedef __int16 FLAC__int16; 46 | typedef __int32 FLAC__int32; 47 | typedef __int64 FLAC__int64; 48 | typedef unsigned __int16 FLAC__uint16; 49 | typedef unsigned __int32 FLAC__uint32; 50 | typedef unsigned __int64 FLAC__uint64; 51 | 52 | #else 53 | 54 | /* For MSVC 2010 and everything else which provides . */ 55 | 56 | #include 57 | 58 | typedef int8_t FLAC__int8; 59 | typedef uint8_t FLAC__uint8; 60 | 61 | typedef int16_t FLAC__int16; 62 | typedef int32_t FLAC__int32; 63 | typedef int64_t FLAC__int64; 64 | typedef uint16_t FLAC__uint16; 65 | typedef uint32_t FLAC__uint32; 66 | typedef uint64_t FLAC__uint64; 67 | 68 | #endif 69 | 70 | typedef int FLAC__bool; 71 | 72 | typedef FLAC__uint8 FLAC__byte; 73 | 74 | 75 | #ifdef true 76 | #undef true 77 | #endif 78 | #ifdef false 79 | #undef false 80 | #endif 81 | #ifndef __cplusplus 82 | #define true 1 83 | #define false 0 84 | #endif 85 | 86 | #endif 87 | --------------------------------------------------------------------------------