├── .gitattributes ├── .gitignore ├── 7za.exe ├── CL.EXE ├── EBOOT └── EBOOT.PBP ├── GLCode ├── gl_draw.c ├── gl_fakegl.cpp ├── gl_fullbright.c ├── gl_fullbright.h ├── gl_local.h ├── gl_mesh.c ├── gl_model.c ├── gl_model.h ├── gl_refrag.c ├── gl_rlight.c ├── gl_rmain.c ├── gl_rmisc.c ├── gl_rpart.c ├── gl_rsurf.c ├── gl_screen.c ├── gl_test.c ├── gl_texture.h ├── gl_vidlinux.c ├── gl_vidlinuxglx.c ├── gl_warp.c └── gl_warp_sin.h ├── NameDate.exe ├── README.md ├── WinQuake.dsp ├── WinQuake.dsw ├── WinQuake.ncb ├── WinQuake.opt ├── WinQuake.plg ├── adivtab.h ├── anorm_dots.h ├── anorms.h ├── archive.bat ├── asm_draw.h ├── asm_i386.h ├── binfiles.txt ├── block16.h ├── block8.h ├── bspfile.h ├── bspfile.h.bak ├── cd_audio.c ├── cd_flash.c ├── cd_linux.c ├── cd_null.c ├── cd_win.c ├── cdaudio.h ├── cl_chase.c ├── cl_demo.c ├── cl_input.c ├── cl_main.c ├── cl_parse.c ├── cl_sbar.c ├── cl_sbar.h ├── cl_screen.h ├── cl_tent.c ├── cl_view.c ├── cl_view.h ├── client.h ├── cmd.c ├── cmd.h ├── common.c ├── common.h ├── conproc.c ├── conproc.h ├── console.c ├── console.h ├── cpptest.cpp ├── crc.c ├── crc.h ├── curl.h ├── curlver.h ├── cvar.c ├── cvar.h ├── d_copy.s ├── d_draw.s ├── d_draw16.s ├── d_edge.c ├── d_fill.c ├── d_iface.h ├── d_ifacea.h ├── d_init.c ├── d_local.h ├── d_modech.c ├── d_part.c ├── d_parta.s ├── d_polysa.s ├── d_polyse.c ├── d_scan.c ├── d_scana.s ├── d_sky.c ├── d_spr8.s ├── d_sprite.c ├── d_surf.c ├── d_vars.c ├── d_varsa.s ├── d_zpoint.c ├── dos_v2.c ├── dosasm.s ├── dosisms.h ├── draw.c ├── draw.h ├── easy.h ├── gl_draw.c ├── gl_fakegl.cpp ├── gl_fullbright.c ├── gl_fullbright.h ├── gl_local.h ├── gl_mesh.c ├── gl_model.c ├── gl_model.h ├── gl_refrag.c ├── gl_rlight.c ├── gl_rmain.c ├── gl_rmisc.c ├── gl_rpart.c ├── gl_rsurf.c ├── gl_screen.c ├── gl_test.c ├── gl_texture.h ├── gl_vidlinux.c ├── gl_vidlinuxglx.c ├── gl_warp.c ├── gl_warp_sin.h ├── host.c ├── host.c.bak ├── host_cmd.c ├── icon3.ico ├── in_flash.c ├── in_null.c ├── in_win.c ├── input.h ├── iplog.c ├── iplog.h ├── keys.c ├── keys.h ├── libcurl.lib ├── location.c ├── location.h ├── math.s ├── mathlib.c ├── mathlib.h ├── matrix.c ├── menu.bakbak ├── menu.c ├── menu.c.bak ├── menu.cbaknew ├── menu.h ├── model.c ├── model.h ├── modelgen.h ├── movie.c ├── movie.h ├── movie_avi.c ├── movie_avi.h ├── mpdosock.h ├── mplib.c ├── mplpc.c ├── multi.h ├── net.h ├── net_bsd.c ├── net_bw.c ├── net_bw.h ├── net_comx.c ├── net_dgrm.c ├── net_dgrm.h ├── net_dos.c ├── net_ipx.c ├── net_ipx.h ├── net_loop.c ├── net_loop.h ├── net_main.c ├── net_mp.c ├── net_mp.h ├── net_none.c ├── net_ser.c ├── net_ser.h ├── net_udp.c ├── net_udp.h ├── net_vcr.c ├── net_vcr.h ├── net_win.c ├── net_wins.c ├── net_wins.h ├── net_wipx.c ├── net_wipx.h ├── net_wso.c ├── nonintel.c ├── osxdiff_gl_screen.c ├── osxdiff_keys.c ├── osxdiff_keys.h ├── osxdiff_menu.c ├── osxdiff_net_udp.c ├── osxdiff_r_screen.c ├── osxdiff_vid_common_gl.c ├── pr_cmds.c ├── pr_comp.h ├── pr_edict.c ├── pr_exec.c ├── progdefs.h ├── progdefs.q1 ├── progdefs.q2 ├── progs.h ├── protocol.h ├── psp ├── .svn │ ├── all-wcprops │ ├── entries │ ├── format │ ├── prop-base │ │ ├── PARAM.SFO.svn-base │ │ └── PARAMslim.SFO.svn-base │ └── text-base │ │ ├── Cygwin_normal_clean.bat.svn-base │ │ ├── Cygwin_normal_eboot.bat.svn-base │ │ ├── Cygwin_normal_install.bat.svn-base │ │ ├── Cygwin_normal_make.bat.svn-base │ │ ├── Cygwin_slim_clean.bat.svn-base │ │ ├── Cygwin_slim_eboot.bat.svn-base │ │ ├── Cygwin_slim_install.bat.svn-base │ │ ├── Cygwin_slim_make.bat.svn-base │ │ ├── Makefile.svn-base │ │ ├── MakefileNormal.svn-base │ │ ├── PARAM.SFO.svn-base │ │ ├── PARAMslim.SFO.svn-base │ │ ├── Quake_PSP.vcproj.svn-base │ │ ├── battery.cpp.svn-base │ │ ├── battery.hpp.svn-base │ │ ├── cd.cpp.svn-base │ │ ├── cdmad.cpp.svn-base │ │ ├── clipping.cpp.svn-base │ │ ├── clipping.hpp.svn-base │ │ ├── fnmatch.cpp.svn-base │ │ ├── fnmatch.h.svn-base │ │ ├── gethost.cpp.svn-base │ │ ├── gethost.hpp.svn-base │ │ ├── input.cpp.svn-base │ │ ├── lightmaps.h.svn-base │ │ ├── mad.h.svn-base │ │ ├── main.cpp.svn-base │ │ ├── math.cpp.svn-base │ │ ├── math.hpp.svn-base │ │ ├── mcount.S.svn-base │ │ ├── module.cpp.svn-base │ │ ├── module.h.svn-base │ │ ├── mp3.c.svn-base │ │ ├── mp3.h.svn-base │ │ ├── network.cpp.svn-base │ │ ├── network_psp.cpp.svn-base │ │ ├── network_psp.hpp.svn-base │ │ ├── prof.c.svn-base │ │ ├── pspDveManager.S.svn-base │ │ ├── sed_make.sh.svn-base │ │ ├── sound.cpp.svn-base │ │ ├── system.cpp.svn-base │ │ ├── system.hpp.svn-base │ │ ├── video_hardware.cpp.svn-base │ │ ├── video_hardware.h.svn-base │ │ ├── video_hardware_draw.cpp.svn-base │ │ ├── video_hardware_entity_fragment.cpp.svn-base │ │ ├── video_hardware_fog.cpp.svn-base │ │ ├── video_hardware_light.cpp.svn-base │ │ ├── video_hardware_main.cpp.svn-base │ │ ├── video_hardware_mesh.cpp.svn-base │ │ ├── video_hardware_misc.cpp.svn-base │ │ ├── video_hardware_model.cpp.svn-base │ │ ├── video_hardware_model.h.svn-base │ │ ├── video_hardware_screen.cpp.svn-base │ │ ├── video_hardware_surface.cpp.svn-base │ │ ├── video_hardware_vertexlights.h.svn-base │ │ ├── video_hardware_warp.cpp.svn-base │ │ ├── video_software.cpp.svn-base │ │ ├── video_vertex_lighting.c.svn-base │ │ ├── video_vertex_lighting.h.svn-base │ │ ├── vram.cpp.svn-base │ │ └── vram.hpp.svn-base ├── Cygwin_normal_clean.bat ├── Cygwin_normal_eboot.bat ├── Cygwin_normal_install.bat ├── Cygwin_normal_make.bat ├── Cygwin_slim_clean.bat ├── Cygwin_slim_eboot.bat ├── Cygwin_slim_install.bat ├── Cygwin_slim_make.bat ├── Makefile ├── MakefileNormal ├── MakefileNormal.bak ├── PARAM.SFO ├── PARAMslim.SFO ├── Quake_PSP.vcproj ├── battery.cpp ├── battery.hpp ├── build │ └── Install_eboot.bat ├── cd.cpp ├── cdmad.cpp ├── dist │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── format │ │ └── text-base │ │ │ ├── gpl.txt.svn-base │ │ │ ├── old_readme.txt.svn-base │ │ │ └── readme.html.svn-base │ ├── Quake │ │ └── .svn │ │ │ ├── all-wcprops │ │ │ ├── entries │ │ │ └── format │ ├── gpl.txt │ ├── old_readme.txt │ └── readme.html ├── fs_fnmatch.cpp ├── fs_fnmatch.h ├── input.cpp ├── m33libs │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── format │ │ ├── prop-base │ │ │ ├── libpspaudiocodec.a.svn-base │ │ │ └── libpspkubridge.a.svn-base │ │ └── text-base │ │ │ ├── kubridge.h.svn-base │ │ │ ├── libpspaudiocodec.a.svn-base │ │ │ └── libpspkubridge.a.svn-base │ ├── include │ │ └── kubridge.h │ ├── lib │ │ └── libpspkubridge.a │ └── libpspaudiocodec.a ├── mad.h ├── madlibs │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── format │ │ ├── prop-base │ │ │ └── libmad.a.svn-base │ │ └── text-base │ │ │ └── libmad.a.svn-base │ └── libmad.a ├── main.cpp ├── math.cpp ├── math.hpp ├── mcount.S ├── mp3.c ├── mp3.c.bak ├── mp3.h ├── network.cpp ├── network_gethost.cpp ├── network_gethost.hpp ├── network_psp.cpp ├── network_psp.hpp ├── normal │ ├── EBOOT.PBP │ ├── PARAM.SFO │ ├── Quake.elf │ ├── Quake.prx │ ├── cl_chase.o │ ├── cl_demo.o │ ├── cl_input.o │ ├── cl_main.o │ ├── cl_parse.o │ ├── cl_sbar.o │ ├── cl_tent.o │ ├── cl_view.o │ ├── cmd.o │ ├── common.o │ ├── console.o │ ├── crc.o │ ├── cvar.o │ ├── d_edge.o │ ├── d_fill.o │ ├── d_init.o │ ├── d_modech.o │ ├── d_part.o │ ├── d_polyse.o │ ├── d_scan.o │ ├── d_sky.o │ ├── d_sprite.o │ ├── d_surf.o │ ├── d_vars.o │ ├── d_zpoint.o │ ├── host.o │ ├── host_cmd.o │ ├── keys.o │ ├── mathlib.o │ ├── menu.o │ ├── net_dgrm.o │ ├── net_loop.o │ ├── net_main.o │ ├── net_vcr.o │ ├── nonintel.o │ ├── pr_cmds.o │ ├── pr_edict.o │ ├── pr_exec.o │ ├── psp │ │ ├── battery.o │ │ ├── cd.o │ │ ├── fs_fnmatch.o │ │ ├── input.o │ │ ├── main.o │ │ ├── math.o │ │ ├── mp3.o │ │ ├── network.o │ │ ├── network_gethost.o │ │ ├── network_psp.o │ │ ├── pspDveManager.o │ │ ├── sound.o │ │ ├── sysmem_module.o │ │ └── system.o │ ├── pspgu │ │ ├── clipping.o │ │ ├── video_hardware.o │ │ ├── video_hardware_draw.o │ │ ├── video_hardware_entity_fragment.o │ │ ├── video_hardware_fog.o │ │ ├── video_hardware_light.o │ │ ├── video_hardware_main.o │ │ ├── video_hardware_mesh.o │ │ ├── video_hardware_misc.o │ │ ├── video_hardware_model.o │ │ ├── video_hardware_screen.o │ │ ├── video_hardware_surface.o │ │ ├── video_hardware_warp.o │ │ ├── video_software.o │ │ ├── video_vertex_lighting.o │ │ └── vram.o │ ├── r_aclip.o │ ├── r_alias.o │ ├── r_part.o │ ├── snd_dma.o │ ├── snd_mem.o │ ├── snd_mix.o │ ├── sv_main.o │ ├── sv_move.o │ ├── sv_phys.o │ ├── sv_user.o │ ├── sv_world.o │ ├── version.o │ ├── wad.o │ └── zone.o ├── pics │ ├── .svn │ │ ├── all-wcprops │ │ ├── entries │ │ ├── format │ │ ├── prop-base │ │ │ ├── Thumbs.db.svn-base │ │ │ ├── icon.png.svn-base │ │ │ ├── icon1.png.svn-base │ │ │ ├── pic.png.svn-base │ │ │ ├── pic1.png.svn-base │ │ │ └── pic2.png.svn-base │ │ └── text-base │ │ │ ├── Thumbs.db.svn-base │ │ │ ├── icon.png.svn-base │ │ │ ├── icon1.png.svn-base │ │ │ ├── pic.png.svn-base │ │ │ ├── pic1.png.svn-base │ │ │ └── pic2.png.svn-base │ ├── PIC1.PNG │ ├── bak │ └── icon.png ├── prof.c ├── pspDveManager.S ├── sed_make.sh ├── sound.cpp ├── sysmem_module.cpp ├── sysmem_module.cpp.bak ├── sysmem_module.h ├── system.cpp ├── system.cpp.bak └── system.hpp ├── pspgu ├── clipping.cpp ├── clipping.hpp ├── gl_model_psp.c.fail ├── lightmaps.h ├── video_hardware.cpp ├── video_hardware.h ├── video_hardware.h.bak ├── video_hardware_draw.cpp ├── video_hardware_entity_fragment.cpp ├── video_hardware_fog.cpp ├── video_hardware_light.cpp ├── video_hardware_main.cpp ├── video_hardware_main.cpp.bak ├── video_hardware_mesh.cpp ├── video_hardware_misc.cpp ├── video_hardware_misc.cpp.bak ├── video_hardware_model.cpp ├── video_hardware_model.cpp.bak ├── video_hardware_model.h ├── video_hardware_screen.cpp ├── video_hardware_surface.cpp ├── video_hardware_vertexlights.h ├── video_hardware_warp.cpp ├── video_software.cpp ├── video_vertex_lighting.c ├── video_vertex_lighting.h ├── vram.cpp └── vram.hpp ├── qe3.ico ├── quake.gif ├── quake.ico ├── quakeasm.h ├── quakedef.h ├── r_aclip.c ├── r_aclipa.s ├── r_alias.c ├── r_aliasa.s ├── r_bsp.c ├── r_draw.c ├── r_drawa.s ├── r_edge.c ├── r_edgea.s ├── r_efrag.c ├── r_light.c ├── r_local.h ├── r_main.c ├── r_misc.c ├── r_model.c ├── r_model.h ├── r_part.c ├── r_rast.c ├── r_screen.c ├── r_shared.h ├── r_sky.c ├── r_sprite.c ├── r_surf.c ├── r_vars.c ├── r_varsa.s ├── registry.cpp ├── render.h ├── resource.h ├── screen.c ├── screen.h ├── security.c ├── security.h ├── server.h ├── snd_dma.c ├── snd_dos.c ├── snd_flash.c ├── snd_gus.c ├── snd_linux.c ├── snd_mem.c ├── snd_mix.c ├── snd_mixa.s ├── snd_next.c ├── snd_null.c ├── snd_sun.c ├── snd_win.c ├── sound.h ├── spritegn.h ├── srcfiles.txt ├── surf16.s ├── surf8.s ├── sv_main.c ├── sv_move.c ├── sv_phys.c ├── sv_user.c ├── sv_world.c ├── sv_world.h ├── sys.h ├── sys_dosa.s ├── sys_flash.c ├── sys_linux.c ├── sys_win.c ├── sys_wina.s ├── sys_wind.c ├── test.cpp ├── vc7_hack.cpp ├── version.c ├── version.h ├── vgamodes.h ├── vid.h ├── vid_common_gl.c ├── vid_flash.c ├── vid_wgl.c ├── vid_win.c ├── vid_win_pure.c ├── vid_x.c ├── vregset.c ├── vregset.h ├── wad.c ├── wad.c.bak ├── wad.h ├── wad.h.bak ├── webdownload.c ├── webdownload.h ├── winquake.aps ├── winquake.h ├── winquake.ico ├── winquake.rc ├── worlda.s ├── zone.c └── zone.h /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | -------------------------------------------------------------------------------- /7za.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/7za.exe -------------------------------------------------------------------------------- /CL.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/CL.EXE -------------------------------------------------------------------------------- /EBOOT/EBOOT.PBP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/EBOOT/EBOOT.PBP -------------------------------------------------------------------------------- /GLCode/gl_fullbright.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2004 MH 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 | // gl_fullbright.c 21 | 22 | #include "quakedef.h" 23 | extern qboolean mtexenabled; 24 | int FindFullbrightTexture (byte *pixels, int num_pix) 25 | { 26 | int i; 27 | for (i = 0; i < num_pix; i++) 28 | if (pixels[i] > 223) 29 | return 1; 30 | 31 | return 0; 32 | } 33 | 34 | void ConvertPixels (byte *pixels, int num_pixels) 35 | { 36 | int i; 37 | 38 | for (i = 0; i < num_pixels; i++) 39 | if (pixels[i] < 224) 40 | pixels[i] = 255; 41 | } 42 | 43 | void DrawFullBrightTextures (msurface_t *first_surf, int num_surfs) 44 | { 45 | // gl_texsort 1 version 46 | int i; 47 | msurface_t *fa; 48 | texture_t *t; 49 | 50 | if (r_fullbright.value) 51 | return; 52 | 53 | if (mtexenabled) 54 | return; 55 | 56 | GL_DisableMultitexture (); 57 | 58 | for (fa = first_surf, i = 0; i < num_surfs; fa++, i++) 59 | { 60 | // find the correct texture 61 | t = R_TextureAnimation (fa->texinfo->texture); 62 | 63 | if (t->fullbright != -1 && fa->draw_this_frame) 64 | { 65 | glEnable (GL_BLEND); 66 | GL_Bind (t->fullbright); 67 | DrawGLPoly (fa->polys); 68 | glDisable (GL_BLEND); 69 | } 70 | 71 | fa->draw_this_frame = 0; 72 | } 73 | } -------------------------------------------------------------------------------- /GLCode/gl_fullbright.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2004-2004 MH 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 | // gl_fullbright.h 21 | 22 | #include "gl_model.h" 23 | 24 | int FindFullbrightTexture (byte *pixels, int num_pix); 25 | void DrawFullBrightTextures (msurface_t *first_surf, int num_surfs); 26 | void ConvertPixels (byte *pixels, int num_pixels); -------------------------------------------------------------------------------- /GLCode/gl_rpart.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002-2003, Dr Labman, A. Nourai 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 | // gl_rpart.c 21 | 22 | #include "quakedef.h" 23 | 24 | 25 | 26 | 27 | typedef struct particle_s 28 | { 29 | 30 | vec3_t org; 31 | float color; 32 | 33 | struct particle_s *next; 34 | vec3_t vel; 35 | float ramp; 36 | float die; 37 | ptype_t type; 38 | } particle_t; -------------------------------------------------------------------------------- /NameDate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/NameDate.exe -------------------------------------------------------------------------------- /WinQuake.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "gas2masm"=.\gas2masm\gas2masm.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Project: "winquake"=.\WinQuake.dsp - Package Owner=<4> 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<4> 25 | {{{ 26 | Begin Project Dependency 27 | Project_Dep_Name gas2masm 28 | End Project Dependency 29 | }}} 30 | 31 | ############################################################################### 32 | 33 | Global: 34 | 35 | Package=<5> 36 | {{{ 37 | }}} 38 | 39 | Package=<3> 40 | {{{ 41 | }}} 42 | 43 | ############################################################################### 44 | 45 | -------------------------------------------------------------------------------- /WinQuake.ncb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/WinQuake.ncb -------------------------------------------------------------------------------- /WinQuake.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/WinQuake.opt -------------------------------------------------------------------------------- /archive.bat: -------------------------------------------------------------------------------- 1 | echo Erase zip files 2 | erase *.zip 3 | echo Create src.zip 4 | 7za a -tzip proquake-src.zip @srcfiles.txt 5 | namedate /XYZ:"Ymd_HM" "proquake-src.zip" 6 | echo Create bin.zip 7 | 7za a -tzip proquake.zip @binfiles.txt 8 | namedate /XYZ:"Ymd_HM" "proquake.zip" 9 | echo Done 10 | pause -------------------------------------------------------------------------------- /asm_i386.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #ifndef __ASM_I386__ 22 | #define __ASM_I386__ 23 | 24 | #ifdef ELF 25 | #define C(label) label 26 | #else 27 | #define C(label) _##label 28 | #endif 29 | 30 | // !!! note that this file must match the corresponding C structures at all 31 | // times !!! 32 | 33 | // plane_t structure 34 | // !!! if this is changed, it must be changed in model.h too !!! 35 | // !!! if the size of this is changed, the array lookup in SV_HullPointContents 36 | // must be changed too !!! 37 | #define pl_normal 0 38 | #define pl_dist 12 39 | #define pl_type 16 40 | #define pl_signbits 17 41 | #define pl_pad 18 42 | #define pl_size 20 43 | 44 | // hull_t structure 45 | // !!! if this is changed, it must be changed in model.h too !!! 46 | #define hu_clipnodes 0 47 | #define hu_planes 4 48 | #define hu_firstclipnode 8 49 | #define hu_lastclipnode 12 50 | #define hu_clip_mins 16 51 | #define hu_clip_maxs 28 52 | #define hu_available 40 53 | #define hu_size 44 54 | 55 | 56 | // dnode_t structure 57 | // !!! if this is changed, it must be changed in bspfile.h too !!! 58 | #define nd_planenum 0 59 | #define nd_children 4 60 | #define nd_mins 8 61 | #define nd_maxs 20 62 | #define nd_firstface 32 63 | #define nd_numfaces 36 64 | #define nd_size 40 65 | 66 | // sfxcache_t structure 67 | // !!! if this is changed, it much be changed in sound.h too !!! 68 | #define sfxc_length 0 69 | #define sfxc_loopstart 4 70 | #define sfxc_speed 8 71 | #define sfxc_width 12 72 | #define sfxc_stereo 16 73 | #define sfxc_data 20 74 | 75 | // channel_t structure 76 | // !!! if this is changed, it much be changed in sound.h too !!! 77 | #define ch_sfx 0 78 | #define ch_leftvol 4 79 | #define ch_rightvol 8 80 | #define ch_end 12 81 | #define ch_pos 16 82 | #define ch_looping 20 83 | #define ch_entnum 24 84 | #define ch_entchannel 28 85 | #define ch_origin 32 86 | #define ch_dist_mult 44 87 | #define ch_master_vol 48 88 | #define ch_size 52 89 | 90 | // portable_samplepair_t structure 91 | // !!! if this is changed, it much be changed in sound.h too !!! 92 | #define psp_left 0 93 | #define psp_right 4 94 | #define psp_size 8 95 | 96 | #endif 97 | 98 | -------------------------------------------------------------------------------- /binfiles.txt: -------------------------------------------------------------------------------- 1 | wqpro*.exe 2 | glpro*.exe 3 | d3dpro*.exe 4 | libcurl.dll 5 | zlib1.dll 6 | gnu.txt 7 | *.log -------------------------------------------------------------------------------- /cd_flash.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #include "quakedef.h" 21 | 22 | void CDAudio_Play(byte track, qboolean looping) 23 | { 24 | } 25 | 26 | 27 | void CDAudio_Stop(void) 28 | { 29 | } 30 | 31 | 32 | void CDAudio_Pause(void) 33 | { 34 | } 35 | 36 | 37 | void CDAudio_Resume(void) 38 | { 39 | } 40 | 41 | 42 | void CDAudio_Update(void) 43 | { 44 | } 45 | 46 | 47 | int CDAudio_Init(void) 48 | { 49 | return 0; 50 | } 51 | 52 | 53 | void CDAudio_Shutdown(void) 54 | { 55 | } -------------------------------------------------------------------------------- /cd_null.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #include "quakedef.h" 21 | 22 | void CDAudio_Play(byte track, qboolean looping) 23 | { 24 | } 25 | 26 | 27 | void CDAudio_Stop(void) 28 | { 29 | } 30 | 31 | 32 | void CDAudio_Pause(void) 33 | { 34 | } 35 | 36 | 37 | void CDAudio_Resume(void) 38 | { 39 | } 40 | 41 | 42 | void CDAudio_Update(void) 43 | { 44 | } 45 | 46 | 47 | int CDAudio_Init(void) 48 | { 49 | return 0; 50 | } 51 | 52 | 53 | void CDAudio_Shutdown(void) 54 | { 55 | } -------------------------------------------------------------------------------- /cdaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // cdaudio.h 21 | 22 | int CDAudio_Init(void); 23 | void CDAudio_Play(byte track, qboolean looping); 24 | void CDAudio_Stop(void); 25 | void CDAudio_Pause(void); 26 | void CDAudio_Resume(void); 27 | void CDAudio_Shutdown(void); 28 | void CDAudio_Update(void); 29 | 30 | #ifdef SUPPORTS_CD_PLAYER 31 | qboolean CDAudio_IsEnabled(void); 32 | #endif 33 | -------------------------------------------------------------------------------- /cl_sbar.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // the status bar is only redrawn if something has changed, but if anything 22 | // does, the entire thing will be redrawn for the next vid.numpages frames. 23 | 24 | #define SBAR_HEIGHT 24 25 | 26 | extern int sb_lines; // scan lines to draw 27 | 28 | void Sbar_Init (void); 29 | 30 | void Sbar_Changed (void); 31 | // call whenever any of the client stats represented on the sbar changes 32 | 33 | void Sbar_Draw (void); 34 | // called every frame by screen 35 | 36 | void Sbar_IntermissionOverlay (void); 37 | // called each frame after the level has been completed 38 | 39 | void Sbar_FinaleOverlay (void); 40 | -------------------------------------------------------------------------------- /cl_screen.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // cl_screen.h 21 | 22 | void SCR_Init (void); 23 | 24 | void SCR_UpdateScreen (void); 25 | 26 | 27 | void SCR_SizeUp (void); 28 | void SCR_SizeDown (void); 29 | void SCR_BringDownConsole (void); 30 | void SCR_CenterPrint (char *str); 31 | 32 | void SCR_BeginLoadingPlaque (void); 33 | void SCR_EndLoadingPlaque (void); 34 | 35 | int SCR_ModalMessage (char *text, float timeout); //johnfitz -- added timeout 36 | 37 | extern float scr_con_current; 38 | extern float scr_conlines; // lines of console to display 39 | 40 | extern int scr_fullupdate; // set to 0 to force full redraw 41 | extern int sb_lines; 42 | 43 | extern int clearnotify; // set to 0 whenever notify text is drawn 44 | extern qboolean scr_disabled_for_loading; 45 | extern qboolean scr_skipupdate; 46 | 47 | extern cvar_t scr_viewsize; 48 | extern cvar_t pq_drawfps; 49 | 50 | 51 | // only the refresh window will be updated unless these variables are flagged 52 | extern int scr_copytop; 53 | extern int scr_copyeverything; 54 | 55 | extern qboolean block_drawing; 56 | 57 | void SCR_UpdateWholeScreen (void); 58 | -------------------------------------------------------------------------------- /cl_view.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // cl_view.h 21 | 22 | #ifndef PSP_PSPGU_RECONCILE 23 | // Baker hwgamma support 24 | #ifdef SUPPORTS_ENHANCED_GAMMA 25 | extern cvar_t v_gamma; 26 | extern cvar_t v_contrast; 27 | extern cvar_t gl_hwblend; 28 | #endif 29 | #endif 30 | 31 | extern cvar_t vold_gamma; 32 | // Baker end hwgamma support 33 | 34 | extern byte gammatable[256]; // palette is sent through this 35 | extern byte rampsold[3][256]; 36 | extern float v_blend[4]; 37 | 38 | extern cvar_t lcd_x; 39 | 40 | void V_Init (void); 41 | void V_RenderView (void); 42 | 43 | float V_CalcRoll (vec3_t angles, vec3_t velocity); 44 | #ifdef PSP_PSPGU_RECONCILE 45 | void V_UpdatePaletteNew (void); 46 | #else 47 | void V_CalcBlend (void); 48 | void SCR_DrawVolume (void); 49 | void V_UpdatePaletteOld (void); 50 | 51 | #ifndef D3DQUAKE 52 | void BuildGammaTable (float g); // JPG 3.02 53 | #endif 54 | #endif -------------------------------------------------------------------------------- /conproc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // conproc.h 21 | 22 | #define CCOM_WRITE_TEXT 0x2 23 | // Param1 : Text 24 | 25 | #define CCOM_GET_TEXT 0x3 26 | // Param1 : Begin line 27 | // Param2 : End line 28 | 29 | #define CCOM_GET_SCR_LINES 0x4 30 | // No params 31 | 32 | #define CCOM_SET_SCR_LINES 0x5 33 | // Param1 : Number of lines 34 | 35 | void InitConProc (HANDLE hFile, HANDLE heventParent, HANDLE heventChild); 36 | void DeinitConProc (void); 37 | 38 | -------------------------------------------------------------------------------- /console.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // console 22 | extern int con_totallines; 23 | extern int con_backscroll; 24 | extern qboolean con_forcedup; // because no entities to refresh 25 | extern qboolean con_initialized; 26 | extern byte *con_chars; 27 | extern int con_notifylines; // scan lines to clear for notify lines 28 | 29 | void Con_DrawCharacter (int cx, int line, int num); 30 | 31 | void Con_CheckResize (void); 32 | void Con_Init (void); 33 | void Con_DrawConsole (int lines, qboolean drawinput); 34 | void Con_Print (char *txt); 35 | void Con_Printf (char *fmt, ...); 36 | void Con_Debugf (char *fmt, ...); 37 | void Con_Success (char *fmt, ...); //johnfitz 38 | void Con_Warning (char *fmt, ...); //johnfitz 39 | void Con_DPrintf (char *fmt, ...); 40 | void Con_SafePrintf (char *fmt, ...); 41 | void Con_Clear_f (void); 42 | void Con_DrawNotify (void); 43 | void Con_ClearNotify (void); 44 | void Con_ToggleConsole_f (void); 45 | 46 | void Con_NotifyBox (char *text); // during startup for sound / cd warnings 47 | char *Con_Quakebar (int len); -------------------------------------------------------------------------------- /crc.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // crc.h 21 | 22 | void CRC_Init(unsigned short *crcvalue); 23 | void CRC_ProcessByte(unsigned short *crcvalue, byte data); 24 | unsigned short CRC_Value(unsigned short crcvalue); 25 | unsigned short CRC_Block (byte *data, int size); 26 | -------------------------------------------------------------------------------- /curlver.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_CURLVER_H 2 | #define __CURL_CURLVER_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * $Id: curlver.h,v 1.35 2008-01-24 14:05:56 gknauf Exp $ 24 | ***************************************************************************/ 25 | 26 | /* This header file contains nothing but libcurl version info, generated by 27 | a script at release-time. This was made its own header file in 7.11.2 */ 28 | 29 | /* This is the global package copyright */ 30 | #define LIBCURL_COPYRIGHT "1996 - 2008 Daniel Stenberg, ." 31 | 32 | /* This is the version number of the libcurl package from which this header 33 | file origins: */ 34 | #define LIBCURL_VERSION "7.18.0" 35 | 36 | /* The numeric version number is also available "in parts" by using these 37 | defines: */ 38 | #define LIBCURL_VERSION_MAJOR 7 39 | #define LIBCURL_VERSION_MINOR 18 40 | #define LIBCURL_VERSION_PATCH 0 41 | 42 | /* This is the numeric version of the libcurl version number, meant for easier 43 | parsing and comparions by programs. The LIBCURL_VERSION_NUM define will 44 | always follow this syntax: 45 | 46 | 0xXXYYZZ 47 | 48 | Where XX, YY and ZZ are the main version, release and patch numbers in 49 | hexadecimal (using 8 bits each). All three numbers are always represented 50 | using two digits. 1.2 would appear as "0x010200" while version 9.11.7 51 | appears as "0x090b07". 52 | 53 | This 6-digit (24 bits) hexadecimal number does not show pre-release number, 54 | and it is always a greater number in a more recent release. It makes 55 | comparisons with greater than and less than work. 56 | */ 57 | #define LIBCURL_VERSION_NUM 0x071200 58 | 59 | /* 60 | * This is the date and time when the full source package was created. The 61 | * timestamp is not stored in CVS, as the timestamp is properly set in the 62 | * tarballs by the maketgz script. 63 | * 64 | * The format of the date should follow this template: 65 | * 66 | * "Mon Feb 12 11:35:33 UTC 2007" 67 | */ 68 | #define LIBCURL_TIMESTAMP "Mon Jan 28 17:28:54 UTC 2008" 69 | 70 | #endif /* __CURL_CURLVER_H */ 71 | -------------------------------------------------------------------------------- /d_fill.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // d_clear: clears a specified rectangle to the specified color 21 | 22 | #include "quakedef.h" 23 | 24 | 25 | /* 26 | ================ 27 | D_FillRect 28 | ================ 29 | */ 30 | void D_FillRect (vrect_t *rect, int color) 31 | { 32 | int rx, ry, rwidth, rheight; 33 | unsigned char *dest; 34 | unsigned *ldest; 35 | 36 | rx = rect->x; 37 | ry = rect->y; 38 | rwidth = rect->width; 39 | rheight = rect->height; 40 | 41 | if (rx < 0) 42 | { 43 | rwidth += rx; 44 | rx = 0; 45 | } 46 | if (ry < 0) 47 | { 48 | rheight += ry; 49 | ry = 0; 50 | } 51 | if (rx+rwidth > vid.width) 52 | rwidth = vid.width - rx; 53 | if (ry+rheight > vid.height) 54 | rheight = vid.height - rx; 55 | 56 | if (rwidth < 1 || rheight < 1) 57 | return; 58 | 59 | dest = ((byte *)vid.buffer + ry*vid.rowbytes + rx); 60 | 61 | if (((rwidth & 0x03) == 0) && (((long)dest & 0x03) == 0)) 62 | { 63 | // faster aligned dword clear 64 | ldest = (unsigned *)dest; 65 | color += color << 16; 66 | 67 | rwidth >>= 2; 68 | color += color << 8; 69 | 70 | for (ry=0 ; ry xscale) 69 | scale_for_mip = yscale; 70 | 71 | d_zrowbytes = vid.width * 2; 72 | d_zwidth = vid.width; 73 | 74 | d_pix_min = r_refdef.vrect.width / 320; 75 | if (d_pix_min < 1) 76 | d_pix_min = 1; 77 | 78 | d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5); 79 | d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5); 80 | if (d_pix_max < 1) 81 | d_pix_max = 1; 82 | 83 | if (pixelAspect > 1.4) 84 | d_y_aspect_shift = 1; 85 | else 86 | d_y_aspect_shift = 0; 87 | 88 | d_vrectx = r_refdef.vrect.x; 89 | d_vrecty = r_refdef.vrect.y; 90 | d_vrectright_particle = r_refdef.vrectright - d_pix_max; 91 | d_vrectbottom_particle = 92 | r_refdef.vrectbottom - (d_pix_max << d_y_aspect_shift); 93 | 94 | { 95 | int i; 96 | 97 | for (i=0 ; i 223) 29 | return 1; 30 | 31 | return 0; 32 | } 33 | 34 | void ConvertPixels (byte *pixels, int num_pixels) 35 | { 36 | int i; 37 | 38 | for (i = 0; i < num_pixels; i++) 39 | if (pixels[i] < 224) 40 | pixels[i] = 255; 41 | } 42 | 43 | void DrawFullBrightTextures (msurface_t *first_surf, int num_surfs) 44 | { 45 | // gl_texsort 1 version 46 | int i; 47 | msurface_t *fa; 48 | texture_t *t; 49 | 50 | if (r_fullbright.value) 51 | return; 52 | 53 | if (mtexenabled) 54 | return; 55 | 56 | GL_DisableMultitexture (); 57 | 58 | for (fa = first_surf, i = 0; i < num_surfs; fa++, i++) 59 | { 60 | // find the correct texture 61 | t = R_TextureAnimation (fa->texinfo->texture); 62 | 63 | if (t->fullbright != -1 && fa->draw_this_frame) 64 | { 65 | glEnable (GL_BLEND); 66 | GL_Bind (t->fullbright); 67 | DrawGLPoly (fa->polys); 68 | glDisable (GL_BLEND); 69 | } 70 | 71 | fa->draw_this_frame = 0; 72 | } 73 | } -------------------------------------------------------------------------------- /gl_fullbright.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2004-2004 MH 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 | // gl_fullbright.h 21 | 22 | #include "gl_model.h" 23 | 24 | int FindFullbrightTexture (byte *pixels, int num_pix); 25 | void DrawFullBrightTextures (msurface_t *first_surf, int num_surfs); 26 | void ConvertPixels (byte *pixels, int num_pixels); -------------------------------------------------------------------------------- /gl_rpart.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002-2003, Dr Labman, A. Nourai 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 | // gl_rpart.c 21 | 22 | #include "quakedef.h" 23 | 24 | 25 | 26 | 27 | typedef struct particle_s 28 | { 29 | 30 | vec3_t org; 31 | float color; 32 | 33 | struct particle_s *next; 34 | vec3_t vel; 35 | float ramp; 36 | float die; 37 | ptype_t type; 38 | } particle_t; -------------------------------------------------------------------------------- /icon3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/icon3.ico -------------------------------------------------------------------------------- /in_null.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // in_null.c -- for systems without a mouse 21 | 22 | #include "quakedef.h" 23 | 24 | void IN_Init (void) 25 | { 26 | } 27 | 28 | void IN_Shutdown (void) 29 | { 30 | } 31 | 32 | void IN_Commands (void) 33 | { 34 | } 35 | 36 | void IN_Move (usercmd_t *cmd) 37 | { 38 | } 39 | 40 | -------------------------------------------------------------------------------- /input.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // input.h -- external (non-keyboard) input devices 21 | 22 | void IN_Init (void); 23 | 24 | void IN_Shutdown (void); 25 | 26 | void IN_Commands (void); 27 | // oportunity for devices to stick commands on the script buffer 28 | 29 | #ifdef _WIN32 // Change this to Win32 or somethign 30 | void IN_Accumulate (void); 31 | #endif 32 | 33 | void IN_Move (usercmd_t *cmd); 34 | // add additional movement on top of the keyboard move cmd 35 | 36 | void IN_ClearStates (void); 37 | // restores all button and position states to defaults 38 | 39 | 40 | #ifdef _WIN32 41 | void IN_MouseWheel (void); 42 | #endif 43 | 44 | extern cvar_t freelook; // Baker 3.60 - Freelook cvar support 45 | extern cvar_t m_accel; 46 | 47 | #ifndef PSP_RECONCILE 48 | #define mlook_active (freelook.value || (in_mlook.state & 1)) 49 | #endif -------------------------------------------------------------------------------- /iplog.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002, J.P. Grossman 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 | // iplog.h 21 | // 22 | // JPG 1.05 23 | // 24 | // This entire file is new in proquake 1.05. It is used for player IP logging. 25 | // 26 | 27 | typedef struct tagIPLog 28 | { 29 | int addr; 30 | char name[16]; 31 | struct tagIPLog *parent; 32 | struct tagIPLog *children[2]; 33 | } iplog_t; 34 | 35 | extern int iplog_size; 36 | 37 | void IPLog_Init (void); 38 | void IPLog_WriteLog (void); 39 | void IPLog_Add (int addr, char *name); 40 | void IPLog_Delete (iplog_t *node); 41 | iplog_t *IPLog_Merge (iplog_t *left, iplog_t *right); 42 | void IPLog_Identify (int addr); 43 | void IPLog_Dump_f (void); 44 | void IPLog_Import_f (void); 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /libcurl.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/libcurl.lib -------------------------------------------------------------------------------- /location.c: -------------------------------------------------------------------------------- 1 | // 2 | // location.c 3 | // 4 | // JPG 5 | // 6 | // This entire file is new in proquake. It is used to translate map areas 7 | // to names for the %l formatting specifier 8 | // 9 | 10 | #include "quakedef.h" 11 | 12 | #define MAX_LOCATIONS 64 13 | 14 | location_t locations[MAX_LOCATIONS]; 15 | int numlocations = 0; 16 | 17 | /* 18 | =============== 19 | LOC_LoadLocations 20 | 21 | Load the locations for the current level from the location file 22 | =============== 23 | */ 24 | void LOC_LoadLocations (void) 25 | { 26 | FILE *f; 27 | char *mapname, *ch; 28 | char filename[64] = "locs/"; 29 | char buff[256]; 30 | location_t *l; 31 | int i; 32 | float temp; 33 | 34 | numlocations = 0; 35 | mapname = cl.worldmodel->name; 36 | if (strncasecmp(mapname, "maps/", 5)) 37 | return; 38 | strcpy(filename + 5, mapname + 5); 39 | ch = strrchr(filename, '.'); 40 | if (ch) 41 | *ch = 0; 42 | strlcat (filename, ".loc", sizeof(filename)); 43 | 44 | COM_FOpenFile(filename, &f); 45 | if (!f) 46 | return; 47 | 48 | l = locations; 49 | while (!feof(f) && numlocations < MAX_LOCATIONS) 50 | { 51 | if (fscanf(f, "%f, %f, %f, %f, %f, %f, ", &l->a[0], &l->a[1], &l->a[2], &l->b[0], &l->b[1], &l->b[2]) == 6) 52 | { 53 | l->sd = 0; // JPG 1.05 54 | for (i = 0 ; i < 3 ; i++) 55 | { 56 | if (l->a[i] > l->b[i]) 57 | { 58 | temp = l->a[i]; 59 | l->a[i] = l->b[i]; 60 | l->b[i] = temp; 61 | } 62 | l->sd += l->b[i] - l->a[i]; // JPG 1.05 63 | } 64 | l->a[2] -= 32.0; 65 | l->b[2] += 32.0; 66 | fgets(buff, 256, f); 67 | 68 | ch = strrchr(buff, '\n'); 69 | if (ch) 70 | *ch = 0; 71 | ch = strrchr(buff, '\"'); 72 | if (ch) 73 | *ch = 0; 74 | for (ch = buff ; *ch == ' ' || *ch == '\t' || *ch == '\"' ; ch++); 75 | strncpy(l->name, ch, 31); 76 | l = &locations[++numlocations]; 77 | } 78 | else 79 | fgets(buff, 256, f); 80 | } 81 | 82 | fclose(f); 83 | } 84 | 85 | /* 86 | =============== 87 | LOC_GetLocation 88 | 89 | Get the name of the location of a point 90 | =============== 91 | */ 92 | // JPG 1.05 - rewrote this to return the nearest rectangle if you aren't in any (manhattan distance) 93 | char *LOC_GetLocation (vec3_t p) 94 | { 95 | location_t *l; 96 | location_t *bestloc; 97 | float dist, bestdist; 98 | 99 | bestloc = NULL; 100 | bestdist = 999999; 101 | for (l = locations ; l < locations + numlocations ; l++) 102 | { 103 | dist = fabs(l->a[0] - p[0]) + fabs(l->b[0] - p[0]) + 104 | fabs(l->a[1] - p[1]) + fabs(l->b[1] - p[1]) + 105 | fabs(l->a[2] - p[2]) + fabs(l->b[2] - p[2]) - l->sd; 106 | 107 | if (dist < .01) 108 | return l->name; 109 | 110 | if (dist < bestdist) 111 | { 112 | bestdist = dist; 113 | bestloc = l; 114 | } 115 | } 116 | if (bestloc) 117 | return bestloc->name; 118 | return "somewhere"; 119 | } 120 | 121 | -------------------------------------------------------------------------------- /location.h: -------------------------------------------------------------------------------- 1 | // 2 | // location.h 3 | // 4 | // JPG 5 | // 6 | // This entire file is new in proquake. It is used to translate map areas 7 | // to names for the %l formatting specifier 8 | // 9 | 10 | typedef struct 11 | { 12 | vec3_t a; // min xyz corner 13 | vec3_t b; // max xyz corner 14 | vec_t sd; // sum of dimensions // JPG 1.05 15 | char name[32]; 16 | } location_t; 17 | 18 | // Load the locations for the current level from the location file 19 | void LOC_LoadLocations (void); 20 | 21 | // Get the name of the location of a point 22 | char *LOC_GetLocation (vec3_t p); 23 | 24 | -------------------------------------------------------------------------------- /matrix.c: -------------------------------------------------------------------------------- 1 | // 2 | // matrix.c 3 | // 4 | // JPG 5 | // 6 | 7 | #include "quakedef.h" 8 | 9 | #define MAXMAT 508 10 | #define TIME1 100 11 | #define MINLEN 6 12 | #define _1 15 13 | #define _2 25 14 | 15 | typedef struct 16 | { 17 | int x; 18 | int y; 19 | int l; 20 | int s; 21 | int r; 22 | } matrix_t; 23 | 24 | matrix_t m[MAXMAT]; 25 | int mat_time = 0; 26 | int step = 0; 27 | int xres; 28 | int yres; 29 | int n; 30 | int r2; 31 | float savecross; 32 | char s[200][150]; 33 | 34 | extern viddef_t vid; 35 | extern cvar_t crosshair; 36 | 37 | #define _0(x,y) x*=y,r2=x>>13,x&=0x1fff,x+=r2,x-=(x>0x1ffe)?0x1fff:0 38 | #define _ (16*i/5>=vid.width) 39 | 40 | int dat[8] = {5206,412,7603,2809,1412,206,809,7000}; 41 | 42 | void Mat_Init_f (void) 43 | { 44 | int i; 45 | int j; 46 | 47 | if (!mat_time) 48 | { 49 | savecross = crosshair.value; 50 | crosshair.value = 0; 51 | } 52 | 53 | if (cls.state == ca_connected) 54 | { 55 | if (key_dest == key_console) 56 | Con_ToggleConsole_f(); 57 | } 58 | else 59 | return; 60 | 61 | mat_time = 1; 62 | xres = (vid.width / 8) - 2; 63 | yres = (vid.height / 8) - 5; 64 | n = (128 + vid.width * 5) / 16; 65 | 66 | for (i = 0 ; i < n ; i++) 67 | { 68 | m[i].x = _?((xres/2)-11+(i+8-n)*3):(rand()%xres); 69 | m[i].y = _?((rand()%(yres/4))+(yres/4)-4):(rand()%(yres/2)); 70 | m[i].l = _?((yres/2)-m[i].y):((rand()%(yres-m[i].y-MINLEN))+MINLEN); 71 | m[i].s = _?(TIME1+(rand()%32)):((rand()%TIME1)+(i/4)); 72 | m[i].r = _?dat[i+8-n]:((rand()%8190)+1); 73 | for (j=1;_&&j TIME1 + 64 + (n / 4) + yres + _2 + _1) 84 | { 85 | mat_time = 0; 86 | crosshair.value = savecross; 87 | return; 88 | } 89 | if (++step == 3) 90 | { 91 | step = 0; 92 | mat_time++; 93 | } 94 | 95 | memset(s, 0, sizeof(s)); 96 | for (i = 0 ; i < n ; i++) 97 | { 98 | if ((mat_timem[i].s+m[i].l+_1+_2)) 99 | continue; 100 | 101 | r = m[i].r; 102 | for (j = 0 ; j < m[i].l && j <= mat_time - m[i].s ; j++) 103 | { 104 | f = _&&j==m[i].l-1; 105 | t = mat_time-m[i].s-j; 106 | _0(r,2187); 107 | (!(t<_1+_2||f))||(s[m[i].x][m[i].y+j]=(f?r:((r&0xf00)==0xf00)?((r+7*(mat_time/4))%10):((r&0xf00)==0xe00)?((r+7*(mat_time/3))%10):(r%10))+((!t||(f&&t<_1+_2))?48:(t<_1&&!f)?18:176)); 108 | } 109 | } 110 | for (j = 0 ; j < yres ; j++) 111 | { 112 | for (i = 0 ; i < xres ; i++) 113 | { 114 | if (s[i][j]) 115 | Draw_Character(8*i+8,8*j,s[i][j]); 116 | } 117 | } 118 | } -------------------------------------------------------------------------------- /menu.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // menu.h 21 | 22 | 23 | 24 | // menus 25 | void M_Init (void); 26 | 27 | #if defined(MACOSX) || defined(PSP) 28 | void M_Keydown (int key); 29 | #else 30 | void M_Keydown (int key, int ascii, qboolean down); 31 | #endif 32 | 33 | void M_Draw (void); 34 | void M_ToggleMenu_f (void); 35 | 36 | 37 | -------------------------------------------------------------------------------- /movie.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002 Quake done Quick 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 | // movie.h 21 | 22 | void Movie_Init (void); 23 | void Movie_StopPlayback (void); 24 | double Movie_FrameTime (void); 25 | void Movie_UpdateScreen (void); 26 | void Movie_TransferStereo16 (void); 27 | qboolean Movie_GetSoundtime (void); 28 | qboolean Movie_IsActive (void); 29 | -------------------------------------------------------------------------------- /movie_avi.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002 Quake done Quick 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 | // movie_avi.h 21 | 22 | void AVI_LoadLibrary (void); 23 | void ACM_LoadLibrary (void); 24 | qboolean Capture_Open (char *filename); 25 | void Capture_WriteVideo (byte *pixel_buffer); 26 | void Capture_WriteAudio (int samples, byte *sample_buffer); 27 | void Capture_Close (void); 28 | -------------------------------------------------------------------------------- /net_bsd.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #include "quakedef.h" 21 | 22 | #include "net_loop.h" 23 | #include "net_dgrm.h" 24 | 25 | net_driver_t net_drivers[MAX_NET_DRIVERS] = 26 | { 27 | { 28 | "Loopback", 29 | false, 30 | Loop_Init, 31 | Loop_Listen, 32 | Loop_SearchForHosts, 33 | Loop_Connect, 34 | Loop_CheckNewConnections, 35 | Loop_GetMessage, 36 | Loop_SendMessage, 37 | Loop_SendUnreliableMessage, 38 | Loop_CanSendMessage, 39 | Loop_CanSendUnreliableMessage, 40 | Loop_Close, 41 | Loop_Shutdown 42 | } 43 | , 44 | { 45 | "Datagram", 46 | false, 47 | Datagram_Init, 48 | Datagram_Listen, 49 | Datagram_SearchForHosts, 50 | Datagram_Connect, 51 | Datagram_CheckNewConnections, 52 | Datagram_GetMessage, 53 | Datagram_SendMessage, 54 | Datagram_SendUnreliableMessage, 55 | Datagram_CanSendMessage, 56 | Datagram_CanSendUnreliableMessage, 57 | Datagram_Close, 58 | Datagram_Shutdown 59 | } 60 | }; 61 | 62 | int net_numdrivers = 2; 63 | 64 | #include "net_udp.h" 65 | 66 | net_landriver_t net_landrivers[MAX_NET_DRIVERS] = 67 | { 68 | { 69 | "UDP", 70 | false, 71 | 0, 72 | UDP_Init, 73 | UDP_Shutdown, 74 | UDP_Listen, 75 | UDP_OpenSocket, 76 | UDP_CloseSocket, 77 | UDP_Connect, 78 | UDP_CheckNewConnections, 79 | UDP_Read, 80 | UDP_Write, 81 | UDP_Broadcast, 82 | UDP_AddrToString, 83 | UDP_StringToAddr, 84 | UDP_GetSocketAddr, 85 | UDP_GetNameFromAddr, 86 | UDP_GetAddrFromName, 87 | UDP_AddrCompare, 88 | UDP_GetSocketPort, 89 | UDP_SetSocketPort 90 | } 91 | }; 92 | 93 | int net_numlandrivers = 1; 94 | -------------------------------------------------------------------------------- /net_bw.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_bw.h 21 | 22 | int BW_Init (void); 23 | void BW_Shutdown (void); 24 | void BW_Listen (qboolean state); 25 | int BW_OpenSocket (int port); 26 | int BW_CloseSocket (int socket); 27 | int BW_Connect (int socket, struct qsockaddr *addr); 28 | int BW_CheckNewConnections (void); 29 | int BW_Read (int socket, byte *buf, int len, struct qsockaddr *addr); 30 | int BW_Write (int socket, byte *buf, int len, struct qsockaddr *addr); 31 | int BW_Broadcast (int socket, byte *buf, int len); 32 | char *BW_AddrToString (struct qsockaddr *addr); 33 | int BW_StringToAddr (char *string, struct qsockaddr *addr); 34 | int BW_GetSocketAddr (int socket, struct qsockaddr *addr); 35 | int BW_GetNameFromAddr (struct qsockaddr *addr, char *name); 36 | int BW_GetAddrFromName (char *name, struct qsockaddr *addr); 37 | int BW_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 38 | int BW_GetSocketPort (struct qsockaddr *addr); 39 | int BW_SetSocketPort (struct qsockaddr *addr, int port); 40 | -------------------------------------------------------------------------------- /net_dgrm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/net_dgrm.c -------------------------------------------------------------------------------- /net_dgrm.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_dgrm.h 21 | 22 | #ifdef PSP_NETWORKING_CODE 23 | int net_driver_to_use; 24 | #endif 25 | 26 | int Datagram_Init (void); 27 | void Datagram_Listen (qboolean state); 28 | void Datagram_SearchForHosts (qboolean xmit); 29 | qsocket_t *Datagram_Connect (char *host); 30 | qsocket_t *Datagram_CheckNewConnections (void); 31 | int Datagram_GetMessage (qsocket_t *sock); 32 | int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data); 33 | int Datagram_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 34 | qboolean Datagram_CanSendMessage (qsocket_t *sock); 35 | qboolean Datagram_CanSendUnreliableMessage (qsocket_t *sock); 36 | void Datagram_Close (qsocket_t *sock); 37 | void Datagram_Shutdown (void); 38 | -------------------------------------------------------------------------------- /net_ipx.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_ipx.h 21 | 22 | int IPX_Init (void); 23 | void IPX_Shutdown (void); 24 | void IPX_Listen (qboolean state); 25 | int IPX_OpenSocket (int port); 26 | int IPX_CloseSocket (int socket); 27 | int IPX_Connect (int socket, struct qsockaddr *addr); 28 | int IPX_CheckNewConnections (void); 29 | int IPX_Read (int socket, byte *buf, int len, struct qsockaddr *addr); 30 | int IPX_Write (int socket, byte *buf, int len, struct qsockaddr *addr); 31 | int IPX_Broadcast (int socket, byte *buf, int len); 32 | char *IPX_AddrToString (struct qsockaddr *addr); 33 | int IPX_StringToAddr (char *string, struct qsockaddr *addr); 34 | int IPX_GetSocketAddr (int socket, struct qsockaddr *addr); 35 | int IPX_GetNameFromAddr (struct qsockaddr *addr, char *name); 36 | int IPX_GetAddrFromName (char *name, struct qsockaddr *addr); 37 | int IPX_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 38 | int IPX_GetSocketPort (struct qsockaddr *addr); 39 | int IPX_SetSocketPort (struct qsockaddr *addr, int port); 40 | -------------------------------------------------------------------------------- /net_loop.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_loop.h 21 | 22 | int Loop_Init (void); 23 | void Loop_Listen (qboolean state); 24 | void Loop_SearchForHosts (qboolean xmit); 25 | qsocket_t *Loop_Connect (char *host); 26 | qsocket_t *Loop_CheckNewConnections (void); 27 | int Loop_GetMessage (qsocket_t *sock); 28 | int Loop_SendMessage (qsocket_t *sock, sizebuf_t *data); 29 | int Loop_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 30 | qboolean Loop_CanSendMessage (qsocket_t *sock); 31 | qboolean Loop_CanSendUnreliableMessage (qsocket_t *sock); 32 | void Loop_Close (qsocket_t *sock); 33 | void Loop_Shutdown (void); 34 | -------------------------------------------------------------------------------- /net_mp.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_mpath.h 21 | 22 | int MPATH_Init (void); 23 | void MPATH_Shutdown (void); 24 | void MPATH_Listen (qboolean state); 25 | int MPATH_OpenSocket (int port); 26 | int MPATH_CloseSocket (int socket); 27 | int MPATH_Connect (int socket, struct qsockaddr *addr); 28 | int MPATH_CheckNewConnections (void); 29 | int MPATH_Read (int socket, byte *buf, int len, struct qsockaddr *addr); 30 | int MPATH_Write (int socket, byte *buf, int len, struct qsockaddr *addr); 31 | int MPATH_Broadcast (int socket, byte *buf, int len); 32 | char *MPATH_AddrToString (struct qsockaddr *addr); 33 | int MPATH_StringToAddr (char *string, struct qsockaddr *addr); 34 | int MPATH_GetSocketAddr (int socket, struct qsockaddr *addr); 35 | int MPATH_GetNameFromAddr (struct qsockaddr *addr, char *name); 36 | int MPATH_GetAddrFromName (char *name, struct qsockaddr *addr); 37 | int MPATH_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 38 | int MPATH_GetSocketPort (struct qsockaddr *addr); 39 | int MPATH_SetSocketPort (struct qsockaddr *addr, int port); 40 | -------------------------------------------------------------------------------- /net_none.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #include "quakedef.h" 21 | 22 | #include "net_loop.h" 23 | 24 | net_driver_t net_drivers[MAX_NET_DRIVERS] = 25 | { 26 | { 27 | "Loopback", 28 | false, 29 | Loop_Init, 30 | Loop_Listen, 31 | Loop_SearchForHosts, 32 | Loop_Connect, 33 | Loop_CheckNewConnections, 34 | Loop_GetMessage, 35 | Loop_SendMessage, 36 | Loop_SendUnreliableMessage, 37 | Loop_CanSendMessage, 38 | Loop_CanSendUnreliableMessage, 39 | Loop_Close, 40 | Loop_Shutdown 41 | } 42 | }; 43 | int net_numdrivers = 1; 44 | 45 | net_landriver_t net_landrivers[MAX_NET_DRIVERS]; 46 | int net_numlandrivers = 0; 47 | -------------------------------------------------------------------------------- /net_ser.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_ser.h 21 | 22 | int Serial_Init (void); 23 | void Serial_Listen (qboolean state); 24 | void Serial_SearchForHosts (qboolean xmit); 25 | qsocket_t *Serial_Connect (char *host); 26 | qsocket_t *Serial_CheckNewConnections (void); 27 | int Serial_GetMessage (qsocket_t *sock); 28 | int Serial_SendMessage (qsocket_t *sock, sizebuf_t *data); 29 | int Serial_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 30 | qboolean Serial_CanSendMessage (qsocket_t *sock); 31 | qboolean Serial_CanSendUnreliableMessage (qsocket_t *sock); 32 | void Serial_Close (qsocket_t *sock); 33 | void Serial_Shutdown (void); 34 | -------------------------------------------------------------------------------- /net_udp.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_udp.h 21 | 22 | int UDP_Init (void); 23 | void UDP_Shutdown (void); 24 | void UDP_Listen (qboolean state); 25 | int UDP_OpenSocket (int port); 26 | int UDP_CloseSocket (int socket); 27 | int UDP_Connect (int socket, struct qsockaddr *addr); 28 | int UDP_CheckNewConnections (void); 29 | int UDP_Read (int socket, byte *buf, int len, struct qsockaddr *addr); 30 | int UDP_Write (int socket, byte *buf, int len, struct qsockaddr *addr); 31 | int UDP_Broadcast (int socket, byte *buf, int len); 32 | char *UDP_AddrToString (struct qsockaddr *addr); 33 | int UDP_StringToAddr (char *string, struct qsockaddr *addr); 34 | int UDP_GetSocketAddr (int socket, struct qsockaddr *addr); 35 | int UDP_GetNameFromAddr (struct qsockaddr *addr, char *name); 36 | int UDP_GetAddrFromName (char *name, struct qsockaddr *addr); 37 | int UDP_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 38 | int UDP_GetSocketPort (struct qsockaddr *addr); 39 | int UDP_SetSocketPort (struct qsockaddr *addr, int port); 40 | -------------------------------------------------------------------------------- /net_vcr.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_vcr.h 21 | 22 | #define VCR_OP_CONNECT 1 23 | #define VCR_OP_GETMESSAGE 2 24 | #define VCR_OP_SENDMESSAGE 3 25 | #define VCR_OP_CANSENDMESSAGE 4 26 | #define VCR_MAX_MESSAGE 4 27 | 28 | int VCR_Init (void); 29 | void VCR_Listen (qboolean state); 30 | void VCR_SearchForHosts (qboolean xmit); 31 | qsocket_t *VCR_Connect (char *host); 32 | qsocket_t *VCR_CheckNewConnections (void); 33 | int VCR_GetMessage (qsocket_t *sock); 34 | int VCR_SendMessage (qsocket_t *sock, sizebuf_t *data); 35 | qboolean VCR_CanSendMessage (qsocket_t *sock); 36 | void VCR_Close (qsocket_t *sock); 37 | void VCR_Shutdown (void); 38 | -------------------------------------------------------------------------------- /net_win.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #include "quakedef.h" 21 | 22 | #include "net_loop.h" 23 | #include "net_dgrm.h" 24 | #include "net_ser.h" 25 | 26 | net_driver_t net_drivers[MAX_NET_DRIVERS] = 27 | { 28 | { 29 | "Loopback", 30 | false, 31 | Loop_Init, 32 | Loop_Listen, 33 | Loop_SearchForHosts, 34 | Loop_Connect, 35 | Loop_CheckNewConnections, 36 | Loop_GetMessage, 37 | Loop_SendMessage, 38 | Loop_SendUnreliableMessage, 39 | Loop_CanSendMessage, 40 | Loop_CanSendUnreliableMessage, 41 | Loop_Close, 42 | Loop_Shutdown 43 | } 44 | , 45 | { 46 | "Datagram", 47 | false, 48 | Datagram_Init, 49 | Datagram_Listen, 50 | Datagram_SearchForHosts, 51 | Datagram_Connect, 52 | Datagram_CheckNewConnections, 53 | Datagram_GetMessage, 54 | Datagram_SendMessage, 55 | Datagram_SendUnreliableMessage, 56 | Datagram_CanSendMessage, 57 | Datagram_CanSendUnreliableMessage, 58 | Datagram_Close, 59 | Datagram_Shutdown 60 | } 61 | }; 62 | 63 | int net_numdrivers = 2; 64 | 65 | 66 | #include "net_wins.h" 67 | #include "net_wipx.h" 68 | 69 | net_landriver_t net_landrivers[MAX_NET_DRIVERS] = 70 | { 71 | { 72 | "Winsock TCPIP", 73 | false, 74 | 0, 75 | WINS_Init, 76 | WINS_Shutdown, 77 | WINS_Listen, 78 | WINS_OpenSocket, 79 | WINS_CloseSocket, 80 | WINS_Connect, 81 | WINS_CheckNewConnections, 82 | WINS_Read, 83 | WINS_Write, 84 | WINS_Broadcast, 85 | WINS_AddrToString, 86 | WINS_StringToAddr, 87 | WINS_GetSocketAddr, 88 | WINS_GetNameFromAddr, 89 | WINS_GetAddrFromName, 90 | WINS_AddrCompare, 91 | WINS_GetSocketPort, 92 | WINS_SetSocketPort 93 | }, 94 | { 95 | "Winsock IPX", 96 | false, 97 | 0, 98 | WIPX_Init, 99 | WIPX_Shutdown, 100 | WIPX_Listen, 101 | WIPX_OpenSocket, 102 | WIPX_CloseSocket, 103 | WIPX_Connect, 104 | WIPX_CheckNewConnections, 105 | WIPX_Read, 106 | WIPX_Write, 107 | WIPX_Broadcast, 108 | WIPX_AddrToString, 109 | WIPX_StringToAddr, 110 | WIPX_GetSocketAddr, 111 | WIPX_GetNameFromAddr, 112 | WIPX_GetAddrFromName, 113 | WIPX_AddrCompare, 114 | WIPX_GetSocketPort, 115 | WIPX_SetSocketPort 116 | } 117 | 118 | }; 119 | 120 | int net_numlandrivers = 2; 121 | -------------------------------------------------------------------------------- /net_wins.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_wins.h 21 | 22 | int WINS_Init (void); 23 | void WINS_Shutdown (void); 24 | void WINS_Listen (qboolean state); 25 | int WINS_OpenSocket (int port); 26 | int WINS_CloseSocket (int socket); 27 | int WINS_Connect (int socket, struct qsockaddr *addr); 28 | int WINS_CheckNewConnections (void); 29 | int WINS_Read (int socket, byte *buf, int len, struct qsockaddr *addr); 30 | int WINS_Write (int socket, byte *buf, int len, struct qsockaddr *addr); 31 | int WINS_Broadcast (int socket, byte *buf, int len); 32 | char *WINS_AddrToString (struct qsockaddr *addr); 33 | int WINS_StringToAddr (char *string, struct qsockaddr *addr); 34 | int WINS_GetSocketAddr (int socket, struct qsockaddr *addr); 35 | int WINS_GetNameFromAddr (struct qsockaddr *addr, char *name); 36 | int WINS_GetAddrFromName (char *name, struct qsockaddr *addr); 37 | int WINS_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 38 | int WINS_GetSocketPort (struct qsockaddr *addr); 39 | int WINS_SetSocketPort (struct qsockaddr *addr, int port); 40 | -------------------------------------------------------------------------------- /net_wipx.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // net_wipx.h 21 | 22 | int WIPX_Init (void); 23 | void WIPX_Shutdown (void); 24 | void WIPX_Listen (qboolean state); 25 | int WIPX_OpenSocket (int port); 26 | int WIPX_CloseSocket (int socket); 27 | int WIPX_Connect (int socket, struct qsockaddr *addr); 28 | int WIPX_CheckNewConnections (void); 29 | int WIPX_Read (int socket, byte *buf, int len, struct qsockaddr *addr); 30 | int WIPX_Write (int socket, byte *buf, int len, struct qsockaddr *addr); 31 | int WIPX_Broadcast (int socket, byte *buf, int len); 32 | char *WIPX_AddrToString (struct qsockaddr *addr); 33 | int WIPX_StringToAddr (char *string, struct qsockaddr *addr); 34 | int WIPX_GetSocketAddr (int socket, struct qsockaddr *addr); 35 | int WIPX_GetNameFromAddr (struct qsockaddr *addr, char *name); 36 | int WIPX_GetAddrFromName (char *name, struct qsockaddr *addr); 37 | int WIPX_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); 38 | int WIPX_GetSocketPort (struct qsockaddr *addr); 39 | int WIPX_SetSocketPort (struct qsockaddr *addr, int port); 40 | -------------------------------------------------------------------------------- /net_wso.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/net_wso.c -------------------------------------------------------------------------------- /nonintel.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // nonintel.c: code for non-Intel processors only 22 | // 23 | 24 | #include "quakedef.h" 25 | //#include "r_local.h" 26 | #include "d_local.h" 27 | 28 | #if !id386 29 | 30 | /* 31 | ================ 32 | R_Surf8Patch 33 | ================ 34 | */ 35 | void R_Surf8Patch () 36 | { 37 | // we only patch code on Intel 38 | } 39 | 40 | 41 | /* 42 | ================ 43 | R_Surf16Patch 44 | ================ 45 | */ 46 | void R_Surf16Patch () 47 | { 48 | // we only patch code on Intel 49 | } 50 | 51 | 52 | /* 53 | ================ 54 | R_SurfacePatch 55 | ================ 56 | */ 57 | void R_SurfacePatch (void) 58 | { 59 | // we only patch code on Intel 60 | } 61 | 62 | 63 | #endif // !id386 64 | 65 | -------------------------------------------------------------------------------- /osxdiff_vid_common_gl.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002-2003 A Nourai 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 | // vid_common_gl.c -- Common code for vid_wgl.c and vid_glx.c 21 | 22 | #include "quakedef.h" 23 | //const char *gl_vendor; 24 | //const char *gl_renderer; 25 | //const char *gl_version; 26 | const char *gl_extensions; 27 | 28 | //qboolean gl_mtexable = false; 29 | 30 | int texture_mode = GL_LINEAR; 31 | 32 | float gldepthmin, gldepthmax; 33 | 34 | byte color_white[4] = {255, 255, 255, 0}; 35 | 36 | void GL_PrintExtensions_f(void) { 37 | Con_Printf ("GL_EXTENSIONS: %s\n", gl_extensions); 38 | } 39 | 40 | /* 41 | void BuildGammaTable (float g) 42 | { 43 | int i, inf; 44 | 45 | if (g == 1.0) 46 | { 47 | for (i=0 ; i<256 ; i++) 48 | gammatable[i] = i; 49 | return; 50 | } 51 | 52 | for (i=0 ; i<256 ; i++) 53 | { 54 | inf = 255 * powf ( (i+0.5f)/255.5f , g ) + 0.5; 55 | if (inf < 0) 56 | inf = 0; 57 | if (inf > 255) 58 | inf = 255; 59 | gammatable[i] = inf; 60 | } 61 | } 62 | */ -------------------------------------------------------------------------------- /psp/.svn/format: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /psp/.svn/prop-base/PARAM.SFO.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/.svn/prop-base/PARAMslim.SFO.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_normal_clean.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make -f MakefileNormal clean" 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_normal_eboot.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make -f MakefileNormal eboot" 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_normal_install.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make -f MakefileNormal install" 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_normal_make.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make -f MakefileNormal" 7 | cmd -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_slim_clean.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make clean" 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_slim_eboot.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make eboot" 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_slim_install.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make install" 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/Cygwin_slim_make.bat.svn-base: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make" 7 | cmd -------------------------------------------------------------------------------- /psp/.svn/text-base/PARAM.SFO.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/.svn/text-base/PARAM.SFO.svn-base -------------------------------------------------------------------------------- /psp/.svn/text-base/PARAMslim.SFO.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/.svn/text-base/PARAMslim.SFO.svn-base -------------------------------------------------------------------------------- /psp/.svn/text-base/battery.hpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_BATTERY_HPP 22 | #define QUAKE_BATTERY_HPP 23 | 24 | namespace quake 25 | { 26 | namespace battery 27 | { 28 | // Checks the battery level and prints it to the console if it's changed. 29 | void check(); 30 | } 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /psp/.svn/text-base/clipping.hpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_CLIPPING_HPP 22 | #define QUAKE_CLIPPING_HPP 23 | 24 | #include 25 | 26 | struct glvert_s; 27 | 28 | namespace quake 29 | { 30 | namespace clipping 31 | { 32 | // Calculates clipping planes from the GU view and projection matrices. 33 | void begin_frame(); 34 | 35 | // Calculates clipping planes from the GU view and projection matrices. 36 | void begin_brush_model(); 37 | 38 | // Resets the frustum to camera space. 39 | void end_brush_model(); 40 | 41 | // Is clipping required? 42 | bool is_clipping_required(const struct glvert_s* vertices, std::size_t vertex_count); 43 | 44 | // Clips a polygon. 45 | void clip( 46 | const struct glvert_s* unclipped_vertices, 47 | std::size_t unclipped_vertex_count, 48 | const struct glvert_s** clipped_vertices, 49 | std::size_t* clipped_vertex_count); 50 | } 51 | } 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /psp/.svn/text-base/fnmatch.h.svn-base: -------------------------------------------------------------------------------- 1 | #define FNM_NOMATCH (1) /* Match failed. */ 2 | #define FNM_NOSYS (2) /* Function not implemented. */ 3 | 4 | #define FNM_NOESCAPE (0x01) /* Disable backslash escaping. */ 5 | #define FNM_PATHNAME (0x02) /* Slash must be matched by slash. */ 6 | #define FNM_PERIOD (0x04) /* Period must be matched by period. */ 7 | #define FNM_CASEFOLD (0x08) /* Pattern is matched case-insensitive */ 8 | #define FNM_LEADING_DIR (0x10) /* Ignore / after Imatch. */ 9 | 10 | int fnmatch(const char *pattern, const char *string, int flags); 11 | -------------------------------------------------------------------------------- /psp/.svn/text-base/gethost.cpp.svn-base: -------------------------------------------------------------------------------- 1 | 2 | // Copied from newlib as the current newlib did not include it 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #define MAX_NAME 512 15 | 16 | #ifdef F_h_errno 17 | int h_errno = NETDB_SUCCESS; 18 | #endif 19 | 20 | struct hostent *gethostbyaddr(const void *addr, int len, int type) 21 | { 22 | static struct hostent ent; 23 | static char * aliases[1] = { NULL }; 24 | char buf[1024]; 25 | static char sname[MAX_NAME] = ""; 26 | static struct in_addr saddr = { 0 }; 27 | static char *addrlist[2] = { (char *) &saddr, NULL }; 28 | int rid; 29 | int err; 30 | 31 | if((len != sizeof(struct in_addr)) || (type != AF_INET) || (addr == NULL)) 32 | { 33 | h_errno = HOST_NOT_FOUND; 34 | return NULL; 35 | } 36 | 37 | memcpy(&saddr, addr, len); 38 | 39 | if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) 40 | { 41 | h_errno = NO_RECOVERY; 42 | return NULL; 43 | } 44 | 45 | err = sceNetResolverStartAtoN(rid, &saddr, sname, sizeof(sname), 2, 3); 46 | sceNetResolverStop(rid); 47 | sceNetResolverDelete(rid); 48 | if(err < 0) 49 | { 50 | h_errno = HOST_NOT_FOUND; 51 | return NULL; 52 | } 53 | 54 | ent.h_name = sname; 55 | ent.h_aliases = aliases; 56 | ent.h_addrtype = AF_INET; 57 | ent.h_length = sizeof(struct in_addr); 58 | ent.h_addr_list = addrlist; 59 | ent.h_addr = (char *) &saddr; 60 | 61 | return &ent; 62 | } 63 | 64 | struct hostent *gethostbyname(const char *name) 65 | { 66 | static struct hostent ent; 67 | char buf[1024]; 68 | static char sname[MAX_NAME] = ""; 69 | static struct in_addr saddr = { 0 }; 70 | static char *addrlist[2] = { (char *) &saddr, NULL }; 71 | int rid; 72 | 73 | if(sceNetInetInetAton(name, &saddr) == 0) 74 | { 75 | int err; 76 | 77 | if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) 78 | { 79 | h_errno = NO_RECOVERY; 80 | return NULL; 81 | } 82 | 83 | err = sceNetResolverStartNtoA(rid, name, &saddr, 2, 3); 84 | sceNetResolverDelete(rid); 85 | if(err < 0) 86 | { 87 | h_errno = HOST_NOT_FOUND; 88 | return NULL; 89 | } 90 | 91 | } 92 | 93 | snprintf(sname, MAX_NAME, "%s", name); 94 | ent.h_name = sname; 95 | ent.h_aliases = 0; 96 | ent.h_addrtype = AF_INET; 97 | ent.h_length = sizeof(struct in_addr); 98 | ent.h_addr_list = addrlist; 99 | ent.h_addr = (char *) &saddr; 100 | 101 | return &ent; 102 | } 103 | 104 | int gethostname(char *name, int namelen) 105 | { 106 | memset(name, 0, namelen); 107 | if(sceUtilityGetSystemParamString(PSP_SYSTEMPARAM_ID_STRING_NICKNAME, 108 | name, namelen) == PSP_SYSTEMPARAM_RETVAL_FAIL) 109 | { 110 | strcpy(name, "UNNAMED"); 111 | return -1; 112 | } 113 | 114 | return 1; 115 | } 116 | -------------------------------------------------------------------------------- /psp/.svn/text-base/gethost.hpp.svn-base: -------------------------------------------------------------------------------- 1 | 2 | #ifndef GETHOST 3 | #define GETHOST 4 | 5 | struct hostent *gethostbyaddr(const void *addr, int len, int type); 6 | struct hostent *gethostbyname(const char *name); 7 | int gethostname(char *name, int namelen); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /psp/.svn/text-base/lightmaps.h.svn-base: -------------------------------------------------------------------------------- 1 | 2 | extern int LIGHTMAP_BYTES; 3 | extern int MAX_LIGHTMAPS; 4 | -------------------------------------------------------------------------------- /psp/.svn/text-base/math.cpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #include "math.hpp" 22 | 23 | namespace quake 24 | { 25 | namespace math 26 | { 27 | void multiply(const ScePspFMatrix4& a, const ScePspFMatrix4& b, ScePspFMatrix4* out) 28 | { 29 | out->x.x = a.x.x * b.x.x + a.x.y * b.y.x + a.x.z * b.z.x + a.x.w * b.w.x; 30 | out->x.y = a.x.x * b.x.y + a.x.y * b.y.y + a.x.z * b.z.y + a.x.w * b.w.y; 31 | out->x.z = a.x.x * b.x.z + a.x.y * b.y.z + a.x.z * b.z.z + a.x.w * b.w.z; 32 | out->x.w = a.x.x * b.x.w + a.x.y * b.y.w + a.x.z * b.z.w + a.x.w * b.w.w; 33 | 34 | out->y.x = a.y.x * b.x.x + a.y.y * b.y.x + a.y.z * b.z.x + a.y.w * b.w.x; 35 | out->y.y = a.y.x * b.x.y + a.y.y * b.y.y + a.y.z * b.z.y + a.y.w * b.w.y; 36 | out->y.z = a.y.x * b.x.z + a.y.y * b.y.z + a.y.z * b.z.z + a.y.w * b.w.z; 37 | out->y.w = a.y.x * b.x.w + a.y.y * b.y.w + a.y.z * b.z.w + a.y.w * b.w.w; 38 | 39 | out->z.x = a.z.x * b.x.x + a.z.y * b.y.x + a.z.z * b.z.x + a.z.w * b.w.x; 40 | out->z.y = a.z.x * b.x.y + a.z.y * b.y.y + a.z.z * b.z.y + a.z.w * b.w.y; 41 | out->z.z = a.z.x * b.x.z + a.z.y * b.y.z + a.z.z * b.z.z + a.z.w * b.w.z; 42 | out->z.w = a.z.x * b.x.w + a.z.y * b.y.w + a.z.z * b.z.w + a.z.w * b.w.w; 43 | 44 | out->w.x = a.w.x * b.x.x + a.w.y * b.y.x + a.w.z * b.z.x + a.w.w * b.w.x; 45 | out->w.y = a.w.x * b.x.y + a.w.y * b.y.y + a.w.z * b.z.y + a.w.w * b.w.y; 46 | out->w.z = a.w.x * b.x.z + a.w.y * b.y.z + a.w.z * b.z.z + a.w.w * b.w.z; 47 | out->w.w = a.w.x * b.x.w + a.w.y * b.y.w + a.w.z * b.z.w + a.w.w * b.w.w; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /psp/.svn/text-base/math.hpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_MATH_HPP 22 | #define QUAKE_MATH_HPP 23 | 24 | #include 25 | #include 26 | 27 | namespace quake 28 | { 29 | namespace math 30 | { 31 | static inline float dot(const ScePspFVector4& a, const ScePspFVector4& b) 32 | { 33 | return (a.x * b.x) + (a.y * b.y) + (a.z * b.z); 34 | } 35 | 36 | static inline void normalise(ScePspFVector4* v) 37 | { 38 | const float scale = 1.0f / sqrtf(dot(*v, *v)); 39 | v->x *= scale; 40 | v->y *= scale; 41 | v->z *= scale; 42 | v->w *= scale; 43 | } 44 | 45 | void multiply(const ScePspFMatrix4& a, const ScePspFMatrix4& b, ScePspFMatrix4* out); 46 | } 47 | } 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /psp/.svn/text-base/mcount.S.svn-base: -------------------------------------------------------------------------------- 1 | .globl _mcount 2 | .ent _mcount 3 | 4 | _mcount: 5 | 6 | .set noreorder 7 | .set noat 8 | 9 | # generated code already substracts 8 bytes 10 | # we store our ra, at and a0-a3 11 | addu $29, $29, -40 12 | sd $31, 0($29) # store ra 13 | sd $1, 8($29) # at = ra of caller 14 | sd $4, 16($29) 15 | sd $5, 24($29) 16 | sd $6, 32($29) 17 | sd $7, 40($29) 18 | 19 | # make sure we're not recursively called when compiling __mcount() 20 | # with -pg 21 | la $4, _busy 22 | lw $5, 0($4) 23 | bnez $5, done 24 | nop 25 | 26 | # mark busy 27 | li $5, 1 28 | sw $5, 0($4) 29 | 30 | # call internal C handler 31 | move $4, $1 32 | move $5, $31 33 | jal __mcount 34 | nop 35 | 36 | # unmark busy 37 | la $4, _busy 38 | li $5, 0 39 | sw $5, 0($4) 40 | 41 | done: 42 | 43 | # restore registers 44 | ld $31, 0($29) 45 | ld $1, 8($29) 46 | ld $4, 16($29) 47 | ld $5, 24($29) 48 | ld $6, 32($29) 49 | ld $7, 40($29) 50 | addu $29, $29, 48 # generated code substracts 8 bytes 51 | j $31 52 | move $31, $1 # restore caller's ra 53 | 54 | _busy: 55 | .space 4 56 | 57 | .set reorder 58 | .set at 59 | .end _mcount 60 | 61 | -------------------------------------------------------------------------------- /psp/.svn/text-base/module.cpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #include 22 | #include 23 | #include "module.h" 24 | 25 | // Set up the module info. 26 | PSP_MODULE_INFO("Kurok", 0, 1, 1); 27 | PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | PSP_THREAD_ATTR_VFPU); 28 | PSP_HEAP_SIZE_KB(PSP_HEAP_SIZE_MB * 1024); 29 | -------------------------------------------------------------------------------- /psp/.svn/text-base/module.h.svn-base: -------------------------------------------------------------------------------- 1 | #ifdef NORMAL_MODEL 2 | #define PSP_HEAP_SIZE_MB 18 3 | #endif 4 | #ifdef SLIM_MODEL 5 | #define PSP_HEAP_SIZE_MB 46 6 | #endif 7 | -------------------------------------------------------------------------------- /psp/.svn/text-base/mp3.h.svn-base: -------------------------------------------------------------------------------- 1 | // additional stuff for PSP mp3 decoder implementation 2 | 3 | extern "C" int mp3_init(void); 4 | extern "C" void mp3_deinit(void); 5 | extern "C" int mp3_start_play(char *fname, int pos); 6 | 7 | extern "C" int mp3_job_started; 8 | 9 | int mp3_volume; 10 | int changeMp3Volume; 11 | -------------------------------------------------------------------------------- /psp/.svn/text-base/pspDveManager.S.svn-base: -------------------------------------------------------------------------------- 1 | .set noreorder 2 | 3 | #include "pspstub.s" 4 | 5 | STUB_START "pspDveManager",0x40090000,0x00020005 6 | STUB_FUNC 0x2ACFCB6D,pspDveMgrCheckVideoOut 7 | STUB_FUNC 0xF9C86C73,pspDveMgrSetVideoOut 8 | STUB_END 9 | -------------------------------------------------------------------------------- /psp/.svn/text-base/sed_make.sh.svn-base: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | make 2>&1 $@ | sed -e 's/\([^:]*\):\([0-9][0-9]*\)\(.*\)/\1(\2) \3/' -------------------------------------------------------------------------------- /psp/.svn/text-base/system.hpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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_SYSTEM_HPP 23 | #define QUAKE_SYSTEM_HPP 24 | 25 | namespace quake 26 | { 27 | namespace system 28 | { 29 | // Prepares the system for suspension. 30 | void suspend(); 31 | 32 | // Restores the system after suspension. 33 | void resume(); 34 | } 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /psp/.svn/text-base/video_hardware_vertexlights.h.svn-base: -------------------------------------------------------------------------------- 1 | extern byte anorm_pitch[162]; 2 | 3 | extern byte anorm_yaw[162]; 4 | 5 | extern byte vlighttable[256][256]; 6 | 7 | float VLight_LerpLight(int index1, int index2, float ilerp, float apitch, float ayaw); 8 | -------------------------------------------------------------------------------- /psp/.svn/text-base/video_vertex_lighting.h.svn-base: -------------------------------------------------------------------------------- 1 | // Following code is from the Quake Standards Group 2 | // tutorial "Vertex Lighting" by (c)2001 Orbiter Productions, 3 | // and is protected by the terms and conditions described 4 | // in the GNU General Public License, downloadable at 5 | // http://www.gnu.org/copyleft/gpl.html. 6 | 7 | // RIOT - Vertex lighting for models 8 | 9 | extern byte anorm_pitch[162]; 10 | extern byte anorm_yaw[162]; 11 | extern byte vlighttable[256][256]; 12 | 13 | float VLight_LerpLight(int index1, int index2, float ilerp, float apitch, float ayaw); 14 | -------------------------------------------------------------------------------- /psp/.svn/text-base/vram.hpp.svn-base: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_VRAM_HPP 22 | #define QUAKE_VRAM_HPP 23 | 24 | #include 25 | 26 | namespace quake 27 | { 28 | namespace vram 29 | { 30 | // Allocates a block of VRAM. 31 | void* allocate(std::size_t size); 32 | 33 | // Frees a block of VRAM. 34 | void free(void* const memory); 35 | } 36 | } 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /psp/Cygwin_normal_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | echo Setting ENV... 4 | set user=user 5 | set home=C:/cygwin/home/user 6 | set PSPDEV=/usr/local/pspdev 7 | set PSPSDK=/usr/local/pspdev/psp/sdk 8 | set path=%PSPDEV%;%PSPDEV%/bin;C:/cygwin/bin;C:/cygwin/user/bin;C:/cygwin/usr/local/bin;%path% 9 | 10 | chdir "C:\cygwin\bin" 11 | 12 | umount -s --remove-all-mounts 13 | mount -s -b -f "C:/cygwin/" / 14 | mount -s -b -f "C:/cygwin/bin" /bin 15 | mount -s -b -f "C:/cygwin/etc" /etc 16 | mount -s -b -f "C:/cygwin/lib" /lib 17 | mount -s -b -f "C:/cygwin/usr" /usr 18 | mount -s -b -f "C:/cygwin/var" /var 19 | mount -s -b -f "C:/cygwin/home" /home 20 | mount -s -b -f "C:/cygwin/bin" /usr/bin 21 | mount -s -b -f "C:/cygwin/lib" /usr/lib 22 | mount -c -s /cygdrive 23 | mount -c -u /cygdrive 24 | 25 | chdir "C:\cygwin\home\user" 26 | 27 | echo Launching bash... 28 | 29 | bash --login -i -c "cd \"proquake_dev\WinQuake\psp\"; make -f MakefileNormal clean" 30 | -------------------------------------------------------------------------------- /psp/Cygwin_normal_eboot.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make -f MakefileNormal eboot" 7 | -------------------------------------------------------------------------------- /psp/Cygwin_normal_install.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make -f MakefileNormal install" 7 | -------------------------------------------------------------------------------- /psp/Cygwin_normal_make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | echo Setting ENV... 4 | set user=user 5 | set home=C:/cygwin/home/user 6 | set PSPDEV=/usr/local/pspdev 7 | set PSPSDK=/usr/local/pspdev/psp/sdk 8 | set path=%PSPDEV%;%PSPDEV%/bin;C:/cygwin/bin;C:/cygwin/user/bin;C:/cygwin/usr/local/bin;%path% 9 | 10 | chdir "C:\cygwin\bin" 11 | 12 | umount -s --remove-all-mounts 13 | mount -s -b -f "C:/cygwin/" / 14 | mount -s -b -f "C:/cygwin/bin" /bin 15 | mount -s -b -f "C:/cygwin/etc" /etc 16 | mount -s -b -f "C:/cygwin/lib" /lib 17 | mount -s -b -f "C:/cygwin/usr" /usr 18 | mount -s -b -f "C:/cygwin/var" /var 19 | mount -s -b -f "C:/cygwin/home" /home 20 | mount -s -b -f "C:/cygwin/bin" /usr/bin 21 | mount -s -b -f "C:/cygwin/lib" /usr/lib 22 | mount -c -s /cygdrive 23 | mount -c -u /cygdrive 24 | 25 | chdir "C:\cygwin\home\user" 26 | 27 | echo Launching bash... 28 | 29 | 30 | bash --login -i -c "cd \"proquake_dev\WinQuake\psp\"; make -f MakefileNormal" 31 | cmd 32 | -------------------------------------------------------------------------------- /psp/Cygwin_slim_clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make clean" 7 | -------------------------------------------------------------------------------- /psp/Cygwin_slim_eboot.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make eboot" 7 | -------------------------------------------------------------------------------- /psp/Cygwin_slim_install.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make install" 7 | -------------------------------------------------------------------------------- /psp/Cygwin_slim_make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | D: 4 | chdir D:\cygwin\bin 5 | 6 | bash --login -i -c "cd \"Kurok\psp\"; make" 7 | cmd -------------------------------------------------------------------------------- /psp/PARAM.SFO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/PARAM.SFO -------------------------------------------------------------------------------- /psp/PARAMslim.SFO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/PARAMslim.SFO -------------------------------------------------------------------------------- /psp/battery.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #include 22 | 23 | extern "C" 24 | { 25 | #include "../quakedef.h" 26 | } 27 | 28 | #include "battery.hpp" 29 | 30 | namespace quake 31 | { 32 | namespace battery 33 | { 34 | // The previous battery level. 35 | static int lastLevel = scePowerGetBatteryLifePercent(); 36 | static bool lastCharging = scePowerGetBatteryChargingStatus(); 37 | 38 | void check() 39 | { 40 | // No battery? 41 | if (!scePowerIsBatteryExist()) 42 | { 43 | // Don't report anything. 44 | return; 45 | } 46 | 47 | // Get the new battery status. 48 | const int level = scePowerGetBatteryLifePercent(); 49 | const bool charging = scePowerGetBatteryChargingStatus(); 50 | 51 | // Is the level not sensible? 52 | if ((level < 0) || (level > 100)) 53 | { 54 | // Hopefully it will be sensible soon. 55 | return; 56 | } 57 | 58 | // Has the battery status changed? 59 | if ((level != lastLevel) || (charging != lastCharging)) 60 | { 61 | // Charging? 62 | if (charging) 63 | { 64 | // Inform the player. 65 | Con_Printf("Battery %d%% (charging)\n", 66 | level); 67 | } 68 | else 69 | { 70 | // How much time is left? 71 | const int timeLeft = scePowerGetBatteryLifeTime(); 72 | 73 | // Is the time sensible? 74 | if (timeLeft > 0) 75 | { 76 | // Convert the time to something readable. 77 | const int hoursLeft = timeLeft / 60; 78 | const int minutesLeft = timeLeft % 60; 79 | 80 | // Inform the player. 81 | Con_Printf("Battery %d%% (%d hour%s %d minute%s)\n", 82 | level, 83 | hoursLeft, 84 | (hoursLeft == 1) ? "" : "s", // Handle pluralisation of hour(s). 85 | minutesLeft, 86 | (minutesLeft == 1) ? "" : "s"); // Handle pluralisation of minute(s). 87 | } 88 | else 89 | { 90 | // It's a silly time, just report the battery level. 91 | Con_Printf("Battery %d%%\n", 92 | level); 93 | } 94 | } 95 | 96 | // Remember the status for next frame. 97 | lastLevel = level; 98 | lastCharging = charging; 99 | } 100 | } 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /psp/battery.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_BATTERY_HPP 22 | #define QUAKE_BATTERY_HPP 23 | 24 | namespace quake 25 | { 26 | namespace battery 27 | { 28 | // Checks the battery level and prints it to the console if it's changed. 29 | void check(); 30 | } 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /psp/build/Install_eboot.bat: -------------------------------------------------------------------------------- 1 | echo Installing new PSP binary to H:\PSP\GAME\PROQUAKE4\EBOOT.PBP 2 | copy ..\normal\eboot.pbp d:\PSP\GAME\PROQUAKE4 /y 3 | echo Done? 4 | dir d:\PSP\GAME\PROQUAKE4 5 | echo completed? 6 | pause 7 | -------------------------------------------------------------------------------- /psp/dist/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 30 4 | /kurok/SVN/!svn/ver/3/psp/dist 5 | END 6 | gpl.txt 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 38 10 | /kurok/SVN/!svn/ver/1/psp/dist/gpl.txt 11 | END 12 | readme.html 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 42 16 | /kurok/SVN/!svn/ver/1/psp/dist/readme.html 17 | END 18 | old_readme.txt 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 45 22 | /kurok/SVN/!svn/ver/1/psp/dist/old_readme.txt 23 | END 24 | -------------------------------------------------------------------------------- /psp/dist/.svn/entries: -------------------------------------------------------------------------------- 1 | 9 2 | 3 | dir 4 | 11 5 | http://bladebattles.com/kurok/SVN/psp/dist 6 | http://bladebattles.com/kurok/SVN 7 | 8 | 9 | 10 | 2008-04-05T00:29:57.826999Z 11 | 3 12 | Dave 13 | 14 | 15 | svn:special svn:externals svn:needs-lock 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 20cd92bb-ff49-0410-b73e-96a06e42c3b9 28 | 29 | gpl.txt 30 | file 31 | 32 | 33 | 34 | 35 | 2010-01-08T03:23:08.436100Z 36 | f590324e05b1bdd1caa7d99313b2c44c 37 | 2008-04-03T23:02:18.798612Z 38 | 1 39 | Dave 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 15402 62 | 63 | readme.html 64 | file 65 | 66 | 67 | 68 | 69 | 2010-01-08T03:23:08.439100Z 70 | 6d0197d3f7dd18c1be3841c81c1ef1f4 71 | 2008-04-03T23:02:18.798612Z 72 | 1 73 | Dave 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 4322 96 | 97 | Quake 98 | dir 99 | 100 | old_readme.txt 101 | file 102 | 103 | 104 | 105 | 106 | 2010-01-08T03:23:08.445100Z 107 | ceae3a136d65f6b003ca75810cf1d23f 108 | 2008-04-03T23:02:18.798612Z 109 | 1 110 | Dave 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 5658 133 | 134 | -------------------------------------------------------------------------------- /psp/dist/.svn/format: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /psp/dist/Quake/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 36 4 | /kurok/SVN/!svn/ver/1/psp/dist/Quake 5 | END 6 | -------------------------------------------------------------------------------- /psp/dist/Quake/.svn/entries: -------------------------------------------------------------------------------- 1 | 9 2 | 3 | dir 4 | 11 5 | http://bladebattles.com/kurok/SVN/psp/dist/Quake 6 | http://bladebattles.com/kurok/SVN 7 | 8 | 9 | 10 | 2008-04-03T23:02:18.798612Z 11 | 1 12 | Dave 13 | 14 | 15 | svn:special svn:externals svn:needs-lock 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 20cd92bb-ff49-0410-b73e-96a06e42c3b9 28 | 29 | -------------------------------------------------------------------------------- /psp/dist/Quake/.svn/format: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /psp/fs_fnmatch.h: -------------------------------------------------------------------------------- 1 | #define FNM_NOMATCH (1) /* Match failed. */ 2 | #define FNM_NOSYS (2) /* Function not implemented. */ 3 | 4 | #define FNM_NOESCAPE (0x01) /* Disable backslash escaping. */ 5 | #define FNM_PATHNAME (0x02) /* Slash must be matched by slash. */ 6 | #define FNM_PERIOD (0x04) /* Period must be matched by period. */ 7 | #define FNM_CASEFOLD (0x08) /* Pattern is matched case-insensitive */ 8 | #define FNM_LEADING_DIR (0x10) /* Ignore / after Imatch. */ 9 | 10 | int fnmatch(const char *pattern, const char *string, int flags); 11 | -------------------------------------------------------------------------------- /psp/m33libs/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 33 4 | /kurok/SVN/!svn/ver/1/psp/m33libs 5 | END 6 | kubridge.h 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 44 10 | /kurok/SVN/!svn/ver/1/psp/m33libs/kubridge.h 11 | END 12 | libpspkubridge.a 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 50 16 | /kurok/SVN/!svn/ver/1/psp/m33libs/libpspkubridge.a 17 | END 18 | libpspaudiocodec.a 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 52 22 | /kurok/SVN/!svn/ver/1/psp/m33libs/libpspaudiocodec.a 23 | END 24 | -------------------------------------------------------------------------------- /psp/m33libs/.svn/entries: -------------------------------------------------------------------------------- 1 | 9 2 | 3 | dir 4 | 11 5 | http://bladebattles.com/kurok/SVN/psp/m33libs 6 | http://bladebattles.com/kurok/SVN 7 | 8 | 9 | 10 | 2008-04-03T23:02:18.798612Z 11 | 1 12 | Dave 13 | 14 | 15 | svn:special svn:externals svn:needs-lock 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 20cd92bb-ff49-0410-b73e-96a06e42c3b9 28 | 29 | kubridge.h 30 | file 31 | 32 | 33 | 34 | 35 | 2010-01-08T03:22:48.909100Z 36 | 5999c6ccaf6f562907745847c44780fd 37 | 2008-04-03T23:02:18.798612Z 38 | 1 39 | Dave 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 2484 62 | 63 | libpspkubridge.a 64 | file 65 | 66 | 67 | 68 | 69 | 2010-01-08T03:22:48.913100Z 70 | 2b334ad187d07d9a58e3f8ff8c7ecefd 71 | 2008-04-03T23:02:18.798612Z 72 | 1 73 | Dave 74 | has-props 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 9918 96 | 97 | libpspaudiocodec.a 98 | file 99 | 100 | 101 | 102 | 103 | 2010-01-08T03:22:48.919100Z 104 | f4a619243542c73588d081f05343aef2 105 | 2008-04-03T23:02:18.798612Z 106 | 1 107 | Dave 108 | has-props 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 9962 130 | 131 | -------------------------------------------------------------------------------- /psp/m33libs/.svn/format: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /psp/m33libs/.svn/prop-base/libpspaudiocodec.a.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/m33libs/.svn/prop-base/libpspkubridge.a.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/m33libs/.svn/text-base/kubridge.h.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/m33libs/.svn/text-base/kubridge.h.svn-base -------------------------------------------------------------------------------- /psp/m33libs/.svn/text-base/libpspaudiocodec.a.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/m33libs/.svn/text-base/libpspaudiocodec.a.svn-base -------------------------------------------------------------------------------- /psp/m33libs/.svn/text-base/libpspkubridge.a.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/m33libs/.svn/text-base/libpspkubridge.a.svn-base -------------------------------------------------------------------------------- /psp/m33libs/include/kubridge.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/m33libs/include/kubridge.h -------------------------------------------------------------------------------- /psp/m33libs/lib/libpspkubridge.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/m33libs/lib/libpspkubridge.a -------------------------------------------------------------------------------- /psp/m33libs/libpspaudiocodec.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/m33libs/libpspaudiocodec.a -------------------------------------------------------------------------------- /psp/madlibs/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 33 4 | /kurok/SVN/!svn/ver/1/psp/madlibs 5 | END 6 | libmad.a 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 42 10 | /kurok/SVN/!svn/ver/1/psp/madlibs/libmad.a 11 | END 12 | -------------------------------------------------------------------------------- /psp/madlibs/.svn/entries: -------------------------------------------------------------------------------- 1 | 9 2 | 3 | dir 4 | 11 5 | http://bladebattles.com/kurok/SVN/psp/madlibs 6 | http://bladebattles.com/kurok/SVN 7 | 8 | 9 | 10 | 2008-04-03T23:02:18.798612Z 11 | 1 12 | Dave 13 | 14 | 15 | svn:special svn:externals svn:needs-lock 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 20cd92bb-ff49-0410-b73e-96a06e42c3b9 28 | 29 | libmad.a 30 | file 31 | 32 | 33 | 34 | 35 | 2010-01-08T03:22:52.327100Z 36 | 45765466d051caa2481958c82f2d9575 37 | 2008-04-03T23:02:18.798612Z 38 | 1 39 | Dave 40 | has-props 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 133094 62 | 63 | -------------------------------------------------------------------------------- /psp/madlibs/.svn/format: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /psp/madlibs/.svn/prop-base/libmad.a.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/madlibs/.svn/text-base/libmad.a.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/madlibs/.svn/text-base/libmad.a.svn-base -------------------------------------------------------------------------------- /psp/madlibs/libmad.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/madlibs/libmad.a -------------------------------------------------------------------------------- /psp/math.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #include "math.hpp" 22 | 23 | namespace quake 24 | { 25 | namespace math 26 | { 27 | void multiply(const ScePspFMatrix4& a, const ScePspFMatrix4& b, ScePspFMatrix4* out) 28 | { 29 | out->x.x = a.x.x * b.x.x + a.x.y * b.y.x + a.x.z * b.z.x + a.x.w * b.w.x; 30 | out->x.y = a.x.x * b.x.y + a.x.y * b.y.y + a.x.z * b.z.y + a.x.w * b.w.y; 31 | out->x.z = a.x.x * b.x.z + a.x.y * b.y.z + a.x.z * b.z.z + a.x.w * b.w.z; 32 | out->x.w = a.x.x * b.x.w + a.x.y * b.y.w + a.x.z * b.z.w + a.x.w * b.w.w; 33 | 34 | out->y.x = a.y.x * b.x.x + a.y.y * b.y.x + a.y.z * b.z.x + a.y.w * b.w.x; 35 | out->y.y = a.y.x * b.x.y + a.y.y * b.y.y + a.y.z * b.z.y + a.y.w * b.w.y; 36 | out->y.z = a.y.x * b.x.z + a.y.y * b.y.z + a.y.z * b.z.z + a.y.w * b.w.z; 37 | out->y.w = a.y.x * b.x.w + a.y.y * b.y.w + a.y.z * b.z.w + a.y.w * b.w.w; 38 | 39 | out->z.x = a.z.x * b.x.x + a.z.y * b.y.x + a.z.z * b.z.x + a.z.w * b.w.x; 40 | out->z.y = a.z.x * b.x.y + a.z.y * b.y.y + a.z.z * b.z.y + a.z.w * b.w.y; 41 | out->z.z = a.z.x * b.x.z + a.z.y * b.y.z + a.z.z * b.z.z + a.z.w * b.w.z; 42 | out->z.w = a.z.x * b.x.w + a.z.y * b.y.w + a.z.z * b.z.w + a.z.w * b.w.w; 43 | 44 | out->w.x = a.w.x * b.x.x + a.w.y * b.y.x + a.w.z * b.z.x + a.w.w * b.w.x; 45 | out->w.y = a.w.x * b.x.y + a.w.y * b.y.y + a.w.z * b.z.y + a.w.w * b.w.y; 46 | out->w.z = a.w.x * b.x.z + a.w.y * b.y.z + a.w.z * b.z.z + a.w.w * b.w.z; 47 | out->w.w = a.w.x * b.x.w + a.w.y * b.y.w + a.w.z * b.z.w + a.w.w * b.w.w; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /psp/math.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_MATH_HPP 22 | #define QUAKE_MATH_HPP 23 | 24 | #include 25 | #include 26 | 27 | namespace quake 28 | { 29 | namespace math 30 | { 31 | static inline float dot(const ScePspFVector4& a, const ScePspFVector4& b) 32 | { 33 | return (a.x * b.x) + (a.y * b.y) + (a.z * b.z); 34 | } 35 | 36 | static inline void normalise(ScePspFVector4* v) 37 | { 38 | const float scale = 1.0f / sqrtf(dot(*v, *v)); 39 | v->x *= scale; 40 | v->y *= scale; 41 | v->z *= scale; 42 | v->w *= scale; 43 | } 44 | 45 | void multiply(const ScePspFMatrix4& a, const ScePspFMatrix4& b, ScePspFMatrix4* out); 46 | } 47 | } 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /psp/mcount.S: -------------------------------------------------------------------------------- 1 | .globl _mcount 2 | .ent _mcount 3 | 4 | _mcount: 5 | 6 | .set noreorder 7 | .set noat 8 | 9 | # generated code already substracts 8 bytes 10 | # we store our ra, at and a0-a3 11 | addu $29, $29, -40 12 | sd $31, 0($29) # store ra 13 | sd $1, 8($29) # at = ra of caller 14 | sd $4, 16($29) 15 | sd $5, 24($29) 16 | sd $6, 32($29) 17 | sd $7, 40($29) 18 | 19 | # make sure we're not recursively called when compiling __mcount() 20 | # with -pg 21 | la $4, _busy 22 | lw $5, 0($4) 23 | bnez $5, done 24 | nop 25 | 26 | # mark busy 27 | li $5, 1 28 | sw $5, 0($4) 29 | 30 | # call internal C handler 31 | move $4, $1 32 | move $5, $31 33 | jal __mcount 34 | nop 35 | 36 | # unmark busy 37 | la $4, _busy 38 | li $5, 0 39 | sw $5, 0($4) 40 | 41 | done: 42 | 43 | # restore registers 44 | ld $31, 0($29) 45 | ld $1, 8($29) 46 | ld $4, 16($29) 47 | ld $5, 24($29) 48 | ld $6, 32($29) 49 | ld $7, 40($29) 50 | addu $29, $29, 48 # generated code substracts 8 bytes 51 | j $31 52 | move $31, $1 # restore caller's ra 53 | 54 | _busy: 55 | .space 4 56 | 57 | .set reorder 58 | .set at 59 | .end _mcount 60 | 61 | -------------------------------------------------------------------------------- /psp/mp3.h: -------------------------------------------------------------------------------- 1 | // additional stuff for PSP mp3 decoder implementation 2 | 3 | extern "C" int mp3_init(void); 4 | extern "C" void mp3_deinit(void); 5 | extern "C" int mp3_start_play(char *fname, int pos); 6 | 7 | extern "C" int mp3_job_started; 8 | 9 | int mp3_volume; 10 | int changeMp3Volume; 11 | -------------------------------------------------------------------------------- /psp/network_gethost.cpp: -------------------------------------------------------------------------------- 1 | 2 | // Copied from newlib as the current newlib did not include it 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #define MAX_NAME 512 15 | 16 | #ifdef F_h_errno 17 | int h_errno = NETDB_SUCCESS; 18 | #endif 19 | 20 | struct hostent *gethostbyaddr(const void *addr, int len, int type) 21 | { 22 | static struct hostent ent; 23 | static char * aliases[1] = { NULL }; 24 | char buf[1024]; 25 | static char sname[MAX_NAME] = ""; 26 | static struct in_addr saddr = { 0 }; 27 | static char *addrlist[2] = { (char *) &saddr, NULL }; 28 | int rid; 29 | int err; 30 | 31 | if((len != sizeof(struct in_addr)) || (type != AF_INET) || (addr == NULL)) 32 | { 33 | h_errno = HOST_NOT_FOUND; 34 | return NULL; 35 | } 36 | 37 | memcpy(&saddr, addr, len); 38 | 39 | if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) 40 | { 41 | h_errno = NO_RECOVERY; 42 | return NULL; 43 | } 44 | 45 | err = sceNetResolverStartAtoN(rid, &saddr, sname, sizeof(sname), 2, 3); 46 | sceNetResolverStop(rid); 47 | sceNetResolverDelete(rid); 48 | if(err < 0) 49 | { 50 | h_errno = HOST_NOT_FOUND; 51 | return NULL; 52 | } 53 | 54 | ent.h_name = sname; 55 | ent.h_aliases = aliases; 56 | ent.h_addrtype = AF_INET; 57 | ent.h_length = sizeof(struct in_addr); 58 | ent.h_addr_list = addrlist; 59 | ent.h_addr = (char *) &saddr; 60 | 61 | return &ent; 62 | } 63 | 64 | struct hostent *gethostbyname(const char *name) 65 | { 66 | static struct hostent ent; 67 | char buf[1024]; 68 | static char sname[MAX_NAME] = ""; 69 | static struct in_addr saddr = { 0 }; 70 | static char *addrlist[2] = { (char *) &saddr, NULL }; 71 | int rid; 72 | 73 | if(sceNetInetInetAton(name, &saddr) == 0) 74 | { 75 | int err; 76 | 77 | if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) 78 | { 79 | h_errno = NO_RECOVERY; 80 | return NULL; 81 | } 82 | 83 | err = sceNetResolverStartNtoA(rid, name, &saddr, 2, 3); 84 | sceNetResolverDelete(rid); 85 | if(err < 0) 86 | { 87 | h_errno = HOST_NOT_FOUND; 88 | return NULL; 89 | } 90 | 91 | } 92 | 93 | snprintf(sname, MAX_NAME, "%s", name); 94 | ent.h_name = sname; 95 | ent.h_aliases = 0; 96 | ent.h_addrtype = AF_INET; 97 | ent.h_length = sizeof(struct in_addr); 98 | ent.h_addr_list = addrlist; 99 | ent.h_addr = (char *) &saddr; 100 | 101 | return &ent; 102 | } 103 | 104 | int gethostname(char *name, int namelen) 105 | { 106 | memset(name, 0, namelen); 107 | if(sceUtilityGetSystemParamString(PSP_SYSTEMPARAM_ID_STRING_NICKNAME, 108 | name, namelen) == PSP_SYSTEMPARAM_RETVAL_FAIL) 109 | { 110 | strcpy(name, "UNNAMED"); 111 | return -1; 112 | } 113 | 114 | return 1; 115 | } 116 | -------------------------------------------------------------------------------- /psp/network_gethost.hpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef GETHOST 3 | #define GETHOST 4 | 5 | struct hostent *gethostbyaddr(const void *addr, int len, int type); 6 | struct hostent *gethostbyname(const char *name); 7 | int gethostname(char *name, int namelen); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /psp/normal/EBOOT.PBP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/EBOOT.PBP -------------------------------------------------------------------------------- /psp/normal/PARAM.SFO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/PARAM.SFO -------------------------------------------------------------------------------- /psp/normal/Quake.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/Quake.elf -------------------------------------------------------------------------------- /psp/normal/Quake.prx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/Quake.prx -------------------------------------------------------------------------------- /psp/normal/cl_chase.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_chase.o -------------------------------------------------------------------------------- /psp/normal/cl_demo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_demo.o -------------------------------------------------------------------------------- /psp/normal/cl_input.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_input.o -------------------------------------------------------------------------------- /psp/normal/cl_main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_main.o -------------------------------------------------------------------------------- /psp/normal/cl_parse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_parse.o -------------------------------------------------------------------------------- /psp/normal/cl_sbar.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_sbar.o -------------------------------------------------------------------------------- /psp/normal/cl_tent.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_tent.o -------------------------------------------------------------------------------- /psp/normal/cl_view.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cl_view.o -------------------------------------------------------------------------------- /psp/normal/cmd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cmd.o -------------------------------------------------------------------------------- /psp/normal/common.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/common.o -------------------------------------------------------------------------------- /psp/normal/console.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/console.o -------------------------------------------------------------------------------- /psp/normal/crc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/crc.o -------------------------------------------------------------------------------- /psp/normal/cvar.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/cvar.o -------------------------------------------------------------------------------- /psp/normal/d_edge.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_edge.o -------------------------------------------------------------------------------- /psp/normal/d_fill.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_fill.o -------------------------------------------------------------------------------- /psp/normal/d_init.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_init.o -------------------------------------------------------------------------------- /psp/normal/d_modech.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_modech.o -------------------------------------------------------------------------------- /psp/normal/d_part.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_part.o -------------------------------------------------------------------------------- /psp/normal/d_polyse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_polyse.o -------------------------------------------------------------------------------- /psp/normal/d_scan.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_scan.o -------------------------------------------------------------------------------- /psp/normal/d_sky.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_sky.o -------------------------------------------------------------------------------- /psp/normal/d_sprite.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_sprite.o -------------------------------------------------------------------------------- /psp/normal/d_surf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_surf.o -------------------------------------------------------------------------------- /psp/normal/d_vars.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_vars.o -------------------------------------------------------------------------------- /psp/normal/d_zpoint.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/d_zpoint.o -------------------------------------------------------------------------------- /psp/normal/host.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/host.o -------------------------------------------------------------------------------- /psp/normal/host_cmd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/host_cmd.o -------------------------------------------------------------------------------- /psp/normal/keys.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/keys.o -------------------------------------------------------------------------------- /psp/normal/mathlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/mathlib.o -------------------------------------------------------------------------------- /psp/normal/menu.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/menu.o -------------------------------------------------------------------------------- /psp/normal/net_dgrm.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/net_dgrm.o -------------------------------------------------------------------------------- /psp/normal/net_loop.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/net_loop.o -------------------------------------------------------------------------------- /psp/normal/net_main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/net_main.o -------------------------------------------------------------------------------- /psp/normal/net_vcr.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/net_vcr.o -------------------------------------------------------------------------------- /psp/normal/nonintel.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/nonintel.o -------------------------------------------------------------------------------- /psp/normal/pr_cmds.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pr_cmds.o -------------------------------------------------------------------------------- /psp/normal/pr_edict.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pr_edict.o -------------------------------------------------------------------------------- /psp/normal/pr_exec.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pr_exec.o -------------------------------------------------------------------------------- /psp/normal/psp/battery.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/battery.o -------------------------------------------------------------------------------- /psp/normal/psp/cd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/cd.o -------------------------------------------------------------------------------- /psp/normal/psp/fs_fnmatch.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/fs_fnmatch.o -------------------------------------------------------------------------------- /psp/normal/psp/input.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/input.o -------------------------------------------------------------------------------- /psp/normal/psp/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/main.o -------------------------------------------------------------------------------- /psp/normal/psp/math.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/math.o -------------------------------------------------------------------------------- /psp/normal/psp/mp3.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/mp3.o -------------------------------------------------------------------------------- /psp/normal/psp/network.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/network.o -------------------------------------------------------------------------------- /psp/normal/psp/network_gethost.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/network_gethost.o -------------------------------------------------------------------------------- /psp/normal/psp/network_psp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/network_psp.o -------------------------------------------------------------------------------- /psp/normal/psp/pspDveManager.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/pspDveManager.o -------------------------------------------------------------------------------- /psp/normal/psp/sound.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/sound.o -------------------------------------------------------------------------------- /psp/normal/psp/sysmem_module.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/sysmem_module.o -------------------------------------------------------------------------------- /psp/normal/psp/system.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/psp/system.o -------------------------------------------------------------------------------- /psp/normal/pspgu/clipping.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/clipping.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_draw.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_draw.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_entity_fragment.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_entity_fragment.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_fog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_fog.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_light.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_light.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_main.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_mesh.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_mesh.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_misc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_misc.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_model.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_model.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_screen.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_screen.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_surface.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_surface.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_hardware_warp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_hardware_warp.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_software.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_software.o -------------------------------------------------------------------------------- /psp/normal/pspgu/video_vertex_lighting.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/video_vertex_lighting.o -------------------------------------------------------------------------------- /psp/normal/pspgu/vram.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/pspgu/vram.o -------------------------------------------------------------------------------- /psp/normal/r_aclip.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/r_aclip.o -------------------------------------------------------------------------------- /psp/normal/r_alias.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/r_alias.o -------------------------------------------------------------------------------- /psp/normal/r_part.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/r_part.o -------------------------------------------------------------------------------- /psp/normal/snd_dma.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/snd_dma.o -------------------------------------------------------------------------------- /psp/normal/snd_mem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/snd_mem.o -------------------------------------------------------------------------------- /psp/normal/snd_mix.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/snd_mix.o -------------------------------------------------------------------------------- /psp/normal/sv_main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/sv_main.o -------------------------------------------------------------------------------- /psp/normal/sv_move.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/sv_move.o -------------------------------------------------------------------------------- /psp/normal/sv_phys.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/sv_phys.o -------------------------------------------------------------------------------- /psp/normal/sv_user.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/sv_user.o -------------------------------------------------------------------------------- /psp/normal/sv_world.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/sv_world.o -------------------------------------------------------------------------------- /psp/normal/version.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/version.o -------------------------------------------------------------------------------- /psp/normal/wad.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/wad.o -------------------------------------------------------------------------------- /psp/normal/zone.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/normal/zone.o -------------------------------------------------------------------------------- /psp/pics/.svn/all-wcprops: -------------------------------------------------------------------------------- 1 | K 25 2 | svn:wc:ra_dav:version-url 3 | V 30 4 | /kurok/SVN/!svn/ver/1/psp/pics 5 | END 6 | pic1.png 7 | K 25 8 | svn:wc:ra_dav:version-url 9 | V 39 10 | /kurok/SVN/!svn/ver/1/psp/pics/pic1.png 11 | END 12 | pic2.png 13 | K 25 14 | svn:wc:ra_dav:version-url 15 | V 39 16 | /kurok/SVN/!svn/ver/1/psp/pics/pic2.png 17 | END 18 | Thumbs.db 19 | K 25 20 | svn:wc:ra_dav:version-url 21 | V 40 22 | /kurok/SVN/!svn/ver/1/psp/pics/Thumbs.db 23 | END 24 | icon.png 25 | K 25 26 | svn:wc:ra_dav:version-url 27 | V 39 28 | /kurok/SVN/!svn/ver/1/psp/pics/icon.png 29 | END 30 | icon1.png 31 | K 25 32 | svn:wc:ra_dav:version-url 33 | V 40 34 | /kurok/SVN/!svn/ver/1/psp/pics/icon1.png 35 | END 36 | pic.png 37 | K 25 38 | svn:wc:ra_dav:version-url 39 | V 38 40 | /kurok/SVN/!svn/ver/1/psp/pics/pic.png 41 | END 42 | -------------------------------------------------------------------------------- /psp/pics/.svn/entries: -------------------------------------------------------------------------------- 1 | 9 2 | 3 | dir 4 | 11 5 | http://bladebattles.com/kurok/SVN/psp/pics 6 | http://bladebattles.com/kurok/SVN 7 | 8 | 9 | 10 | 2008-04-03T23:02:18.798612Z 11 | 1 12 | Dave 13 | 14 | 15 | svn:special svn:externals svn:needs-lock 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 20cd92bb-ff49-0410-b73e-96a06e42c3b9 28 | 29 | pic1.png 30 | file 31 | 32 | 33 | 34 | 35 | 2010-01-08T03:23:05.835100Z 36 | f361a9b126d647c4146be41e9edfb256 37 | 2008-04-03T23:02:18.798612Z 38 | 1 39 | Dave 40 | has-props 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 39449 62 | 63 | pic2.png 64 | file 65 | 66 | 67 | 68 | 69 | 2010-01-08T03:23:05.848100Z 70 | f118995c383ab158fbb6e194f6380ecd 71 | 2008-04-03T23:02:18.798612Z 72 | 1 73 | Dave 74 | has-props 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 122013 96 | 97 | Thumbs.db 98 | file 99 | 100 | 101 | 102 | 103 | 2010-01-08T03:23:05.870100Z 104 | 0aec04d42c7511fad7ab2f185acfcb9b 105 | 2008-04-03T23:02:18.798612Z 106 | 1 107 | Dave 108 | has-props 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 17408 130 | 131 | icon.png 132 | file 133 | 134 | 135 | 136 | 137 | 2010-01-08T03:23:05.985100Z 138 | b8fbe093984c6c70dc5170deaafc0b04 139 | 2008-04-03T23:02:18.798612Z 140 | 1 141 | Dave 142 | has-props 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 8922 164 | 165 | icon1.png 166 | file 167 | 168 | 169 | 170 | 171 | 2010-01-08T03:23:05.996100Z 172 | b8fbe093984c6c70dc5170deaafc0b04 173 | 2008-04-03T23:02:18.798612Z 174 | 1 175 | Dave 176 | has-props 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 8922 198 | 199 | pic.png 200 | file 201 | 202 | 203 | 204 | 205 | 2010-01-08T03:23:06.009100Z 206 | 7a6bf8942c1b9f1382f147dcd1ec406d 207 | 2008-04-03T23:02:18.798612Z 208 | 1 209 | Dave 210 | has-props 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 121441 232 | 233 | -------------------------------------------------------------------------------- /psp/pics/.svn/format: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /psp/pics/.svn/prop-base/Thumbs.db.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/pics/.svn/prop-base/icon.png.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/pics/.svn/prop-base/icon1.png.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/pics/.svn/prop-base/pic.png.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/pics/.svn/prop-base/pic1.png.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/pics/.svn/prop-base/pic2.png.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /psp/pics/.svn/text-base/Thumbs.db.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/.svn/text-base/Thumbs.db.svn-base -------------------------------------------------------------------------------- /psp/pics/.svn/text-base/icon.png.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/.svn/text-base/icon.png.svn-base -------------------------------------------------------------------------------- /psp/pics/.svn/text-base/icon1.png.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/.svn/text-base/icon1.png.svn-base -------------------------------------------------------------------------------- /psp/pics/.svn/text-base/pic.png.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/.svn/text-base/pic.png.svn-base -------------------------------------------------------------------------------- /psp/pics/.svn/text-base/pic1.png.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/.svn/text-base/pic1.png.svn-base -------------------------------------------------------------------------------- /psp/pics/.svn/text-base/pic2.png.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/.svn/text-base/pic2.png.svn-base -------------------------------------------------------------------------------- /psp/pics/PIC1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/PIC1.PNG -------------------------------------------------------------------------------- /psp/pics/bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/bak -------------------------------------------------------------------------------- /psp/pics/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/psp/pics/icon.png -------------------------------------------------------------------------------- /psp/pspDveManager.S: -------------------------------------------------------------------------------- 1 | .set noreorder 2 | 3 | #include "pspstub.s" 4 | 5 | STUB_START "pspDveManager",0x40090000,0x00020005 6 | STUB_FUNC 0x2ACFCB6D,pspDveMgrCheckVideoOut 7 | STUB_FUNC 0xF9C86C73,pspDveMgrSetVideoOut 8 | STUB_END 9 | -------------------------------------------------------------------------------- /psp/sed_make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | make 2>&1 $@ | sed -e 's/\([^:]*\):\([0-9][0-9]*\)\(.*\)/\1(\2) \3/' -------------------------------------------------------------------------------- /psp/sysmem_module.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #include 22 | #include 23 | #include "sysmem_module.h" 24 | 25 | // Set up the module info. 26 | PSP_MODULE_INFO("Kurok", 0, 1, 1); 27 | PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | PSP_THREAD_ATTR_VFPU); 28 | PSP_HEAP_SIZE_KB(PSP_HEAP_SIZE_MB * 1024); 29 | -------------------------------------------------------------------------------- /psp/sysmem_module.cpp.bak: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #include 22 | #include 23 | #include "module.h" 24 | 25 | // Set up the module info. 26 | PSP_MODULE_INFO("Kurok", 0, 1, 1); 27 | PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | PSP_THREAD_ATTR_VFPU); 28 | PSP_HEAP_SIZE_KB(PSP_HEAP_SIZE_MB * 1024); 29 | -------------------------------------------------------------------------------- /psp/sysmem_module.h: -------------------------------------------------------------------------------- 1 | #ifdef NORMAL_MODEL 2 | #define PSP_HEAP_SIZE_MB 18 3 | #endif 4 | #ifdef SLIM_MODEL 5 | #define PSP_HEAP_SIZE_MB 40 6 | #endif 7 | -------------------------------------------------------------------------------- /psp/system.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 3 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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_SYSTEM_HPP 23 | #define QUAKE_SYSTEM_HPP 24 | 25 | namespace quake 26 | { 27 | namespace system 28 | { 29 | // Prepares the system for suspension. 30 | void suspend(); 31 | 32 | // Restores the system after suspension. 33 | void resume(); 34 | } 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /pspgu/clipping.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_CLIPPING_HPP 22 | #define QUAKE_CLIPPING_HPP 23 | 24 | #include 25 | 26 | struct glvert_s; 27 | 28 | namespace quake 29 | { 30 | namespace clipping 31 | { 32 | // Calculates clipping planes from the GU view and projection matrices. 33 | void begin_frame(); 34 | 35 | // Calculates clipping planes from the GU view and projection matrices. 36 | void begin_brush_model(); 37 | 38 | // Resets the frustum to camera space. 39 | void end_brush_model(); 40 | 41 | // Is clipping required? 42 | bool is_clipping_required(const struct glvert_s* vertices, std::size_t vertex_count); 43 | 44 | // Clips a polygon. 45 | void clip( 46 | const struct glvert_s* unclipped_vertices, 47 | std::size_t unclipped_vertex_count, 48 | const struct glvert_s** clipped_vertices, 49 | std::size_t* clipped_vertex_count); 50 | } 51 | } 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /pspgu/lightmaps.h: -------------------------------------------------------------------------------- 1 | 2 | extern int LIGHTMAP_BYTES; 3 | extern int MAX_LIGHTMAPS; 4 | -------------------------------------------------------------------------------- /pspgu/video_hardware_vertexlights.h: -------------------------------------------------------------------------------- 1 | extern byte anorm_pitch[162]; 2 | 3 | extern byte anorm_yaw[162]; 4 | 5 | extern byte vlighttable[256][256]; 6 | 7 | float VLight_LerpLight(int index1, int index2, float ilerp, float apitch, float ayaw); 8 | -------------------------------------------------------------------------------- /pspgu/video_vertex_lighting.h: -------------------------------------------------------------------------------- 1 | // Following code is from the Quake Standards Group 2 | // tutorial "Vertex Lighting" by (c)2001 Orbiter Productions, 3 | // and is protected by the terms and conditions described 4 | // in the GNU General Public License, downloadable at 5 | // http://www.gnu.org/copyleft/gpl.html. 6 | 7 | // RIOT - Vertex lighting for models 8 | 9 | extern byte anorm_pitch[162]; 10 | extern byte anorm_yaw[162]; 11 | extern byte vlighttable[256][256]; 12 | 13 | float VLight_LerpLight(int index1, int index2, float ilerp, float apitch, float ayaw); 14 | -------------------------------------------------------------------------------- /pspgu/vram.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2007 Peter Mackay and Chris Swindle. 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 | #ifndef QUAKE_VRAM_HPP 22 | #define QUAKE_VRAM_HPP 23 | 24 | #include 25 | 26 | namespace quake 27 | { 28 | namespace vram 29 | { 30 | // Allocates a block of VRAM. 31 | void* allocate(std::size_t size); 32 | 33 | // Frees a block of VRAM. 34 | void free(void* const memory); 35 | } 36 | } 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /qe3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/qe3.ico -------------------------------------------------------------------------------- /quake.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/quake.gif -------------------------------------------------------------------------------- /quake.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/quake.ico -------------------------------------------------------------------------------- /r_vars.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // r_vars.c: global refresh variables 21 | 22 | #include "quakedef.h" 23 | 24 | #if !id386 25 | 26 | // all global and static refresh variables are collected in a contiguous block 27 | // to avoid cache conflicts. 28 | 29 | //------------------------------------------------------- 30 | // global refresh variables 31 | //------------------------------------------------------- 32 | 33 | // FIXME: make into one big structure, like cl or sv 34 | // FIXME: do separately for refresh engine and driver 35 | 36 | int r_bmodelactive; 37 | 38 | #endif // !id386 39 | 40 | -------------------------------------------------------------------------------- /r_varsa.s: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // r_varsa.s 22 | // 23 | 24 | #include "asm_i386.h" 25 | #include "quakeasm.h" 26 | #include "asm_draw.h" 27 | #include "d_ifacea.h" 28 | 29 | #if id386 30 | 31 | .data 32 | 33 | //------------------------------------------------------- 34 | // ASM-only variables 35 | //------------------------------------------------------- 36 | .globl float_1, float_particle_z_clip, float_point5 37 | .globl float_minus_1, float_0 38 | float_0: .single 0.0 39 | float_1: .single 1.0 40 | float_minus_1: .single -1.0 41 | float_particle_z_clip: .single PARTICLE_Z_CLIP 42 | float_point5: .single 0.5 43 | 44 | .globl fp_16, fp_64k, fp_1m, fp_64kx64k 45 | .globl fp_1m_minus_1 46 | .globl fp_8 47 | fp_1m: .single 1048576.0 48 | fp_1m_minus_1: .single 1048575.0 49 | fp_64k: .single 65536.0 50 | fp_8: .single 8.0 51 | fp_16: .single 16.0 52 | fp_64kx64k: .long 0x4f000000 // (float)0x8000*0x10000 53 | 54 | 55 | .globl FloatZero, Float2ToThe31nd, FloatMinus2ToThe31nd 56 | FloatZero: .long 0 57 | Float2ToThe31nd: .long 0x4f000000 58 | FloatMinus2ToThe31nd: .long 0xcf000000 59 | 60 | .globl C(r_bmodelactive) 61 | C(r_bmodelactive): .long 0 62 | 63 | #endif // id386 64 | 65 | -------------------------------------------------------------------------------- /registry.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern "C"{ 4 | 5 | void CreateSetKeyExtension(void); 6 | void CreateSetKeyDescription(void); 7 | void CreateSetKeyCommandLine(const char* exeline); 8 | 9 | }; 10 | 11 | void CreateSetKeyExtension(void) 12 | { 13 | 14 | unsigned long IsNew = 0; 15 | HKEY hregkey; 16 | 17 | long res = RegCreateKeyEx(HKEY_CLASSES_ROOT, ".dem", 18 | NULL, NULL, NULL, KEY_WRITE, NULL, &hregkey, &IsNew); 19 | 20 | if (res == 0) // If we created it successfully 21 | { 22 | // Storing the string 23 | char str[256]; 24 | strcpy(str, "Quake"); 25 | RegSetValueEx(hregkey, "", 0, REG_SZ, (const unsigned char *)str, strlen(str)); 26 | 27 | RegCloseKey(hregkey); 28 | } 29 | 30 | } 31 | 32 | void CreateSetKeyDescription(void) 33 | { 34 | 35 | unsigned long IsNew = 0; 36 | HKEY hregkey; 37 | 38 | long res = RegCreateKeyEx(HKEY_CLASSES_ROOT, "Quake", 39 | NULL, NULL, NULL, KEY_WRITE, NULL, &hregkey, &IsNew); 40 | 41 | if (res == 0) // If we created it successfully 42 | { 43 | // Storing the string 44 | char str[256]; 45 | strcpy(str, "Quake Demo"); 46 | //RegSetValueEx(hregkey, "String", 0, REG_SZ, (const unsigned char *)str, strlen(str)); 47 | RegSetValueEx(hregkey, "", 0, REG_SZ, (const unsigned char *)str, strlen(str)); 48 | 49 | RegCloseKey(hregkey); 50 | } 51 | 52 | } 53 | 54 | void CreateSetKeyCommandLine(const char* exeline) 55 | { 56 | // Must send something like c:\quake\quake.exe %1 57 | unsigned long IsNew = 0; 58 | HKEY hregkey; 59 | 60 | long res = RegCreateKeyEx(HKEY_CLASSES_ROOT, "Quake\\shell\\open\\command", 61 | NULL, NULL, NULL, KEY_WRITE, NULL, &hregkey, &IsNew); 62 | 63 | if (res == 0) // If we created it successfully 64 | { 65 | // Storing the string 66 | char str[256]; 67 | strcpy(str, exeline); 68 | 69 | RegSetValueEx(hregkey, "", 0, REG_SZ, (const unsigned char *)str, strlen(str)); 70 | RegCloseKey(hregkey); 71 | } 72 | 73 | } 74 | 75 | -------------------------------------------------------------------------------- /resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by winquake.rc 4 | // 5 | #define IDS_STRING1 1 6 | #define IDI_ICON2 1 7 | #define IDI_ICON3 2 8 | #define IDD_DIALOG1 108 9 | #define IDD_PROGRESS 109 10 | #define IDC_PROGRESS 1000 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NEXT_RESOURCE_VALUE 112 17 | #define _APS_NEXT_COMMAND_VALUE 40001 18 | #define _APS_NEXT_CONTROL_VALUE 1004 19 | #define _APS_NEXT_SYMED_VALUE 101 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /screen.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // screen.h 21 | 22 | void SCR_Init (void); 23 | 24 | void SCR_UpdateScreen (void); 25 | 26 | 27 | void SCR_SizeUp (void); 28 | void SCR_SizeDown (void); 29 | void SCR_BringDownConsole (void); 30 | void SCR_CenterPrint (char *str); 31 | 32 | void SCR_BeginLoadingPlaque (void); 33 | void SCR_EndLoadingPlaque (void); 34 | 35 | int SCR_ModalMessage (char *text); 36 | 37 | extern float scr_con_current; 38 | extern float scr_conlines; // lines of console to display 39 | 40 | extern int scr_fullupdate; // set to 0 to force full redraw 41 | extern int sb_lines; 42 | 43 | extern int clearnotify; // set to 0 whenever notify text is drawn 44 | extern qboolean scr_disabled_for_loading; 45 | extern qboolean scr_skipupdate; 46 | 47 | extern cvar_t scr_viewsize; 48 | 49 | extern cvar_t scr_viewsize; 50 | 51 | // only the refresh window will be updated unless these variables are flagged 52 | extern int scr_copytop; 53 | extern int scr_copyeverything; 54 | 55 | extern qboolean block_drawing; 56 | 57 | void SCR_UpdateWholeScreen (void); 58 | -------------------------------------------------------------------------------- /security.c: -------------------------------------------------------------------------------- 1 | // 2 | // security.c 3 | // 4 | // Created by JPG for ProQuake v3.20 5 | // 6 | 7 | #include "quakedef.h" 8 | 9 | #ifdef _WIN32 10 | #include 11 | #else 12 | #include 13 | #endif 14 | 15 | qboolean pq_cheatfreeEnabled = false; 16 | qboolean pq_cheatfree = false; 17 | unsigned long qsmackAddr; 18 | qboolean qsmackActive = false; // only allow one qsmack connection 19 | unsigned long net_seed; 20 | cvar_t pq_cvar_cheatfree = {"pq_cheatfree", "0"}; 21 | 22 | Security_InitCRC_t Security_InitCRC = NULL; 23 | Security_SetSeed_t Security_SetSeed = NULL; 24 | Security_Decode_t Security_Decode = NULL; 25 | Security_Encode_t Security_Encode = NULL; 26 | Security_CRC_t Security_CRC = NULL; 27 | Security_CRC_File_t Security_CRC_File = NULL; 28 | Security_Verify_t Security_Verify = NULL; 29 | 30 | #ifdef _WIN32 31 | #define PROCADDRESS GetProcAddress 32 | #else 33 | #define PROCADDRESS dlsym 34 | #endif 35 | 36 | #define GETFUNC(f) if (!(Security_##f = (Security_##f##_t) PROCADDRESS(h, "Security_" #f))) goto error 37 | 38 | void Security_Init (void) 39 | { 40 | #ifdef SUPPORTS_CHEATFREE_MODE 41 | #ifdef _WIN32 42 | HINSTANCE h = LoadLibrary(TEXT("qsecurity.dll")); 43 | #else 44 | void *h = dlopen("./qsecurity.so", RTLD_LAZY); 45 | #endif 46 | if (!h) 47 | goto error; 48 | 49 | 50 | GETFUNC(InitCRC); 51 | GETFUNC(SetSeed); 52 | GETFUNC(Decode); 53 | GETFUNC(Encode); 54 | GETFUNC(CRC); 55 | GETFUNC(CRC_File); 56 | GETFUNC(Verify); 57 | 58 | Security_InitCRC(0x3915c28b); 59 | 60 | pq_cheatfreeEnabled = true; 61 | 62 | if (!isDedicated) { 63 | // Baker 3.99q: We are just going to assume 64 | // that if we aren't in dedicated mode 65 | // that cheat-free isn't going to be 66 | // used for single player mod 67 | // compatibility 68 | if (COM_CheckParm ("-game")) 69 | pq_cheatfreeEnabled = false; // Baker: 3.99n -- disallow cheat-free if gamedir is switched (revisit this later, is not ideal at all). 70 | 71 | } 72 | 73 | #else 74 | goto error; 75 | #endif 76 | 77 | #ifndef STEST 78 | Cvar_RegisterVariable (&pq_cvar_cheatfree, NULL); 79 | Con_Printf("Security module initialized\n"); 80 | #endif 81 | 82 | return; 83 | 84 | error: 85 | #ifndef STEST 86 | Con_Printf("Could not initialize security module\n"); 87 | #else 88 | printf("Error in Security_Init\n"); 89 | #endif 90 | } -------------------------------------------------------------------------------- /security.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002, J.P. Grossman 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 | // security.h 21 | // 22 | // Created by JPG for ProQuake v3.20 23 | // 24 | 25 | #ifndef SECURITY_H 26 | #define SECURITY_H 27 | 28 | extern qboolean pq_cheatfreeEnabled; 29 | extern qboolean pq_cheatfree; 30 | extern unsigned long net_seed; 31 | extern unsigned long net_seed75; 32 | extern unsigned long qsmackAddr; 33 | extern qboolean qsmackActive; 34 | extern cvar_t pq_cvar_cheatfree; 35 | 36 | // Functions exported by security module 37 | typedef void (*Security_InitCRC_t) (unsigned k); 38 | typedef void (*Security_SetSeed_t) (unsigned long seed, char *filename); 39 | typedef void (*Security_Encode_t) (unsigned char *src, unsigned char *dst, int len, int to); 40 | typedef void (*Security_Decode_t) (unsigned char *src, unsigned char *dst, int len, int from); 41 | typedef unsigned long (*Security_CRC_t) (unsigned char *data, int len); 42 | typedef unsigned (*Security_CRC_File_t) (char *filename); 43 | typedef int (*Security_Verify_t) (unsigned a, unsigned b); 44 | 45 | extern Security_InitCRC_t Security_InitCRC; 46 | extern Security_SetSeed_t Security_SetSeed; 47 | extern Security_Decode_t Security_Decode; 48 | extern Security_Encode_t Security_Encode; 49 | extern Security_CRC_t Security_CRC; 50 | extern Security_CRC_File_t Security_CRC_File; 51 | extern Security_Verify_t Security_Verify; 52 | 53 | void Security_Init (void); 54 | 55 | #endif -------------------------------------------------------------------------------- /snd_flash.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // snd_flash.c -- Flash sound system 21 | 22 | 23 | #include "quakedef.h" 24 | 25 | cvar_t bgmvolume = {"bgmvolume", "1", true}; 26 | cvar_t volume = {"volume", "0.7", true}; 27 | 28 | 29 | void S_Init (void) 30 | { 31 | Cvar_RegisterVariable(&volume); 32 | } 33 | 34 | void S_AmbientOff (void) 35 | { 36 | } 37 | 38 | void S_AmbientOn (void) 39 | { 40 | } 41 | 42 | void S_Shutdown (void) 43 | { 44 | } 45 | 46 | void S_TouchSound (char *sample) 47 | { 48 | } 49 | 50 | void S_ClearBuffer (void) 51 | { 52 | } 53 | 54 | void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) 55 | { 56 | } 57 | 58 | void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) 59 | { 60 | } 61 | 62 | void S_StopSound (int entnum, int entchannel) 63 | { 64 | } 65 | 66 | sfx_t *S_PrecacheSound (char *sample) 67 | { 68 | return NULL; 69 | } 70 | 71 | void S_ClearPrecache (void) 72 | { 73 | } 74 | 75 | void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up) 76 | { 77 | } 78 | 79 | void S_StopAllSounds (qboolean clear) 80 | { 81 | } 82 | 83 | void S_BeginPrecaching (void) 84 | { 85 | } 86 | 87 | void S_EndPrecaching (void) 88 | { 89 | } 90 | 91 | void S_ExtraUpdate (void) 92 | { 93 | } 94 | 95 | void S_LocalSound (char *s) 96 | { 97 | } 98 | 99 | -------------------------------------------------------------------------------- /snd_next.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | #include "quakedef.h" 22 | 23 | extern int desired_speed; 24 | extern int desired_bits; 25 | 26 | qboolean SNDDMA_Init(void) 27 | { 28 | int size; 29 | 30 | size = 16384 + sizeof(dma_t); 31 | shm = Q_malloc (size); 32 | memset((void*)shm, 0, size); 33 | 34 | shm->buffer = (char*)shm + sizeof(dma_t); 35 | shm->channels = 2; 36 | shm->speed = desired_speed; 37 | shm->samplebits = desired_bits; 38 | shm->samples = 16384 / (desired_bits / 8); 39 | shm->submission_chunk = 1; 40 | 41 | return true; 42 | } 43 | 44 | // return the current sample position (in mono samples read) 45 | // inside the recirculating dma buffer 46 | int SNDDMA_GetDMAPos(void) 47 | { 48 | shm->samplepos = (int)(realtime*shm->speed*shm->channels) & (shm->samples-1); 49 | 50 | return shm->samplepos; 51 | } 52 | 53 | void SNDDMA_Shutdown(void) 54 | { 55 | } 56 | -------------------------------------------------------------------------------- /snd_null.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // snd_null.c -- include this instead of all the other snd_* files to have 21 | // no sound code whatsoever 22 | 23 | #include "quakedef.h" 24 | 25 | cvar_t bgmvolume = {"bgmvolume", "1", true}; 26 | cvar_t volume = {"volume", "0.7", true}; 27 | 28 | 29 | void S_Init (void) 30 | { 31 | } 32 | 33 | void S_AmbientOff (void) 34 | { 35 | } 36 | 37 | void S_AmbientOn (void) 38 | { 39 | } 40 | 41 | void S_Shutdown (void) 42 | { 43 | } 44 | 45 | void S_TouchSound (char *sample) 46 | { 47 | } 48 | 49 | void S_ClearBuffer (void) 50 | { 51 | } 52 | 53 | void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation) 54 | { 55 | } 56 | 57 | void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation) 58 | { 59 | } 60 | 61 | void S_StopSound (int entnum, int entchannel) 62 | { 63 | } 64 | 65 | sfx_t *S_PrecacheSound (char *sample) 66 | { 67 | return NULL; 68 | } 69 | 70 | void S_ClearPrecache (void) 71 | { 72 | } 73 | 74 | void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up) 75 | { 76 | } 77 | 78 | void S_StopAllSounds (qboolean clear) 79 | { 80 | } 81 | 82 | void S_BeginPrecaching (void) 83 | { 84 | } 85 | 86 | void S_EndPrecaching (void) 87 | { 88 | } 89 | 90 | void S_ExtraUpdate (void) 91 | { 92 | } 93 | 94 | void S_LocalSound (char *s) 95 | { 96 | } 97 | 98 | -------------------------------------------------------------------------------- /srcfiles.txt: -------------------------------------------------------------------------------- 1 | 7za.exe 2 | namedate.exe 3 | srcfiles.txt 4 | binfiles.txt 5 | archive.bat 6 | *.lib 7 | *.c 8 | *.cpp 9 | *.h 10 | *.s 11 | cl.exe 12 | progdefs.q1 13 | progdefs.q2 14 | winquake.dsw 15 | winquake.dsp 16 | winquake.aps 17 | winquake.rc 18 | *.log 19 | gnu.txt 20 | icon3.ico 21 | qe3.ico 22 | winquake.ico 23 | quake.ico -------------------------------------------------------------------------------- /sys.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // sys.h -- non-portable functions 21 | 22 | // file IO 23 | 24 | // returns the file size 25 | // return -1 if file is not present 26 | // the file should be in BINARY mode for stupid OSs that care 27 | int Sys_FileOpenRead (char *path, int *hndl); 28 | 29 | int Sys_FileOpenWrite (char *path); 30 | void Sys_FileClose (int handle); 31 | void Sys_FileSeek (int handle, int position); 32 | int Sys_FileRead (int handle, void *dest, int count); 33 | int Sys_FileWrite (int handle, void *data, int count); 34 | int Sys_FileTime (char *path); 35 | void Sys_mkdir (char *path); 36 | 37 | // memory protection 38 | void Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length); 39 | 40 | // system IO 41 | void Sys_DebugLog(char *file, char *fmt, ...); 42 | 43 | // an error will cause the entire program to exit 44 | void Sys_Error (char *error, ...); 45 | 46 | // send text to the console 47 | void Sys_Printf (char *fmt, ...); 48 | 49 | 50 | void Sys_Quit (void); 51 | 52 | double Sys_DoubleTime (void); 53 | 54 | char *Sys_ConsoleInput (void); 55 | 56 | void Sys_Sleep (void); 57 | 58 | // called to yield for a little bit so as 59 | // not to hog cpu when paused or debugging 60 | 61 | // Perform Key_Event () callbacks until the input que is empty 62 | void Sys_SendKeyEvents (void); 63 | 64 | 65 | void Sys_LowFPPrecision (void); 66 | void Sys_HighFPPrecision (void); 67 | void Sys_SetFPCW (void); 68 | 69 | #ifdef _WIN32 70 | void Sys_InfoInit(void); 71 | char *Sys_GetClipboardData (void); 72 | #endif 73 | 74 | #ifndef PSP 75 | void Sys_CopyToClipboard(char *); 76 | void Sys_Init (void); 77 | #endif 78 | 79 | #ifdef _WIN32 80 | void Sys_GetLock (void); 81 | void Sys_ReleaseLock (void); 82 | #endif 83 | -------------------------------------------------------------------------------- /sys_dosa.s: -------------------------------------------------------------------------------- 1 | // 2 | // sys_dosa.s 3 | // x86 assembly-language DOS-dependent routines. 4 | 5 | #include "asm_i386.h" 6 | #include "quakeasm.h" 7 | 8 | #if i386 9 | .data 10 | 11 | .align 4 12 | fpenv: 13 | .long 0, 0, 0, 0, 0, 0, 0, 0 14 | 15 | .text 16 | 17 | .globl C(MaskExceptions) 18 | C(MaskExceptions): 19 | fnstenv fpenv 20 | orl $0x3F,fpenv 21 | fldenv fpenv 22 | 23 | ret 24 | 25 | #if 0 26 | .globl C(unmaskexceptions) 27 | C(unmaskexceptions): 28 | fnstenv fpenv 29 | andl $0xFFFFFFE0,fpenv 30 | fldenv fpenv 31 | 32 | ret 33 | #endif 34 | 35 | .data 36 | 37 | .align 4 38 | .globl ceil_cw, single_cw, full_cw, cw, pushed_cw 39 | ceil_cw: .long 0 40 | single_cw: .long 0 41 | full_cw: .long 0 42 | cw: .long 0 43 | pushed_cw: .long 0 44 | 45 | .text 46 | 47 | .globl C(Sys_LowFPPrecision) 48 | C(Sys_LowFPPrecision): 49 | fldcw single_cw 50 | 51 | ret 52 | 53 | .globl C(Sys_HighFPPrecision) 54 | C(Sys_HighFPPrecision): 55 | fldcw full_cw 56 | 57 | ret 58 | 59 | .globl C(Sys_PushFPCW_SetHigh) 60 | C(Sys_PushFPCW_SetHigh): 61 | fnstcw pushed_cw 62 | fldcw full_cw 63 | 64 | ret 65 | 66 | .globl C(Sys_PopFPCW) 67 | C(Sys_PopFPCW): 68 | fldcw pushed_cw 69 | 70 | ret 71 | 72 | .globl C(Sys_SetFPCW) 73 | C(Sys_SetFPCW): 74 | fnstcw cw 75 | movl cw,%eax 76 | #if id386 77 | andb $0xF0,%ah 78 | orb $0x03,%ah // round mode, 64-bit precision 79 | #endif 80 | movl %eax,full_cw 81 | 82 | #if id386 83 | andb $0xF0,%ah 84 | orb $0x0C,%ah // chop mode, single precision 85 | #endif 86 | movl %eax,single_cw 87 | 88 | #if id386 89 | andb $0xF0,%ah 90 | orb $0x08,%ah // ceil mode, single precision 91 | #endif 92 | movl %eax,ceil_cw 93 | 94 | ret 95 | 96 | #endif // i386 97 | 98 | -------------------------------------------------------------------------------- /sys_wina.s: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // sys_wina.s 22 | // x86 assembly-language Win-dependent routines. 23 | 24 | #define GLQUAKE 1 // don't include unneeded defs 25 | #include "asm_i386.h" 26 | #include "quakeasm.h" 27 | 28 | // LATER should be id386-dependent, and have an equivalent C path 29 | 30 | .data 31 | 32 | .align 4 33 | fpenv: 34 | .long 0, 0, 0, 0, 0, 0, 0, 0 35 | 36 | .text 37 | 38 | .globl C(MaskExceptions) 39 | C(MaskExceptions): 40 | fnstenv fpenv 41 | orl $0x3F,fpenv 42 | fldenv fpenv 43 | 44 | ret 45 | 46 | #if 0 47 | .globl C(unmaskexceptions) 48 | C(unmaskexceptions): 49 | fnstenv fpenv 50 | andl $0xFFFFFFE0,fpenv 51 | fldenv fpenv 52 | 53 | ret 54 | #endif 55 | 56 | .data 57 | 58 | .align 4 59 | .globl ceil_cw, single_cw, full_cw, cw, pushed_cw 60 | ceil_cw: .long 0 61 | single_cw: .long 0 62 | full_cw: .long 0 63 | cw: .long 0 64 | pushed_cw: .long 0 65 | 66 | .text 67 | 68 | .globl C(Sys_LowFPPrecision) 69 | C(Sys_LowFPPrecision): 70 | fldcw single_cw 71 | 72 | ret 73 | 74 | .globl C(Sys_HighFPPrecision) 75 | C(Sys_HighFPPrecision): 76 | fldcw full_cw 77 | 78 | ret 79 | 80 | .globl C(Sys_PushFPCW_SetHigh) 81 | C(Sys_PushFPCW_SetHigh): 82 | fnstcw pushed_cw 83 | fldcw full_cw 84 | 85 | ret 86 | 87 | .globl C(Sys_PopFPCW) 88 | C(Sys_PopFPCW): 89 | fldcw pushed_cw 90 | 91 | ret 92 | 93 | .globl C(Sys_SetFPCW) 94 | C(Sys_SetFPCW): 95 | fnstcw cw 96 | movl cw,%eax 97 | #if id386 98 | andb $0xF0,%ah 99 | orb $0x03,%ah // round mode, 64-bit precision 100 | #endif 101 | movl %eax,full_cw 102 | 103 | #if id386 104 | andb $0xF0,%ah 105 | orb $0x0C,%ah // chop mode, single precision 106 | #endif 107 | movl %eax,single_cw 108 | 109 | #if id386 110 | andb $0xF0,%ah 111 | orb $0x08,%ah // ceil mode, single precision 112 | #endif 113 | movl %eax,ceil_cw 114 | 115 | ret 116 | 117 | -------------------------------------------------------------------------------- /vc7_hack.cpp: -------------------------------------------------------------------------------- 1 | // This should be defined in the C++ runtime. 2 | // But I can't get it to work. This code is taken from isctype.c 3 | #include 4 | 5 | #ifdef _DEBUG 6 | int __cdecl _chvalidator( 7 | int c, 8 | int mask 9 | ) 10 | { 11 | return ( _pctype[c] & mask); 12 | } 13 | #endif -------------------------------------------------------------------------------- /vregset.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // vregset.c: video register-setting interpreter 22 | // 23 | 24 | #include 25 | #include 26 | 27 | #include "quakedef.h" 28 | #include "vregset.h" 29 | 30 | //#define outportb loutportb 31 | 32 | void loutportb (int port, int val) 33 | { 34 | printf ("port, val: %x %x\n", port, val); 35 | getch (); 36 | } 37 | 38 | /* 39 | ================ 40 | VideoRegisterSet 41 | ================ 42 | */ 43 | void VideoRegisterSet (int *pregset) 44 | { 45 | int port, temp0, temp1, temp2; 46 | 47 | for ( ;; ) 48 | { 49 | switch (*pregset++) 50 | { 51 | case VRS_END: 52 | return; 53 | 54 | case VRS_BYTE_OUT: 55 | port = *pregset++; 56 | outportb (port, *pregset++); 57 | break; 58 | 59 | case VRS_BYTE_RMW: 60 | port = *pregset++; 61 | temp0 = *pregset++; 62 | temp1 = *pregset++; 63 | temp2 = inportb (port); 64 | temp2 &= temp0; 65 | temp2 |= temp1; 66 | outportb (port, temp2); 67 | break; 68 | 69 | case VRS_WORD_OUT: 70 | port = *pregset++; 71 | outportb (port, *pregset & 0xFF); 72 | outportb (port+1, *pregset >> 8); 73 | pregset++; 74 | break; 75 | 76 | default: 77 | Sys_Error ("VideoRegisterSet: Invalid command\n"); 78 | } 79 | } 80 | } 81 | 82 | -------------------------------------------------------------------------------- /vregset.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // vregset.h: header file for video register-setting interpreter 22 | // 23 | 24 | // 25 | // registers & subregisters 26 | // 27 | #define MISC_OUTPUT 0x3C2 28 | 29 | #define SC_INDEX 0x3C4 30 | #define SC_DATA 0x3C5 31 | #define SYNC_RESET 0 32 | #define MAP_MASK 2 33 | #define MEMORY_MODE 4 34 | 35 | #define GC_INDEX 0x3CE 36 | #define GC_DATA 0x3CF 37 | #define READ_MAP 4 38 | #define GRAPHICS_MODE 5 39 | #define MISCELLANOUS 6 40 | 41 | #define CRTC_INDEX 0x3D4 42 | #define CRTC_DATA 0x3D5 43 | #define MAX_SCAN_LINE 9 44 | #define UNDERLINE 0x14 45 | #define MODE_CONTROL 0x17 46 | 47 | // 48 | // register-set commands 49 | // 50 | #define VRS_END 0 51 | #define VRS_BYTE_OUT 1 52 | #define VRS_BYTE_RMW 2 53 | #define VRS_WORD_OUT 3 54 | 55 | void VideoRegisterSet (int *pregset); 56 | 57 | -------------------------------------------------------------------------------- /wad.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // wad.h 21 | 22 | #ifndef WAD_H 23 | #define WAD_H 24 | //=============== 25 | // TYPES 26 | //=============== 27 | 28 | #define CMP_NONE 0 29 | #define CMP_LZSS 1 30 | 31 | #define TYP_NONE 0 32 | #define TYP_LABEL 1 33 | 34 | #define TYP_LUMPY 64 // 64 + grab command number 35 | #define TYP_PALETTE 64 36 | #define TYP_QTEX 65 37 | #define TYP_QPIC 66 38 | #define TYP_SOUND 67 39 | #define TYP_MIPTEX 68 40 | 41 | typedef struct 42 | { 43 | int width, height; 44 | byte data[4]; // variably sized 45 | } qpic_t; 46 | 47 | 48 | 49 | typedef struct 50 | { 51 | char identification[4]; // should be WAD2 or 2DAW 52 | int numlumps; 53 | int infotableofs; 54 | } wadinfo_t; 55 | 56 | typedef struct 57 | { 58 | int filepos; 59 | int disksize; 60 | int size; // uncompressed 61 | char type; 62 | char compression; 63 | char pad1, pad2; 64 | char name[16]; // must be null terminated 65 | } lumpinfo_t; 66 | 67 | extern int wad_numlumps; 68 | extern lumpinfo_t *wad_lumps; 69 | extern byte *wad_base; 70 | 71 | void W_LoadWadFile (char *filename); 72 | void W_CleanupName (char *in, char *out); 73 | lumpinfo_t *W_GetLumpinfo (char *name); 74 | void *W_GetLumpName (char *name); 75 | void *W_GetLumpNum (int num); 76 | 77 | void SwapPic (qpic_t *pic); 78 | 79 | byte *WAD3_LoadTexture(miptex_t *mt); 80 | 81 | 82 | #endif // WAD_H 83 | -------------------------------------------------------------------------------- /wad.h.bak: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 1996-1997 Id Software, Inc. 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 | // wad.h 21 | 22 | #ifndef WAD_H 23 | #define WAD_H 24 | //=============== 25 | // TYPES 26 | //=============== 27 | 28 | #define CMP_NONE 0 29 | #define CMP_LZSS 1 30 | 31 | #define TYP_NONE 0 32 | #define TYP_LABEL 1 33 | 34 | #define TYP_LUMPY 64 // 64 + grab command number 35 | #define TYP_PALETTE 64 36 | #define TYP_QTEX 65 37 | #define TYP_QPIC 66 38 | #define TYP_SOUND 67 39 | #define TYP_MIPTEX 68 40 | 41 | typedef struct 42 | { 43 | int width, height; 44 | byte data[4]; // variably sized 45 | } qpic_t; 46 | 47 | 48 | 49 | typedef struct 50 | { 51 | char identification[4]; // should be WAD2 or 2DAW 52 | int numlumps; 53 | int infotableofs; 54 | } wadinfo_t; 55 | 56 | typedef struct 57 | { 58 | int filepos; 59 | int disksize; 60 | int size; // uncompressed 61 | char type; 62 | char compression; 63 | char pad1, pad2; 64 | char name[16]; // must be null terminated 65 | } lumpinfo_t; 66 | 67 | extern int wad_numlumps; 68 | extern lumpinfo_t *wad_lumps; 69 | extern byte *wad_base; 70 | 71 | void W_LoadWadFile (char *filename); 72 | void W_CleanupName (char *in, char *out); 73 | lumpinfo_t *W_GetLumpinfo (char *name); 74 | void *W_GetLumpName (char *name); 75 | void *W_GetLumpNum (int num); 76 | 77 | void SwapPic (qpic_t *pic); 78 | 79 | #if 1 80 | void WAD3_LoadTextureWadFile (char *filename); 81 | byte *WAD3_LoadTexture(miptex_t *mt); 82 | #endif 83 | 84 | 85 | #endif // WAD_H 86 | -------------------------------------------------------------------------------- /webdownload.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2006 Pekka Lampila ("Medar"), Damien Deville ("Pb") 3 | and German Garcia Fernandez ("Jal") for Chasseur de bots association. 4 | 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 | #ifdef HTTP_DOWNLOAD 23 | 24 | #ifndef __WEBDOWNLOAD__H__ 25 | #define __WEBDOWNLOAD__H__ 26 | 27 | int Web_Get( const char *url, const char *referer, const char *name, int resume, int max_downloading_time, int timeout, int ( *_progress )(double) ); 28 | 29 | #endif 30 | 31 | #endif -------------------------------------------------------------------------------- /winquake.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/winquake.aps -------------------------------------------------------------------------------- /winquake.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darkduke606/Insomnia-ProQuake-Engine/addfa1d808a1a84083fda37be0640cfbf9c922dd/winquake.ico --------------------------------------------------------------------------------