├── .gitattributes ├── .gitignore ├── Docs ├── ChangeLog.txt ├── CodingStyle.txt ├── License.txt ├── Readme.txt ├── Sources.txt ├── ToDo.txt └── Translating.txt ├── Gamecube ├── DEBUG.c ├── DEBUG.h ├── GamecubeMain.cpp ├── GamecubePlugins.h ├── MEM2.h ├── Makefile_GC ├── Makefile_Wii ├── Makefile_Wii_Release ├── PadSSSPSX.c ├── PadSSSPSX.h ├── PadWiiSX.c ├── PlugGPU.c ├── PlugPAD.c ├── Plugin.c ├── Plugin.h ├── TEXT.c ├── TEXT.h ├── fileBrowser │ ├── fileBrowser-CARD.c │ ├── fileBrowser-CARD.h │ ├── fileBrowser-DVD.c │ ├── fileBrowser-DVD.h │ ├── fileBrowser-SMB.c │ ├── fileBrowser-SMB.h │ ├── fileBrowser-libfat.c │ ├── fileBrowser-libfat.h │ ├── fileBrowser.c │ ├── fileBrowser.h │ └── imagedata │ │ ├── icon.png │ │ └── mupenIcon.h ├── gc_dvd.c ├── gc_dvd.h ├── gc_input │ ├── controller-Classic.c │ ├── controller-GC.c │ ├── controller-WUPC.c │ ├── controller-WiiDRC.c │ ├── controller-WiimoteNunchuk.c │ └── controller.h ├── libgui │ ├── Button.cpp │ ├── Button.h │ ├── Component.cpp │ ├── Component.h │ ├── CursorManager.cpp │ ├── CursorManager.h │ ├── FocusManager.cpp │ ├── FocusManager.h │ ├── Frame.cpp │ ├── Frame.h │ ├── GraphicsGX.cpp │ ├── GraphicsGX.h │ ├── Gui.cpp │ ├── Gui.h │ ├── GuiResources.cpp │ ├── GuiResources.h │ ├── GuiTypes.h │ ├── IPLFont.cpp │ ├── IPLFont.h │ ├── IPLFontC.h │ ├── Image.cpp │ ├── Image.h │ ├── InputManager.cpp │ ├── InputManager.h │ ├── InputStatusBar.cpp │ ├── InputStatusBar.h │ ├── LoadingBar.cpp │ ├── LoadingBar.h │ ├── Logo.cpp │ ├── Logo.h │ ├── MessageBox.cpp │ ├── MessageBox.h │ ├── TextBox.cpp │ ├── TextBox.h │ ├── gui2 │ │ ├── Bak │ │ │ ├── FreeTypeGX.cpp │ │ │ ├── FreeTypeGX.h │ │ │ ├── IPLFont_ttf.cpp │ │ │ ├── IPLFont_ttf.h │ │ │ ├── Metaphrasis.cpp │ │ │ └── Metaphrasis.h │ │ ├── biosSelect.cpp │ │ ├── filelist.h │ │ ├── gettext.cpp │ │ └── gettext.h │ ├── resources.h │ ├── resources.s │ └── resources │ │ ├── Button.tx │ │ ├── ButtonA.tlt │ │ ├── ButtonA.tx │ │ ├── ButtonAFoc.tx │ │ ├── ButtonASelOff.tx │ │ ├── ButtonASelOffFoc.tx │ │ ├── ButtonASelOn.tx │ │ ├── ButtonASelOnFoc.tx │ │ ├── ButtonFocus.tx │ │ ├── CursorGrab.tx │ │ └── CursorPoint.tx ├── menu │ ├── ConfigureButtonsFrame.cpp │ ├── ConfigureButtonsFrame.h │ ├── ConfigureInputFrame.cpp │ ├── ConfigureInputFrame.h │ ├── CurrentRomFrame.cpp │ ├── CurrentRomFrame.h │ ├── FileBrowserFrame.cpp │ ├── FileBrowserFrame.h │ ├── LoadRomFrame.cpp │ ├── LoadRomFrame.h │ ├── MainFrame.cpp │ ├── MainFrame.h │ ├── MenuContext.cpp │ ├── MenuContext.h │ ├── MenuResources.S │ ├── MenuResources.h │ ├── MenuTypes.h │ ├── SettingsFrame.cpp │ ├── SettingsFrame.h │ └── resources │ │ ├── GCon.tx │ │ ├── Just.tx │ │ ├── Loading.tx │ │ ├── PSMouse.tx │ │ ├── bg.tx │ │ ├── cntrlClassic.tx │ │ ├── cntrlEmpty.tx │ │ ├── cntrlGC.tx │ │ ├── cntrlWM.tx │ │ ├── cntrlWNC.tx │ │ ├── cubeSXRX.tx │ │ ├── psxCntrl.tx │ │ └── wiiSXRX.tx ├── plugins.c ├── profile.c ├── release │ └── apps │ │ ├── Makefile │ │ ├── README │ │ └── WiiStation │ │ ├── icon.png │ │ └── meta.xml ├── utils │ ├── ehcmodule_elf.h │ ├── mload.c │ ├── mload.h │ ├── usb2storage.c │ └── usb2storage.h ├── vi_encoder.c ├── vi_encoder.h ├── vm │ ├── dsihandler.s │ ├── vm.c │ └── vm.h └── wiiSXconfig.h ├── LICENSE ├── LightrecByPPC29Libogc1.6.zip ├── Makefile ├── PeopsSoftGPU ├── DrawString.c ├── DrawString.h ├── DrawStringFont.h ├── Makefile ├── Makefile.nodep ├── NoPic.h ├── cfg.c ├── cfg.h ├── changelog.txt ├── draw.c.old ├── draw.h ├── drawGX.c ├── externals.h ├── filemap.txt ├── fps.c ├── fps.h ├── gpu.c ├── gpu.h ├── gpuPeopsSoft.aps ├── gpuPeopsSoft.dsp ├── gpuPeopsSoftX.cfg ├── gpupeopssoft.c ├── gpupeopssoft.def ├── gpupeopssoft.dsw ├── gpupeopssoft.ncb ├── gpupeopssoft.opt ├── interp.h ├── key.c ├── key.c.bak ├── key.h ├── license.txt ├── linuxdef.h ├── macros.inc ├── makedep ├── makes │ └── plg.mk ├── menu.c ├── menu.h ├── peops_soft_readme_1_18.txt ├── peops_soft_version_1_18.txt ├── prim.c ├── prim.h ├── psemu.h ├── sdk.h ├── soft.c ├── soft.h ├── stdafx.h ├── swap.h └── type.h ├── README.md ├── build.log ├── cacheableKernelMemcpy.s ├── cdriso.c ├── cdriso.h ├── cdrom.c ├── cdrom.h ├── coff.h ├── coredebug.h ├── database.c ├── database.h ├── decode_xa.c ├── decode_xa.h ├── deps └── libchdr │ ├── .github │ └── workflows │ │ └── cmake.yml │ ├── LICENSE.txt │ ├── README.md │ ├── deps │ ├── lzma-19.00 │ │ ├── .gitattributes │ │ ├── 7zTypes.h │ │ ├── Alloc.c │ │ ├── Alloc.h │ │ ├── Bra.h │ │ ├── Bra86.c │ │ ├── BraIA64.c │ │ ├── Compiler.h │ │ ├── CpuArch.c │ │ ├── CpuArch.h │ │ ├── Delta.c │ │ ├── Delta.h │ │ ├── LICENSE │ │ ├── LzFind.c │ │ ├── LzFind.h │ │ ├── LzHash.h │ │ ├── Lzma86.h │ │ ├── Lzma86Dec.c │ │ ├── LzmaDec.c │ │ ├── LzmaDec.h │ │ ├── LzmaEnc.c │ │ ├── LzmaEnc.h │ │ ├── LzmaLib.h │ │ ├── Precomp.h │ │ ├── Sort.c │ │ ├── Sort.h │ │ ├── lzma-history.txt │ │ └── lzma.txt │ ├── lzma-22.01 │ │ ├── .gitattributes │ │ ├── 7z.h │ │ ├── 7zAlloc.h │ │ ├── 7zBuf.h │ │ ├── 7zC.txt │ │ ├── 7zCrc.h │ │ ├── 7zFile.h │ │ ├── 7zFormat.txt │ │ ├── 7zTypes.h │ │ ├── 7zVersion.h │ │ ├── Aes.h │ │ ├── Alloc.c │ │ ├── Alloc.h │ │ ├── Asm │ │ │ ├── arm │ │ │ │ └── 7zCrcOpt.asm │ │ │ ├── arm64 │ │ │ │ ├── 7zAsm.S │ │ │ │ └── LzmaDecOpt.S │ │ │ └── x86 │ │ │ │ ├── 7zAsm.asm │ │ │ │ ├── 7zCrcOpt.asm │ │ │ │ ├── AesOpt.asm │ │ │ │ ├── LzFindOpt.asm │ │ │ │ ├── LzmaDecOpt.asm │ │ │ │ ├── Sha256Opt.asm │ │ │ │ └── XzCrc64Opt.asm │ │ ├── Bcj2.c │ │ ├── Bcj2.h │ │ ├── Bcj2Enc.c │ │ ├── Bra.c │ │ ├── Bra.h │ │ ├── Bra86.c │ │ ├── BraIA64.c │ │ ├── Compiler.h │ │ ├── CpuArch.c │ │ ├── CpuArch.h │ │ ├── Delta.c │ │ ├── Delta.h │ │ ├── DllSecur.h │ │ ├── LICENSE │ │ ├── LzFind.c │ │ ├── LzFind.h │ │ ├── LzFindMt.c │ │ ├── LzFindMt.h │ │ ├── LzFindOpt.c │ │ ├── LzHash.h │ │ ├── Lzma86.h │ │ ├── Lzma86Dec.c │ │ ├── Lzma86Enc.c │ │ ├── LzmaDec.c │ │ ├── LzmaDec.h │ │ ├── LzmaEnc.c │ │ ├── LzmaEnc.h │ │ ├── LzmaLib.c │ │ ├── LzmaLib.h │ │ ├── Methods.txt │ │ ├── MtCoder.c │ │ ├── MtCoder.h │ │ ├── MtDec.c │ │ ├── MtDec.h │ │ ├── Precomp.h │ │ ├── RotateDefs.h │ │ ├── Sha256.h │ │ ├── Sort.c │ │ ├── Sort.h │ │ ├── Threads.h │ │ ├── installer.txt │ │ ├── lzma-history.txt │ │ ├── lzma-sdk.txt │ │ ├── lzma-specification.txt │ │ ├── lzma.txt │ │ ├── var_clang.mak │ │ ├── var_clang_arm64.mak │ │ ├── var_clang_x64.mak │ │ ├── var_clang_x86.mak │ │ ├── var_gcc.mak │ │ ├── var_gcc_arm64.mak │ │ ├── var_gcc_x64.mak │ │ ├── var_gcc_x86.mak │ │ ├── var_mac_arm64.mak │ │ ├── var_mac_x64.mak │ │ ├── warn_clang.mak │ │ ├── warn_clang_mac.mak │ │ └── warn_gcc.mak │ └── zlib-1.2.13 │ │ ├── .gitattributes │ │ ├── CMakeLists.txt │ │ ├── ChangeLog │ │ ├── FAQ │ │ ├── INDEX │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── Makefile.in │ │ ├── README │ │ ├── adler32.c │ │ ├── amiga │ │ ├── Makefile.pup │ │ └── Makefile.sas │ │ ├── compress.c │ │ ├── configure │ │ ├── contrib │ │ ├── README.contrib │ │ ├── ada │ │ │ ├── buffer_demo.adb │ │ │ ├── mtest.adb │ │ │ ├── read.adb │ │ │ ├── readme.txt │ │ │ ├── test.adb │ │ │ ├── zlib-streams.adb │ │ │ ├── zlib-streams.ads │ │ │ ├── zlib-thin.adb │ │ │ ├── zlib-thin.ads │ │ │ ├── zlib.adb │ │ │ ├── zlib.ads │ │ │ └── zlib.gpr │ │ ├── blast │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── blast.c │ │ │ ├── blast.h │ │ │ ├── test.pk │ │ │ └── test.txt │ │ ├── delphi │ │ │ ├── ZLib.pas │ │ │ ├── ZLibConst.pas │ │ │ ├── readme.txt │ │ │ └── zlibd32.mak │ │ ├── dotzlib │ │ │ ├── DotZLib.build │ │ │ ├── DotZLib.chm │ │ │ ├── DotZLib.sln │ │ │ ├── DotZLib │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ ├── ChecksumImpl.cs │ │ │ │ ├── CircularBuffer.cs │ │ │ │ ├── CodecBase.cs │ │ │ │ ├── Deflater.cs │ │ │ │ ├── DotZLib.cs │ │ │ │ ├── DotZLib.csproj │ │ │ │ ├── GZipStream.cs │ │ │ │ ├── Inflater.cs │ │ │ │ └── UnitTests.cs │ │ │ ├── LICENSE_1_0.txt │ │ │ └── readme.txt │ │ ├── gcc_gvmat64 │ │ │ └── gvmat64.S │ │ ├── infback9 │ │ │ ├── README │ │ │ ├── infback9.c │ │ │ ├── infback9.h │ │ │ ├── inffix9.h │ │ │ ├── inflate9.h │ │ │ ├── inftree9.c │ │ │ └── inftree9.h │ │ ├── iostream │ │ │ ├── test.cpp │ │ │ ├── zfstream.cpp │ │ │ └── zfstream.h │ │ ├── iostream2 │ │ │ ├── zstream.h │ │ │ └── zstream_test.cpp │ │ ├── iostream3 │ │ │ ├── README │ │ │ ├── TODO │ │ │ ├── test.cc │ │ │ ├── zfstream.cc │ │ │ └── zfstream.h │ │ ├── minizip │ │ │ ├── Makefile │ │ │ ├── Makefile.am │ │ │ ├── MiniZip64_Changes.txt │ │ │ ├── MiniZip64_info.txt │ │ │ ├── configure.ac │ │ │ ├── crypt.h │ │ │ ├── ioapi.c │ │ │ ├── ioapi.h │ │ │ ├── iowin32.c │ │ │ ├── iowin32.h │ │ │ ├── make_vms.com │ │ │ ├── miniunz.c │ │ │ ├── miniunzip.1 │ │ │ ├── minizip.1 │ │ │ ├── minizip.c │ │ │ ├── minizip.pc.in │ │ │ ├── mztools.c │ │ │ ├── mztools.h │ │ │ ├── unzip.c │ │ │ ├── unzip.h │ │ │ ├── zip.c │ │ │ └── zip.h │ │ ├── pascal │ │ │ ├── example.pas │ │ │ ├── readme.txt │ │ │ ├── zlibd32.mak │ │ │ └── zlibpas.pas │ │ ├── puff │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── puff.c │ │ │ ├── puff.h │ │ │ ├── pufftest.c │ │ │ └── zeros.raw │ │ ├── testzlib │ │ │ ├── testzlib.c │ │ │ └── testzlib.txt │ │ ├── untgz │ │ │ ├── Makefile │ │ │ ├── Makefile.msc │ │ │ └── untgz.c │ │ └── vstudio │ │ │ ├── readme.txt │ │ │ ├── vc10 │ │ │ ├── miniunz.vcxproj │ │ │ ├── miniunz.vcxproj.filters │ │ │ ├── minizip.vcxproj │ │ │ ├── minizip.vcxproj.filters │ │ │ ├── testzlib.vcxproj │ │ │ ├── testzlib.vcxproj.filters │ │ │ ├── testzlibdll.vcxproj │ │ │ ├── testzlibdll.vcxproj.filters │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcxproj │ │ │ ├── zlibstat.vcxproj.filters │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ ├── zlibvc.vcxproj │ │ │ └── zlibvc.vcxproj.filters │ │ │ ├── vc11 │ │ │ ├── miniunz.vcxproj │ │ │ ├── minizip.vcxproj │ │ │ ├── testzlib.vcxproj │ │ │ ├── testzlibdll.vcxproj │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcxproj │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ └── zlibvc.vcxproj │ │ │ ├── vc12 │ │ │ ├── miniunz.vcxproj │ │ │ ├── minizip.vcxproj │ │ │ ├── testzlib.vcxproj │ │ │ ├── testzlibdll.vcxproj │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcxproj │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ └── zlibvc.vcxproj │ │ │ ├── vc14 │ │ │ ├── miniunz.vcxproj │ │ │ ├── minizip.vcxproj │ │ │ ├── testzlib.vcxproj │ │ │ ├── testzlibdll.vcxproj │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcxproj │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ └── zlibvc.vcxproj │ │ │ └── vc9 │ │ │ ├── miniunz.vcproj │ │ │ ├── minizip.vcproj │ │ │ ├── testzlib.vcproj │ │ │ ├── testzlibdll.vcproj │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcproj │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ └── zlibvc.vcproj │ │ ├── crc32.c │ │ ├── crc32.h │ │ ├── deflate.c │ │ ├── deflate.h │ │ ├── doc │ │ ├── algorithm.txt │ │ ├── crc-doc.1.0.pdf │ │ ├── rfc1950.txt │ │ ├── rfc1951.txt │ │ ├── rfc1952.txt │ │ └── txtvsbin.txt │ │ ├── examples │ │ ├── README.examples │ │ ├── enough.c │ │ ├── fitblk.c │ │ ├── gun.c │ │ ├── gzappend.c │ │ ├── gzjoin.c │ │ ├── gzlog.c │ │ ├── gzlog.h │ │ ├── gznorm.c │ │ ├── zlib_how.html │ │ ├── zpipe.c │ │ ├── zran.c │ │ └── zran.h │ │ ├── gzclose.c │ │ ├── gzguts.h │ │ ├── gzlib.c │ │ ├── gzread.c │ │ ├── gzwrite.c │ │ ├── infback.c │ │ ├── inffast.c │ │ ├── inffast.h │ │ ├── inffixed.h │ │ ├── inflate.c │ │ ├── inflate.h │ │ ├── inftrees.c │ │ ├── inftrees.h │ │ ├── make_vms.com │ │ ├── msdos │ │ ├── Makefile.bor │ │ ├── Makefile.dj2 │ │ ├── Makefile.emx │ │ ├── Makefile.msc │ │ └── Makefile.tc │ │ ├── nintendods │ │ ├── Makefile │ │ └── README │ │ ├── old │ │ ├── Makefile.emx │ │ ├── Makefile.riscos │ │ ├── README │ │ ├── descrip.mms │ │ ├── os2 │ │ │ ├── Makefile.os2 │ │ │ └── zlib.def │ │ └── visual-basic.txt │ │ ├── os400 │ │ ├── README400 │ │ ├── bndsrc │ │ ├── make.sh │ │ └── zlib.inc │ │ ├── qnx │ │ └── package.qpg │ │ ├── test │ │ ├── example.c │ │ ├── infcover.c │ │ └── minigzip.c │ │ ├── treebuild.xml │ │ ├── trees.c │ │ ├── trees.h │ │ ├── uncompr.c │ │ ├── watcom │ │ ├── watcom_f.mak │ │ └── watcom_l.mak │ │ ├── win32 │ │ ├── DLL_FAQ.txt │ │ ├── Makefile.bor │ │ ├── Makefile.gcc │ │ ├── Makefile.msc │ │ ├── README-WIN32.txt │ │ ├── VisualC.txt │ │ ├── zlib.def │ │ └── zlib1.rc │ │ ├── zconf.h │ │ ├── zconf.h.cmakein │ │ ├── zconf.h.in │ │ ├── zlib.3 │ │ ├── zlib.3.pdf │ │ ├── zlib.h │ │ ├── zlib.map │ │ ├── zlib.pc.cmakein │ │ ├── zlib.pc.in │ │ ├── zlib2ansi │ │ ├── zutil.c │ │ └── zutil.h │ ├── include │ ├── dr_libs │ │ └── dr_flac.h │ └── libchdr │ │ ├── bitstream.h │ │ ├── cdrom.h │ │ ├── chd.h │ │ ├── chdconfig.h │ │ ├── coretypes.h │ │ ├── flac.h │ │ └── huffman.h │ ├── pkg-config.pc.in │ ├── src │ ├── libchdr_bitstream.c │ ├── libchdr_cdrom.c │ ├── libchdr_chd.c │ ├── libchdr_flac.c │ ├── libchdr_huffman.c │ └── link.T │ └── tests │ ├── CMakeLists.txt │ └── benchmark.c ├── dfsound ├── adsr.c ├── adsr.h ├── cube.c ├── dfspu.c ├── dma.c ├── dma.h ├── externals.h ├── freeze.c ├── gauss_i.h ├── out.c ├── out.h ├── psemuxa.h ├── registers.c ├── registers.h ├── reverb.c ├── sdl.c ├── spu.h ├── spu_config.h ├── stdafx.h ├── xa.c └── xa.h ├── disr3000a.c ├── extendedkeys.h ├── fonts ├── Chs.zip ├── De.zip ├── En.dat ├── Es.zip ├── It.zip ├── Kr.zip └── Pt.zip ├── gpu.h ├── gte.c ├── gte.h ├── gte_divider.c ├── gte_divider.h ├── gte_divider_int.c ├── gu_psasm.S ├── lang ├── Kr.lang ├── de.lang ├── en.lang ├── es.lang ├── it.lang ├── pt.lang └── zh.lang ├── libSDL.a ├── libogc_1.8.16_ipcfix.zip ├── lightrec+Libogc2.zip ├── lightrec.c ├── logo.png ├── mdec.c ├── mdec.h ├── misc.c ├── misc.h ├── nopic.h ├── plugins.h ├── ppc ├── pR3000A.c ├── pR3000A.h ├── pasm.s ├── ppc.c ├── ppc.h ├── ppc_mnemonics.h ├── reguse.c └── reguse.h ├── ppf.c ├── ppf.h ├── psemu_plugin_defs.h ├── psxbios.c ├── psxbios.h ├── psxcommon.h ├── psxcounters.c ├── psxcounters.h ├── psxdma.c ├── psxdma.h ├── psxhle.c ├── psxhle.h ├── psxhw.c ├── psxhw.h ├── psxinterpreter.c ├── psxinterpreter.h ├── psxmem.c ├── psxmem.h ├── r3000a.c ├── r3000a.h ├── sio.c ├── sio.h ├── sjisfont.h ├── spu.c ├── spu.h ├── system.h └── 汉化版说明.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.o 3 | *.d 4 | Gamecube/*.dol 5 | Gamecube/*.elf 6 | Gamecube/build_debug/*.* 7 | Gamecube/build_release/*.* 8 | 9 | -------------------------------------------------------------------------------- /Docs/CodingStyle.txt: -------------------------------------------------------------------------------- 1 | ## PCSX CODING STYLE 2 | 3 | typedef struct { // { within struct 4 | int i; 5 | } name; 6 | 7 | void func(int i) { // { within func declaration 8 | if () { // same 9 | switch () { // same 10 | default: 11 | printf(); // 1 tab per level (considering the default and the code in it 12 | // as diferent ones 13 | } 14 | } 15 | 16 | for (;;) { // same for while 17 | } 18 | } 19 | 20 | Also try to align the code: 21 | Something = x; 22 | AnotherThing = x; 23 | but not always: 24 | i = x; 25 | Something = x; 26 | 27 | tab = 4 28 | indent = 4 29 | 30 | -------------------------------------------------------------------------------- /Docs/ToDo.txt: -------------------------------------------------------------------------------- 1 | To do for Pcsx: 2 | * Add reg caching code for the recompiler. 3 | * Continue Bios emulation. (linuzappz) 4 | * Fix CdRom code. (linuzappz) 5 | * Fix Gte and speed it up, convert it to fixed point. 6 | * Check Sio in games that don't work. 7 | * Port to other platforms and CPUs. 8 | -------------------------------------------------------------------------------- /Docs/Translating.txt: -------------------------------------------------------------------------------- 1 | Translating PCSX 2 | ---------------- 3 | 4 | Just some small notes for translators. 5 | 6 | PCSX translations are based on the gettext library: 7 | http://www.gnu.org/software/gettext. 8 | 9 | The main file to translate is pcsx.po located at the 10 | 'Intl' dir, note that you must place the translated 11 | strings over the msgstr and leave untouched the msgid. 12 | 13 | To test the translation use the 'msgfmt' utility to 14 | convert the translated pcsx.po file to a pcsx.mo file 15 | (ie. 'msgfmt pcsx.po -o pcsx.mo'), after translating 16 | the file please send it to us and please ask before 17 | translating it, maybe someone has already started it 18 | for your language. 19 | 20 | Note that the subdir over the 'Langs' should be two 21 | letters from the languages codes (see the gettext lib 22 | documentation), ie: Italian: 'it', Spanish: 'es', and 23 | so on. 24 | 25 | 26 | If you have any problems contact us and we'll try to 27 | help you. 28 | 29 | linuzappz 30 | 31 | -------------------------------------------------------------------------------- /Gamecube/MEM2.h: -------------------------------------------------------------------------------- 1 | /* MEM2.h - MEM2 boundaries for different chunks of memory 2 | by Mike Slegeir for Mupen64-Wii adapted for WiiSX by emu_kidid 3 | */ 4 | 5 | #ifndef MEM2_H 6 | #define MEM2_H 7 | 8 | // Define a MegaByte 9 | #define KB (1024) 10 | #define MB (1024*1024) 11 | 12 | // MEM2 begins at MEM2_LO, the Starlet's Dedicated Memory begins at MEM2_HI 13 | #define MEM2_LO ((char*)0x90080000) 14 | #define MEM2_HI ((char*)0x933E0000) 15 | #define MEM2_SIZE (MEM2_HI - MEM2_LO) 16 | 17 | // We want 128KB for our MEMCARD 1 18 | #define MCD1_SIZE (128*KB) 19 | #define MCD1_LO (MEM2_LO) 20 | #define MCD1_HI (MCD1_LO + MCD1_SIZE) 21 | 22 | // We want 128KB for our MEMCARD 2 23 | #define MCD2_SIZE (128*KB) 24 | #define MCD2_LO (MCD1_HI) 25 | #define MCD2_HI (MCD2_LO + MCD2_SIZE) 26 | 27 | // We want 256KB for fontFont 28 | #define FONT_SIZE (256*KB) 29 | #define FONT_LO (MCD2_HI) 30 | #define FONT_HI (FONT_LO + FONT_SIZE) 31 | 32 | // We want 20MB for chinese font 33 | #define CN_FONT_SIZE (20*MB) 34 | #define CN_FONT_LO (FONT_HI) 35 | #define CN_FONT_HI (CN_FONT_LO + CN_FONT_SIZE) 36 | 37 | // We want 20MB for the recompiled blocks 38 | #define RECMEM2_SIZE (20*MB) 39 | #define RECMEM2_LO (CN_FONT_HI) 40 | #define RECMEM2_HI (RECMEM2_LO + RECMEM2_SIZE) 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Gamecube/PadSSSPSX.h: -------------------------------------------------------------------------------- 1 | /* PADwin 2 | * Copyright (C) 2002-2004 PADwin Team 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (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. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef __PADSSS_H__ 20 | #define __PADSSS_H__ 21 | 22 | typedef struct 23 | { 24 | u32 key; 25 | u32 event; 26 | } keyEvent; 27 | 28 | typedef struct 29 | { 30 | u32 keys[2][21]; 31 | } SSSConfig; 32 | 33 | void lightgunInterrupt(void); 34 | void SSS_SetMultiPad(int pad, int mpad); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Gamecube/PlugGPU.c: -------------------------------------------------------------------------------- 1 | /* NULL GFX for cubeSX by emu_kidid 2 | 3 | */ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "../plugins.h" 10 | 11 | long GPU__open(void) { return 0; } 12 | long GPU__init(void) { return 0; } 13 | long GPU__shutdown(void) { return 0; } 14 | long GPU__close(void) { return 0; } 15 | void GPU__writeStatus(unsigned long a){} 16 | void GPU__writeData(unsigned long a){} 17 | unsigned long GPU__readStatus(void) { return 0; } 18 | unsigned long GPU__readData(void) { return 0; } 19 | long GPU__dmaChain(unsigned long *a ,unsigned long b) { return 0; } 20 | void GPU__updateLace(void) { } 21 | -------------------------------------------------------------------------------- /Gamecube/Plugin.h: -------------------------------------------------------------------------------- 1 | /* Pcsx - Pc Psx Emulator 2 | * Copyright (C) 1999-2002 Pcsx Team 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (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. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | // Linux Specifyc Plugin Functions 20 | 21 | #ifndef __PLUGIN_H__ 22 | #define __PLUGIN_H__ 23 | 24 | typedef long (* NETopen)(unsigned long *); 25 | 26 | #endif /* __PLUGIN_H__ */ 27 | -------------------------------------------------------------------------------- /Gamecube/TEXT.h: -------------------------------------------------------------------------------- 1 | /* TEXT.h - Helper functions for reformatting text 2 | by Mike Slegeir for Mupen64-GC 3 | */ 4 | 5 | #ifndef TEXT_H 6 | #define TEXT_H 7 | 8 | // Maximum number of lines that can be in one split 9 | #define TEXT_MAX_SPLIT 5 10 | #define TEXT_WIDTH 35 11 | 12 | //extern char TEXT_split_lines[TEXT_MAX_SPLIT][TEXT_WIDTH]; 13 | 14 | // Splits the text on newlines 15 | // string: the string to split 16 | // RETURNS: number of lines split 17 | // Fills out TEXT_split[0 thru return value] 18 | int TEXT_split(char* string); 19 | 20 | #define TEXT_SPACE_PER_TAB 3 21 | // Expands tabs into TEXT_SPACE_PER_TAB spaces 22 | // string: string to expand 23 | // Assumes buffer size is TEXT_WIDTH, won't overflow that size 24 | void TEXT_expand(char* string); 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /Gamecube/fileBrowser/fileBrowser-CARD.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - fileBrowser-CARD.h 3 | * Copyright (C) 2007, 2008, 2009 emu_kidid 4 | * 5 | * fileBrowser module for Nintendo Gamecube Memory Cards 6 | * 7 | * Wii64 homepage: http://www.emulatemii.com 8 | * email address: emukidid@gmail.com 9 | * 10 | * 11 | * This program is free software; you can redistribute it and/ 12 | * or modify it under the terms of the GNU General Public Li- 13 | * cence as published by the Free Software Foundation; either 14 | * version 2 of the Licence, or any later version. 15 | * 16 | * This program is distributed in the hope that it will be use- 17 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 18 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19 | * See the GNU General Public Licence for more details. 20 | * 21 | **/ 22 | 23 | 24 | #ifndef FILE_BROWSER_CARD_H 25 | #define FILE_BROWSER_CARD_H 26 | 27 | #include "fileBrowser.h" 28 | 29 | extern fileBrowser_file topLevel_CARD_SlotA; 30 | extern fileBrowser_file topLevel_CARD_SlotB; 31 | #define saveDir_CARD_SlotA topLevel_CARD_SlotA 32 | #define saveDir_CARD_SlotB topLevel_CARD_SlotB 33 | 34 | int fileBrowser_CARD_readDir(fileBrowser_file*, fileBrowser_file**); 35 | int fileBrowser_CARD_readFile(fileBrowser_file*, void*, unsigned int); 36 | int fileBrowser_CARD_writeFile(fileBrowser_file*, void*, unsigned int); 37 | int fileBrowser_CARD_seekFile(fileBrowser_file*, unsigned int, unsigned int); 38 | int fileBrowser_CARD_init(fileBrowser_file* file); 39 | int fileBrowser_CARD_deinit(fileBrowser_file* file); 40 | 41 | #endif 42 | 43 | -------------------------------------------------------------------------------- /Gamecube/fileBrowser/fileBrowser-DVD.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - fileBrowser-DVD.h 3 | * Copyright (C) 2007, 2008, 2009 emu_kidid 4 | * 5 | * fileBrowser module for ISO9660 DVD Discs 6 | * 7 | * Wii64 homepage: http://www.emulatemii.com 8 | * email address: emukidid@gmail.com 9 | * 10 | * 11 | * This program is free software; you can redistribute it and/ 12 | * or modify it under the terms of the GNU General Public Li- 13 | * cence as published by the Free Software Foundation; either 14 | * version 2 of the Licence, or any later version. 15 | * 16 | * This program is distributed in the hope that it will be use- 17 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 18 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19 | * See the GNU General Public Licence for more details. 20 | * 21 | **/ 22 | 23 | 24 | #ifndef FILE_BROWSER_DVD_H 25 | #define FILE_BROWSER_DVD_H 26 | 27 | #include "fileBrowser.h" 28 | 29 | extern fileBrowser_file topLevel_DVD; 30 | 31 | int fileBrowser_DVD_readDir(fileBrowser_file*, fileBrowser_file**); 32 | int fileBrowser_DVD_open(fileBrowser_file* file); 33 | int fileBrowser_DVD_readFile(fileBrowser_file*, void*, unsigned int); 34 | int fileBrowser_DVD_seekFile(fileBrowser_file*, unsigned int, unsigned int); 35 | int fileBrowser_DVD_init(fileBrowser_file* file); 36 | int fileBrowser_DVD_deinit(fileBrowser_file* file); 37 | 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /Gamecube/fileBrowser/fileBrowser-SMB.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - fileBrowser-SMB.h 3 | * Copyright (C) 2010 emu_kidid 4 | * 5 | * fileBrowser module for Samba based shares 6 | * 7 | * WiiSX homepage: http://www.emulatemii.com 8 | * email address: emukidid@gmail.com 9 | * 10 | * 11 | * This program is free software; you can redistribute it and/ 12 | * or modify it under the terms of the GNU General Public Li- 13 | * cence as published by the Free Software Foundation; either 14 | * version 2 of the Licence, or any later version. 15 | * 16 | * This program is distributed in the hope that it will be use- 17 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 18 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19 | * See the GNU General Public Licence for more details. 20 | * 21 | **/ 22 | 23 | 24 | #ifndef FILE_BROWSER_SMB_H 25 | #define FILE_BROWSER_SMB_H 26 | 27 | #include "fileBrowser.h" 28 | 29 | // error codes 30 | #define SMB_NETINITERR -110 31 | #define SMB_SMBCFGERR -111 32 | #define SMB_SMBERR -112 33 | 34 | extern fileBrowser_file topLevel_SMB; 35 | 36 | int fileBrowser_SMB_readDir(fileBrowser_file*, fileBrowser_file**); 37 | int fileBrowser_SMB_open(fileBrowser_file* file); 38 | int fileBrowser_SMB_readFile(fileBrowser_file*, void*, unsigned int); 39 | int fileBrowser_SMB_seekFile(fileBrowser_file*, unsigned int, unsigned int); 40 | int fileBrowser_SMB_init(fileBrowser_file* file); 41 | int fileBrowser_SMB_deinit(fileBrowser_file* file); 42 | 43 | void init_network_thread(); 44 | void pause_netinit_thread(); 45 | void resume_netinit_thread(); 46 | 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /Gamecube/fileBrowser/imagedata/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/fileBrowser/imagedata/icon.png -------------------------------------------------------------------------------- /Gamecube/libgui/Frame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - Frame.h 3 | * Copyright (C) 2009, 2010 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef FRAME_H 22 | #define FRAME_H 23 | 24 | #include "GuiTypes.h" 25 | #include "Component.h" 26 | 27 | typedef void (*FrameFunc)( void ); 28 | 29 | namespace menu { 30 | 31 | class Frame : public Component 32 | { 33 | public: 34 | Frame(); 35 | ~Frame(); 36 | void showFrame(); 37 | void hideFrame(); 38 | void setEnabled(bool enable); 39 | virtual void drawChildren(Graphics& gfx); 40 | void remove(Component* component); 41 | void removeAll(); 42 | void add(Component* comp); 43 | void updateTime(float deltaTime); 44 | void setDefaultFocus(Component* comp); 45 | Component* getDefaultFocus(); 46 | void setBackFunc(FrameFunc backFn); 47 | void setSelectFunc(FrameFunc selectFn); 48 | Component* updateFocus(int direction, int buttonsPressed); 49 | virtual void activateSubmenu(int submenu) {}; 50 | virtual void updateFrame(float deltaTime) {}; 51 | 52 | private: 53 | Component* defaultFocus; 54 | FrameFunc backFunc, selectFunc; 55 | 56 | }; 57 | 58 | } //namespace menu 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /Gamecube/libgui/Gui.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - Gui.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef GUI_H 22 | #define GUI_H 23 | 24 | #include "GuiTypes.h" 25 | #include "Frame.h" 26 | #include "Logo.h" 27 | #include "GraphicsGX.h" 28 | 29 | namespace menu { 30 | 31 | class Gui 32 | { 33 | public: 34 | void setVmode(GXRModeObj *rmode); 35 | void addFrame(Frame* frame); 36 | void removeFrame(Frame* frame); 37 | void draw(); 38 | void drawBackground(); 39 | static Gui& getInstance() 40 | { 41 | static Gui obj; 42 | return obj; 43 | } 44 | Graphics *gfx; 45 | Logo* menuLogo; 46 | 47 | private: 48 | Gui(); 49 | ~Gui(); 50 | FrameList frameList; 51 | char fade; 52 | }; 53 | 54 | } //namespace menu 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /Gamecube/libgui/GuiTypes.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - GuiTypes.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef GUIDEFS_H 22 | #define GUIDEFS_H 23 | 24 | #include 25 | #include "../wiiSXconfig.h" 26 | #ifdef HW_RVL 27 | #include 28 | #include 29 | #include 30 | #endif 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | 37 | extern "C" { 38 | #include 39 | #include 40 | } 41 | 42 | namespace menu { 43 | 44 | class Graphics; 45 | class Component; 46 | class Frame; 47 | class Button; 48 | class Input; 49 | class Cursor; 50 | class Focus; 51 | class Image; 52 | class IplFont; 53 | 54 | typedef std::vector FrameList; 55 | typedef std::vector ComponentList; 56 | typedef std::stack FloatStack; 57 | //typedef std::stack MatrixStack; 58 | 59 | } //namespace menu 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /Gamecube/libgui/IPLFont.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - IPLFont.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef IPLFONT_H 22 | #define IPLFONT_H 23 | 24 | #include "GuiTypes.h" 25 | 26 | namespace menu { 27 | 28 | class IplFont 29 | { 30 | public: 31 | void setVmode(GXRModeObj *rmode); 32 | void drawInit(GXColor fontColor); 33 | void setColor(GXColor fontColor); 34 | void setColor(GXColor* fontColorPtr); 35 | void drawString(int x, int y, char *string, float scale, bool centered); 36 | int drawStringWrap(int x, int y, char *string, float scale, bool centered, int maxWidth, int lineSpacing); 37 | void drawStringAtOrigin(char *string, float scale); 38 | int getStringWidth(char *string, float scale); 39 | int getStringHeight(char *string, float scale); 40 | static IplFont& getInstance() 41 | { 42 | static IplFont obj; 43 | return obj; 44 | } 45 | ~IplFont(); 46 | 47 | private: 48 | IplFont(); 49 | 50 | int getPngBufPtr(char *string); 51 | wchar_t* charToWideChar(char* strChar); 52 | wchar_t* charToWideChar(const char* strChar); 53 | u8* getCharPngBuf(const wchar_t wChar); 54 | int getCharCode(const wchar_t wChar); 55 | FILE* getFontFile(char* sdUsb); 56 | 57 | u16 frameWidth; 58 | GXTexObj fontTexObj; 59 | GXRModeObj *vmode; 60 | GXColor fontColor; 61 | wchar_t* blankChar; 62 | }; 63 | 64 | } //namespace menu 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /Gamecube/libgui/IPLFontC.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * font.h - C functions to call IPLFont singleton class 3 | *****************************************************************************/ 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | void IplFont_drawInit(GXColor fontColor); 9 | void IplFont_drawString(int x, int y, char *string, float scale, bool centered); 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | -------------------------------------------------------------------------------- /Gamecube/libgui/Image.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - Image.cpp 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #include "Image.h" 22 | 23 | namespace menu { 24 | 25 | Image::Image(void* texture, u16 wd, u16 ht, u8 fmt, u8 wrap_s, u8 wrap_t, u8 mipmap) 26 | : img_ptr(texture), 27 | tlut_ptr(0), 28 | width(wd), 29 | height(ht), 30 | format(fmt), 31 | tlut_format(0) 32 | { 33 | GX_InitTexObj(&obj, img_ptr, width, height, format, wrap_s, wrap_t, mipmap); 34 | } 35 | 36 | Image::Image(void* texture, u16 wd, u16 ht, u8 fmt, u8 wrap_s, u8 wrap_t, u8 mipmap, void* lut, u8 lut_fmt, u8 lut_name, u16 lut_size) 37 | : img_ptr(texture), 38 | tlut_ptr(lut), 39 | width(wd), 40 | height(ht), 41 | format(fmt), 42 | tlut_format(lut_fmt), 43 | tlut_name(lut_name), 44 | tlut_size(lut_size) 45 | { 46 | GX_InitTlutObj(&tlut_obj, tlut_ptr, tlut_format, tlut_size); 47 | GX_InitTexObjCI(&obj, img_ptr, width, height, format, wrap_s, wrap_t, mipmap, tlut_name); 48 | } 49 | 50 | Image::~Image() 51 | { 52 | } 53 | 54 | void Image::activateImage(u8 mapid) 55 | { 56 | if (tlut_ptr) GX_LoadTlut(&tlut_obj, tlut_name); 57 | GX_LoadTexObj(&obj, mapid); 58 | } 59 | 60 | } //namespace menu 61 | -------------------------------------------------------------------------------- /Gamecube/libgui/Image.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - Image.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef IMAGE_H 22 | #define IMAGE_H 23 | 24 | #include "GuiTypes.h" 25 | 26 | namespace menu { 27 | 28 | class Image 29 | { 30 | public: 31 | Image(void* texture, u16 wd, u16 ht, u8 fmt, u8 wrap_s, u8 wrap_t, u8 mipmap); 32 | Image(void* texture, u16 wd, u16 ht, u8 fmt, u8 wrap_s, u8 wrap_t, u8 mipmap, void* lut, u8 lut_fmt, u8 lut_name, u16 lut_size); 33 | ~Image(); 34 | void activateImage(u8 mapid); 35 | 36 | private: 37 | GXTexObj obj; 38 | GXTlutObj tlut_obj; 39 | void *img_ptr; 40 | void *tlut_ptr; 41 | u16 width, height; 42 | u8 format, tlut_format, tlut_name; 43 | u16 tlut_size; 44 | 45 | }; 46 | 47 | } //namespace menu 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /Gamecube/libgui/InputManager.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - InputManager.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef INPUTMANAGER_H 22 | #define INPUTMANAGER_H 23 | 24 | #include "GuiTypes.h" 25 | 26 | namespace menu { 27 | 28 | class Input 29 | { 30 | public: 31 | void refreshInput(); 32 | #ifdef HW_RVL 33 | WPADData* getWpad(); 34 | WUPCData* getWupc(); 35 | const WiiDRCData* getWiiDRC(); 36 | #endif 37 | PADStatus* getPad(); 38 | void clearInputData(); 39 | static Input& getInstance() 40 | { 41 | static Input obj; 42 | return obj; 43 | } 44 | 45 | private: 46 | Input(); 47 | ~Input(); 48 | PADStatus gcPad[4]; 49 | #ifdef HW_RVL 50 | WPADData *wiiPad; 51 | WUPCData *wupcData; 52 | const WiiDRCData *wiidrcData; 53 | #endif 54 | 55 | }; 56 | 57 | } //namespace menu 58 | 59 | #endif 60 | 61 | extern bool isWiiVC; 62 | static inline bool IsWiiU(void) 63 | { 64 | return ((*(vu16*)0xCD8005A0 == 0xCAFE) || isWiiVC); 65 | } 66 | static inline bool IsWiiUFastCPU(void) 67 | { 68 | return ((*(vu16*)0xCD8005A0 == 0xCAFE) && ((*(vu32*)0xCD8005B0 & 0x20) == 0)); 69 | } 70 | -------------------------------------------------------------------------------- /Gamecube/libgui/InputStatusBar.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - InputStatusBar.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef INPUTSTATUSBAR_H 22 | #define INPUTSTATUSBAR_H 23 | 24 | //#include "GuiTypes.h" 25 | #include "Component.h" 26 | 27 | namespace menu { 28 | 29 | class InputStatusBar : public Component 30 | { 31 | public: 32 | InputStatusBar(float x, float y); 33 | ~InputStatusBar(); 34 | void updateTime(float deltaTime); 35 | void drawComponent(Graphics& gfx); 36 | Component* updateFocus(int direction, int buttonsPressed); 37 | 38 | private: 39 | /* Image *normalImage; 40 | Image *focusImage; 41 | Image *selectedImage; 42 | Image *selectedFocusImage; 43 | char** buttonText; 44 | int buttonStyle, labelMode, labelScissor; 45 | unsigned long StartTime;*/ 46 | float x, y;/*, width, height; 47 | GXColor focusColor, inactiveColor, activeColor, selectedColor, labelColor;*/ 48 | 49 | }; 50 | 51 | } //namespace menu 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /Gamecube/libgui/LoadingBar.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - LoadingBar.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef LOADINGBAR_H 22 | #define LOADINGBAR_H 23 | 24 | #include "Frame.h" 25 | #include "Button.h" 26 | #include "Image.h" 27 | #include "Gui.h" 28 | #include "GuiTypes.h" 29 | 30 | namespace menu { 31 | 32 | class LoadingBar : public Frame 33 | { 34 | public: 35 | void showBar(float percent, const char* text); 36 | bool getActive(); 37 | void drawLoadingBar(Graphics& gfx); 38 | 39 | static LoadingBar& getInstance() 40 | { 41 | static LoadingBar obj; 42 | return obj; 43 | } 44 | 45 | private: 46 | LoadingBar(); 47 | ~LoadingBar(); 48 | Image *buttonImage; 49 | Image *buttonFocusImage; 50 | bool loadingBarActive; 51 | Frame *currentCursorFrame; 52 | Frame *currentFocusFrame; 53 | float percentComplete; 54 | GXColor boxColor, backColor, barColor, textColor; 55 | 56 | }; 57 | 58 | } //namespace menu 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /Gamecube/libgui/Logo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - Logo.h 3 | * Copyright (C) 2009, 2010 sepp256 4 | * 5 | * WiiSX homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef LOGO_H 22 | #define LOGO_H 23 | 24 | //#include "GuiTypes.h" 25 | #include "Component.h" 26 | 27 | namespace menu { 28 | 29 | class Logo : public Component 30 | { 31 | public: 32 | Logo(); 33 | ~Logo(); 34 | void setLocation(float x, float y, float z); 35 | void setSize(float size); 36 | void setMode(int mode); 37 | void updateTime(float deltaTime); 38 | void drawComponent(Graphics& gfx); 39 | enum LogoMode 40 | { 41 | LOGO_P=0, 42 | }; 43 | 44 | private: 45 | void drawQuad(u8 v0, u8 v1, u8 v2, u8 v3, u8 c); 46 | //void drawLine(u8 v0, u8 v1, u8 c); 47 | void drawBand(guVector center, guVector axis1, guVector axis2, float radius1, float radius2, float thetaMax, int numSegments, u8 c); 48 | int logoMode; 49 | float x, y, z, size; 50 | float rotateAuto, rotateX, rotateY; 51 | 52 | }; 53 | 54 | } //namespace menu 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /Gamecube/libgui/MessageBox.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - MessageBox.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef MESSAGEBOX_H 22 | #define MESSAGEBOX_H 23 | 24 | #include "Frame.h" 25 | #include "Image.h" 26 | #include "Gui.h" 27 | #include "GuiTypes.h" 28 | 29 | namespace menu { 30 | 31 | class MessageBox : public Frame 32 | { 33 | public: 34 | void setMessage(const char* text); 35 | int askMessage(const char* text); 36 | void fadeMessage(const char* text); 37 | void setReturnValue(int returnValue); 38 | int getReturnValue(); 39 | void deactivate(); 40 | bool getActive(); 41 | void drawMessageBox(Graphics& gfx); 42 | 43 | static MessageBox& getInstance() 44 | { 45 | static MessageBox obj; 46 | return obj; 47 | } 48 | 49 | private: 50 | MessageBox(); 51 | ~MessageBox(); 52 | Image *buttonImage; 53 | Image *buttonFocusImage; 54 | bool messageBoxActive; 55 | Frame *currentCursorFrame; 56 | Frame *currentFocusFrame; 57 | GXColor boxColor, textColor; 58 | int returnValue; 59 | float messageFade; 60 | 61 | }; 62 | 63 | } //namespace menu 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /Gamecube/libgui/TextBox.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - TextBox.cpp 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #include "TextBox.h" 22 | #include "GraphicsGX.h" 23 | #include "IPLFont.h" 24 | 25 | namespace menu { 26 | 27 | TextBox::TextBox(char** label, float x, float y, float scale, bool centered) 28 | : centered(centered), 29 | textBoxText(label), 30 | x(x), 31 | y(y), 32 | scale(scale) 33 | { 34 | setType(TYPE_TEXTBOX); 35 | //Label color 36 | // GXColor color = {255, 255, 255, 255}; 37 | GXColor color = {56, 56, 56, 255}; 38 | setColor(&color); 39 | } 40 | 41 | TextBox::~TextBox() 42 | { 43 | } 44 | 45 | void TextBox::setColor(GXColor *colors) 46 | { 47 | labelColor.r = colors[0].r; 48 | labelColor.g = colors[0].g; 49 | labelColor.b = colors[0].b; 50 | labelColor.a = colors[0].a; 51 | } 52 | 53 | void TextBox::setText(char** strPtr) 54 | { 55 | textBoxText = strPtr; 56 | } 57 | 58 | void TextBox::drawComponent(Graphics& gfx) 59 | { 60 | IplFont::getInstance().drawInit(labelColor); 61 | IplFont::getInstance().drawString((int) x, (int) y, *textBoxText, scale, centered); 62 | } 63 | 64 | } //namespace menu 65 | -------------------------------------------------------------------------------- /Gamecube/libgui/TextBox.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - TextBox.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef TEXTBOX_H 22 | #define TEXTBOX_H 23 | 24 | //#include "GuiTypes.h" 25 | #include "Component.h" 26 | 27 | namespace menu { 28 | 29 | class TextBox : public Component 30 | { 31 | public: 32 | TextBox(char** label, float x, float y, float scale, bool centered); 33 | ~TextBox(); 34 | void setColor(GXColor *labelColor); 35 | void setText(char** strPtr); 36 | void drawComponent(Graphics& gfx); 37 | 38 | private: 39 | bool centered; 40 | char** textBoxText; 41 | float x, y, scale; 42 | GXColor labelColor; 43 | 44 | }; 45 | 46 | } //namespace menu 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /Gamecube/libgui/gui2/Bak/IPLFont_ttf.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - IPLFont.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef IPLFONT_H 22 | #define IPLFONT_H 23 | 24 | #include "GuiTypes.h" 25 | 26 | namespace menu { 27 | 28 | class IplFont 29 | { 30 | public: 31 | void setVmode(GXRModeObj *rmode); 32 | void drawInit(GXColor fontColor); 33 | void setColor(GXColor fontColor); 34 | void setColor(GXColor* fontColorPtr); 35 | void drawString(int x, int y, char *string, float scale, bool centered); 36 | int drawStringWrap(int x, int y, char *string, float scale, bool centered, int maxWidth, int lineSpacing); 37 | void drawStringAtOrigin(char *string, float scale); 38 | int getStringWidth(char *string, float scale); 39 | int getStringHeight(char *string, float scale); 40 | static IplFont& getInstance() 41 | { 42 | static IplFont obj; 43 | return obj; 44 | } 45 | ~IplFont(); 46 | 47 | private: 48 | IplFont(); 49 | 50 | u8* getPngPosByCharCode(wchar_t unicode, bool copyToBuf = false); 51 | int getPngBufPtr(char *string); 52 | wchar_t* charToWideChar(char* strChar); 53 | wchar_t* charToWideChar(const char* strChar); 54 | 55 | u16 frameWidth; 56 | GXTexObj fontTexObj; 57 | GXRModeObj *vmode; 58 | GXColor fontColor; 59 | 60 | u8 *pngBufData; 61 | u8 *zhFontBuf; 62 | uint16_t * zhFontBufTemp; 63 | }; 64 | 65 | } //namespace menu 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /Gamecube/libgui/gui2/filelist.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | * Snes9x Nintendo Wii/Gamecube Port 3 | * 4 | * Tantric 2009-2010 5 | * 6 | * filelist.h 7 | * 8 | * Contains a list of all of the files stored in the images/, fonts/, and 9 | * sounds/ folders 10 | ***************************************************************************/ 11 | 12 | #ifndef _FILELIST_H_ 13 | #define _FILELIST_H_ 14 | 15 | #include 16 | 17 | // Languages 18 | extern const u8 jp_lang[]; 19 | extern const u32 jp_lang_size; 20 | extern const u8 en_lang[]; 21 | extern const u32 en_lang_size; 22 | extern const u8 de_lang[]; 23 | extern const u32 de_lang_size; 24 | extern const u8 fr_lang[]; 25 | extern const u32 fr_lang_size; 26 | extern const u8 es_lang[]; 27 | extern const u32 es_lang_size; 28 | extern const u8 it_lang[]; 29 | extern const u32 it_lang_size; 30 | extern const u8 nl_lang[]; 31 | extern const u32 nl_lang_size; 32 | extern const u8 zh_lang[]; 33 | extern const u32 zh_lang_size; 34 | extern const u8 Kr_lang[]; 35 | extern const u32 Kr_lang_size; 36 | extern const u8 pt_lang[]; 37 | extern const u32 pt_lang_size; 38 | extern const u8 pt_br_lang[]; 39 | extern const u32 pt_br_lang_size; 40 | extern const u8 ca_lang[]; 41 | extern const u32 ca_lang_size; 42 | extern const u8 tr_lang[]; 43 | extern const u32 tr_lang_size; 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /Gamecube/libgui/gui2/gettext.h: -------------------------------------------------------------------------------- 1 | #ifndef _GETTEXT_H_ 2 | #define _GETTEXT_H_ 3 | 4 | bool LoadLanguage(); 5 | 6 | /* 7 | * input msg = a text in ASCII 8 | * output = the translated msg in utf-8 9 | */ 10 | extern "C" const char *gettext(const char *msg); 11 | extern "C" char * JoinString(char *s1, char *s2); 12 | 13 | enum { 14 | LANG_JAPANESE = 0, 15 | LANG_ENGLISH, 16 | LANG_GERMAN, 17 | LANG_FRENCH, 18 | LANG_SPANISH, 19 | LANG_ITALIAN, 20 | LANG_DUTCH, 21 | LANG_SIMP_CHINESE, 22 | LANG_TRAD_CHINESE, 23 | LANG_KOREAN, 24 | LANG_PORTUGUESE, 25 | LANG_BRAZILIAN_PORTUGUESE, 26 | LANG_CATALAN, 27 | LANG_TURKISH, 28 | LANG_LENGTH 29 | }; 30 | 31 | #endif /* _GETTEXT_H_ */ 32 | -------------------------------------------------------------------------------- /Gamecube/libgui/resources.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - resources.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef RESOURCES_H 22 | #define RESOURCES_H 23 | 24 | extern u8 CursorPointTexture[]; 25 | extern u8 CursorGrabTexture[]; 26 | extern u8 ButtonTexture[]; 27 | extern u8 ButtonFocusTexture[]; 28 | extern u8 StyleAButtonTlut[]; 29 | extern u8 StyleAButtonTexture[]; 30 | extern u8 StyleAButtonFocusTexture[]; 31 | extern u8 StyleAButtonSelectOffTexture[]; 32 | extern u8 StyleAButtonSelectOffFocusTexture[]; 33 | extern u8 StyleAButtonSelectOnTexture[]; 34 | extern u8 StyleAButtonSelectOnFocusTexture[]; 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Gamecube/libgui/resources/Button.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/Button.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonA.tlt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonA.tlt -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonA.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonA.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonAFoc.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonAFoc.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOff.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonASelOff.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOffFoc.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonASelOffFoc.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOn.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonASelOn.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOnFoc.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonASelOnFoc.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonFocus.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/ButtonFocus.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/CursorGrab.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/CursorGrab.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/CursorPoint.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/libgui/resources/CursorPoint.tx -------------------------------------------------------------------------------- /Gamecube/menu/ConfigureButtonsFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - ConfigureButtonsFrame.h 3 | * Copyright (C) 2010 sepp256 4 | * 5 | * WiiSX homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef CONFIGUREBUTTONSFRAME_H 22 | #define CONFIGUREBUTTONSFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "MenuTypes.h" 26 | 27 | class ConfigureButtonsFrame : public menu::Frame 28 | { 29 | public: 30 | ConfigureButtonsFrame(); 31 | ~ConfigureButtonsFrame(); 32 | void activateSubmenu(int submenu); 33 | void updateFrame(float deltaTime); 34 | void drawChildren(menu::Graphics& gfx); 35 | 36 | enum ConfigureButtonsSubmenus 37 | { 38 | SUBMENU_PSX_PAD0=0, 39 | SUBMENU_PSX_PAD1, 40 | SUBMENU_PSX_PADNONE, 41 | }; 42 | 43 | private: 44 | 45 | }; 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /Gamecube/menu/ConfigureInputFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - ConfigureInputFrame.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef CONFIGUREINPUTFRAME_H 22 | #define CONFIGUREINPUTFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "MenuTypes.h" 26 | 27 | class ConfigureInputFrame : public menu::Frame 28 | { 29 | public: 30 | ConfigureInputFrame(); 31 | ~ConfigureInputFrame(); 32 | void activateSubmenu(int submenu); 33 | 34 | enum ConfigureInputSubmenus 35 | { 36 | SUBMENU_NONE=0, 37 | SUBMENU_REINIT 38 | }; 39 | 40 | private: 41 | 42 | }; 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /Gamecube/menu/CurrentRomFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - CurrentRomFrame.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef CURRENTROMFRAME_H 22 | #define CURRENTROMFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "MenuTypes.h" 26 | 27 | class CurrentRomFrame : public menu::Frame 28 | { 29 | public: 30 | CurrentRomFrame(); 31 | ~CurrentRomFrame(); 32 | 33 | private: 34 | 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /Gamecube/menu/FileBrowserFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - FileBrowserFrame.h 3 | * Copyright (C) 2009, 2010 sepp256 4 | * 5 | * WiiSX homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef FILEBROWSERFRAME_H 22 | #define FILEBROWSERFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "MenuTypes.h" 26 | 27 | class FileBrowserFrame : public menu::Frame 28 | { 29 | public: 30 | FileBrowserFrame(); 31 | ~FileBrowserFrame(); 32 | void drawChildren(menu::Graphics& gfx); 33 | void activateSubmenu(int submenu); 34 | 35 | enum FilebrowserMode 36 | { 37 | FILEBROWSER_LOADISO=1, 38 | FILEBROWSER_SWAPCD, 39 | 40 | }; 41 | 42 | private: 43 | u16 previousButtonsGC[4]; 44 | u32 previousButtonsWii[4]; 45 | 46 | }; 47 | 48 | void fileBrowserFrame_AutoBootFile(); 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /Gamecube/menu/LoadRomFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - LoadRomFrame.h 3 | * Copyright (C) 2009, 2010 sepp256 4 | * 5 | * WiiSX homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef LOADROMFRAME_H 22 | #define LOADROMFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "MenuTypes.h" 26 | 27 | class LoadRomFrame : public menu::Frame 28 | { 29 | public: 30 | LoadRomFrame(); 31 | ~LoadRomFrame(); 32 | void activateSubmenu(int submenu); 33 | 34 | private: 35 | 36 | }; 37 | 38 | // For autoboot (plugin) 39 | void Func_LoadFromSD(); 40 | void Func_LoadFromDVD(); 41 | void Func_LoadFromUSB(); 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /Gamecube/menu/MainFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - MainFrame.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef MAINFRAME_H 22 | #define MAINFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "../libgui/InputStatusBar.h" 26 | #include "MenuTypes.h" 27 | 28 | class MainFrame : public menu::Frame 29 | { 30 | public: 31 | MainFrame(); 32 | ~MainFrame(); 33 | 34 | private: 35 | menu::InputStatusBar *inputStatusBar; 36 | }; 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /Gamecube/menu/MenuResources.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - MenuResources.h 3 | * Copyright (C) 2009, 2010 sepp256 4 | * 5 | * WiiSX homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef MENURESOURCES_H 22 | #define MENURESOURCES_H 23 | 24 | extern u8 BackgroundTexture[]; 25 | extern u8 LogoTexture[]; 26 | extern u8 LoadingTexture[]; 27 | extern u8 ControlEmptyTexture[]; 28 | extern u8 ControlGamecubeTexture[]; 29 | extern u8 ControlClassicTexture[]; 30 | extern u8 ControlWiimoteNunchuckTexture[]; 31 | extern u8 ControlWiimoteTexture[]; 32 | extern u8 PsxControllerTexture[]; 33 | extern u8 GConTexture[]; 34 | extern u8 JustTexture[]; 35 | extern u8 PSMouseTexture[]; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /Gamecube/menu/MenuTypes.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Wii64 - MenuTypes.h 3 | * Copyright (C) 2009 sepp256 4 | * 5 | * Wii64 homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef MENUDEFS_H 22 | #define MENUDEFS_H 23 | 24 | class MenuContext; 25 | class MainFrame; 26 | class LoadRomFrame; 27 | 28 | //extern MenuContext *pMenuContext; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Gamecube/menu/SettingsFrame.h: -------------------------------------------------------------------------------- 1 | /** 2 | * WiiSX - SettingsFrame.h 3 | * Copyright (C) 2009, 2010 sepp256 4 | * 5 | * WiiSX homepage: http://www.emulatemii.com 6 | * email address: sepp256@gmail.com 7 | * 8 | * 9 | * This program is free software; you can redistribute it and/ 10 | * or modify it under the terms of the GNU General Public Li- 11 | * cence as published by the Free Software Foundation; either 12 | * version 2 of the Licence, or any later version. 13 | * 14 | * This program is distributed in the hope that it will be use- 15 | * ful, but WITHOUT ANY WARRANTY; without even the implied war- 16 | * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 | * See the GNU General Public Licence for more details. 18 | * 19 | **/ 20 | 21 | #ifndef SETTINGSFRAME_H 22 | #define SETTINGSFRAME_H 23 | 24 | #include "../libgui/Frame.h" 25 | #include "MenuTypes.h" 26 | 27 | class SettingsFrame : public menu::Frame 28 | { 29 | public: 30 | SettingsFrame(); 31 | ~SettingsFrame(); 32 | void activateSubmenu(int submenu); 33 | void drawChildren(menu::Graphics& gfx); 34 | 35 | enum SettingsSubmenus 36 | { 37 | SUBMENU_GENERAL=0, 38 | SUBMENU_VIDEO, 39 | SUBMENU_INPUT, 40 | SUBMENU_AUDIO, 41 | SUBMENU_SAVES 42 | }; 43 | 44 | private: 45 | int activeSubmenu; 46 | u16 previousButtonsGC[4]; 47 | u32 previousButtonsWii[4]; 48 | 49 | }; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /Gamecube/menu/resources/GCon.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/GCon.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/Just.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/Just.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/Loading.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/Loading.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/PSMouse.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/PSMouse.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/bg.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/bg.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlClassic.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/cntrlClassic.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlEmpty.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/cntrlEmpty.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlGC.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/cntrlGC.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlWM.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/cntrlWM.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlWNC.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/cntrlWNC.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/psxCntrl.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/menu/resources/psxCntrl.tx -------------------------------------------------------------------------------- /Gamecube/release/apps/Makefile: -------------------------------------------------------------------------------- 1 | #Creates a WiiSXR Redistributable 2 | ifndef ECHO 3 | ECHO = echo 4 | endif 5 | 6 | VERSION = beta2.2 7 | 8 | .PHONY: all 9 | 10 | all: dist 11 | 12 | dist: ../WiiSXRX.dol clean 13 | @$(ECHO) "Making Redistributable..." 14 | @cp ../WiiSXRX.dol apps/WiiSXRX/boot.dol 15 | @mkdir -p \ 16 | wiisxrx/bios \ 17 | wiisxrx/saves \ 18 | wiisxrx/isos 19 | @zip -r ../../WiiSXRX-$(VERSION).zip wiisxrx apps README 20 | 21 | clean: 22 | @$(ECHO) "Cleaning..." 23 | @rm -f apps/WiiSXRX/boot.dol ../../WiiSXRX-*.zip -------------------------------------------------------------------------------- /Gamecube/release/apps/WiiStation/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/Gamecube/release/apps/WiiStation/icon.png -------------------------------------------------------------------------------- /Gamecube/release/apps/WiiStation/meta.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | WiiStation 4 | xjsxjs197 5 | 2.4 6 | 20230622 7 | PSX Emulator for Wii 8 | 9 | WiiStation - A Sony PlayStation 1 emulator for Wii / Wii U, forked from WiiSXRX by NiuuS. 10 | Featuring: 11 | - New dynamic recompiler (dynarec) Lightrec! The old one is kept as an option in case compatibility changes much. 12 | - CDDA (Compact Disc Digital Audio) tracks support. 13 | - 240p support! 14 | - Posibility of enabling/disabling Interlaced (480i) mode, Bilinear/Trap/Deflicker filters. 15 | - Lightgun (Namco GunCon/Konami Justifier) support. 16 | - Multitap support for up to 8 players. 17 | - Memory Card enabling/disabling support. 18 | - Multiple languages support. 19 | - GameCube Controller support. 20 | - Wii U Pro Controller support. 21 | - Wii U GamePad Controller support through WiiVC injects. 22 | - Wii Classic Controller and Pro support. 23 | - Nintendo Classic Mini Controllers support (NES / SNES). 24 | 25 | * WiiSX/CubeSX is a PCSX port. The original team was: 26 | emu_kidid - general coding 27 | sepp256 - graphics and menu 28 | tehpola - audio 29 | * Later updates by: 30 | matguitarist 31 | Daxtsu 32 | Mystro256 33 | FIX94 34 | NiuuS 35 | xjsxjs197 36 | saulfabregwiivc 37 | Jokippo 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Gamecube/utils/ehcmodule_elf.h: -------------------------------------------------------------------------------- 1 | extern const u8 ehcmodule_elf_end[]; 2 | extern const u8 ehcmodule_elf[]; 3 | extern const u32 ehcmodule_elf_size; 4 | -------------------------------------------------------------------------------- /Gamecube/utils/mload.h: -------------------------------------------------------------------------------- 1 | /* mload.c (for PPC) (c) 2009, Hermes 2 | 3 | This program is free software; you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation; either version 2 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program; if not, write to the Free Software 15 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 16 | */ 17 | 18 | #ifndef __MLOAD_H__ 19 | #define __MLOAD_H__ 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | int mload_init(); 26 | bool load_ehci_module(); 27 | int mload_close(); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Gamecube/utils/usb2storage.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | * WiiMC 3 | * usb2storage.h -- USB mass storage support, inside starlet 4 | * Copyright (C) 2008 Kwiirk 5 | * Improved for homebrew by rodries and Tantric 6 | * 7 | * IOS 202 and the ehcimodule must be loaded before using this! 8 | ***************************************************************************/ 9 | 10 | #ifndef __USB2STORAGE_H__ 11 | #define __USB2STORAGE_H__ 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | void USB2Enable(bool e); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /LightrecByPPC29Libogc1.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/LightrecByPPC29Libogc1.6.zip -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | #This is just here for convenience 2 | #Call "make help" for available commands 3 | ifndef ECHO 4 | ECHO = echo 5 | endif 6 | 7 | VERSION = beta2.5 8 | 9 | .PHONY: all Wii Wii_Release 10 | 11 | #all: 12 | # @$(ECHO) "Rebuilding Wii and logging to build.log..." 13 | # @$(MAKE) -C Gamecube clean -f Makefile_Wii 14 | # @$(MAKE) -C Gamecube -f Makefile_Wii 2> temp.log 15 | # #This step removes all leading pathes from the build.log 16 | # @sed 's|.*wiisxr/Gamecube|/wiisxr/Gamecube|;s|/./|/|;s|\r\n|\n|' temp.log > build.log 17 | # #note that msys doesn't seem to like sed -i 18 | # @rm temp.log 19 | all: Wii Wii_Release 20 | 21 | Wii: 22 | @$(ECHO) "Building Wii..." 23 | @$(MAKE) -C Gamecube -f Makefile_Wii 24 | 25 | Wii_Release: 26 | @$(ECHO) "Building Wii_Release..." 27 | @$(MAKE) -C Gamecube -f Makefile_Wii_Release 28 | 29 | #GC: 30 | # @$(ECHO) "Building GC..." 31 | # @$(MAKE) -C Gamecube -f Makefile_GC 32 | 33 | dist: Wii 34 | @$(MAKE) -C Gamecube/release/ VERSION=$(VERSION) 35 | 36 | clean: 37 | @$(ECHO) "Cleaning..." 38 | @$(MAKE) -C Gamecube clean -f Makefile_Wii 39 | @$(MAKE) -C Gamecube clean -f Makefile_Wii_Release 40 | 41 | help: 42 | @$(ECHO) 43 | @$(ECHO) "Available commands:" 44 | @$(ECHO) 45 | @$(ECHO) "make # cleans, rebuilds and log errors (Wii)" 46 | @$(ECHO) "make Wii # build everything (Wii)" 47 | @$(ECHO) "make GC # build everything (Gamecube)" 48 | @$(ECHO) "make clean # clean everything" 49 | -------------------------------------------------------------------------------- /PeopsSoftGPU/DrawString.h: -------------------------------------------------------------------------------- 1 | 2 | // mode flags 3 | 4 | #define DSM_NORMAL 0 5 | #define DSM_TRANSPARENT 1 6 | 7 | // draws a string over buff 8 | void DrawString(char *buff, int lPitch, int bpp, 9 | int x, int y, int w, int h, 10 | char *str, int len, int mode); 11 | -------------------------------------------------------------------------------- /PeopsSoftGPU/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for Peops soft gpu 3 | # 4 | 5 | include ./makes/plg.mk 6 | #include ./makes/mk.x11 7 | #include ./makes/mk.fpse 8 | 9 | # Dependencies 10 | 11 | cfg.o: cfg.c stdafx.h externals.h cfg.h gpu.h 12 | draw.o: draw.c stdafx.h externals.h gpu.h draw.h prim.h menu.h 13 | fps.o: fps.c stdafx.h externals.h fps.h 14 | fpsewp.o: fpsewp.c stdafx.h fpse/type.h fpse/sdk.h fpse/linuxdef.h \ 15 | fpsewp.h externals.h 16 | gpu.o: gpu.c stdafx.h externals.h gpu.h draw.h cfg.h prim.h psemu.h \ 17 | menu.h key.h fps.h 18 | gpupeopssoft.o: gpupeopssoft.c stdafx.h 19 | key.o: key.c stdafx.h externals.h menu.h gpu.h draw.h key.h 20 | menu.o: menu.c stdafx.h externals.h draw.h menu.h gpu.h 21 | prim.o: prim.c stdafx.h externals.h gpu.h draw.h soft.h 22 | record.o: record.c stdafx.h externals.h record.h gpu.h 23 | soft.o: soft.c stdafx.h externals.h gpu.h soft.h prim.h menu.h 24 | zn.o: zn.c stdafx.h externals.h 25 | #hq3x32.o: hq3x32.asm 26 | #hq2x32.o: hq2x32.asm 27 | #hq3x16.o: hq3x16.asm 28 | #hq2x16.o: hq2x16.asm 29 | -------------------------------------------------------------------------------- /PeopsSoftGPU/Makefile.nodep: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for FPSE plugins 3 | # 4 | include ./makes/plg.mk 5 | include ./makes/mk.fpse 6 | 7 | # Dependencies 8 | 9 | -------------------------------------------------------------------------------- /PeopsSoftGPU/cfg.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | cfg.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _GPU_CFG_H_ 28 | #define _GPU_CFG_H_ 29 | 30 | void ReadConfig(void); 31 | void WriteConfig(void); 32 | void ReadWinSizeConfig(void); 33 | 34 | void SoftDlgProc(void); 35 | void AboutDlgProc(void); 36 | 37 | #endif // _GPU_CFG_H_ 38 | 39 | -------------------------------------------------------------------------------- /PeopsSoftGPU/draw.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | draw.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _GPU_DRAW_H_ 28 | #define _GPU_DRAW_H_ 29 | 30 | void DoBufferSwap(void); 31 | void DoClearScreenBuffer(void); 32 | void DoClearFrontBuffer(void); 33 | unsigned long ulInitDisplay(void); 34 | void CloseDisplay(void); 35 | void CreatePic(unsigned char * pMem); 36 | void DestroyPic(void); 37 | void DisplayPic(void); 38 | void ShowGpuPic(void); 39 | void ShowTextGpuPic(void); 40 | 41 | /////////////////////////////////////////////////////////////////////// 42 | 43 | #endif // _GPU_DRAW_H_ 44 | -------------------------------------------------------------------------------- /PeopsSoftGPU/filemap.txt: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | 3 | - gpu.c / gpu.h 4 | plugin interface functions and main dma/register emulation 5 | 6 | - draw.c / draw.h 7 | directdraw/X windows funcs 8 | 9 | - fps.c / fps.h 10 | framerate calculation/limitation 11 | 12 | - fpsewp.c / fpsewp.h 13 | basic fpse plugin interface 14 | 15 | - key.c / key.h 16 | key handling 17 | 18 | - menu.c / menu.h 19 | gpu in-game menu handlers 20 | 21 | - prim.c / prim.h 22 | psx primitives handlers 23 | 24 | - soft.c / soft.h 25 | software rendering funcs 26 | 27 | - cfg.c / cfg.h / conf.c 28 | configuration dialogs/file reading funcs 29 | 30 | - callbacks.c / callbacks.h / interface.c / interface.h / support.c / support.h 31 | additional Glade Linux cfg files 32 | 33 | - record.c / record.h 34 | avi recording funcs (Windows only) 35 | 36 | - i386.asm / macros.inc 37 | nasm files (used on __i386__ define) 38 | 39 | - DrawString.c / DrawString.h / DrawStringFont.h 40 | Linux DGA2 fps display 41 | 42 | - gpuPeopsSoft.* 43 | Windows dll related files (including msvc project files) 44 | 45 | - Makefile 46 | Linux makefile... just do a "make" command to build the plugin 47 | 48 | - stdafx.h 49 | main include file 50 | 51 | - externals.h 52 | generic defines/external vars 53 | 54 | - psemu.h 55 | psemu pro plugin interface definitions 56 | 57 | - resource.h 58 | Windows resource header 59 | 60 | ######################################################################### 61 | 62 | -------------------------------------------------------------------------------- /PeopsSoftGPU/fps.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | fps.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _FPS_INTERNALS_H 28 | #define _FPS_INTERNALS_H 29 | 30 | void FrameCap(void); 31 | void FrameCapSSSPSX (void); 32 | void FrameSkip(void); 33 | void calcfps(void); 34 | void PCFrameCap (void); 35 | void PCcalcfps(void); 36 | void SetAutoFrameCap(void); 37 | void SetFPSHandler(void); 38 | void InitFPS(void); 39 | void CheckFrameRate(void); 40 | 41 | #endif // _FPS_INTERNALS_H 42 | -------------------------------------------------------------------------------- /PeopsSoftGPU/gpuPeopsSoft.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/PeopsSoftGPU/gpuPeopsSoft.aps -------------------------------------------------------------------------------- /PeopsSoftGPU/gpuPeopsSoftX.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Linux config file/Windows ZN config file for the Peops Soft psx gpu plugin 3 | # only certain 15 bit, 16 bit and 32 bit desktop color depths are supported! 4 | # 5 | 6 | [screen] 7 | ResX = 640 # X resolution (def=640) 8 | ResY = 480 # Y resolution (def=480) 9 | NoStretch = 0 # stretching to ResX/Y (0=hw/accel, 1=none,2-9: 2x modes; def=1) 10 | FullScreen = 0 # fullscreen (0/1, def=0), still needs correct ResX/Y 11 | UseDither = 0 # dithering (0-2, def=0) 12 | 13 | [framerate] 14 | ShowFPS = 1 # show fps menu on startup (0/1, def=1) 15 | UseFrameLimit = 1 # fps limitation (0/1, def=0) 16 | UseFrameSkip = 0 # frame skipping (0/1, def=0) 17 | FPSDetection = 2 # rate detection (1:user val,def=2:auto) 18 | FrameRate = 100 # user value for frame rate (1-1000) 19 | 20 | [misc] 21 | ScanLines = 0 # show scanlines (0/1, def=0) 22 | 23 | [fixes] 24 | UseFixes = 0 # use CfgFixes (0/1, def=0) 25 | CfgFixes = 0 # fix bits (0=none,1=odd/even,2=screen width,4=no brightness,8=no coord check,16=unused,32=PC fps,64=lazy screen update,128=old skipping) 26 | 27 | 28 | -------------------------------------------------------------------------------- /PeopsSoftGPU/gpupeopssoft.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | gpuPeopsSoft.c - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup (well... not much in this file) for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #include "stdafx.h" 28 | -------------------------------------------------------------------------------- /PeopsSoftGPU/gpupeopssoft.def: -------------------------------------------------------------------------------- 1 | ; gpuPeopsSoft.def : Declares the module parameters for the DLL. 2 | 3 | LIBRARY "gpuPeopsSoft" 4 | DESCRIPTION 'gpuPeopsSoft GPU Windows Dynamic Link Library' 5 | EXPORTS 6 | ; Explicit exports can go here 7 | PSEgetLibType @2 8 | PSEgetLibName @3 9 | PSEgetLibVersion @4 10 | GPUinit @5 11 | GPUshutdown @6 12 | GPUopen @7 13 | GPUclose @8 14 | GPUconfigure @9 15 | GPUabout @10 16 | GPUtest @11 17 | GPUwriteData @12 18 | GPUwriteStatus @13 19 | GPUreadData @14 20 | GPUreadStatus @15 21 | GPUdmaChain @16 22 | GPUgetMode @17 23 | GPUsetMode @18 24 | GPUupdateLace @19 25 | GPUmakeSnapshot @20 26 | GPUwriteDataMem @21 27 | GPUreadDataMem @22 28 | GPUdisplayText @23 29 | GPUdisplayFlags @24 30 | GPUfreeze @25 31 | GPUshowScreenPic @26 32 | GPUgetScreenPic @27 33 | 34 | GPU_Update @28 35 | GP1_Read @29 36 | GP0_Read @30 37 | GP0_Write @31 38 | GP1_Write @32 39 | GPU_Open @33 40 | GPU_Close @34 41 | GPU_ScreenShot @35 42 | GPU_DmaExec @36 43 | GPU_Configure @37 44 | GPU_LoadState @38 45 | GPU_SaveState @39 46 | GPU_About @40 47 | 48 | GPUcursor @41 49 | 50 | ZN_GPUdisplayFlags @42 51 | ZN_GPUmakeSnapshot @43 52 | ZN_GPUinit @44 53 | ZN_GPUopen @45 54 | ZN_GPUclose @46 55 | ZN_GPUshutdown @47 56 | ZN_GPUupdateLace @48 57 | ZN_GPUreadStatus @49 58 | ZN_GPUwriteStatus @50 59 | ZN_GPUdmaSliceOut @51 60 | ZN_GPUreadData @52 61 | ZN_GPUsetMode @53 62 | ZN_GPUgetMode @54 63 | ZN_GPUdmaSliceIn @55 64 | ZN_GPUwriteData @56 65 | ZN_GPUdmaChain @57 66 | ZN_GPUtest @58 67 | ZN_GPUfreeze @59 68 | ZN_GPUgetScreenPic @61 69 | ZN_GPUshowScreenPic @62 70 | 71 | GPUsetfix @63 72 | GPUsetframelimit @64 73 | GPUvisualVibration @65 74 | ;GPUdebugSetPC @6x 75 | 76 | -------------------------------------------------------------------------------- /PeopsSoftGPU/gpupeopssoft.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: "gpuPeopsSoft"=.\gpuPeopsSoft.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /PeopsSoftGPU/gpupeopssoft.ncb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/PeopsSoftGPU/gpupeopssoft.ncb -------------------------------------------------------------------------------- /PeopsSoftGPU/gpupeopssoft.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/PeopsSoftGPU/gpupeopssoft.opt -------------------------------------------------------------------------------- /PeopsSoftGPU/key.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | key.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _KEY_INTERNALS_H 28 | #define _KEY_INTERNALS_H 29 | 30 | void SetKeyHandler(void); 31 | void ReleaseKeyHandler(void); 32 | 33 | #endif // _KEY_INTERNALS_H 34 | -------------------------------------------------------------------------------- /PeopsSoftGPU/linuxdef.h: -------------------------------------------------------------------------------- 1 | #ifndef _GNUDEF_H_ 2 | #define _GNUDEF_H_ 3 | 4 | // Type of Plugins returned by *_About functions. 5 | #define FPSE_GPU 1 6 | #define FPSE_SPU 2 7 | #define FPSE_JOY0 3 8 | #define FPSE_JOY1 4 9 | #define FPSE_CDROM 5 10 | #define FPSE_PAR 6 11 | 12 | // Bit masks for Flags field 13 | #define GPU_USE_DIB_UPDATE 0x00000001 14 | #define GPU_USE_NEW_MDEC 0x00000002 15 | 16 | // New MDEC from GPU plugin. 17 | typedef struct { 18 | int (*MDEC0_Read)(); 19 | int (*MDEC0_Write)(); 20 | int (*MDEC1_Read)(); 21 | int (*MDEC1_Write)(); 22 | int (*MDEC0_DmaExec)(); 23 | int (*MDEC1_DmaExec)(); 24 | } MDEC_Export; 25 | 26 | // Main Struct for initialization 27 | typedef struct { 28 | UINT8 *SystemRam; // Pointer to the PSX system ram 29 | UINT32 Flags; // Flags to plugins 30 | UINT32 *IrqPulsePtr; // Pointer to interrupt pending reg 31 | MDEC_Export MDecAltern; // Use another MDEC engine 32 | int (*ReadCfg)(); // Read an item from INI 33 | int (*WriteCfg)(); // Write an item to INI 34 | void (*FlushRec)(); // Tell where the RAM is changed 35 | } FPSElinux; 36 | 37 | // Info about a plugin 38 | typedef struct { 39 | UINT8 PlType; // Plugin type: GPU, SPU or Controllers 40 | UINT8 VerLo; // Version High 41 | UINT8 VerHi; // Version Low 42 | UINT8 TestResult; // Returns if it'll work or not 43 | char Author[64]; // Name of the author 44 | char Name[64]; // Name of plugin 45 | char Description[1024]; // Description to put in the edit box 46 | } FPSElinuxAbout; 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /PeopsSoftGPU/macros.inc: -------------------------------------------------------------------------------- 1 | ; macros.inc - description 2 | ; ------------------- 3 | ; begin : Sun Nov 08 2001 4 | ; based on ZSNES macros.mac 5 | ; email : linuzappz@pcsx.net 6 | 7 | ; This program is free software; you can redistribute it and/or modify * 8 | ; it under the terms of the GNU General Public License as published by * 9 | ; the Free Software Foundation; either version 2 of the License, or * 10 | ; (at your option) any later version. See also the license.txt file for * 11 | ; additional informations. * 12 | 13 | 14 | %ifdef __WIN32__ 15 | 16 | %imacro EXTSYM 1-* 17 | %rep %0 18 | extern _%1 19 | %define %1 _%1 20 | %rotate 1 21 | %endrep 22 | %endmacro 23 | 24 | %imacro NEWSYM 1 25 | global _%1 26 | _%1: 27 | %1: 28 | %endmacro 29 | 30 | %else 31 | 32 | %define EXTSYM extern 33 | 34 | %imacro NEWSYM 1 35 | global %1 36 | %1: 37 | %endmacro 38 | 39 | %endif 40 | 41 | -------------------------------------------------------------------------------- /PeopsSoftGPU/makedep: -------------------------------------------------------------------------------- 1 | ( cat Makefile.nodep && gcc -MM --makedep -I./fpse `gtk-config --cflags` *.c) > Makefile 2 | -------------------------------------------------------------------------------- /PeopsSoftGPU/makes/plg.mk: -------------------------------------------------------------------------------- 1 | # 2 | # plugin specific makefile 3 | # 4 | 5 | PLUGIN = libgpuPeops$(VERSION).so 6 | PLUGINTYPE = libgpu.so 7 | CFLAGS = -g -Wall -fPIC -O4 -fomit-frame-pointer -ffast-math $(INCLUDE) 8 | #CFLAGS = -g -Wall -fPIC -O3 -mpentium -fomit-frame-pointer -ffast-math $(INCLUDE) 9 | INCLUDE = -I/usr/local/include 10 | OBJECTS = gpu.o cfg.o draw.o fps.o key.o menu.o prim.o soft.o zn.o 11 | #hq3x32.o hq2x32.o hq3x16.o hq2x16.o 12 | LIBS = 13 | -------------------------------------------------------------------------------- /PeopsSoftGPU/menu.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | menu.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _GPU_MENU_H_ 28 | #define _GPU_MENU_H_ 29 | 30 | void DisplayText(void); 31 | void CloseMenu(void); 32 | void InitMenu(void); 33 | void BuildDispMenu(int iInc); 34 | void SwitchDispMenu(int iStep); 35 | 36 | #endif // _GPU_MENU_H_ 37 | -------------------------------------------------------------------------------- /PeopsSoftGPU/prim.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | prim.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _PRIMDRAW_H_ 28 | #define _PRIMDRAW_H_ 29 | 30 | void UploadScreen (long Position); 31 | void PrepareFullScreenUpload (long Position); 32 | 33 | #endif // _PRIMDRAW_H_ 34 | -------------------------------------------------------------------------------- /PeopsSoftGPU/psemu.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | psemu.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef _PSEMU_PLUGIN_DEFS_H 28 | #define _PSEMU_PLUGIN_DEFS_H 29 | 30 | // plugin type returned by PSEgetLibType 31 | #define PSE_LT_CDR 1 32 | #define PSE_LT_GPU 2 33 | #define PSE_LT_SPU 4 34 | 35 | 36 | #endif // _PSEMU_PLUGIN_DEFS_H 37 | -------------------------------------------------------------------------------- /PeopsSoftGPU/stdafx.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | stdafx.h - description 3 | ------------------- 4 | begin : Sun Oct 28 2001 5 | copyright : (C) 2001 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2001/10/28 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #define __inline inline 28 | #define CALLBACK 29 | 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | -------------------------------------------------------------------------------- /PeopsSoftGPU/swap.h: -------------------------------------------------------------------------------- 1 | 2 | // byteswappings 3 | 4 | #define SWAP16(x) (((x)>>8 & 0xff) | ((x)<<8 & 0xff00)) 5 | #define SWAP32(x) (__builtin_bswap32(x)) 6 | 7 | // big endian config 8 | #define HOST2LE32(x) SWAP32(x) 9 | #define HOST2BE32(x) (x) 10 | #define LE2HOST32(x) SWAP32(x) 11 | #define BE2HOST32(x) (x) 12 | 13 | #define HOST2LE16(x) SWAP16(x) 14 | #define HOST2BE16(x) (x) 15 | #define LE2HOST16(x) SWAP16(x) 16 | #define BE2HOST16(x) (x) 17 | 18 | #define GETLEs16(X) ((short)GETLE16((unsigned short *)X)) 19 | #define GETLEs32(X) ((short)GETLE32((unsigned short *)X)) 20 | 21 | #ifdef _BIG_ENDIAN 22 | inline unsigned short GETLE16(unsigned short *ptr) { 23 | unsigned short ret; __asm__ ("lhbrx %0, 0, %1" : "=r" (ret) : "r" (ptr)); 24 | return ret; 25 | } 26 | inline unsigned long GETLE32(unsigned long *ptr) { 27 | unsigned long ret; 28 | __asm__ ("lwbrx %0, 0, %1" : "=r" (ret) : "r" (ptr)); 29 | return ret; 30 | } 31 | inline unsigned long GETLE16D(unsigned long *ptr) { 32 | unsigned long ret; 33 | __asm__ ("lwbrx %0, 0, %1\n" 34 | "rlwinm %0, %0, 16, 0, 31" : "=r" (ret) : "r" (ptr)); 35 | return ret; 36 | } 37 | 38 | inline void PUTLE16(unsigned short *ptr, unsigned short val) { 39 | __asm__ ("sthbrx %0, 0, %1" : : "r" (val), "r" (ptr) : "memory"); 40 | } 41 | inline void PUTLE32(unsigned long *ptr, unsigned long val) { 42 | __asm__ ("stwbrx %0, 0, %1" : : "r" (val), "r" (ptr) : "memory"); 43 | } 44 | 45 | #else // _BIG_ENDIAN 46 | #define GETLE16(X) ((unsigned short *)X) 47 | #define GETLE32(X) ((unsigned long *)X) 48 | #define GETLE16D(X) ({unsigned long val = GETLE32(X); (val<<16 | val >> 16)}) 49 | #define PUTLE16(X, Y) {((unsigned short *)X)=(unsigned short)X} 50 | #define PUTLE32(X, Y) {((unsigned long *)X)=(unsigned long)X} 51 | #endif //!_BIG_ENDIAN 52 | -------------------------------------------------------------------------------- /PeopsSoftGPU/type.h: -------------------------------------------------------------------------------- 1 | #ifndef TYPE_H 2 | #define TYPE_H 3 | 4 | // Return values (should be applied to the entire code). 5 | #define FPSE_OK 0 6 | #define FPSE_ERR -1 7 | #define FPSE_WARN 1 8 | 9 | 10 | typedef signed char INT8; 11 | typedef signed short int INT16; 12 | typedef signed long int INT32; 13 | 14 | typedef unsigned char UINT8; 15 | typedef unsigned short int UINT16; 16 | typedef unsigned long int UINT32; 17 | 18 | #ifdef __GNUC__ 19 | #define INT64 long long 20 | #else 21 | #define INT64 __int64 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /cdriso.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Copyright (C) 2007 PCSX-df Team * 3 | * Copyright (C) 2009 Wei Mingzhi * 4 | * * 5 | * This program is free software; you can redistribute it and/or modify * 6 | * it under the terms of the GNU General Public License as published by * 7 | * the Free Software Foundation; either version 2 of the License, or * 8 | * (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. See the * 13 | * 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 * 17 | * Free Software Foundation, Inc., * 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. * 19 | ***************************************************************************/ 20 | 21 | #ifndef CDRISO_H 22 | #define CDRISO_H 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | void cdrIsoInit(void); 29 | int cdrIsoActive(void); 30 | 31 | extern unsigned int cdrIsoMultidiskCount; 32 | extern unsigned int cdrIsoMultidiskSelect; 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | #endif 38 | -------------------------------------------------------------------------------- /database.h: -------------------------------------------------------------------------------- 1 | #ifndef DATABASE_H 2 | #define DATABASE_H 3 | 4 | extern void Apply_Hacks_Cdrom(); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /deps/libchdr/.github/workflows/cmake.yml: -------------------------------------------------------------------------------- 1 | name: CMake 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ${{ matrix.os }} 8 | strategy: 9 | matrix: 10 | os: [macos-latest, ubuntu-latest, windows-latest] 11 | 12 | steps: 13 | - uses: actions/checkout@v3 14 | 15 | - name: Configure CMake 16 | run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release 17 | 18 | - name: Build 19 | run: cmake --build ${{github.workspace}}/build --config Release 20 | -------------------------------------------------------------------------------- /deps/libchdr/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright Romain Tisserand 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of the nor the 12 | names of its contributors may be used to endorse or promote products 13 | derived from this software without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /deps/libchdr/README.md: -------------------------------------------------------------------------------- 1 | # libchdr 2 | 3 | libchdr is a standalone library for reading MAME's CHDv1-v5 formats. 4 | 5 | The code is based off of MAME's old C codebase which read up to CHDv4 with OS-dependent features removed, and CHDv5 support backported from MAME's current C++ codebase. 6 | 7 | libchdr is licensed under the BSD 3-Clause (see [LICENSE.txt](LICENSE.txt)) and uses third party libraries that are each distributed under their own terms (see each library's license in [deps/](deps/)). 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Alloc.h: -------------------------------------------------------------------------------- 1 | /* Alloc.h -- Memory allocation functions 2 | 2018-02-19 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __COMMON_ALLOC_H 5 | #define __COMMON_ALLOC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void *MyAlloc(size_t size); 12 | void MyFree(void *address); 13 | 14 | #ifdef _WIN32 15 | 16 | void SetLargePageSize(); 17 | 18 | void *MidAlloc(size_t size); 19 | void MidFree(void *address); 20 | void *BigAlloc(size_t size); 21 | void BigFree(void *address); 22 | 23 | #else 24 | 25 | #define MidAlloc(size) MyAlloc(size) 26 | #define MidFree(address) MyFree(address) 27 | #define BigAlloc(size) MyAlloc(size) 28 | #define BigFree(address) MyFree(address) 29 | 30 | #endif 31 | 32 | extern const ISzAlloc g_Alloc; 33 | extern const ISzAlloc g_BigAlloc; 34 | extern const ISzAlloc g_MidAlloc; 35 | extern const ISzAlloc g_AlignedAlloc; 36 | 37 | 38 | typedef struct 39 | { 40 | ISzAlloc vt; 41 | ISzAllocPtr baseAlloc; 42 | unsigned numAlignBits; /* ((1 << numAlignBits) >= sizeof(void *)) */ 43 | size_t offset; /* (offset == (k * sizeof(void *)) && offset < (1 << numAlignBits) */ 44 | } CAlignOffsetAlloc; 45 | 46 | void AlignOffsetAlloc_CreateVTable(CAlignOffsetAlloc *p); 47 | 48 | 49 | EXTERN_C_END 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/BraIA64.c: -------------------------------------------------------------------------------- 1 | /* BraIA64.c -- Converter for IA-64 code 2 | 2017-01-26 : Igor Pavlov : Public domain */ 3 | 4 | #include "Precomp.h" 5 | 6 | #include "CpuArch.h" 7 | #include "Bra.h" 8 | 9 | SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) 10 | { 11 | SizeT i; 12 | if (size < 16) 13 | return 0; 14 | size -= 16; 15 | i = 0; 16 | do 17 | { 18 | unsigned m = ((UInt32)0x334B0000 >> (data[i] & 0x1E)) & 3; 19 | if (m) 20 | { 21 | m++; 22 | do 23 | { 24 | Byte *p = data + (i + (size_t)m * 5 - 8); 25 | if (((p[3] >> m) & 15) == 5 26 | && (((p[-1] | ((UInt32)p[0] << 8)) >> m) & 0x70) == 0) 27 | { 28 | unsigned raw = GetUi32(p); 29 | unsigned v = raw >> m; 30 | v = (v & 0xFFFFF) | ((v & (1 << 23)) >> 3); 31 | 32 | v <<= 4; 33 | if (encoding) 34 | v += ip + (UInt32)i; 35 | else 36 | v -= ip + (UInt32)i; 37 | v >>= 4; 38 | 39 | v &= 0x1FFFFF; 40 | v += 0x700000; 41 | v &= 0x8FFFFF; 42 | raw &= ~((UInt32)0x8FFFFF << m); 43 | raw |= (v << m); 44 | SetUi32(p, raw); 45 | } 46 | } 47 | while (++m <= 4); 48 | } 49 | i += 16; 50 | } 51 | while (i <= size); 52 | return i; 53 | } 54 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Compiler.h: -------------------------------------------------------------------------------- 1 | /* Compiler.h 2 | 2017-04-03 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_COMPILER_H 5 | #define __7Z_COMPILER_H 6 | 7 | #ifdef _MSC_VER 8 | 9 | #ifdef UNDER_CE 10 | #define RPC_NO_WINDOWS_H 11 | /* #pragma warning(disable : 4115) // '_RPC_ASYNC_STATE' : named type definition in parentheses */ 12 | #pragma warning(disable : 4201) // nonstandard extension used : nameless struct/union 13 | #pragma warning(disable : 4214) // nonstandard extension used : bit field types other than int 14 | #endif 15 | 16 | #if _MSC_VER >= 1300 17 | #pragma warning(disable : 4996) // This function or variable may be unsafe 18 | #else 19 | #pragma warning(disable : 4511) // copy constructor could not be generated 20 | #pragma warning(disable : 4512) // assignment operator could not be generated 21 | #pragma warning(disable : 4514) // unreferenced inline function has been removed 22 | #pragma warning(disable : 4702) // unreachable code 23 | #pragma warning(disable : 4710) // not inlined 24 | #pragma warning(disable : 4714) // function marked as __forceinline not inlined 25 | #pragma warning(disable : 4786) // identifier was truncated to '255' characters in the debug information 26 | #endif 27 | 28 | #endif 29 | 30 | #define UNUSED_VAR(x) (void)x; 31 | /* #define UNUSED_VAR(x) x=x; */ 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Delta.c: -------------------------------------------------------------------------------- 1 | /* Delta.c -- Delta converter 2 | 2009-05-26 : Igor Pavlov : Public domain */ 3 | 4 | #include "Precomp.h" 5 | 6 | #include "Delta.h" 7 | 8 | void Delta_Init(Byte *state) 9 | { 10 | unsigned i; 11 | for (i = 0; i < DELTA_STATE_SIZE; i++) 12 | state[i] = 0; 13 | } 14 | 15 | static void MyMemCpy(Byte *dest, const Byte *src, unsigned size) 16 | { 17 | unsigned i; 18 | for (i = 0; i < size; i++) 19 | dest[i] = src[i]; 20 | } 21 | 22 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size) 23 | { 24 | Byte buf[DELTA_STATE_SIZE]; 25 | unsigned j = 0; 26 | MyMemCpy(buf, state, delta); 27 | { 28 | SizeT i; 29 | for (i = 0; i < size;) 30 | { 31 | for (j = 0; j < delta && i < size; i++, j++) 32 | { 33 | Byte b = data[i]; 34 | data[i] = (Byte)(b - buf[j]); 35 | buf[j] = b; 36 | } 37 | } 38 | } 39 | if (j == delta) 40 | j = 0; 41 | MyMemCpy(state, buf + j, delta - j); 42 | MyMemCpy(state + delta - j, buf, j); 43 | } 44 | 45 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size) 46 | { 47 | Byte buf[DELTA_STATE_SIZE]; 48 | unsigned j = 0; 49 | MyMemCpy(buf, state, delta); 50 | { 51 | SizeT i; 52 | for (i = 0; i < size;) 53 | { 54 | for (j = 0; j < delta && i < size; i++, j++) 55 | { 56 | buf[j] = data[i] = (Byte)(buf[j] + data[i]); 57 | } 58 | } 59 | } 60 | if (j == delta) 61 | j = 0; 62 | MyMemCpy(state, buf + j, delta - j); 63 | MyMemCpy(state + delta - j, buf, j); 64 | } 65 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Delta.h: -------------------------------------------------------------------------------- 1 | /* Delta.h -- Delta converter 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __DELTA_H 5 | #define __DELTA_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #define DELTA_STATE_SIZE 256 12 | 13 | void Delta_Init(Byte *state); 14 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size); 15 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size); 16 | 17 | EXTERN_C_END 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/LICENSE: -------------------------------------------------------------------------------- 1 | LZMA SDK is placed in the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original LZMA SDK code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/LzHash.h: -------------------------------------------------------------------------------- 1 | /* LzHash.h -- HASH functions for LZ algorithms 2 | 2015-04-12 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __LZ_HASH_H 5 | #define __LZ_HASH_H 6 | 7 | #define kHash2Size (1 << 10) 8 | #define kHash3Size (1 << 16) 9 | #define kHash4Size (1 << 20) 10 | 11 | #define kFix3HashSize (kHash2Size) 12 | #define kFix4HashSize (kHash2Size + kHash3Size) 13 | #define kFix5HashSize (kHash2Size + kHash3Size + kHash4Size) 14 | 15 | #define HASH2_CALC hv = cur[0] | ((UInt32)cur[1] << 8); 16 | 17 | #define HASH3_CALC { \ 18 | UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 19 | h2 = temp & (kHash2Size - 1); \ 20 | hv = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; } 21 | 22 | #define HASH4_CALC { \ 23 | UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 24 | h2 = temp & (kHash2Size - 1); \ 25 | temp ^= ((UInt32)cur[2] << 8); \ 26 | h3 = temp & (kHash3Size - 1); \ 27 | hv = (temp ^ (p->crc[cur[3]] << 5)) & p->hashMask; } 28 | 29 | #define HASH5_CALC { \ 30 | UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 31 | h2 = temp & (kHash2Size - 1); \ 32 | temp ^= ((UInt32)cur[2] << 8); \ 33 | h3 = temp & (kHash3Size - 1); \ 34 | temp ^= (p->crc[cur[3]] << 5); \ 35 | h4 = temp & (kHash4Size - 1); \ 36 | hv = (temp ^ (p->crc[cur[4]] << 3)) & p->hashMask; } 37 | 38 | /* #define HASH_ZIP_CALC hv = ((cur[0] | ((UInt32)cur[1] << 8)) ^ p->crc[cur[2]]) & 0xFFFF; */ 39 | #define HASH_ZIP_CALC hv = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF; 40 | 41 | 42 | #define MT_HASH2_CALC \ 43 | h2 = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1); 44 | 45 | #define MT_HASH3_CALC { \ 46 | UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 47 | h2 = temp & (kHash2Size - 1); \ 48 | h3 = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); } 49 | 50 | #define MT_HASH4_CALC { \ 51 | UInt32 temp = p->crc[cur[0]] ^ cur[1]; \ 52 | h2 = temp & (kHash2Size - 1); \ 53 | temp ^= ((UInt32)cur[2] << 8); \ 54 | h3 = temp & (kHash3Size - 1); \ 55 | h4 = (temp ^ (p->crc[cur[3]] << 5)) & (kHash4Size - 1); } 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Lzma86Dec.c: -------------------------------------------------------------------------------- 1 | /* Lzma86Dec.c -- LZMA + x86 (BCJ) Filter Decoder 2 | 2016-05-16 : Igor Pavlov : Public domain */ 3 | 4 | #include "Precomp.h" 5 | 6 | #include "Lzma86.h" 7 | 8 | #include "Alloc.h" 9 | #include "Bra.h" 10 | #include "LzmaDec.h" 11 | 12 | SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) 13 | { 14 | unsigned i; 15 | if (srcLen < LZMA86_HEADER_SIZE) 16 | return SZ_ERROR_INPUT_EOF; 17 | *unpackSize = 0; 18 | for (i = 0; i < sizeof(UInt64); i++) 19 | *unpackSize += ((UInt64)src[LZMA86_SIZE_OFFSET + i]) << (8 * i); 20 | return SZ_OK; 21 | } 22 | 23 | SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) 24 | { 25 | SRes res; 26 | int useFilter; 27 | SizeT inSizePure; 28 | ELzmaStatus status; 29 | 30 | if (*srcLen < LZMA86_HEADER_SIZE) 31 | return SZ_ERROR_INPUT_EOF; 32 | 33 | useFilter = src[0]; 34 | 35 | if (useFilter > 1) 36 | { 37 | *destLen = 0; 38 | return SZ_ERROR_UNSUPPORTED; 39 | } 40 | 41 | inSizePure = *srcLen - LZMA86_HEADER_SIZE; 42 | res = LzmaDecode(dest, destLen, src + LZMA86_HEADER_SIZE, &inSizePure, 43 | src + 1, LZMA_PROPS_SIZE, LZMA_FINISH_ANY, &status, &g_Alloc); 44 | *srcLen = inSizePure + LZMA86_HEADER_SIZE; 45 | if (res != SZ_OK) 46 | return res; 47 | if (useFilter == 1) 48 | { 49 | UInt32 x86State; 50 | x86_Convert_Init(x86State); 51 | x86_Convert(dest, *destLen, 0, &x86State, 0); 52 | } 53 | return SZ_OK; 54 | } 55 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Precomp.h: -------------------------------------------------------------------------------- 1 | /* Precomp.h -- StdAfx 2 | 2013-11-12 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_PRECOMP_H 5 | #define __7Z_PRECOMP_H 6 | 7 | #include "Compiler.h" 8 | /* #include "7zTypes.h" */ 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/Sort.h: -------------------------------------------------------------------------------- 1 | /* Sort.h -- Sort functions 2 | 2014-04-05 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_SORT_H 5 | #define __7Z_SORT_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void HeapSort(UInt32 *p, size_t size); 12 | void HeapSort64(UInt64 *p, size_t size); 13 | 14 | /* void HeapSortRef(UInt32 *p, UInt32 *vals, size_t size); */ 15 | 16 | EXTERN_C_END 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-19.00/lzma-history.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/lzma-19.00/lzma-history.txt -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/7zAlloc.h: -------------------------------------------------------------------------------- 1 | /* 7zAlloc.h -- Allocation functions 2 | 2017-04-03 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_ALLOC_H 5 | #define __7Z_ALLOC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void *SzAlloc(ISzAllocPtr p, size_t size); 12 | void SzFree(ISzAllocPtr p, void *address); 13 | 14 | void *SzAllocTemp(ISzAllocPtr p, size_t size); 15 | void SzFreeTemp(ISzAllocPtr p, void *address); 16 | 17 | EXTERN_C_END 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/7zBuf.h: -------------------------------------------------------------------------------- 1 | /* 7zBuf.h -- Byte Buffer 2 | 2017-04-03 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_BUF_H 5 | #define __7Z_BUF_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | typedef struct 12 | { 13 | Byte *data; 14 | size_t size; 15 | } CBuf; 16 | 17 | void Buf_Init(CBuf *p); 18 | int Buf_Create(CBuf *p, size_t size, ISzAllocPtr alloc); 19 | void Buf_Free(CBuf *p, ISzAllocPtr alloc); 20 | 21 | typedef struct 22 | { 23 | Byte *data; 24 | size_t size; 25 | size_t pos; 26 | } CDynBuf; 27 | 28 | void DynBuf_Construct(CDynBuf *p); 29 | void DynBuf_SeekToBeg(CDynBuf *p); 30 | int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAllocPtr alloc); 31 | void DynBuf_Free(CDynBuf *p, ISzAllocPtr alloc); 32 | 33 | EXTERN_C_END 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/7zCrc.h: -------------------------------------------------------------------------------- 1 | /* 7zCrc.h -- CRC32 calculation 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_CRC_H 5 | #define __7Z_CRC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | extern UInt32 g_CrcTable[]; 12 | 13 | /* Call CrcGenerateTable one time before other CRC functions */ 14 | void MY_FAST_CALL CrcGenerateTable(void); 15 | 16 | #define CRC_INIT_VAL 0xFFFFFFFF 17 | #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL) 18 | #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) 19 | 20 | UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size); 21 | UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size); 22 | 23 | EXTERN_C_END 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/7zVersion.h: -------------------------------------------------------------------------------- 1 | #define MY_VER_MAJOR 22 2 | #define MY_VER_MINOR 01 3 | #define MY_VER_BUILD 0 4 | #define MY_VERSION_NUMBERS "22.01" 5 | #define MY_VERSION MY_VERSION_NUMBERS 6 | 7 | #ifdef MY_CPU_NAME 8 | #define MY_VERSION_CPU MY_VERSION " (" MY_CPU_NAME ")" 9 | #else 10 | #define MY_VERSION_CPU MY_VERSION 11 | #endif 12 | 13 | #define MY_DATE "2022-07-15" 14 | #undef MY_COPYRIGHT 15 | #undef MY_VERSION_COPYRIGHT_DATE 16 | #define MY_AUTHOR_NAME "Igor Pavlov" 17 | #define MY_COPYRIGHT_PD "Igor Pavlov : Public domain" 18 | #define MY_COPYRIGHT_CR "Copyright (c) 1999-2022 Igor Pavlov" 19 | 20 | #ifdef USE_COPYRIGHT_CR 21 | #define MY_COPYRIGHT MY_COPYRIGHT_CR 22 | #else 23 | #define MY_COPYRIGHT MY_COPYRIGHT_PD 24 | #endif 25 | 26 | #define MY_COPYRIGHT_DATE MY_COPYRIGHT " : " MY_DATE 27 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION_CPU " : " MY_COPYRIGHT " : " MY_DATE 28 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Alloc.h: -------------------------------------------------------------------------------- 1 | /* Alloc.h -- Memory allocation functions 2 | 2021-07-13 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __COMMON_ALLOC_H 5 | #define __COMMON_ALLOC_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void *MyAlloc(size_t size); 12 | void MyFree(void *address); 13 | 14 | #ifdef _WIN32 15 | 16 | void SetLargePageSize(void); 17 | 18 | void *MidAlloc(size_t size); 19 | void MidFree(void *address); 20 | void *BigAlloc(size_t size); 21 | void BigFree(void *address); 22 | 23 | #else 24 | 25 | #define MidAlloc(size) MyAlloc(size) 26 | #define MidFree(address) MyFree(address) 27 | #define BigAlloc(size) MyAlloc(size) 28 | #define BigFree(address) MyFree(address) 29 | 30 | #endif 31 | 32 | extern const ISzAlloc g_Alloc; 33 | 34 | #ifdef _WIN32 35 | extern const ISzAlloc g_BigAlloc; 36 | extern const ISzAlloc g_MidAlloc; 37 | #else 38 | #define g_BigAlloc g_AlignedAlloc 39 | #define g_MidAlloc g_AlignedAlloc 40 | #endif 41 | 42 | extern const ISzAlloc g_AlignedAlloc; 43 | 44 | 45 | typedef struct 46 | { 47 | ISzAlloc vt; 48 | ISzAllocPtr baseAlloc; 49 | unsigned numAlignBits; /* ((1 << numAlignBits) >= sizeof(void *)) */ 50 | size_t offset; /* (offset == (k * sizeof(void *)) && offset < (1 << numAlignBits) */ 51 | } CAlignOffsetAlloc; 52 | 53 | void AlignOffsetAlloc_CreateVTable(CAlignOffsetAlloc *p); 54 | 55 | 56 | EXTERN_C_END 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Asm/arm/7zCrcOpt.asm: -------------------------------------------------------------------------------- 1 | CODE32 2 | 3 | EXPORT |CrcUpdateT4@16| 4 | 5 | AREA |.text|, CODE, ARM 6 | 7 | MACRO 8 | CRC32_STEP_1 9 | 10 | ldrb r4, [r1], #1 11 | subs r2, r2, #1 12 | eor r4, r4, r0 13 | and r4, r4, #0xFF 14 | ldr r4, [r3, +r4, lsl #2] 15 | eor r0, r4, r0, lsr #8 16 | 17 | MEND 18 | 19 | 20 | MACRO 21 | CRC32_STEP_4 $STREAM_WORD 22 | 23 | eor r7, r7, r8 24 | eor r7, r7, r9 25 | eor r0, r0, r7 26 | eor r0, r0, $STREAM_WORD 27 | ldr $STREAM_WORD, [r1], #4 28 | 29 | and r7, r0, #0xFF 30 | and r8, r0, #0xFF00 31 | and r9, r0, #0xFF0000 32 | and r0, r0, #0xFF000000 33 | 34 | ldr r7, [r6, +r7, lsl #2] 35 | ldr r8, [r5, +r8, lsr #6] 36 | ldr r9, [r4, +r9, lsr #14] 37 | ldr r0, [r3, +r0, lsr #22] 38 | 39 | MEND 40 | 41 | 42 | |CrcUpdateT4@16| PROC 43 | 44 | stmdb sp!, {r4-r11, lr} 45 | cmp r2, #0 46 | beq |$fin| 47 | 48 | |$v1| 49 | tst r1, #7 50 | beq |$v2| 51 | CRC32_STEP_1 52 | bne |$v1| 53 | 54 | |$v2| 55 | cmp r2, #16 56 | blo |$v3| 57 | 58 | ldr r10, [r1], #4 59 | ldr r11, [r1], #4 60 | 61 | add r4, r3, #0x400 62 | add r5, r3, #0x800 63 | add r6, r3, #0xC00 64 | 65 | mov r7, #0 66 | mov r8, #0 67 | mov r9, #0 68 | 69 | sub r2, r2, #16 70 | 71 | |$loop| 72 | ; pld [r1, #0x40] 73 | 74 | CRC32_STEP_4 r10 75 | CRC32_STEP_4 r11 76 | 77 | subs r2, r2, #8 78 | bhs |$loop| 79 | 80 | sub r1, r1, #8 81 | add r2, r2, #16 82 | 83 | eor r7, r7, r8 84 | eor r7, r7, r9 85 | eor r0, r0, r7 86 | 87 | |$v3| 88 | cmp r2, #0 89 | beq |$fin| 90 | 91 | |$v4| 92 | CRC32_STEP_1 93 | bne |$v4| 94 | 95 | |$fin| 96 | ldmia sp!, {r4-r11, pc} 97 | 98 | |CrcUpdateT4@16| ENDP 99 | 100 | END 101 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/BraIA64.c: -------------------------------------------------------------------------------- 1 | /* BraIA64.c -- Converter for IA-64 code 2 | 2017-01-26 : Igor Pavlov : Public domain */ 3 | 4 | #include "Precomp.h" 5 | 6 | #include "CpuArch.h" 7 | #include "Bra.h" 8 | 9 | SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) 10 | { 11 | SizeT i; 12 | if (size < 16) 13 | return 0; 14 | size -= 16; 15 | i = 0; 16 | do 17 | { 18 | unsigned m = ((UInt32)0x334B0000 >> (data[i] & 0x1E)) & 3; 19 | if (m) 20 | { 21 | m++; 22 | do 23 | { 24 | Byte *p = data + (i + (size_t)m * 5 - 8); 25 | if (((p[3] >> m) & 15) == 5 26 | && (((p[-1] | ((UInt32)p[0] << 8)) >> m) & 0x70) == 0) 27 | { 28 | unsigned raw = GetUi32(p); 29 | unsigned v = raw >> m; 30 | v = (v & 0xFFFFF) | ((v & (1 << 23)) >> 3); 31 | 32 | v <<= 4; 33 | if (encoding) 34 | v += ip + (UInt32)i; 35 | else 36 | v -= ip + (UInt32)i; 37 | v >>= 4; 38 | 39 | v &= 0x1FFFFF; 40 | v += 0x700000; 41 | v &= 0x8FFFFF; 42 | raw &= ~((UInt32)0x8FFFFF << m); 43 | raw |= (v << m); 44 | SetUi32(p, raw); 45 | } 46 | } 47 | while (++m <= 4); 48 | } 49 | i += 16; 50 | } 51 | while (i <= size); 52 | return i; 53 | } 54 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Compiler.h: -------------------------------------------------------------------------------- 1 | /* Compiler.h 2 | 2021-01-05 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_COMPILER_H 5 | #define __7Z_COMPILER_H 6 | 7 | #ifdef __clang__ 8 | #pragma clang diagnostic ignored "-Wunused-private-field" 9 | #endif 10 | 11 | #ifdef _MSC_VER 12 | 13 | #ifdef UNDER_CE 14 | #define RPC_NO_WINDOWS_H 15 | /* #pragma warning(disable : 4115) // '_RPC_ASYNC_STATE' : named type definition in parentheses */ 16 | #pragma warning(disable : 4201) // nonstandard extension used : nameless struct/union 17 | #pragma warning(disable : 4214) // nonstandard extension used : bit field types other than int 18 | #endif 19 | 20 | #if _MSC_VER >= 1300 21 | #pragma warning(disable : 4996) // This function or variable may be unsafe 22 | #else 23 | #pragma warning(disable : 4511) // copy constructor could not be generated 24 | #pragma warning(disable : 4512) // assignment operator could not be generated 25 | #pragma warning(disable : 4514) // unreferenced inline function has been removed 26 | #pragma warning(disable : 4702) // unreachable code 27 | #pragma warning(disable : 4710) // not inlined 28 | #pragma warning(disable : 4714) // function marked as __forceinline not inlined 29 | #pragma warning(disable : 4786) // identifier was truncated to '255' characters in the debug information 30 | #endif 31 | 32 | #ifdef __clang__ 33 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 34 | #pragma clang diagnostic ignored "-Wmicrosoft-exception-spec" 35 | // #pragma clang diagnostic ignored "-Wreserved-id-macro" 36 | #endif 37 | 38 | #endif 39 | 40 | #define UNUSED_VAR(x) (void)x; 41 | /* #define UNUSED_VAR(x) x=x; */ 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Delta.h: -------------------------------------------------------------------------------- 1 | /* Delta.h -- Delta converter 2 | 2013-01-18 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __DELTA_H 5 | #define __DELTA_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #define DELTA_STATE_SIZE 256 12 | 13 | void Delta_Init(Byte *state); 14 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size); 15 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size); 16 | 17 | EXTERN_C_END 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/DllSecur.h: -------------------------------------------------------------------------------- 1 | /* DllSecur.h -- DLL loading for security 2 | 2018-02-19 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __DLL_SECUR_H 5 | #define __DLL_SECUR_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #ifdef _WIN32 12 | 13 | void My_SetDefaultDllDirectories(void); 14 | void LoadSecurityDlls(void); 15 | 16 | #endif 17 | 18 | EXTERN_C_END 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/LICENSE: -------------------------------------------------------------------------------- 1 | LZMA SDK is placed in the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original LZMA SDK code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/LzHash.h: -------------------------------------------------------------------------------- 1 | /* LzHash.h -- HASH functions for LZ algorithms 2 | 2019-10-30 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __LZ_HASH_H 5 | #define __LZ_HASH_H 6 | 7 | /* 8 | (kHash2Size >= (1 << 8)) : Required 9 | (kHash3Size >= (1 << 16)) : Required 10 | */ 11 | 12 | #define kHash2Size (1 << 10) 13 | #define kHash3Size (1 << 16) 14 | // #define kHash4Size (1 << 20) 15 | 16 | #define kFix3HashSize (kHash2Size) 17 | #define kFix4HashSize (kHash2Size + kHash3Size) 18 | // #define kFix5HashSize (kHash2Size + kHash3Size + kHash4Size) 19 | 20 | /* 21 | We use up to 3 crc values for hash: 22 | crc0 23 | crc1 << Shift_1 24 | crc2 << Shift_2 25 | (Shift_1 = 5) and (Shift_2 = 10) is good tradeoff. 26 | Small values for Shift are not good for collision rate. 27 | Big value for Shift_2 increases the minimum size 28 | of hash table, that will be slow for small files. 29 | */ 30 | 31 | #define kLzHash_CrcShift_1 5 32 | #define kLzHash_CrcShift_2 10 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Lzma86Dec.c: -------------------------------------------------------------------------------- 1 | /* Lzma86Dec.c -- LZMA + x86 (BCJ) Filter Decoder 2 | 2016-05-16 : Igor Pavlov : Public domain */ 3 | 4 | #include "Precomp.h" 5 | 6 | #include "Lzma86.h" 7 | 8 | #include "Alloc.h" 9 | #include "Bra.h" 10 | #include "LzmaDec.h" 11 | 12 | SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) 13 | { 14 | unsigned i; 15 | if (srcLen < LZMA86_HEADER_SIZE) 16 | return SZ_ERROR_INPUT_EOF; 17 | *unpackSize = 0; 18 | for (i = 0; i < sizeof(UInt64); i++) 19 | *unpackSize += ((UInt64)src[LZMA86_SIZE_OFFSET + i]) << (8 * i); 20 | return SZ_OK; 21 | } 22 | 23 | SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) 24 | { 25 | SRes res; 26 | int useFilter; 27 | SizeT inSizePure; 28 | ELzmaStatus status; 29 | 30 | if (*srcLen < LZMA86_HEADER_SIZE) 31 | return SZ_ERROR_INPUT_EOF; 32 | 33 | useFilter = src[0]; 34 | 35 | if (useFilter > 1) 36 | { 37 | *destLen = 0; 38 | return SZ_ERROR_UNSUPPORTED; 39 | } 40 | 41 | inSizePure = *srcLen - LZMA86_HEADER_SIZE; 42 | res = LzmaDecode(dest, destLen, src + LZMA86_HEADER_SIZE, &inSizePure, 43 | src + 1, LZMA_PROPS_SIZE, LZMA_FINISH_ANY, &status, &g_Alloc); 44 | *srcLen = inSizePure + LZMA86_HEADER_SIZE; 45 | if (res != SZ_OK) 46 | return res; 47 | if (useFilter == 1) 48 | { 49 | UInt32 x86State; 50 | x86_Convert_Init(x86State); 51 | x86_Convert(dest, *destLen, 0, &x86State, 0); 52 | } 53 | return SZ_OK; 54 | } 55 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/LzmaLib.c: -------------------------------------------------------------------------------- 1 | /* LzmaLib.c -- LZMA library wrapper 2 | 2015-06-13 : Igor Pavlov : Public domain */ 3 | 4 | #include "Alloc.h" 5 | #include "LzmaDec.h" 6 | #include "LzmaEnc.h" 7 | #include "LzmaLib.h" 8 | 9 | MY_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen, 10 | unsigned char *outProps, size_t *outPropsSize, 11 | int level, /* 0 <= level <= 9, default = 5 */ 12 | unsigned dictSize, /* use (1 << N) or (3 << N). 4 KB < dictSize <= 128 MB */ 13 | int lc, /* 0 <= lc <= 8, default = 3 */ 14 | int lp, /* 0 <= lp <= 4, default = 0 */ 15 | int pb, /* 0 <= pb <= 4, default = 2 */ 16 | int fb, /* 5 <= fb <= 273, default = 32 */ 17 | int numThreads /* 1 or 2, default = 2 */ 18 | ) 19 | { 20 | CLzmaEncProps props; 21 | LzmaEncProps_Init(&props); 22 | props.level = level; 23 | props.dictSize = dictSize; 24 | props.lc = lc; 25 | props.lp = lp; 26 | props.pb = pb; 27 | props.fb = fb; 28 | props.numThreads = numThreads; 29 | 30 | return LzmaEncode(dest, destLen, src, srcLen, &props, outProps, outPropsSize, 0, 31 | NULL, &g_Alloc, &g_Alloc); 32 | } 33 | 34 | 35 | MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen, 36 | const unsigned char *props, size_t propsSize) 37 | { 38 | ELzmaStatus status; 39 | return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize, LZMA_FINISH_ANY, &status, &g_Alloc); 40 | } 41 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Precomp.h: -------------------------------------------------------------------------------- 1 | /* Precomp.h -- StdAfx 2 | 2013-11-12 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_PRECOMP_H 5 | #define __7Z_PRECOMP_H 6 | 7 | #include "Compiler.h" 8 | /* #include "7zTypes.h" */ 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/RotateDefs.h: -------------------------------------------------------------------------------- 1 | /* RotateDefs.h -- Rotate functions 2 | 2015-03-25 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __ROTATE_DEFS_H 5 | #define __ROTATE_DEFS_H 6 | 7 | #ifdef _MSC_VER 8 | 9 | #include 10 | 11 | /* don't use _rotl with MINGW. It can insert slow call to function. */ 12 | 13 | /* #if (_MSC_VER >= 1200) */ 14 | #pragma intrinsic(_rotl) 15 | #pragma intrinsic(_rotr) 16 | /* #endif */ 17 | 18 | #define rotlFixed(x, n) _rotl((x), (n)) 19 | #define rotrFixed(x, n) _rotr((x), (n)) 20 | 21 | #else 22 | 23 | /* new compilers can translate these macros to fast commands. */ 24 | 25 | #define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) 26 | #define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n)))) 27 | 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/Sort.h: -------------------------------------------------------------------------------- 1 | /* Sort.h -- Sort functions 2 | 2014-04-05 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_SORT_H 5 | #define __7Z_SORT_H 6 | 7 | #include "7zTypes.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | void HeapSort(UInt32 *p, size_t size); 12 | void HeapSort64(UInt64 *p, size_t size); 13 | 14 | /* void HeapSortRef(UInt32 *p, UInt32 *vals, size_t size); */ 15 | 16 | EXTERN_C_END 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/installer.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/lzma-22.01/installer.txt -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/lzma-history.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/lzma-22.01/lzma-history.txt -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_clang.mak: -------------------------------------------------------------------------------- 1 | PLATFORM= 2 | O=b/c 3 | IS_X64= 4 | IS_X86= 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH= 8 | USE_ASM= 9 | CC=$(CROSS_COMPILE)clang 10 | CXX=$(CROSS_COMPILE)clang++ 11 | USE_CLANG=1 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_clang_arm64.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=arm64 2 | O=b/c_$(PLATFORM) 3 | IS_X64= 4 | IS_X86= 5 | IS_ARM64=1 6 | CROSS_COMPILE= 7 | MY_ARCH= 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)clang 10 | CXX=$(CROSS_COMPILE)clang++ 11 | USE_CLANG=1 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_clang_x64.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=x64 2 | O=b/c_$(PLATFORM) 3 | IS_X64=1 4 | IS_X86= 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH= 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)clang 10 | CXX=$(CROSS_COMPILE)clang++ 11 | USE_CLANG=1 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_clang_x86.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=x86 2 | O=b/c_$(PLATFORM) 3 | IS_X64= 4 | IS_X86=1 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH=-m32 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)clang 10 | CXX=$(CROSS_COMPILE)clang++ 11 | USE_CLANG=1 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_gcc.mak: -------------------------------------------------------------------------------- 1 | PLATFORM= 2 | O=b/g 3 | IS_X64= 4 | IS_X86= 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH= 8 | USE_ASM= 9 | CC=$(CROSS_COMPILE)gcc 10 | CXX=$(CROSS_COMPILE)g++ 11 | 12 | # -march=armv8-a+crc+crypto 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_gcc_arm64.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=arm64 2 | O=b/g_$(PLATFORM) 3 | IS_X64= 4 | IS_X86= 5 | IS_ARM64=1 6 | CROSS_COMPILE= 7 | MY_ARCH=-mtune=cortex-a53 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)gcc 10 | CXX=$(CROSS_COMPILE)g++ 11 | 12 | # -march=armv8-a+crc+crypto 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_gcc_x64.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=x64 2 | O=b/g_$(PLATFORM) 3 | IS_X64=1 4 | IS_X86= 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH= 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)gcc 10 | CXX=$(CROSS_COMPILE)g++ 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_gcc_x86.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=x86 2 | O=b/g_$(PLATFORM) 3 | IS_X64= 4 | IS_X86=1 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH=-m32 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)gcc 10 | CXX=$(CROSS_COMPILE)g++ 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_mac_arm64.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=arm64 2 | O=b/m_$(PLATFORM) 3 | IS_X64= 4 | IS_X86= 5 | IS_ARM64=1 6 | CROSS_COMPILE= 7 | MY_ARCH=-arch arm64 8 | USE_ASM=1 9 | CC=$(CROSS_COMPILE)clang 10 | CXX=$(CROSS_COMPILE)clang++ 11 | USE_CLANG=1 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/var_mac_x64.mak: -------------------------------------------------------------------------------- 1 | PLATFORM=x64 2 | O=b/m_$(PLATFORM) 3 | IS_X64=1 4 | IS_X86= 5 | IS_ARM64= 6 | CROSS_COMPILE= 7 | MY_ARCH=-arch x86_64 8 | USE_ASM= 9 | CC=$(CROSS_COMPILE)clang 10 | CXX=$(CROSS_COMPILE)clang++ 11 | USE_CLANG=1 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/warn_clang.mak: -------------------------------------------------------------------------------- 1 | CFLAGS_WARN_CLANG_3_8_UNIQ = \ 2 | -Wno-reserved-id-macro \ 3 | -Wno-old-style-cast \ 4 | -Wno-c++11-long-long \ 5 | -Wno-unused-macros \ 6 | 7 | CFLAGS_WARN_CLANG_3_8 = \ 8 | $(CFLAGS_WARN_CLANG_3_8_UNIQ) \ 9 | -Weverything \ 10 | -Wno-extra-semi \ 11 | -Wno-sign-conversion \ 12 | -Wno-language-extension-token \ 13 | -Wno-global-constructors \ 14 | -Wno-non-virtual-dtor \ 15 | -Wno-switch-enum \ 16 | -Wno-covered-switch-default \ 17 | -Wno-cast-qual \ 18 | -Wno-padded \ 19 | -Wno-exit-time-destructors \ 20 | -Wno-weak-vtables \ 21 | 22 | CFLAGS_WARN_CLANG_12= $(CFLAGS_WARN_CLANG_3_8) \ 23 | -Wno-extra-semi-stmt \ 24 | -Wno-zero-as-null-pointer-constant \ 25 | -Wno-deprecated-dynamic-exception-spec \ 26 | -Wno-c++98-compat-pedantic \ 27 | -Wno-atomic-implicit-seq-cst \ 28 | -Wconversion \ 29 | -Wno-sign-conversion \ 30 | 31 | CFLAGS_WARN_1 = \ 32 | -Wno-deprecated-copy-dtor \ 33 | 34 | 35 | 36 | 37 | CFLAGS_WARN = $(CFLAGS_WARN_CLANG_12) $(CFLAGS_WARN_1) 38 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/warn_clang_mac.mak: -------------------------------------------------------------------------------- 1 | CFLAGS_WARN_CLANG_3_8_UNIQ = \ 2 | -Wno-reserved-id-macro \ 3 | -Wno-old-style-cast \ 4 | -Wno-c++11-long-long \ 5 | -Wno-unused-macros \ 6 | 7 | CFLAGS_WARN_CLANG_3_8 = \ 8 | $(CFLAGS_WARN_CLANG_3_8_UNIQ) \ 9 | -Weverything \ 10 | -Wno-extra-semi \ 11 | -Wno-sign-conversion \ 12 | -Wno-language-extension-token \ 13 | -Wno-global-constructors \ 14 | -Wno-non-virtual-dtor \ 15 | -Wno-switch-enum \ 16 | -Wno-covered-switch-default \ 17 | -Wno-cast-qual \ 18 | -Wno-padded \ 19 | -Wno-exit-time-destructors \ 20 | -Wno-weak-vtables \ 21 | 22 | CFLAGS_WARN_CLANG_12= $(CFLAGS_WARN_CLANG_3_8) \ 23 | -Wno-extra-semi-stmt \ 24 | -Wno-zero-as-null-pointer-constant \ 25 | -Wno-deprecated-dynamic-exception-spec \ 26 | -Wno-c++98-compat-pedantic \ 27 | -Wno-atomic-implicit-seq-cst \ 28 | -Wconversion \ 29 | -Wno-sign-conversion \ 30 | 31 | CFLAGS_WARN_MAC = \ 32 | -Wno-poison-system-directories \ 33 | -Wno-c++11-long-long \ 34 | -Wno-atomic-implicit-seq-cst \ 35 | 36 | 37 | CFLAGS_WARN = $(CFLAGS_WARN_CLANG_12) $(CFLAGS_WARN_MAC) 38 | -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-22.01/warn_gcc.mak: -------------------------------------------------------------------------------- 1 | CFLAGS_WARN_GCC_4_5 = \ 2 | 3 | CFLAGS_WARN_GCC_6 = \ 4 | -Waddress \ 5 | -Waggressive-loop-optimizations \ 6 | -Wattributes \ 7 | -Wbool-compare \ 8 | -Wcast-align \ 9 | -Wcomment \ 10 | -Wdiv-by-zero \ 11 | -Wduplicated-cond \ 12 | -Wformat-contains-nul \ 13 | -Winit-self \ 14 | -Wint-to-pointer-cast \ 15 | -Wunused \ 16 | -Wunused-macros \ 17 | 18 | # -Wno-strict-aliasing 19 | 20 | CFLAGS_WARN_GCC_9 = \ 21 | -Waddress \ 22 | -Waddress-of-packed-member \ 23 | -Waggressive-loop-optimizations \ 24 | -Wattributes \ 25 | -Wbool-compare \ 26 | -Wbool-operation \ 27 | -Wcast-align \ 28 | -Wcast-align=strict \ 29 | -Wcomment \ 30 | -Wdangling-else \ 31 | -Wdiv-by-zero \ 32 | -Wduplicated-branches \ 33 | -Wduplicated-cond \ 34 | -Wformat-contains-nul \ 35 | -Wimplicit-fallthrough=5 \ 36 | -Winit-self \ 37 | -Wint-in-bool-context \ 38 | -Wint-to-pointer-cast \ 39 | -Wunused \ 40 | -Wunused-macros \ 41 | -Wconversion \ 42 | 43 | # -Wno-sign-conversion \ 44 | 45 | CFLAGS_WARN_GCC_PPMD_UNALIGNED = \ 46 | -Wno-strict-aliasing \ 47 | 48 | 49 | CFLAGS_WARN = $(CFLAGS_WARN_GCC_9) \ 50 | 51 | # $(CFLAGS_WARN_GCC_PPMD_UNALIGNED) 52 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright notice: 2 | 3 | (C) 1995-2022 Jean-loup Gailly and Mark Adler 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Jean-loup Gailly Mark Adler 22 | jloup@gzip.org madler@alumni.caltech.edu 23 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/ada/zlib.gpr: -------------------------------------------------------------------------------- 1 | project Zlib is 2 | 3 | for Languages use ("Ada"); 4 | for Source_Dirs use ("."); 5 | for Object_Dir use "."; 6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo"); 7 | 8 | package Compiler is 9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst"); 10 | end Compiler; 11 | 12 | package Linker is 13 | for Default_Switches ("ada") use ("-lz"); 14 | end Linker; 15 | 16 | package Builder is 17 | for Default_Switches ("ada") use ("-s", "-gnatQ"); 18 | end Builder; 19 | 20 | end Zlib; 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/blast/Makefile: -------------------------------------------------------------------------------- 1 | blast: blast.c blast.h 2 | cc -DTEST -o blast blast.c 3 | 4 | test: blast 5 | blast < test.pk | cmp - test.txt 6 | 7 | clean: 8 | rm -f blast blast.o 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/blast/README: -------------------------------------------------------------------------------- 1 | Read blast.h for purpose and usage. 2 | 3 | Mark Adler 4 | madler@alumni.caltech.edu 5 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/blast/test.pk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/blast/test.pk -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/blast/test.txt: -------------------------------------------------------------------------------- 1 | AIAIAIAIAIAIA -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/delphi/ZLibConst.pas: -------------------------------------------------------------------------------- 1 | unit ZLibConst; 2 | 3 | interface 4 | 5 | resourcestring 6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small'; 7 | sInvalidStreamOp = 'Invalid stream operation'; 8 | 9 | implementation 10 | 11 | end. 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib.build: -------------------------------------------------------------------------------- 1 |  2 | 3 | A .Net wrapper library around ZLib1.dll 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib.chm -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET 13 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET 14 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET 15 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/ChecksumImpl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/ChecksumImpl.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/CircularBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/CircularBuffer.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/CodecBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/CodecBase.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/Deflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/Deflater.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/DotZLib.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/DotZLib.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/GZipStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/GZipStream.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/Inflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/DotZLib/Inflater.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/dotzlib/LICENSE_1_0.txt: -------------------------------------------------------------------------------- 1 | Boost Software License - Version 1.0 - August 17th, 2003 2 | 3 | Permission is hereby granted, free of charge, to any person or organization 4 | obtaining a copy of the software and accompanying documentation covered by 5 | this license (the "Software") to use, reproduce, display, distribute, 6 | execute, and transmit the Software, and to prepare derivative works of the 7 | Software, and to permit third-parties to whom the Software is furnished to 8 | do so, all subject to the following: 9 | 10 | The copyright notices in the Software and this entire statement, including 11 | the above license grant, this restriction and the following disclaimer, 12 | must be included in all copies of the Software, in whole or in part, and 13 | all derivative works of the Software, unless such copies or derivative 14 | works are solely in the form of machine-executable object code generated by 15 | a source language processor. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 | DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/infback9/README: -------------------------------------------------------------------------------- 1 | See infback9.h for what this is and how to use it. 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/infback9/infback9.h: -------------------------------------------------------------------------------- 1 | /* infback9.h -- header for using inflateBack9 functions 2 | * Copyright (C) 2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* 7 | * This header file and associated patches provide a decoder for PKWare's 8 | * undocumented deflate64 compression method (method 9). Use with infback9.c, 9 | * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported. 10 | * This should be compiled with zlib, since it uses zutil.h and zutil.o. 11 | * This code has not yet been tested on 16-bit architectures. See the 12 | * comments in zlib.h for inflateBack() usage. These functions are used 13 | * identically, except that there is no windowBits parameter, and a 64K 14 | * window must be provided. Also if int's are 16 bits, then a zero for 15 | * the third parameter of the "out" function actually means 65536UL. 16 | * zlib.h must be included before this header file. 17 | */ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm, 24 | in_func in, void FAR *in_desc, 25 | out_func out, void FAR *out_desc)); 26 | ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm)); 27 | ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm, 28 | unsigned char FAR *window, 29 | const char *version, 30 | int stream_size)); 31 | #define inflateBack9Init(strm, window) \ 32 | inflateBack9Init_((strm), (window), \ 33 | ZLIB_VERSION, sizeof(z_stream)) 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/iostream/test.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "zfstream.h" 3 | 4 | int main() { 5 | 6 | // Construct a stream object with this filebuffer. Anything sent 7 | // to this stream will go to standard out. 8 | gzofstream os( 1, ios::out ); 9 | 10 | // This text is getting compressed and sent to stdout. 11 | // To prove this, run 'test | zcat'. 12 | os << "Hello, Mommy" << endl; 13 | 14 | os << setcompressionlevel( Z_NO_COMPRESSION ); 15 | os << "hello, hello, hi, ho!" << endl; 16 | 17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION ) 18 | << "I'm compressing again" << endl; 19 | 20 | os.close(); 21 | 22 | return 0; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/iostream2/zstream_test.cpp: -------------------------------------------------------------------------------- 1 | #include "zstream.h" 2 | #include 3 | #include 4 | #include 5 | 6 | void main() { 7 | char h[256] = "Hello"; 8 | char* g = "Goodbye"; 9 | ozstream out("temp.gz"); 10 | out < "This works well" < h < g; 11 | out.close(); 12 | 13 | izstream in("temp.gz"); // read it back 14 | char *x = read_string(in), *y = new char[256], z[256]; 15 | in > y > z; 16 | in.close(); 17 | cout << x << endl << y << endl << z << endl; 18 | 19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results 20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl; 21 | out << z << endl << y << endl << x << endl; 22 | out << 1.1234567890123456789 << endl; 23 | 24 | delete[] x; delete[] y; 25 | } 26 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/iostream3/README: -------------------------------------------------------------------------------- 1 | These classes provide a C++ stream interface to the zlib library. It allows you 2 | to do things like: 3 | 4 | gzofstream outf("blah.gz"); 5 | outf << "These go into the gzip file " << 123 << endl; 6 | 7 | It does this by deriving a specialized stream buffer for gzipped files, which is 8 | the way Stroustrup would have done it. :-> 9 | 10 | The gzifstream and gzofstream classes were originally written by Kevin Ruland 11 | and made available in the zlib contrib/iostream directory. The older version still 12 | compiles under gcc 2.xx, but not under gcc 3.xx, which sparked the development of 13 | this version. 14 | 15 | The new classes are as standard-compliant as possible, closely following the 16 | approach of the standard library's fstream classes. It compiles under gcc versions 17 | 3.2 and 3.3, but not under gcc 2.xx. This is mainly due to changes in the standard 18 | library naming scheme. The new version of gzifstream/gzofstream/gzfilebuf differs 19 | from the previous one in the following respects: 20 | - added showmanyc 21 | - added setbuf, with support for unbuffered output via setbuf(0,0) 22 | - a few bug fixes of stream behavior 23 | - gzipped output file opened with default compression level instead of maximum level 24 | - setcompressionlevel()/strategy() members replaced by single setcompression() 25 | 26 | The code is provided "as is", with the permission to use, copy, modify, distribute 27 | and sell it for any purpose without fee. 28 | 29 | Ludwig Schwardt 30 | 31 | 32 | DSP Lab 33 | Electrical & Electronic Engineering Department 34 | University of Stellenbosch 35 | South Africa 36 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/iostream3/TODO: -------------------------------------------------------------------------------- 1 | Possible upgrades to gzfilebuf: 2 | 3 | - The ability to do putback (e.g. putbackfail) 4 | 5 | - The ability to seek (zlib supports this, but could be slow/tricky) 6 | 7 | - Simultaneous read/write access (does it make sense?) 8 | 9 | - Support for ios_base::ate open mode 10 | 11 | - Locale support? 12 | 13 | - Check public interface to see which calls give problems 14 | (due to dependence on library internals) 15 | 16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying 17 | of stream buffer to stream ( i.e. os << is.rdbuf(); ) 18 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/iostream3/test.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Test program for gzifstream and gzofstream 3 | * 4 | * by Ludwig Schwardt 5 | * original version by Kevin Ruland 6 | */ 7 | 8 | #include "zfstream.h" 9 | #include // for cout 10 | 11 | int main() { 12 | 13 | gzofstream outf; 14 | gzifstream inf; 15 | char buf[80]; 16 | 17 | outf.open("test1.txt.gz"); 18 | outf << "The quick brown fox sidestepped the lazy canine\n" 19 | << 1.3 << "\nPlan " << 9 << std::endl; 20 | outf.close(); 21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" 22 | << "The quick brown fox sidestepped the lazy canine\n" 23 | << 1.3 << "\nPlan " << 9 << std::endl; 24 | 25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; 26 | inf.open("test1.txt.gz"); 27 | while (inf.getline(buf,80,'\n')) { 28 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; 29 | } 30 | inf.close(); 31 | 32 | outf.rdbuf()->pubsetbuf(0,0); 33 | outf.open("test2.txt.gz"); 34 | outf << setcompression(Z_NO_COMPRESSION) 35 | << "The quick brown fox sidestepped the lazy canine\n" 36 | << 1.3 << "\nPlan " << 9 << std::endl; 37 | outf.close(); 38 | std::cout << "\nWrote the same message to 'test2.txt.gz' in uncompressed form"; 39 | 40 | std::cout << "\nReading 'test2.txt.gz' (unbuffered) produces:\n"; 41 | inf.rdbuf()->pubsetbuf(0,0); 42 | inf.open("test2.txt.gz"); 43 | while (inf.getline(buf,80,'\n')) { 44 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; 45 | } 46 | inf.close(); 47 | 48 | return 0; 49 | 50 | } 51 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS := $(CFLAGS) -O -I../.. 3 | 4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a 5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a 6 | 7 | .c.o: 8 | $(CC) -c $(CFLAGS) $*.c 9 | 10 | all: miniunz minizip 11 | 12 | miniunz: $(UNZ_OBJS) 13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) 14 | 15 | minizip: $(ZIP_OBJS) 16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) 17 | 18 | test: miniunz minizip 19 | @rm -f test.* 20 | @echo hello hello hello > test.txt 21 | ./minizip test test.txt 22 | ./miniunz -l test.zip 23 | @mv test.txt test.old 24 | ./miniunz test.zip 25 | @cmp test.txt test.old 26 | @rm -f test.* 27 | 28 | clean: 29 | /bin/rm -f *.o *~ minizip miniunz test.* 30 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libminizip.la 2 | 3 | if COND_DEMOS 4 | bin_PROGRAMS = miniunzip minizip 5 | endif 6 | 7 | zlib_top_srcdir = $(top_srcdir)/../.. 8 | zlib_top_builddir = $(top_builddir)/../.. 9 | 10 | AM_CPPFLAGS = -I$(zlib_top_srcdir) 11 | AM_LDFLAGS = -L$(zlib_top_builddir) 12 | 13 | if WIN32 14 | iowin32_src = iowin32.c 15 | iowin32_h = iowin32.h 16 | endif 17 | 18 | libminizip_la_SOURCES = \ 19 | ioapi.c \ 20 | mztools.c \ 21 | unzip.c \ 22 | zip.c \ 23 | ${iowin32_src} 24 | 25 | libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz 26 | 27 | minizip_includedir = $(includedir)/minizip 28 | minizip_include_HEADERS = \ 29 | crypt.h \ 30 | ioapi.h \ 31 | mztools.h \ 32 | unzip.h \ 33 | zip.h \ 34 | ${iowin32_h} 35 | 36 | pkgconfigdir = $(libdir)/pkgconfig 37 | pkgconfig_DATA = minizip.pc 38 | 39 | EXTRA_PROGRAMS = miniunzip minizip 40 | 41 | miniunzip_SOURCES = miniunz.c 42 | miniunzip_LDADD = libminizip.la 43 | 44 | minizip_SOURCES = minizip.c 45 | minizip_LDADD = libminizip.la -lz 46 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f 3 | 4 | Change in 1.0 (Okt 2009) 5 | - **TODO - Add history** 6 | 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT([minizip], [1.2.13], [bugzilla.redhat.com]) 5 | AC_CONFIG_SRCDIR([minizip.c]) 6 | AM_INIT_AUTOMAKE([foreign]) 7 | LT_INIT 8 | 9 | AC_MSG_CHECKING([whether to build example programs]) 10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs])) 11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes]) 12 | if test "$enable_demos" = yes 13 | then 14 | AC_MSG_RESULT([yes]) 15 | else 16 | AC_MSG_RESULT([no]) 17 | fi 18 | 19 | case "${host}" in 20 | *-mingw* | mingw*) 21 | WIN32="yes" 22 | ;; 23 | *) 24 | ;; 25 | esac 26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 27 | 28 | 29 | AC_SUBST([HAVE_UNISTD_H], [0]) 30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) 31 | AC_CONFIG_FILES([Makefile minizip.pc]) 32 | AC_OUTPUT 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/iowin32.h: -------------------------------------------------------------------------------- 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip 2 | Version 1.1, February 14h, 2010 3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 | 5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 | 7 | Modifications for Zip64 support 8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 9 | 10 | For more info read MiniZip_info.txt 11 | 12 | */ 13 | 14 | #include 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def)); 23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def)); 24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def)); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/make_vms.com: -------------------------------------------------------------------------------- 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig 2 | $ open/write zdef vmsdefs.h 3 | $ copy sys$input: zdef 4 | $ deck 5 | #define unix 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord 10 | $ eod 11 | $ close zdef 12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h 13 | $ cc/include=[--]/prefix=all ioapi.c 14 | $ cc/include=[--]/prefix=all miniunz.c 15 | $ cc/include=[--]/prefix=all unzip.c 16 | $ cc/include=[--]/prefix=all minizip.c 17 | $ cc/include=[--]/prefix=all zip.c 18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib 19 | $ link minizip,zip,ioapi,[--]libz.olb/lib 20 | $ mcr []minizip test minizip_info.txt 21 | $ mcr []miniunz -l test.zip 22 | $ rename minizip_info.txt; minizip_info.txt_old 23 | $ mcr []miniunz test.zip 24 | $ delete test.zip;* 25 | $exit 26 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/minizip.1: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .TH minizip 1 "May 2, 2001" 3 | .\" Please adjust this date whenever revising the manpage. 4 | .\" 5 | .\" Some roff macros, for reference: 6 | .\" .nh disable hyphenation 7 | .\" .hy enable hyphenation 8 | .\" .ad l left justify 9 | .\" .ad b justify to both left and right margins 10 | .\" .nf disable filling 11 | .\" .fi enable filling 12 | .\" .br insert line break 13 | .\" .sp insert n+1 empty lines 14 | .\" for manpage-specific macros, see man(7) 15 | .SH NAME 16 | minizip - create ZIP archives 17 | .SH SYNOPSIS 18 | .B minizip 19 | .RI [ -o ] 20 | zipfile [ " files" ... ] 21 | .SH DESCRIPTION 22 | .B minizip 23 | is a simple tool which allows the creation of compressed file archives 24 | in the ZIP format used by the MS-DOS utility PKZIP. It was written as 25 | a demonstration of the 26 | .IR zlib (3) 27 | library and therefore lack many of the features of the 28 | .IR zip (1) 29 | program. 30 | .SH OPTIONS 31 | The first argument supplied is the name of the ZIP archive to create or 32 | .RI -o 33 | in which case it is ignored and the second argument treated as the 34 | name of the ZIP file. If the ZIP file already exists it will be 35 | overwritten. 36 | .PP 37 | Subsequent arguments specify a list of files to place in the ZIP 38 | archive. If none are specified then an empty archive will be created. 39 | .SH SEE ALSO 40 | .BR miniunzip (1), 41 | .BR zlib (3), 42 | .BR zip (1). 43 | .SH AUTHOR 44 | This program was written by Gilles Vollant. This manual page was 45 | written by Mark Brown . 46 | 47 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/minizip.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/minizip 5 | 6 | Name: minizip 7 | Description: Minizip zip file manipulation library 8 | Requires: 9 | Version: @PACKAGE_VERSION@ 10 | Libs: -L${libdir} -lminizip 11 | Libs.private: -lz 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/minizip/mztools.h: -------------------------------------------------------------------------------- 1 | /* 2 | Additional tools for Minizip 3 | Code: Xavier Roche '2004 4 | License: Same as ZLIB (www.gzip.org) 5 | */ 6 | 7 | #ifndef _zip_tools_H 8 | #define _zip_tools_H 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef _ZLIB_H 15 | #include "zlib.h" 16 | #endif 17 | 18 | #include "unzip.h" 19 | 20 | /* Repair a ZIP file (missing central directory) 21 | file: file to recover 22 | fileOut: output file after recovery 23 | fileOutTmp: temporary file name used for recovery 24 | */ 25 | extern int ZEXPORT unzRepair(const char* file, 26 | const char* fileOut, 27 | const char* fileOutTmp, 28 | uLong* nRecovered, 29 | uLong* bytesRecovered); 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/puff/puff.h: -------------------------------------------------------------------------------- 1 | /* puff.h 2 | Copyright (C) 2002-2013 Mark Adler, all rights reserved 3 | version 2.3, 21 Jan 2013 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the author be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Mark Adler madler@alumni.caltech.edu 22 | */ 23 | 24 | 25 | /* 26 | * See puff.c for purpose and usage. 27 | */ 28 | #ifndef NIL 29 | # define NIL ((unsigned char *)0) /* for no output option */ 30 | #endif 31 | 32 | int puff(unsigned char *dest, /* pointer to destination pointer */ 33 | unsigned long *destlen, /* amount of output space */ 34 | const unsigned char *source, /* pointer to source data pointer */ 35 | unsigned long *sourcelen); /* amount of input available */ 36 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/puff/zeros.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/contrib/puff/zeros.raw -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/testzlib/testzlib.txt: -------------------------------------------------------------------------------- 1 | To build testzLib with Visual Studio 2005: 2 | 3 | copy to a directory file from : 4 | - root of zLib tree 5 | - contrib/testzlib 6 | - contrib/masmx86 7 | - contrib/masmx64 8 | - contrib/vstudio/vc7 9 | 10 | and open testzlib8.sln -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/untgz/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-g 3 | 4 | untgz: untgz.o ../../libz.a 5 | $(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz 6 | 7 | untgz.o: untgz.c ../../zlib.h 8 | $(CC) $(CFLAGS) -c -I../.. untgz.c 9 | 10 | ../../libz.a: 11 | cd ../..; ./configure; make 12 | 13 | clean: 14 | rm -f untgz untgz.o *~ 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/untgz/Makefile.msc: -------------------------------------------------------------------------------- 1 | CC=cl 2 | CFLAGS=-MD 3 | 4 | untgz.exe: untgz.obj ..\..\zlib.lib 5 | $(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib 6 | 7 | untgz.obj: untgz.c ..\..\zlib.h 8 | $(CC) $(CFLAGS) -c -I..\.. untgz.c 9 | 10 | ..\..\zlib.lib: 11 | cd ..\.. 12 | $(MAKE) -f win32\makefile.msc 13 | cd contrib\untgz 14 | 15 | clean: 16 | -del untgz.obj 17 | -del untgz.exe 18 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc10/miniunz.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {048af943-022b-4db6-beeb-a54c34774ee2} 6 | cpp;c;cxx;def;odl;idl;hpj;bat 7 | 8 | 9 | {c1d600d2-888f-4aea-b73e-8b0dd9befa0c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {0844199a-966b-4f19-81db-1e0125e141b9} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc10/minizip.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {c0419b40-bf50-40da-b153-ff74215b79de} 6 | cpp;c;cxx;def;odl;idl;hpj;bat 7 | 8 | 9 | {bb87b070-735b-478e-92ce-7383abb2f36c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {f46ab6a6-548f-43cb-ae96-681abb5bd5db} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc10/testzlibdll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {fa61a89f-93fc-4c89-b29e-36224b7592f4} 6 | cpp;c;cxx;def;odl;idl;hpj;bat 7 | 8 | 9 | {d4b85da0-2ba2-4934-b57f-e2584e3848ee} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {e573e075-00bd-4a7d-bd67-a8cc9bfc5aca} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc10/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 13, 0 6 | PRODUCTVERSION 1, 2, 13, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.13\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc11/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 13, 0 6 | PRODUCTVERSION 1, 2, 13, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.13\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc12/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 13, 0 6 | PRODUCTVERSION 1, 2, 13, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.13\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc14/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 13, 0 6 | PRODUCTVERSION 1, 2, 13, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.13\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/contrib/vstudio/vc9/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 2, 13, 0 6 | PRODUCTVERSION 1, 2, 13, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.13\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/doc/crc-doc.1.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/doc/crc-doc.1.0.pdf -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/msdos/Makefile.emx: -------------------------------------------------------------------------------- 1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. 3 | # For conditions of distribution and use, see copyright notice in zlib.h 4 | 5 | # To compile, or to compile and test, type: 6 | # 7 | # make -fmakefile.emx; make test -fmakefile.emx 8 | # 9 | 10 | CC=gcc 11 | 12 | #CFLAGS=-MMD -O 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 14 | #CFLAGS=-MMD -g -DZLIB_DEBUG 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 16 | -Wstrict-prototypes -Wmissing-prototypes 17 | 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . 19 | CP=copy /Y 20 | # If gnu install.exe is available, replace $(CP) with ginstall. 21 | INSTALL=$(CP) 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: 23 | RM=del 24 | LDLIBS=-L. -lzlib 25 | LD=$(CC) -s -o 26 | LDSHARED=$(CC) 27 | 28 | INCL=zlib.h zconf.h 29 | LIBS=zlib.a 30 | 31 | AR=ar rcs 32 | 33 | prefix=/usr/local 34 | exec_prefix = $(prefix) 35 | 36 | OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \ 37 | uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o 38 | 39 | TEST_OBJS = example.o minigzip.o 40 | 41 | all: example.exe minigzip.exe 42 | 43 | test: all 44 | ./example 45 | echo hello world | .\minigzip | .\minigzip -d 46 | 47 | %.o : %.c 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | zlib.a: $(OBJS) 51 | $(AR) $@ $(OBJS) 52 | 53 | %.exe : %.o $(LIBS) 54 | $(LD) $@ $< $(LDLIBS) 55 | 56 | 57 | .PHONY : clean 58 | 59 | clean: 60 | $(RM) *.d 61 | $(RM) *.o 62 | $(RM) *.exe 63 | $(RM) zlib.a 64 | $(RM) foo.gz 65 | 66 | DEPS := $(wildcard *.d) 67 | ifneq ($(DEPS),) 68 | include $(DEPS) 69 | endif 70 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/nintendods/README: -------------------------------------------------------------------------------- 1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template. 2 | 3 | Eduardo Costa 4 | January 3, 2009 5 | 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/old/Makefile.emx: -------------------------------------------------------------------------------- 1 | # Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/98. 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. 3 | # For conditions of distribution and use, see copyright notice in zlib.h 4 | 5 | # To compile, or to compile and test, type: 6 | # 7 | # make -fmakefile.emx; make test -fmakefile.emx 8 | # 9 | 10 | CC=gcc -Zwin32 11 | 12 | #CFLAGS=-MMD -O 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 14 | #CFLAGS=-MMD -g -DZLIB_DEBUG 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 16 | -Wstrict-prototypes -Wmissing-prototypes 17 | 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . 19 | CP=copy /Y 20 | # If gnu install.exe is available, replace $(CP) with ginstall. 21 | INSTALL=$(CP) 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: 23 | RM=del 24 | LDLIBS=-L. -lzlib 25 | LD=$(CC) -s -o 26 | LDSHARED=$(CC) 27 | 28 | INCL=zlib.h zconf.h 29 | LIBS=zlib.a 30 | 31 | AR=ar rcs 32 | 33 | prefix=/usr/local 34 | exec_prefix = $(prefix) 35 | 36 | OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \ 37 | gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o 38 | 39 | TEST_OBJS = example.o minigzip.o 40 | 41 | all: example.exe minigzip.exe 42 | 43 | test: all 44 | ./example 45 | echo hello world | .\minigzip | .\minigzip -d 46 | 47 | %.o : %.c 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | zlib.a: $(OBJS) 51 | $(AR) $@ $(OBJS) 52 | 53 | %.exe : %.o $(LIBS) 54 | $(LD) $@ $< $(LDLIBS) 55 | 56 | 57 | .PHONY : clean 58 | 59 | clean: 60 | $(RM) *.d 61 | $(RM) *.o 62 | $(RM) *.exe 63 | $(RM) zlib.a 64 | $(RM) foo.gz 65 | 66 | DEPS := $(wildcard *.d) 67 | ifneq ($(DEPS),) 68 | include $(DEPS) 69 | endif 70 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/old/README: -------------------------------------------------------------------------------- 1 | This directory contains files that have not been updated for zlib 1.2.x 2 | 3 | (Volunteers are encouraged to help clean this up. Thanks.) 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/old/descrip.mms: -------------------------------------------------------------------------------- 1 | # descrip.mms: MMS description file for building zlib on VMS 2 | # written by Martin P.J. Zinser 3 | 4 | cc_defs = 5 | c_deb = 6 | 7 | .ifdef __DECC__ 8 | pref = /prefix=all 9 | .endif 10 | 11 | OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj,\ 12 | deflate.obj, trees.obj, zutil.obj, inflate.obj, infblock.obj,\ 13 | inftrees.obj, infcodes.obj, infutil.obj, inffast.obj 14 | 15 | CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF) 16 | 17 | all : example.exe minigzip.exe 18 | @ write sys$output " Example applications available" 19 | libz.olb : libz.olb($(OBJS)) 20 | @ write sys$output " libz available" 21 | 22 | example.exe : example.obj libz.olb 23 | link example,libz.olb/lib 24 | 25 | minigzip.exe : minigzip.obj libz.olb 26 | link minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib 27 | 28 | clean : 29 | delete *.obj;*,libz.olb;* 30 | 31 | 32 | # Other dependencies. 33 | adler32.obj : zutil.h zlib.h zconf.h 34 | compress.obj : zlib.h zconf.h 35 | crc32.obj : zutil.h zlib.h zconf.h 36 | deflate.obj : deflate.h zutil.h zlib.h zconf.h 37 | example.obj : zlib.h zconf.h 38 | gzio.obj : zutil.h zlib.h zconf.h 39 | infblock.obj : zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h 40 | infcodes.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h 41 | inffast.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h 42 | inflate.obj : zutil.h zlib.h zconf.h infblock.h 43 | inftrees.obj : zutil.h zlib.h zconf.h inftrees.h 44 | infutil.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h 45 | minigzip.obj : zlib.h zconf.h 46 | trees.obj : deflate.h zutil.h zlib.h zconf.h 47 | uncompr.obj : zlib.h zconf.h 48 | zutil.obj : zutil.h zlib.h zconf.h 49 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/old/os2/zlib.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Slightly modified version of ../nt/zlib.dnt :-) 3 | ; 4 | 5 | LIBRARY Z 6 | DESCRIPTION "Zlib compression library for OS/2" 7 | CODE PRELOAD MOVEABLE DISCARDABLE 8 | DATA PRELOAD MOVEABLE MULTIPLE 9 | 10 | EXPORTS 11 | adler32 12 | compress 13 | crc32 14 | deflate 15 | deflateCopy 16 | deflateEnd 17 | deflateInit2_ 18 | deflateInit_ 19 | deflateParams 20 | deflateReset 21 | deflateSetDictionary 22 | gzclose 23 | gzdopen 24 | gzerror 25 | gzflush 26 | gzopen 27 | gzread 28 | gzwrite 29 | inflate 30 | inflateEnd 31 | inflateInit2_ 32 | inflateInit_ 33 | inflateReset 34 | inflateSetDictionary 35 | inflateSync 36 | uncompress 37 | zlibVersion 38 | gzprintf 39 | gzputc 40 | gzgetc 41 | gzseek 42 | gzrewind 43 | gztell 44 | gzeof 45 | gzsetparams 46 | zError 47 | inflateSyncPoint 48 | get_crc_table 49 | compress2 50 | gzputs 51 | gzgets 52 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/watcom/watcom_f.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom flat model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_f.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc386 18 | LINKER = wcl386 19 | CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_f.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/watcom/watcom_l.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom large model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_l.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc 18 | LINKER = wcl 19 | CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_l.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/win32/VisualC.txt: -------------------------------------------------------------------------------- 1 | 2 | To build zlib using the Microsoft Visual C++ environment, 3 | use the appropriate project from the contrib/vstudio/ directory. 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/win32/zlib1.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../zlib.h" 3 | 4 | #ifdef GCC_WINDRES 5 | VS_VERSION_INFO VERSIONINFO 6 | #else 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 8 | #endif 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 12 | #ifdef _DEBUG 13 | FILEFLAGS 1 14 | #else 15 | FILEFLAGS 0 16 | #endif 17 | FILEOS VOS__WINDOWS32 18 | FILETYPE VFT_DLL 19 | FILESUBTYPE 0 // not used 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904E4" 24 | //language ID = U.S. English, char set = Windows, Multilingual 25 | BEGIN 26 | VALUE "FileDescription", "zlib data compression library\0" 27 | VALUE "FileVersion", ZLIB_VERSION "\0" 28 | VALUE "InternalName", "zlib1.dll\0" 29 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 30 | VALUE "OriginalFilename", "zlib1.dll\0" 31 | VALUE "ProductName", "zlib\0" 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" 34 | END 35 | END 36 | BLOCK "VarFileInfo" 37 | BEGIN 38 | VALUE "Translation", 0x0409, 1252 39 | END 40 | END 41 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/deps/libchdr/deps/zlib-1.2.13/zlib.3.pdf -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/zlib.map: -------------------------------------------------------------------------------- 1 | ZLIB_1.2.0 { 2 | global: 3 | compressBound; 4 | deflateBound; 5 | inflateBack; 6 | inflateBackEnd; 7 | inflateBackInit_; 8 | inflateCopy; 9 | local: 10 | deflate_copyright; 11 | inflate_copyright; 12 | inflate_fast; 13 | inflate_table; 14 | zcalloc; 15 | zcfree; 16 | z_errmsg; 17 | gz_error; 18 | gz_intmax; 19 | _*; 20 | }; 21 | 22 | ZLIB_1.2.0.2 { 23 | gzclearerr; 24 | gzungetc; 25 | zlibCompileFlags; 26 | } ZLIB_1.2.0; 27 | 28 | ZLIB_1.2.0.8 { 29 | deflatePrime; 30 | } ZLIB_1.2.0.2; 31 | 32 | ZLIB_1.2.2 { 33 | adler32_combine; 34 | crc32_combine; 35 | deflateSetHeader; 36 | inflateGetHeader; 37 | } ZLIB_1.2.0.8; 38 | 39 | ZLIB_1.2.2.3 { 40 | deflateTune; 41 | gzdirect; 42 | } ZLIB_1.2.2; 43 | 44 | ZLIB_1.2.2.4 { 45 | inflatePrime; 46 | } ZLIB_1.2.2.3; 47 | 48 | ZLIB_1.2.3.3 { 49 | adler32_combine64; 50 | crc32_combine64; 51 | gzopen64; 52 | gzseek64; 53 | gztell64; 54 | inflateUndermine; 55 | } ZLIB_1.2.2.4; 56 | 57 | ZLIB_1.2.3.4 { 58 | inflateReset2; 59 | inflateMark; 60 | } ZLIB_1.2.3.3; 61 | 62 | ZLIB_1.2.3.5 { 63 | gzbuffer; 64 | gzoffset; 65 | gzoffset64; 66 | gzclose_r; 67 | gzclose_w; 68 | } ZLIB_1.2.3.4; 69 | 70 | ZLIB_1.2.5.1 { 71 | deflatePending; 72 | } ZLIB_1.2.3.5; 73 | 74 | ZLIB_1.2.5.2 { 75 | deflateResetKeep; 76 | gzgetc_; 77 | inflateResetKeep; 78 | } ZLIB_1.2.5.1; 79 | 80 | ZLIB_1.2.7.1 { 81 | inflateGetDictionary; 82 | gzvprintf; 83 | } ZLIB_1.2.5.2; 84 | 85 | ZLIB_1.2.9 { 86 | inflateCodesUsed; 87 | inflateValidate; 88 | uncompress2; 89 | gzfread; 90 | gzfwrite; 91 | deflateGetDictionary; 92 | adler32_z; 93 | crc32_z; 94 | } ZLIB_1.2.7.1; 95 | 96 | ZLIB_1.2.12 { 97 | crc32_combine_gen; 98 | crc32_combine_gen64; 99 | crc32_combine_op; 100 | } ZLIB_1.2.9; 101 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@INSTALL_LIB_DIR@ 4 | sharedlibdir=@INSTALL_LIB_DIR@ 5 | includedir=@INSTALL_INC_DIR@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.2.13/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /deps/libchdr/include/libchdr/bitstream.h: -------------------------------------------------------------------------------- 1 | /* license:BSD-3-Clause 2 | * copyright-holders:Aaron Giles 3 | *************************************************************************** 4 | 5 | bitstream.h 6 | 7 | Helper classes for reading/writing at the bit level. 8 | 9 | ***************************************************************************/ 10 | 11 | #pragma once 12 | 13 | #ifndef __BITSTREAM_H__ 14 | #define __BITSTREAM_H__ 15 | 16 | #include 17 | 18 | /*************************************************************************** 19 | * TYPE DEFINITIONS 20 | *************************************************************************** 21 | */ 22 | 23 | /* helper class for reading from a bit buffer */ 24 | struct bitstream 25 | { 26 | uint32_t buffer; /* current bit accumulator */ 27 | int bits; /* number of bits in the accumulator */ 28 | const uint8_t * read; /* read pointer */ 29 | uint32_t doffset; /* byte offset within the data */ 30 | uint32_t dlength; /* length of the data */ 31 | }; 32 | 33 | struct bitstream* create_bitstream(const void *src, uint32_t srclength); 34 | int bitstream_overflow(struct bitstream* bitstream); 35 | uint32_t bitstream_read_offset(struct bitstream* bitstream); 36 | 37 | uint32_t bitstream_read(struct bitstream* bitstream, int numbits); 38 | uint32_t bitstream_peek(struct bitstream* bitstream, int numbits); 39 | void bitstream_remove(struct bitstream* bitstream, int numbits); 40 | uint32_t bitstream_flush(struct bitstream* bitstream); 41 | 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /deps/libchdr/include/libchdr/chdconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef __CHDCONFIG_H__ 2 | #define __CHDCONFIG_H__ 3 | 4 | /* Configure CHDR features here */ 5 | #define WANT_RAW_DATA_SECTOR 1 6 | #define WANT_SUBCODE 1 7 | #define NEED_CACHE_HUNK 1 8 | #define VERIFY_BLOCK_CRC 1 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /deps/libchdr/pkg-config.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ 3 | includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/libchdr 4 | 5 | Name: libchdr 6 | Description: Standalone library for reading MAME's CHDv1-v5 formats 7 | Version: @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@ 8 | Libs: -L${libdir} -lchdr @LIBS@ 9 | Cflags: -I${includedir} 10 | 11 | -------------------------------------------------------------------------------- /deps/libchdr/src/link.T: -------------------------------------------------------------------------------- 1 | { 2 | global: chd_*; 3 | local: *; 4 | }; 5 | 6 | -------------------------------------------------------------------------------- /deps/libchdr/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(chdr-benchmark benchmark.c) 2 | target_link_libraries(chdr-benchmark PRIVATE chdr-static) 3 | -------------------------------------------------------------------------------- /deps/libchdr/tests/benchmark.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | int main(int argc, char** argv) 7 | { 8 | chd_error err; 9 | chd_file* file; 10 | const chd_header* header; 11 | void* buffer; 12 | unsigned int i; 13 | unsigned int totalbytes; 14 | clock_t start, end; 15 | double time_taken; 16 | 17 | printf("\nlibchdr benchmark tool...."); 18 | 19 | /* Recording the starting clock tick.*/ 20 | start = clock(); 21 | 22 | /* Sequential read all hunks */ 23 | err = chd_open(argv[1], CHD_OPEN_READ, NULL, &file); 24 | if (err) 25 | { 26 | printf("\nchd_open() error: %s", chd_error_string(err)); 27 | return 0; 28 | } 29 | header = chd_get_header(file); 30 | totalbytes = header->hunkbytes * header->totalhunks; 31 | buffer = malloc(header->hunkbytes); 32 | for (i = 0 ; i < header->totalhunks ; i++) 33 | { 34 | err = chd_read(file, i, buffer); 35 | if (err) 36 | printf("\nchd_read() error: %s", chd_error_string(err)); 37 | } 38 | free(buffer); 39 | chd_close(file); 40 | 41 | /* Recording the end clock tick. */ 42 | end = clock(); 43 | 44 | /* Calculating total time taken by the program. */ 45 | time_taken = ((double)(end - start)) / ((double)CLOCKS_PER_SEC); 46 | 47 | /* Print results */ 48 | printf("\nRead %d bytes in %lf seconds", totalbytes, time_taken); 49 | printf("\nRate is %lf MB/s", (((double)totalbytes)/(1024*1024)) / time_taken); 50 | printf("\n\n"); 51 | return 0; 52 | } 53 | -------------------------------------------------------------------------------- /dfsound/adsr.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | adsr.h - description 3 | ------------------- 4 | begin : Wed May 15 2002 5 | copyright : (C) 2002 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | /*************************************************************************** 9 | * * 10 | * This program is free software; you can redistribute it and/or modify * 11 | * it under the terms of the GNU General Public License as published by * 12 | * the Free Software Foundation; either version 2 of the License, or * 13 | * (at your option) any later version. See also the license.txt file for * 14 | * additional informations. * 15 | * * 16 | ***************************************************************************/ 17 | 18 | #ifndef __P_ADER_H__ 19 | #define __P_ADER_H__ 20 | 21 | INLINE void StartADSR(int ch); 22 | INLINE int MixADSR(int ch); 23 | 24 | #endif /* __P_ADER_H__ */ 25 | -------------------------------------------------------------------------------- /dfsound/dma.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | dma.h - description 3 | ------------------- 4 | begin : Wed May 15 2002 5 | copyright : (C) 2002 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | 9 | /*************************************************************************** 10 | * * 11 | * This program is free software; you can redistribute it and/or modify * 12 | * it under the terms of the GNU General Public License as published by * 13 | * the Free Software Foundation; either version 2 of the License, or * 14 | * (at your option) any later version. See also the license.txt file for * 15 | * additional informations. * 16 | * * 17 | ***************************************************************************/ 18 | 19 | //*************************************************************************// 20 | // History of changes: 21 | // 22 | // 2002/05/15 - Pete 23 | // - generic cleanup for the Peops release 24 | // 25 | //*************************************************************************// 26 | 27 | #ifndef __P_DMA_H__ 28 | #define __P_DMA_H__ 29 | 30 | unsigned short DF_SPUreadDMA(void); 31 | void DF_SPUreadDMAMem(unsigned short * pusPSXMem,int iSize); 32 | void DF_SPUwriteDMA(unsigned short val); 33 | void DF_SPUwriteDMAMem(unsigned short * pusPSXMem,int iSize); 34 | 35 | #endif /* __P_DMA_H__ */ 36 | -------------------------------------------------------------------------------- /dfsound/out.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "out.h" 4 | 5 | #define HAVE_SDL 6 | #define MAX_OUT_DRIVERS 2 7 | 8 | static struct out_driver out_drivers[MAX_OUT_DRIVERS]; 9 | struct out_driver *out_current; 10 | static int driver_count; 11 | 12 | #define REGISTER_DRIVER(d) { \ 13 | extern void out_register_##d(struct out_driver *drv); \ 14 | out_register_##d(&out_drivers[driver_count++]); \ 15 | } 16 | 17 | void SetupSound(void) 18 | { 19 | int i; 20 | 21 | if (driver_count == 0) { 22 | #ifdef HAVE_SDL 23 | REGISTER_DRIVER(sdl); 24 | #endif 25 | #ifdef HAVE_CUBE 26 | REGISTER_DRIVER(cube); 27 | #endif 28 | } 29 | 30 | for (i = 0; i < driver_count; i++) 31 | if (out_drivers[i].init() == 0) 32 | break; 33 | 34 | if (i < 0 || i >= driver_count) { 35 | //printf("the impossible happened\n"); 36 | abort(); 37 | } 38 | 39 | out_current = &out_drivers[i]; 40 | //printf("selected sound output driver: %s\n", out_current->name); 41 | } 42 | 43 | -------------------------------------------------------------------------------- /dfsound/out.h: -------------------------------------------------------------------------------- 1 | #ifndef __P_OUT_H__ 2 | #define __P_OUT_H__ 3 | 4 | struct out_driver { 5 | const char *name; 6 | int (*init)(void); 7 | void (*finish)(void); 8 | int (*busy)(void); 9 | int (*feed)(void *data, int bytes); 10 | }; 11 | 12 | extern struct out_driver *out_current; 13 | extern int iDisStereo; 14 | 15 | void SetupSound(void); 16 | 17 | #endif /* __P_OUT_H__ */ 18 | -------------------------------------------------------------------------------- /dfsound/psemuxa.h: -------------------------------------------------------------------------------- 1 | //============================================ 2 | //=== Audio XA decoding 3 | //=== Kazzuya 4 | //============================================ 5 | 6 | #ifndef DECODEXA_H 7 | #define DECODEXA_H 8 | 9 | typedef struct 10 | { 11 | int y0, y1; 12 | } ADPCM_Decode_t; 13 | 14 | typedef struct 15 | { 16 | int freq; 17 | int nbits; 18 | int stereo; 19 | int nsamples; 20 | int newSize; 21 | int sinc; 22 | ADPCM_Decode_t left, right; 23 | short pcm[16384]; 24 | } xa_decode_t; 25 | 26 | int xa_decode_sector( xa_decode_t *xdp, 27 | unsigned char *sectorp, 28 | int is_first_sector ); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /dfsound/spu.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | spu.h - description 3 | ------------------- 4 | begin : Wed May 15 2002 5 | copyright : (C) 2002 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | /*************************************************************************** 9 | * * 10 | * This program is free software; you can redistribute it and/or modify * 11 | * it under the terms of the GNU General Public License as published by * 12 | * the Free Software Foundation; either version 2 of the License, or * 13 | * (at your option) any later version. See also the license.txt file for * 14 | * additional informations. * 15 | * * 16 | ***************************************************************************/ 17 | 18 | #ifndef __P_SPU_H__ 19 | #define __P_SPU_H__ 20 | 21 | #define HTOLE16(x) __builtin_bswap16(x) 22 | #define LE16TOH(x) __builtin_bswap16(x) 23 | 24 | void ClearWorkingState(void); 25 | void CALLBACK DF_SPUplayADPCMchannel(xa_decode_t *xap); 26 | int CALLBACK DF_SPUplayCDDAchannel(short *pcm, int bytes); 27 | 28 | #endif /* __P_SPU_H__ */ 29 | -------------------------------------------------------------------------------- /dfsound/spu_config.h: -------------------------------------------------------------------------------- 1 | #ifndef __P_SPU_CONFIG_H__ 2 | #define __P_SPU_CONFIG_H__ 3 | 4 | // user settings 5 | 6 | typedef struct 7 | { 8 | int iVolume; 9 | int iXAPitch; 10 | int iUseReverb; 11 | int iUseInterpolation; 12 | int iTempo; 13 | int idiablofix; 14 | int iUseThread; 15 | int iUseFixedUpdates; // output fixed number of samples/frame 16 | 17 | // status 18 | int iThreadAvail; 19 | } SPUConfig; 20 | 21 | extern SPUConfig spu_config; 22 | 23 | #endif /* __P_SPU_CONFIG_H__ */ 24 | -------------------------------------------------------------------------------- /dfsound/stdafx.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | StdAfx.h - description 3 | ------------------- 4 | begin : Wed May 15 2002 5 | copyright : (C) 2002 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | /*************************************************************************** 9 | * * 10 | * This program is free software; you can redistribute it and/or modify * 11 | * it under the terms of the GNU General Public License as published by * 12 | * the Free Software Foundation; either version 2 of the License, or * 13 | * (at your option) any later version. See also the license.txt file for * 14 | * additional informations. * 15 | * * 16 | ***************************************************************************/ 17 | 18 | #ifndef __P_STDAFX_H__ 19 | #define __P_STDAFX_H__ 20 | 21 | #include 22 | #include 23 | #include 24 | 25 | #undef CALLBACK 26 | #define CALLBACK 27 | #define DWORD unsigned int 28 | #define LOWORD(l) ((unsigned short)(l)) 29 | #define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF)) 30 | 31 | #ifndef INLINE 32 | #define INLINE static inline 33 | #endif 34 | 35 | #include "psemuxa.h" 36 | 37 | #endif /* __P_STDAFX_H__ */ 38 | -------------------------------------------------------------------------------- /dfsound/xa.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | xa.h - description 3 | ------------------- 4 | begin : Wed May 15 2002 5 | copyright : (C) 2002 by Pete Bernert 6 | email : BlackDove@addcom.de 7 | ***************************************************************************/ 8 | /*************************************************************************** 9 | * * 10 | * This program is free software; you can redistribute it and/or modify * 11 | * it under the terms of the GNU General Public License as published by * 12 | * the Free Software Foundation; either version 2 of the License, or * 13 | * (at your option) any later version. See also the license.txt file for * 14 | * additional informations. * 15 | * * 16 | ***************************************************************************/ 17 | 18 | #ifndef __P_XA_H__ 19 | #define __P_XA_H__ 20 | 21 | INLINE void MixXA(void); 22 | INLINE void FeedXA(xa_decode_t *xap); 23 | INLINE int FeedCDDA(unsigned char *pcm, int nBytes); 24 | 25 | #endif /* __P_XA_H__ */ 26 | -------------------------------------------------------------------------------- /extendedkeys.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __EXTENDED_KEYS_H__ 3 | #define __EXTENDED_KEYS_H__ 4 | 5 | enum { 6 | PSX_FREEZE_KEY = 0xFFBE/*XK_F1*/, 7 | PSX_NEXT_FREEZE_SLOT_KEY = 0xFFBF/*XK_F2*/, 8 | PSX_DEFROST_KEY = 0xFFC0/*XK_F3*/, 9 | PSX_SHOW_FREEZE_PIC_KEY = 0xFFC1/*XK_F4*/, 10 | PSX_SIO_ALWAYS_ON_KEY = 0xFFC2/*XK_F5*/, 11 | PSX_BW_MDEC_KEY = 0xFFC3/*XK_F6*/, 12 | PSX_XA_AUDIO_ON_KEY = 0xFFC4/*XK_F7*/, 13 | PSX_SNAPSHOT_KEY = 0xFFC5/*XK_F8*/, 14 | PSX_OPEN_SHELL_KEY = 0xFFC6/*XK_F9*/, 15 | PSX_CLOSE_SHELL_KEY = 0xFFC7/*XK_F10*/, 16 | 17 | PSX_STOP_KEY = 0xFF1B/*XK_Escape*/, 18 | 19 | GPU_FULLSCREEN_KEY = 0x0100, 20 | GPU_FPS_DISPLAY_KEY = 0xFFFF/*XK_Delete*/ 21 | }; 22 | 23 | #endif //__EXTENDED_KEYS_H__ 24 | -------------------------------------------------------------------------------- /fonts/Chs.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/Chs.zip -------------------------------------------------------------------------------- /fonts/De.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/De.zip -------------------------------------------------------------------------------- /fonts/En.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/En.dat -------------------------------------------------------------------------------- /fonts/Es.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/Es.zip -------------------------------------------------------------------------------- /fonts/It.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/It.zip -------------------------------------------------------------------------------- /fonts/Kr.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/Kr.zip -------------------------------------------------------------------------------- /fonts/Pt.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/fonts/Pt.zip -------------------------------------------------------------------------------- /gpu.h: -------------------------------------------------------------------------------- 1 | /* Pcsx - Pc Psx Emulator 2 | * Copyright (C) 1999-2016 Pcsx Team 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (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. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, see . 16 | */ 17 | 18 | /* 19 | * q: Why bother with GPU stuff in a plugin-based emu core? 20 | * a: mostly because of busy bits, we have all the needed timing info 21 | * that GPU plugin doesn't. 22 | */ 23 | 24 | #ifndef __GPU_H__ 25 | #define __GPU_H__ 26 | 27 | #define PSXGPU_LCF (1u<<31) 28 | #define PSXGPU_nBUSY (1u<<26) 29 | #define PSXGPU_ILACE (1u<<22) 30 | #define PSXGPU_DHEIGHT (1u<<19) 31 | #define PSXGPU_FIELD (1u<<13) 32 | 33 | #define GPUSTATUS_READYFORVRAM 0x08000000 34 | #define GPUSTATUS_IDLE 0x04000000 35 | 36 | // both must be set for interlace to work 37 | #define PSXGPU_ILACE_BITS (PSXGPU_ILACE | PSXGPU_DHEIGHT | PSXGPU_FIELD) 38 | 39 | #define HW_GPU_STATUS psxHu32ref(0x1814) 40 | 41 | // TODO: handle com too 42 | #define PSXGPU_TIMING_BITS (PSXGPU_LCF | PSXGPU_nBUSY | PSXGPU_FIELD) 43 | 44 | #define gpuSyncPluginSR() { \ 45 | HW_GPU_STATUS &= SWAP32(PSXGPU_TIMING_BITS); \ 46 | HW_GPU_STATUS |= SWAP32(GPU_readStatus() & ~PSXGPU_TIMING_BITS); \ 47 | } 48 | 49 | #endif /* __GPU_H__ */ 50 | -------------------------------------------------------------------------------- /gte_divider.h: -------------------------------------------------------------------------------- 1 | /* Pcsx - Pc Psx Emulator 2 | * Copyright (C) 1999-2016 Pcsx Team 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (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. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, see . 16 | */ 17 | 18 | #ifndef __GTE_DIVIDER_H__ 19 | #define __GTE_DIVIDER_H__ 20 | 21 | u32 DIVIDE(u16 n, u16 d); 22 | u32 DIVIDE_INT(u16 n, u16 d); 23 | 24 | #endif /* __GTE_DIVIDER_H__ */ 25 | -------------------------------------------------------------------------------- /lang/en.lang: -------------------------------------------------------------------------------- 1 | msgid " " 2 | msgstr "" 3 | 4 | msgid "Pte" 5 | msgstr "Pt" 6 | -------------------------------------------------------------------------------- /libSDL.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/libSDL.a -------------------------------------------------------------------------------- /libogc_1.8.16_ipcfix.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/libogc_1.8.16_ipcfix.zip -------------------------------------------------------------------------------- /lightrec+Libogc2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/lightrec+Libogc2.zip -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokippo/WiiSXRX_2022240p/7640a6020344a8f593efdf2d7317507918cb1d67/logo.png -------------------------------------------------------------------------------- /ppc/ppc.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ix86 core v0.5.1 3 | * Authors: linuzappz 4 | * alexey silinov 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | #include "ppc.h" 11 | 12 | // General Purpose hardware registers 13 | int cpuHWRegisters[NUM_HW_REGISTERS] = { 14 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 15 | 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 16 | }; 17 | 18 | u32 *ppcPtr; 19 | 20 | void ppcInit() { 21 | } 22 | void ppcSetPtr(u32 *ptr) { 23 | ppcPtr = ptr; 24 | } 25 | inline void ppcAlign() { 26 | // forward align (if we need to) 27 | if((u32)ppcPtr%4) 28 | ppcPtr = (u32*)(((u32)ppcPtr + 4) & ~(3)); 29 | } 30 | 31 | void ppcShutdown() { 32 | } 33 | 34 | -------------------------------------------------------------------------------- /ppc/ppc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ppc definitions v0.5.1 3 | * Authors: linuzappz 4 | * alexey silinov 5 | */ 6 | 7 | #ifndef __PPC_H__ 8 | #define __PPC_H__ 9 | 10 | // include basic types 11 | #include "../psxcommon.h" 12 | #include "ppc_mnemonics.h" 13 | 14 | #define NUM_HW_REGISTERS 28 15 | 16 | /* general defines */ 17 | #define write8(val) *(u8 *)ppcPtr = val; ppcPtr++; 18 | #define write16(val) *(u16*)ppcPtr = val; ppcPtr+=2; 19 | #define write32(val) *(u32*)ppcPtr = val; ppcPtr+=4; 20 | #define write64(val) *(u64*)ppcPtr = val; ppcPtr+=8; 21 | 22 | #define CALLFunc(FUNC) \ 23 | { \ 24 | u32 _func = (FUNC); \ 25 | ReleaseArgs(); \ 26 | if ((_func & 0x1fffffc) == _func) { \ 27 | BLA(_func); \ 28 | } else { \ 29 | LIW(0, _func); \ 30 | MTCTR(0); \ 31 | BCTRL(); \ 32 | } \ 33 | } 34 | 35 | extern int cpuHWRegisters[NUM_HW_REGISTERS]; 36 | 37 | extern u32 *ppcPtr; 38 | extern u8 *j8Ptr[32]; 39 | extern u32 *j32Ptr[32]; 40 | 41 | void ppcInit(); 42 | void ppcSetPtr(u32 *ptr); 43 | void ppcShutdown(); 44 | 45 | extern inline void ppcAlign(); 46 | void returnPC(); 47 | void recRun(void (*func)(), u32 hw1, u32 hw2); 48 | u8 dynMemRead8(u32 mem); 49 | u16 dynMemRead16(u32 mem); 50 | u32 dynMemRead32(u32 mem); 51 | void dynMemWrite32(u32 mem, u32 val); 52 | 53 | #endif /* __PPC_H__ */ 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /ppf.h: -------------------------------------------------------------------------------- 1 | /* PPF Patch Support for PCSX-Reloaded 2 | * Copyright (c) 2009, Wei Mingzhi . 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (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. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA 17 | */ 18 | 19 | #ifndef __PPF_H__ 20 | #define __PPF_H__ 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | void BuildPPFCache(); 27 | void FreePPFCache(); 28 | void CheckPPFCache(unsigned char *pB, unsigned char m, unsigned char s, unsigned char f); 29 | 30 | int LoadSBI(const char *fname, int sector_count); 31 | void UnloadSBI(void); 32 | 33 | extern unsigned char *sbi_sectors; 34 | 35 | #include "cdrom.h" 36 | 37 | static inline int CheckSBI(const u8 *t) 38 | { 39 | int s; 40 | if (sbi_sectors == NULL) 41 | return 0; 42 | 43 | s = MSF2SECT(t[0], t[1], t[2]); 44 | return (sbi_sectors[s >> 3] >> (s & 7)) & 1; 45 | } 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | #endif 51 | -------------------------------------------------------------------------------- /psxinterpreter.h: -------------------------------------------------------------------------------- 1 | #ifndef __PSXINTERPRETER_H__ 2 | #define __PSXINTERPRETER_H__ 3 | 4 | // get an opcode without triggering exceptions or affecting cache 5 | u32 intFakeFetch(u32 pc); 6 | 7 | 8 | 9 | #endif // __PSXINTERPRETER_H__ 10 | --------------------------------------------------------------------------------