├── .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-HidGC.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 │ │ ├── cntrlHidGC.tx │ │ ├── cntrlWM.tx │ │ ├── cntrlWNC.tx │ │ ├── cubeSXRX.tx │ │ ├── psxCntrl.tx │ │ └── wiiSXRX.tx ├── plugins.c ├── profile.c ├── release │ ├── apps │ │ ├── Makefile │ │ ├── README │ │ └── WiiStation │ │ │ ├── icon.png │ │ │ └── meta.xml │ └── controllers │ │ ├── 0079_0006.ini │ │ ├── 0079_0126.ini │ │ ├── 0079_1800.ini │ │ ├── 0445_D007.ini │ │ ├── 044F_B303.ini │ │ ├── 044F_B315.ini │ │ ├── 045E_001B.ini │ │ ├── 045E_0038.ini │ │ ├── 046D_C218.ini │ │ ├── 046D_C219.ini │ │ ├── 054C_0268.ini │ │ ├── 054C_05C4.ini │ │ ├── 054C_05C5.ini │ │ ├── 054C_09CC.ini │ │ ├── 057E_0337.ini │ │ ├── 0810_0001.ini │ │ ├── 0810_0003.ini │ │ ├── 0925_03E8.ini │ │ ├── 0926_2526.ini │ │ ├── 0955_7210.ini │ │ ├── 0F0D_0011.ini │ │ ├── 1A34_0836.ini │ │ ├── 1D79_0301.ini │ │ ├── 2006_0118.ini │ │ ├── 25F0_83C1.ini │ │ └── 7701_0003.ini ├── 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 ├── HidController ├── KernelHID.c ├── KernelHID.h ├── PADReadGC.c ├── PS3Controller.h ├── global.h ├── ipc.h ├── usb.h └── wiidrc.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 ├── SoftGPU ├── draw.h ├── drawGX.c ├── externals.h ├── gpu.h ├── gpuCommon.c ├── gpulib_if.c ├── menu.h ├── oldGpuFps.c ├── oldGpuFps.h ├── prim.c ├── soft.c └── stdafx.h ├── build.log ├── cdriso.c ├── cdriso.h ├── cdrom.c ├── cdrom.h ├── coff.h ├── compiler_features.h ├── coredebug.h ├── database.c ├── database.h ├── decode_xa.c ├── decode_xa.h ├── deps ├── libchdr │ ├── .gitattributes │ ├── .github │ │ └── workflows │ │ │ ├── bsd.yml │ │ │ ├── cmake.yml │ │ │ ├── switch.yml │ │ │ └── vita.yml │ ├── .gitignore │ ├── CMakeLists.txt │ ├── LICENSE.txt │ ├── Makefile.wii │ ├── 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 │ │ │ ├── Makefile.wii │ │ │ ├── Precomp.h │ │ │ ├── Sort.c │ │ │ ├── Sort.h │ │ │ ├── lzma-history.txt │ │ │ └── lzma.txt │ │ ├── lzma-24.05 │ │ │ ├── Asm │ │ │ │ ├── arm64 │ │ │ │ │ ├── 7zAsm.S │ │ │ │ │ └── LzmaDecOpt.S │ │ │ │ └── x86 │ │ │ │ │ ├── 7zAsm.asm │ │ │ │ │ └── LzmaDecOpt.asm │ │ │ ├── CMakeLists.txt │ │ │ ├── LICENSE │ │ │ ├── include │ │ │ │ ├── 7zTypes.h │ │ │ │ ├── 7zWindows.h │ │ │ │ ├── Alloc.h │ │ │ │ ├── Bra.h │ │ │ │ ├── Compiler.h │ │ │ │ ├── CpuArch.h │ │ │ │ ├── Delta.h │ │ │ │ ├── LzFind.h │ │ │ │ ├── LzHash.h │ │ │ │ ├── Lzma86.h │ │ │ │ ├── LzmaDec.h │ │ │ │ ├── LzmaEnc.h │ │ │ │ ├── Precomp.h │ │ │ │ ├── RotateDefs.h │ │ │ │ └── Sort.h │ │ │ └── src │ │ │ │ ├── Alloc.c │ │ │ │ ├── Bra.c │ │ │ │ ├── Bra86.c │ │ │ │ ├── BraIA64.c │ │ │ │ ├── CpuArch.c │ │ │ │ ├── Delta.c │ │ │ │ ├── LzFind.c │ │ │ │ ├── Lzma86Dec.c │ │ │ │ ├── LzmaDec.c │ │ │ │ ├── LzmaEnc.c │ │ │ │ └── Sort.c │ │ ├── zlib-1.3.1 │ │ │ ├── .gitattributes │ │ │ ├── CMakeLists.txt │ │ │ ├── ChangeLog │ │ │ ├── FAQ │ │ │ ├── INDEX │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── Makefile.in │ │ │ ├── Makefile.wii │ │ │ ├── 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 │ │ │ │ ├── nuget │ │ │ │ │ ├── nuget.csproj │ │ │ │ │ └── nuget.sln │ │ │ │ ├── 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 │ │ │ │ │ ├── vc17 │ │ │ │ │ ├── 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 │ │ │ ├── zconf.h.included │ │ │ ├── zlib.3 │ │ │ ├── zlib.3.pdf │ │ │ ├── zlib.h │ │ │ ├── zlib.map │ │ │ ├── zlib.pc.cmakein │ │ │ ├── zlib.pc.in │ │ │ ├── zutil.c │ │ │ └── zutil.h │ │ └── zstd-1.5.6 │ │ │ ├── .buckconfig │ │ │ ├── .buckversion │ │ │ ├── .circleci │ │ │ ├── config.yml │ │ │ └── images │ │ │ │ └── primary │ │ │ │ └── Dockerfile │ │ │ ├── .cirrus.yml │ │ │ ├── .gitattributes │ │ │ ├── .github │ │ │ ├── ISSUE_TEMPLATE │ │ │ │ ├── bug_report.md │ │ │ │ └── feature_request.md │ │ │ ├── dependabot.yml │ │ │ └── workflows │ │ │ │ ├── commit.yml │ │ │ │ ├── dev-long-tests.yml │ │ │ │ ├── dev-short-tests.yml │ │ │ │ ├── nightly.yml │ │ │ │ ├── publish-release-artifacts.yml │ │ │ │ ├── scorecards.yml │ │ │ │ └── windows-artifacts.yml │ │ │ ├── .gitignore │ │ │ ├── CHANGELOG │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── COPYING │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── Makefile.wii │ │ │ ├── Package.swift │ │ │ ├── README.md │ │ │ ├── SECURITY.md │ │ │ ├── TESTING.md │ │ │ ├── contrib │ │ │ ├── VS2005 │ │ │ │ ├── README.md │ │ │ │ ├── fullbench │ │ │ │ │ └── fullbench.vcproj │ │ │ │ ├── fuzzer │ │ │ │ │ └── fuzzer.vcproj │ │ │ │ ├── zstd.sln │ │ │ │ ├── zstd │ │ │ │ │ └── zstd.vcproj │ │ │ │ └── zstdlib │ │ │ │ │ └── zstdlib.vcproj │ │ │ ├── cleanTabs │ │ │ ├── diagnose_corruption │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ └── check_flipped_bits.c │ │ │ ├── docker │ │ │ │ ├── Dockerfile │ │ │ │ └── README.md │ │ │ ├── externalSequenceProducer │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── main.c │ │ │ │ ├── sequence_producer.c │ │ │ │ └── sequence_producer.h │ │ │ ├── freestanding_lib │ │ │ │ └── freestanding.py │ │ │ ├── gen_html │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── gen-zstd-manual.sh │ │ │ │ └── gen_html.cpp │ │ │ ├── largeNbDicts │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ └── largeNbDicts.c │ │ │ ├── linux-kernel │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── btrfs-benchmark.sh │ │ │ │ ├── btrfs-extract-benchmark.sh │ │ │ │ ├── decompress_sources.h │ │ │ │ ├── linux.mk │ │ │ │ ├── linux_zstd.h │ │ │ │ ├── mem.h │ │ │ │ ├── squashfs-benchmark.sh │ │ │ │ ├── test │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── include │ │ │ │ │ │ ├── asm │ │ │ │ │ │ │ └── unaligned.h │ │ │ │ │ │ └── linux │ │ │ │ │ │ │ ├── compiler.h │ │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ │ ├── kernel.h │ │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ │ ├── math64.h │ │ │ │ │ │ │ ├── module.h │ │ │ │ │ │ │ ├── printk.h │ │ │ │ │ │ │ ├── stddef.h │ │ │ │ │ │ │ ├── swab.h │ │ │ │ │ │ │ ├── types.h │ │ │ │ │ │ │ └── xxhash.h │ │ │ │ │ ├── macro-test.sh │ │ │ │ │ ├── static_test.c │ │ │ │ │ └── test.c │ │ │ │ ├── zstd_common_module.c │ │ │ │ ├── zstd_compress_module.c │ │ │ │ ├── zstd_decompress_module.c │ │ │ │ └── zstd_deps.h │ │ │ ├── match_finders │ │ │ │ ├── README.md │ │ │ │ ├── zstd_edist.c │ │ │ │ └── zstd_edist.h │ │ │ ├── premake │ │ │ │ ├── premake4.lua │ │ │ │ └── zstd.lua │ │ │ ├── pzstd │ │ │ │ ├── .gitignore │ │ │ │ ├── BUCK │ │ │ │ ├── ErrorHolder.h │ │ │ │ ├── Logging.h │ │ │ │ ├── Makefile │ │ │ │ ├── Options.cpp │ │ │ │ ├── Options.h │ │ │ │ ├── Pzstd.cpp │ │ │ │ ├── Pzstd.h │ │ │ │ ├── README.md │ │ │ │ ├── SkippableFrame.cpp │ │ │ │ ├── SkippableFrame.h │ │ │ │ ├── images │ │ │ │ │ ├── Cspeed.png │ │ │ │ │ └── Dspeed.png │ │ │ │ ├── main.cpp │ │ │ │ ├── test │ │ │ │ │ ├── BUCK │ │ │ │ │ ├── OptionsTest.cpp │ │ │ │ │ ├── PzstdTest.cpp │ │ │ │ │ ├── RoundTrip.h │ │ │ │ │ └── RoundTripTest.cpp │ │ │ │ └── utils │ │ │ │ │ ├── BUCK │ │ │ │ │ ├── Buffer.h │ │ │ │ │ ├── FileSystem.h │ │ │ │ │ ├── Likely.h │ │ │ │ │ ├── Portability.h │ │ │ │ │ ├── Range.h │ │ │ │ │ ├── ResourcePool.h │ │ │ │ │ ├── ScopeGuard.h │ │ │ │ │ ├── ThreadPool.h │ │ │ │ │ ├── WorkQueue.h │ │ │ │ │ └── test │ │ │ │ │ ├── BUCK │ │ │ │ │ ├── BufferTest.cpp │ │ │ │ │ ├── RangeTest.cpp │ │ │ │ │ ├── ResourcePoolTest.cpp │ │ │ │ │ ├── ScopeGuardTest.cpp │ │ │ │ │ ├── ThreadPoolTest.cpp │ │ │ │ │ └── WorkQueueTest.cpp │ │ │ ├── recovery │ │ │ │ ├── Makefile │ │ │ │ └── recover_directory.c │ │ │ ├── seekable_format │ │ │ │ ├── README.md │ │ │ │ ├── examples │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── parallel_compression.c │ │ │ │ │ ├── parallel_processing.c │ │ │ │ │ ├── seekable_compression.c │ │ │ │ │ ├── seekable_decompression.c │ │ │ │ │ └── seekable_decompression_mem.c │ │ │ │ ├── tests │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── Makefile │ │ │ │ │ └── seekable_tests.c │ │ │ │ ├── zstd_seekable.h │ │ │ │ ├── zstd_seekable_compression_format.md │ │ │ │ ├── zstdseek_compress.c │ │ │ │ └── zstdseek_decompress.c │ │ │ ├── seqBench │ │ │ │ ├── Makefile │ │ │ │ └── seqBench.c │ │ │ └── snap │ │ │ │ └── snapcraft.yaml │ │ │ ├── doc │ │ │ ├── README.md │ │ │ ├── decompressor_errata.md │ │ │ ├── decompressor_permissive.md │ │ │ ├── educational_decoder │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── harness.c │ │ │ │ ├── zstd_decompress.c │ │ │ │ └── zstd_decompress.h │ │ │ ├── images │ │ │ │ ├── CSpeed2.png │ │ │ │ ├── DCspeed5.png │ │ │ │ ├── DSpeed3.png │ │ │ │ ├── cdict_v136.png │ │ │ │ ├── dict-cr.png │ │ │ │ ├── dict-cs.png │ │ │ │ ├── dict-ds.png │ │ │ │ ├── zstd_cdict_v1_3_5.png │ │ │ │ └── zstd_logo86.png │ │ │ ├── zstd_compression_format.md │ │ │ └── zstd_manual.html │ │ │ ├── examples │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── common.h │ │ │ ├── dictionary_compression.c │ │ │ ├── dictionary_decompression.c │ │ │ ├── multiple_simple_compression.c │ │ │ ├── multiple_streaming_compression.c │ │ │ ├── simple_compression.c │ │ │ ├── simple_decompression.c │ │ │ ├── streaming_compression.c │ │ │ ├── streaming_compression_thread_pool.c │ │ │ ├── streaming_decompression.c │ │ │ └── streaming_memory_usage.c │ │ │ ├── lib │ │ │ ├── .gitignore │ │ │ ├── BUCK │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── common │ │ │ │ ├── allocations.h │ │ │ │ ├── bits.h │ │ │ │ ├── bitstream.h │ │ │ │ ├── compiler.h │ │ │ │ ├── cpu.h │ │ │ │ ├── debug.c │ │ │ │ ├── debug.h │ │ │ │ ├── entropy_common.c │ │ │ │ ├── error_private.c │ │ │ │ ├── error_private.h │ │ │ │ ├── fse.h │ │ │ │ ├── fse_decompress.c │ │ │ │ ├── huf.h │ │ │ │ ├── mem.h │ │ │ │ ├── pool.c │ │ │ │ ├── pool.h │ │ │ │ ├── portability_macros.h │ │ │ │ ├── threading.c │ │ │ │ ├── threading.h │ │ │ │ ├── xxhash.c │ │ │ │ ├── xxhash.h │ │ │ │ ├── zstd_common.c │ │ │ │ ├── zstd_deps.h │ │ │ │ ├── zstd_internal.h │ │ │ │ └── zstd_trace.h │ │ │ ├── compress │ │ │ │ ├── clevels.h │ │ │ │ ├── fse_compress.c │ │ │ │ ├── hist.c │ │ │ │ ├── hist.h │ │ │ │ ├── huf_compress.c │ │ │ │ ├── zstd_compress.c │ │ │ │ ├── zstd_compress_internal.h │ │ │ │ ├── zstd_compress_literals.c │ │ │ │ ├── zstd_compress_literals.h │ │ │ │ ├── zstd_compress_sequences.c │ │ │ │ ├── zstd_compress_sequences.h │ │ │ │ ├── zstd_compress_superblock.c │ │ │ │ ├── zstd_compress_superblock.h │ │ │ │ ├── zstd_cwksp.h │ │ │ │ ├── zstd_double_fast.c │ │ │ │ ├── zstd_double_fast.h │ │ │ │ ├── zstd_fast.c │ │ │ │ ├── zstd_fast.h │ │ │ │ ├── zstd_lazy.c │ │ │ │ ├── zstd_lazy.h │ │ │ │ ├── zstd_ldm.c │ │ │ │ ├── zstd_ldm.h │ │ │ │ ├── zstd_ldm_geartab.h │ │ │ │ ├── zstd_opt.c │ │ │ │ ├── zstd_opt.h │ │ │ │ ├── zstdmt_compress.c │ │ │ │ └── zstdmt_compress.h │ │ │ ├── decompress │ │ │ │ ├── huf_decompress.c │ │ │ │ ├── huf_decompress_amd64.S │ │ │ │ ├── zstd_ddict.c │ │ │ │ ├── zstd_ddict.h │ │ │ │ ├── zstd_decompress.c │ │ │ │ ├── zstd_decompress_block.c │ │ │ │ ├── zstd_decompress_block.h │ │ │ │ └── zstd_decompress_internal.h │ │ │ ├── deprecated │ │ │ │ ├── zbuff.h │ │ │ │ ├── zbuff_common.c │ │ │ │ ├── zbuff_compress.c │ │ │ │ └── zbuff_decompress.c │ │ │ ├── dictBuilder │ │ │ │ ├── cover.c │ │ │ │ ├── cover.h │ │ │ │ ├── divsufsort.c │ │ │ │ ├── divsufsort.h │ │ │ │ ├── fastcover.c │ │ │ │ └── zdict.c │ │ │ ├── dll │ │ │ │ └── example │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── build_package.bat │ │ │ │ │ ├── fullbench-dll.sln │ │ │ │ │ └── fullbench-dll.vcxproj │ │ │ ├── legacy │ │ │ │ ├── zstd_legacy.h │ │ │ │ ├── zstd_v01.c │ │ │ │ ├── zstd_v01.h │ │ │ │ ├── zstd_v02.c │ │ │ │ ├── zstd_v02.h │ │ │ │ ├── zstd_v03.c │ │ │ │ ├── zstd_v03.h │ │ │ │ ├── zstd_v04.c │ │ │ │ ├── zstd_v04.h │ │ │ │ ├── zstd_v05.c │ │ │ │ ├── zstd_v05.h │ │ │ │ ├── zstd_v06.c │ │ │ │ ├── zstd_v06.h │ │ │ │ ├── zstd_v07.c │ │ │ │ └── zstd_v07.h │ │ │ ├── libzstd.mk │ │ │ ├── libzstd.pc.in │ │ │ ├── module.modulemap │ │ │ ├── zdict.h │ │ │ ├── zstd.h │ │ │ └── zstd_errors.h │ │ │ ├── programs │ │ │ ├── .gitignore │ │ │ ├── BUCK │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── benchfn.c │ │ │ ├── benchfn.h │ │ │ ├── benchzstd.c │ │ │ ├── benchzstd.h │ │ │ ├── datagen.c │ │ │ ├── datagen.h │ │ │ ├── dibio.c │ │ │ ├── dibio.h │ │ │ ├── fileio.c │ │ │ ├── fileio.h │ │ │ ├── fileio_asyncio.c │ │ │ ├── fileio_asyncio.h │ │ │ ├── fileio_common.h │ │ │ ├── fileio_types.h │ │ │ ├── lorem.c │ │ │ ├── lorem.h │ │ │ ├── platform.h │ │ │ ├── timefn.c │ │ │ ├── timefn.h │ │ │ ├── util.c │ │ │ ├── util.h │ │ │ ├── windres │ │ │ │ ├── verrsrc.h │ │ │ │ ├── zstd.rc │ │ │ │ ├── zstd32.res │ │ │ │ └── zstd64.res │ │ │ ├── zstd.1 │ │ │ ├── zstd.1.md │ │ │ ├── zstdcli.c │ │ │ ├── zstdcli_trace.c │ │ │ ├── zstdcli_trace.h │ │ │ ├── zstdgrep │ │ │ ├── zstdgrep.1 │ │ │ ├── zstdgrep.1.md │ │ │ ├── zstdless │ │ │ ├── zstdless.1 │ │ │ └── zstdless.1.md │ │ │ ├── tests │ │ │ ├── .gitignore │ │ │ ├── DEPRECATED-test-zstd-speed.py │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── automated_benchmarking.py │ │ │ ├── bigdict.c │ │ │ ├── checkTag.c │ │ │ ├── check_size.py │ │ │ ├── cli-tests │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── basic │ │ │ │ │ ├── args.sh │ │ │ │ │ ├── args.sh.exit │ │ │ │ │ ├── args.sh.stderr.glob │ │ │ │ │ ├── help.sh │ │ │ │ │ ├── help.sh.stdout.glob │ │ │ │ │ ├── memlimit.sh │ │ │ │ │ ├── memlimit.sh.stderr.exact │ │ │ │ │ ├── memlimit.sh.stdout.exact │ │ │ │ │ ├── output_dir.sh │ │ │ │ │ ├── output_dir.sh.stderr.exact │ │ │ │ │ ├── output_dir.sh.stdout.exact │ │ │ │ │ ├── version.sh │ │ │ │ │ └── version.sh.stdout.glob │ │ │ │ ├── bin │ │ │ │ │ ├── cmp_size │ │ │ │ │ ├── datagen │ │ │ │ │ ├── die │ │ │ │ │ ├── println │ │ │ │ │ ├── unzstd │ │ │ │ │ ├── zstd │ │ │ │ │ ├── zstdcat │ │ │ │ │ ├── zstdgrep │ │ │ │ │ └── zstdless │ │ │ │ ├── cltools │ │ │ │ │ ├── setup │ │ │ │ │ ├── zstdgrep.sh │ │ │ │ │ ├── zstdgrep.sh.exit │ │ │ │ │ ├── zstdgrep.sh.stderr.exact │ │ │ │ │ ├── zstdgrep.sh.stdout.glob │ │ │ │ │ ├── zstdless.sh │ │ │ │ │ ├── zstdless.sh.stderr.exact │ │ │ │ │ └── zstdless.sh.stdout.glob │ │ │ │ ├── common │ │ │ │ │ ├── format.sh │ │ │ │ │ ├── mtime.sh │ │ │ │ │ ├── permissions.sh │ │ │ │ │ └── platform.sh │ │ │ │ ├── compression │ │ │ │ │ ├── adapt.sh │ │ │ │ │ ├── basic.sh │ │ │ │ │ ├── compress-literals.sh │ │ │ │ │ ├── format.sh │ │ │ │ │ ├── golden.sh │ │ │ │ │ ├── gzip-compat.sh │ │ │ │ │ ├── levels.sh │ │ │ │ │ ├── levels.sh.stderr.exact │ │ │ │ │ ├── long-distance-matcher.sh │ │ │ │ │ ├── multi-threaded.sh │ │ │ │ │ ├── multi-threaded.sh.stderr.exact │ │ │ │ │ ├── multiple-files.sh │ │ │ │ │ ├── multiple-files.sh.stdout.exact │ │ │ │ │ ├── row-match-finder.sh │ │ │ │ │ ├── setup │ │ │ │ │ ├── stream-size.sh │ │ │ │ │ ├── verbose-wlog.sh │ │ │ │ │ ├── verbose-wlog.sh.stderr.glob │ │ │ │ │ ├── verbose-wlog.sh.stdout.glob │ │ │ │ │ ├── window-resize.sh │ │ │ │ │ ├── window-resize.sh.stderr.ignore │ │ │ │ │ └── window-resize.sh.stdout.glob │ │ │ │ ├── decompression │ │ │ │ │ ├── detectErrors.sh │ │ │ │ │ ├── golden.sh │ │ │ │ │ ├── pass-through.sh │ │ │ │ │ ├── pass-through.sh.stderr.exact │ │ │ │ │ └── pass-through.sh.stdout.exact │ │ │ │ ├── dict-builder │ │ │ │ │ ├── empty-input.sh │ │ │ │ │ ├── empty-input.sh.stderr.exact │ │ │ │ │ ├── no-inputs.sh │ │ │ │ │ ├── no-inputs.sh.exit │ │ │ │ │ └── no-inputs.sh.stderr.exact │ │ │ │ ├── dictionaries │ │ │ │ │ ├── dictionary-mismatch.sh │ │ │ │ │ ├── dictionary-mismatch.sh.stderr.exact │ │ │ │ │ ├── golden.sh │ │ │ │ │ ├── setup │ │ │ │ │ └── setup_once │ │ │ │ ├── file-handling │ │ │ │ │ ├── directory-mirror.sh │ │ │ │ │ ├── directory-mirror.sh.stderr.exact │ │ │ │ │ └── directory-mirror.sh.stdout.exact │ │ │ │ ├── file-stat │ │ │ │ │ ├── compress-file-to-dir-without-write-perm.sh │ │ │ │ │ ├── compress-file-to-dir-without-write-perm.sh.stderr.exact │ │ │ │ │ ├── compress-file-to-file.sh │ │ │ │ │ ├── compress-file-to-file.sh.stderr.exact │ │ │ │ │ ├── compress-file-to-stdout.sh │ │ │ │ │ ├── compress-file-to-stdout.sh.stderr.exact │ │ │ │ │ ├── compress-stdin-to-file.sh │ │ │ │ │ ├── compress-stdin-to-file.sh.stderr.exact │ │ │ │ │ ├── compress-stdin-to-stdout.sh │ │ │ │ │ ├── compress-stdin-to-stdout.sh.stderr.exact │ │ │ │ │ ├── decompress-file-to-file.sh │ │ │ │ │ ├── decompress-file-to-file.sh.stderr.exact │ │ │ │ │ ├── decompress-file-to-stdout.sh │ │ │ │ │ ├── decompress-file-to-stdout.sh.stderr.exact │ │ │ │ │ ├── decompress-stdin-to-file.sh │ │ │ │ │ ├── decompress-stdin-to-file.sh.stderr.exact │ │ │ │ │ ├── decompress-stdin-to-stdout.sh │ │ │ │ │ └── decompress-stdin-to-stdout.sh.stderr.exact │ │ │ │ ├── progress │ │ │ │ │ ├── no-progress.sh │ │ │ │ │ ├── no-progress.sh.stderr.glob │ │ │ │ │ ├── progress.sh │ │ │ │ │ └── progress.sh.stderr.glob │ │ │ │ ├── run.py │ │ │ │ └── zstd-symlinks │ │ │ │ │ ├── setup │ │ │ │ │ ├── zstdcat.sh │ │ │ │ │ └── zstdcat.sh.stdout.exact │ │ │ ├── datagencli.c │ │ │ ├── decodecorpus.c │ │ │ ├── dict-files │ │ │ │ └── zero-weight-dict │ │ │ ├── external_matchfinder.c │ │ │ ├── external_matchfinder.h │ │ │ ├── fullbench.c │ │ │ ├── fuzz │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── block_decompress.c │ │ │ │ ├── block_round_trip.c │ │ │ │ ├── decompress_cross_format.c │ │ │ │ ├── decompress_dstSize_tooSmall.c │ │ │ │ ├── dictionary_decompress.c │ │ │ │ ├── dictionary_loader.c │ │ │ │ ├── dictionary_round_trip.c │ │ │ │ ├── dictionary_stream_round_trip.c │ │ │ │ ├── fse_read_ncount.c │ │ │ │ ├── fuzz.h │ │ │ │ ├── fuzz.py │ │ │ │ ├── fuzz_data_producer.c │ │ │ │ ├── fuzz_data_producer.h │ │ │ │ ├── fuzz_helpers.c │ │ │ │ ├── fuzz_helpers.h │ │ │ │ ├── fuzz_third_party_seq_prod.h │ │ │ │ ├── generate_sequences.c │ │ │ │ ├── huf_decompress.c │ │ │ │ ├── huf_round_trip.c │ │ │ │ ├── raw_dictionary_round_trip.c │ │ │ │ ├── regression_driver.c │ │ │ │ ├── seekable_roundtrip.c │ │ │ │ ├── seq_prod_fuzz_example │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ └── example_seq_prod.c │ │ │ │ ├── sequence_compression_api.c │ │ │ │ ├── simple_compress.c │ │ │ │ ├── simple_decompress.c │ │ │ │ ├── simple_round_trip.c │ │ │ │ ├── stream_decompress.c │ │ │ │ ├── stream_round_trip.c │ │ │ │ ├── zstd_frame_info.c │ │ │ │ ├── zstd_helpers.c │ │ │ │ └── zstd_helpers.h │ │ │ ├── fuzzer.c │ │ │ ├── golden-compression │ │ │ │ ├── PR-3517-block-splitter-corruption-test │ │ │ │ ├── http │ │ │ │ ├── huffman-compressed-larger │ │ │ │ └── large-literal-and-match-lengths │ │ │ ├── golden-decompression-errors │ │ │ │ ├── .gitignore │ │ │ │ ├── off0.bin.zst │ │ │ │ └── zeroSeq_extraneous.zst │ │ │ ├── golden-decompression │ │ │ │ ├── block-128k.zst │ │ │ │ ├── empty-block.zst │ │ │ │ ├── rle-first-block.zst │ │ │ │ └── zeroSeq_2B.zst │ │ │ ├── golden-dictionaries │ │ │ │ └── http-dict-missing-symbols │ │ │ ├── gzip │ │ │ │ ├── Makefile │ │ │ │ ├── gzip-env.sh │ │ │ │ ├── helin-segv.sh │ │ │ │ ├── help-version.sh │ │ │ │ ├── hufts-segv.gz │ │ │ │ ├── hufts.sh │ │ │ │ ├── init.cfg │ │ │ │ ├── init.sh │ │ │ │ ├── keep.sh │ │ │ │ ├── list.sh │ │ │ │ ├── memcpy-abuse.sh │ │ │ │ ├── mixed.sh │ │ │ │ ├── null-suffix-clobber.sh │ │ │ │ ├── stdin.sh │ │ │ │ ├── test-driver.sh │ │ │ │ ├── trailing-nul.sh │ │ │ │ ├── unpack-invalid.sh │ │ │ │ ├── z-suffix.sh │ │ │ │ ├── zdiff.sh │ │ │ │ ├── zgrep-context.sh │ │ │ │ ├── zgrep-f.sh │ │ │ │ ├── zgrep-signal.sh │ │ │ │ └── znew-k.sh │ │ │ ├── invalidDictionaries.c │ │ │ ├── legacy.c │ │ │ ├── libzstd_builds.sh │ │ │ ├── longmatch.c │ │ │ ├── loremOut.c │ │ │ ├── loremOut.h │ │ │ ├── paramgrill.c │ │ │ ├── playTests.sh │ │ │ ├── poolTests.c │ │ │ ├── rateLimiter.py │ │ │ ├── regression │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── README.md │ │ │ │ ├── config.c │ │ │ │ ├── config.h │ │ │ │ ├── data.c │ │ │ │ ├── data.h │ │ │ │ ├── levels.h │ │ │ │ ├── method.c │ │ │ │ ├── method.h │ │ │ │ ├── result.c │ │ │ │ ├── result.h │ │ │ │ ├── results.csv │ │ │ │ └── test.c │ │ │ ├── roundTripCrash.c │ │ │ ├── seqgen.c │ │ │ ├── seqgen.h │ │ │ ├── test-license.py │ │ │ ├── test-variants.sh │ │ │ ├── test-zstd-versions.py │ │ │ └── zstreamtest.c │ │ │ └── zlibWrapper │ │ │ ├── .gitignore │ │ │ ├── BUCK │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── examples │ │ │ ├── example.c │ │ │ ├── example_original.c │ │ │ ├── fitblk.c │ │ │ ├── fitblk_original.c │ │ │ ├── minigzip.c │ │ │ └── zwrapbench.c │ │ │ ├── gzclose.c │ │ │ ├── gzcompatibility.h │ │ │ ├── gzguts.h │ │ │ ├── gzlib.c │ │ │ ├── gzread.c │ │ │ ├── gzwrite.c │ │ │ ├── zstd_zlibwrapper.c │ │ │ └── zstd_zlibwrapper.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 │ │ └── fuzz.c └── lightrec │ ├── .gitignore │ ├── CMakeLists.txt │ ├── COPYING │ ├── Makefile.NoLog │ ├── Makefile.WithLog │ ├── README.md │ ├── arch.h │ ├── blockcache.c │ ├── blockcache.h │ ├── constprop.c │ ├── constprop.h │ ├── debug.h │ ├── disassembler.c │ ├── disassembler.h │ ├── emitter.c │ ├── emitter.h │ ├── interpreter.c │ ├── interpreter.h │ ├── lightning-wrapper.h │ ├── lightrec-config.h │ ├── lightrec-config.h.cmakein │ ├── lightrec-private.h │ ├── lightrec.c │ ├── lightrec.h │ ├── memmanager.c │ ├── memmanager.h │ ├── optimizer.c │ ├── optimizer.h │ ├── reaper.c │ ├── reaper.h │ ├── recompiler.c │ ├── recompiler.h │ ├── regcache.c │ ├── regcache.h │ ├── slist.h │ └── tlsf │ ├── .gitrepo │ ├── README.md │ ├── tlsf.c │ └── tlsf.h ├── 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.c ├── gpu.h ├── gpulib ├── gpu.h ├── gpu_timing.h ├── gpulib.c ├── oldGpu.c ├── plugin_lib.h ├── prim.c └── vout_pl.c ├── gte.c ├── gte.h ├── gte_divider.h ├── gte_divider_int.c ├── gu_psasm.S ├── lang ├── de.lang ├── en.lang ├── es.lang ├── it.lang ├── kr.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.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 ├── xaDecode.S └── 汉化版说明.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 | deps/lightrec/lib/* 9 | 10 | deps/libchdr/lib/libchdr.a 11 | deps/libchdr/deps/lzma-19.00/lib/liblzma.a 12 | deps/libchdr/deps/zlib-1.3.1/bin/lib/libzlibstatic.a 13 | -------------------------------------------------------------------------------- /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/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/imagedata/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/fileBrowser/imagedata/icon.png -------------------------------------------------------------------------------- /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/gui2/gettext.h: -------------------------------------------------------------------------------- 1 | #ifndef _GETTEXT_H_ 2 | #define _GETTEXT_H_ 3 | 4 | bool LoadLanguage(); 5 | void ChangeLanguage(); 6 | void ReleaseLanguage(); 7 | 8 | /* 9 | * input msg = a text in ASCII 10 | * output = the translated msg in utf-8 11 | */ 12 | extern "C" const char *gettext(const char *msg); 13 | extern "C" char * JoinString(char *s1, char *s2); 14 | 15 | enum { 16 | LANG_JAPANESE = 0, 17 | LANG_ENGLISH, 18 | LANG_GERMAN, 19 | LANG_FRENCH, 20 | LANG_SPANISH, 21 | LANG_ITALIAN, 22 | LANG_DUTCH, 23 | LANG_SIMP_CHINESE, 24 | LANG_TRAD_CHINESE, 25 | LANG_KOREAN, 26 | LANG_PORTUGUESE, 27 | LANG_BRAZILIAN_PORTUGUESE, 28 | LANG_CATALAN, 29 | LANG_TURKISH, 30 | LANG_LENGTH 31 | }; 32 | 33 | #endif /* _GETTEXT_H_ */ 34 | -------------------------------------------------------------------------------- /Gamecube/libgui/resources/Button.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/Button.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonA.tlt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonA.tlt -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonA.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonA.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonAFoc.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonAFoc.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOff.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonASelOff.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOffFoc.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonASelOffFoc.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOn.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonASelOn.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonASelOnFoc.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonASelOnFoc.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/ButtonFocus.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/ButtonFocus.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/CursorGrab.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/CursorGrab.tx -------------------------------------------------------------------------------- /Gamecube/libgui/resources/CursorPoint.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/libgui/resources/CursorPoint.tx -------------------------------------------------------------------------------- /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/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/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/resources/GCon.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/GCon.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/Just.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/Just.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/Loading.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/Loading.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/PSMouse.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/PSMouse.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/bg.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/bg.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlClassic.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/cntrlClassic.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlEmpty.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/cntrlEmpty.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlGC.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/cntrlGC.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlHidGC.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/cntrlHidGC.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlWM.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/cntrlWM.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/cntrlWNC.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/menu/resources/cntrlWNC.tx -------------------------------------------------------------------------------- /Gamecube/menu/resources/psxCntrl.tx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/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/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/Gamecube/release/apps/WiiStation/icon.png -------------------------------------------------------------------------------- /Gamecube/release/controllers/0079_0126.ini: -------------------------------------------------------------------------------- 1 | [Generic USB Gamepad For WiiStation] 2 | VID=0079 3 | PID=0126 4 | Polltype=1 5 | DPAD=0 6 | DigitalLR=2 7 | KeyA=0,08 8 | KeyB=0,04 9 | KeyX=0,02 10 | KeyY=0,01 11 | KeyL1=0,10 12 | KeyR1=0,20 13 | KeyL2=0,40 14 | KeyR2=0,80 15 | KeyStart=1,02 16 | KeySelect=1,01 17 | KeyLeft=2,06 18 | KeyDown=2,04 19 | KeyRight=2,02 20 | KeyUp=2,00 21 | StickX=3,0,0 22 | StickY=4,0,0 23 | CStickX=5,0,0 24 | CStickY=6,0,0 25 | RAnalog=12 26 | LAnalog=11 27 | Rumble=1 28 | RumbleType=1 29 | RumbleDataLen=0E 30 | RumbleDataOn=51,00,00,00,FF,00,00,FA,FE,00,00,00,00,00 31 | RumbleDataOff=51,00,00,00,00,00,00,FA,FE,00,00,00,00,00 32 | RumbleTransferLen=07 33 | RumbleTransfers=2 34 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0079_1800.ini: -------------------------------------------------------------------------------- 1 | [Mayflash WiiU Pro Controller Adapter - W009 For WiiStation] 2 | VID=0079 3 | PID=1800 4 | Polltype=1 5 | MultiIn=1 6 | MultiInValue=01 7 | DPAD=1 8 | DigitalLR=1 9 | KeyA=1,04 10 | KeyB=1,01 11 | KeyX=1,08 12 | KeyY=1,02 13 | KeyL1=1,10 14 | KeyR1=1,20 15 | KeyL2=1,40 16 | KeyR2=1,80 17 | KeyStart=2,08 18 | KeySelect=2,02 19 | KeyLeft=7,06 20 | KeyDown=7,04 21 | KeyRight=7,02 22 | KeyUp=7,00 23 | RightUp=7,01 24 | DownRight=7,03 25 | DownLeft=7,05 26 | UpLeft=7,07 27 | StickX=3,0,0 28 | StickY=4,0,0 29 | CStickX=5,0,0 30 | CStickY=6,0,0 31 | LAnalog=0 32 | RAnalog=0 33 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0445_D007.ini: -------------------------------------------------------------------------------- 1 | [Thrustmaster T-Wireless For WiiStation] 2 | VID=044F 3 | PID=D007 4 | Polltype=1 5 | DPAD=1 6 | KeyA=0,02 7 | KeyB=0,01 8 | KeyX=0,04 9 | KeyY=0,08 10 | KeyL1=0,10 11 | KeyR1=0,20 12 | KeyL2=0,40 13 | KeyR2=0,80 14 | KeyStart=1,02 15 | KeySelect=1,01 16 | KeyLeft=2,26 17 | KeyDown=2,24 18 | KeyRight=2,22 19 | KeyUp=2,20 20 | RightUp=2,21 21 | DownRight=2,23 22 | DownLeft=2,25 23 | UpLeft=2,27 24 | StickX=3,0,0 25 | StickY=4,0,0 26 | CStickX=5,0,0 27 | CStickY=6,0,0 28 | DigitalLR=1 29 | LAnalog=0 30 | RAnalog=0 31 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/044F_B303.ini: -------------------------------------------------------------------------------- 1 | [Logitech Thrustmaster Firestorm Dual Analog 2 For WiiStation] 2 | VID=044F 3 | PID=B303 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | KeyA=0,01 8 | KeyB=0,02 9 | KeyX=0,04 10 | KeyY=0,08 11 | KeyL1=0,10 12 | KeyR1=0,40 13 | KeyL2=0,20 14 | KeyR2=0,80 15 | KeyStart=1,02 16 | KeySelect=1,01 17 | KeyLeft=2,60 18 | KeyDown=2,40 19 | KeyRight=2,20 20 | KeyUp=2,00 21 | RightUp=2,10 22 | DownRight=2,30 23 | DownLeft=2,50 24 | UpLeft=2,70 25 | StickX=3,0,0 26 | StickY=4,0,0 27 | CStickX=5,0,0 28 | CStickY=6,0,0 29 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/044F_B315.ini: -------------------------------------------------------------------------------- 1 | [Thrustmaster Dual Analog 4 For WiiStation] 2 | VID=044F 3 | PID=B315 4 | Polltype=1 5 | DigitalLR=1 6 | DPAD=1 7 | KeyA=0,04 8 | KeyB=0,01 9 | KeyX=0,08 10 | KeyY=0,02 11 | KeyL1=0,10 12 | KeyR1=0,40 13 | KeyL2=0,20 14 | KeyR2=0,80 15 | KeyStart=1,02 16 | KeySelect=1,01 17 | KeyLeft=2,60 18 | KeyDown=2,40 19 | KeyRight=2,20 20 | KeyUp=2,00 21 | RightUp=2,10 22 | DownRight=2,30 23 | DownLeft=2,50 24 | UpLeft=2,70 25 | StickX=3,0,0 26 | StickY=4,0,0 27 | CStickX=5,0,0 28 | CStickY=6,0,0 29 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/045E_001B.ini: -------------------------------------------------------------------------------- 1 | [Microsoft Sidewinder Force Feedback 2 Joystick For WiiStation] 2 | VID=045E 3 | PID=001B 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | KeyA=8,01 8 | KeyB=8,02 9 | KeyX=8,08 10 | KeyY=8,04 11 | KeyL2=8,80 12 | KeyR2=8,10 13 | KeyStart=8,40 14 | KeyLeft=7,06 15 | KeyDown=7,04 16 | KeyRight=7,02 17 | KeyUp=7,00 18 | RightUp=7,01 19 | DownRight=7,03 20 | DownLeft=7,05 21 | UpLeft=7,07 22 | StickX=1,0,0 23 | StickY=3,0,0 24 | CStickX=5,0,0 25 | CStickY=6,0,0 26 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/045E_0038.ini: -------------------------------------------------------------------------------- 1 | [Microsoft Sidewinder Precision 2 Joystick WiiStation] 2 | VID=045E 3 | PID=0038 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | KeyA=4,01 8 | KeyB=4,02 9 | KeyX=4,08 10 | KeyY=4,04 11 | KeyR1=4,20 12 | KeyL2=4,80 13 | KeyR2=4,10 14 | KeyStart=4,40 15 | KeyLeft=5,60 16 | KeyDown=5,40 17 | KeyRight=5,20 18 | KeyUp=5,00 19 | RightUp=5,10 20 | DownRight=5,30 21 | DownLeft=5,50 22 | UpLeft=5,70 23 | StickX=0,0,0 24 | StickY=1,0,0 25 | CStickX=2,0,0 26 | CStickY=3,0,0 27 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/046D_C218.ini: -------------------------------------------------------------------------------- 1 | [Logitech RumblePad 2 and Rumble Gamepad F510 For WiiStation] 2 | VID=046D 3 | PID=C218 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | KeyA=4,20 8 | KeyB=4,10 9 | KeyX=4,40 10 | KeyY=4,80 11 | KeyL1=5,01 12 | KeyR1=5,02 13 | KeyL2=5,04 14 | KeyR2=5,08 15 | KeySelect=5,10 16 | KeyStart=5,20 17 | KeyLeft=4,06 18 | KeyDown=4,04 19 | KeyRight=4,02 20 | KeyUp=4,00 21 | RightUp=4,01 22 | DownRight=4,03 23 | DownLeft=4,05 24 | UpLeft=4,07 25 | StickX=0,0,0 26 | StickY=1,0,0 27 | CStickX=2,0,0 28 | CStickY=3,0,0 29 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/046D_C219.ini: -------------------------------------------------------------------------------- 1 | [Logitech Cordless Rumblepad 2 For WiiStation] 2 | VID=046D 3 | PID=C219 4 | Polltype=1 5 | DPAD=1 6 | KeyB=5,10 7 | KeyA=5,20 8 | KeyY=5,40 9 | KeyX=5,80 10 | KeyL1=6,01 11 | KeyR1=6,02 12 | KeyL2=6,04 13 | KeyR2=6,08 14 | KeyStart=6,20 15 | KeySelect=6,10 16 | KeyLeft=5,06 17 | KeyDown=5,04 18 | KeyRight=5,02 19 | KeyUp=5,00 20 | RightUp=5,01 21 | DownRight=5,03 22 | DownLeft=5,05 23 | UpLeft=5,07 24 | StickX=1,0,0 25 | StickY=2,0,0 26 | CStickX=3,0,0 27 | CStickY=4,0,0 28 | LAnalog=0 29 | RAnalog=0 30 | DigitalLR=1 31 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/054C_0268.ini: -------------------------------------------------------------------------------- 1 | [DualShock 3 For WiiStation] 2 | VID=054C 3 | PID=0268 4 | Polltype=0 5 | DPAD=0 6 | DigitalLR=2 7 | Rumble=1 8 | KeyA=3,80 9 | KeyB=3,40 10 | KeyX=3,20 11 | KeyY=3,10 12 | KeyL1=3,04 13 | KeyR1=3,08 14 | KeyL2=3,01 15 | KeyR2=3,02 16 | KeyStart=2,08 17 | KeySelect=2,01 18 | KeyLeft=2,80 19 | KeyDown=2,40 20 | KeyRight=2,20 21 | KeyUp=2,10 22 | StickX=6,0,0 23 | StickY=7,0,0 24 | CStickX=8,0,0 25 | CStickY=9,0,0 26 | LAnalog=12 27 | RAnalog=13 28 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/054C_05C4.ini: -------------------------------------------------------------------------------- 1 | [DualShock 4v1 For WiiStation] 2 | VID=054C 3 | PID=05C4 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=2 7 | KeyA=5,40 8 | KeyB=5,20 9 | KeyX=5,80 10 | KeyY=5,10 11 | KeyL1=6,01 12 | KeyR1=6,02 13 | KeyL2=8,F0 14 | KeyR2=9,F0 15 | KeyStart=6,20 16 | KeySelect=6,10 17 | KeyLeft=5,06 18 | KeyDown=5,04 19 | KeyRight=5,02 20 | KeyUp=5,00 21 | RightUp=5,01 22 | DownRight=5,03 23 | DownLeft=5,05 24 | UpLeft=5,07 25 | StickX=1,0,0 26 | StickY=2,0,0 27 | CStickX=3,0,0 28 | CStickY=4,0,0 29 | LAnalog=8 30 | RAnalog=9 31 | Rumble=1 32 | RumbleType=1 33 | RumbleDataLen=06 34 | RumbleDataOn=05,01,00,00,FF,FF 35 | RumbleDataOff=05,01,00,00,00,00 36 | RumbleTransferLen=06 37 | RumbleTransfers=1 38 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/054C_05C5.ini: -------------------------------------------------------------------------------- 1 | [CronusMax Xbox360 Adapter WiiStation] 2 | VID=054C 3 | PID=05C5 4 | Polltype=1 5 | DPAD=1 6 | KeyA=5,20 7 | KeyB=5,40 8 | KeyX=5,10 9 | KeyY=5,80 10 | KeyL1=6,04 11 | KeyR1=6,08 12 | KeyL2=6,01 13 | KeyR2=6,02 14 | KeyStart=6,20 15 | KeySelect=6,10 16 | KeyLeft=5,06 17 | KeyDown=5,04 18 | KeyRight=5,02 19 | KeyUp=5,00 20 | RightUp=5,01 21 | DownRight=5,03 22 | DownLeft=5,05 23 | UpLeft=5,07 24 | StickX=1,0,0 25 | StickY=2,0,0 26 | CStickX=3,0,0 27 | CStickY=4,0,0 28 | LAnalog=8 29 | RAnalog=9 30 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/054C_09CC.ini: -------------------------------------------------------------------------------- 1 | [DualShock 4v2 For WiiStation] 2 | VID=054C 3 | PID=09CC 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=2 7 | KeyA=5,80 8 | KeyB=5,40 9 | KeyX=5,20 10 | KeyY=5,10 11 | KeyL1=6,01 12 | KeyR1=6,02 13 | KeyL2=8,F0 14 | KeyR2=9,F0 15 | KeyStart=6,20 16 | KeySelect=6,10 17 | KeyLeft=5,06 18 | KeyDown=5,04 19 | KeyRight=5,02 20 | KeyUp=5,00 21 | RightUp=5,01 22 | DownRight=5,03 23 | DownLeft=5,05 24 | UpLeft=5,07 25 | StickX=1,0,0 26 | StickY=2,0,0 27 | CStickX=3,0,0 28 | CStickY=4,0,0 29 | LAnalog=8 30 | RAnalog=9 31 | Rumble=1 32 | RumbleType=1 33 | RumbleDataLen=06 34 | RumbleDataOn=05,01,00,00,FF,FF 35 | RumbleDataOff=05,01,00,00,00,00 36 | RumbleTransferLen=06 37 | RumbleTransfers=1 38 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/057E_0337.ini: -------------------------------------------------------------------------------- 1 | [Nintendo Wii U GameCube Controller Adapter For WiiStation] 2 | VID=057E 3 | PID=0337 4 | Polltype=1 5 | DPAD=1 6 | MultiIn=3 7 | MultiInValue=09 8 | Power=3,0F 9 | KeyA=2,01 10 | KeyB=2,02 11 | KeyX=2,04 12 | KeyY=2,08 13 | KeyL1=3,20 14 | KeyR1=3,02 15 | KeyL2=3,08 16 | KeyR2=3,04 17 | KeyStart=3,01 18 | KeySelect=3,10 19 | KeyLeft=2,10 20 | KeyDown=2,40 21 | KeyRight=2,20 22 | KeyUp=2,80 23 | RightUp=2,A0 24 | DownRight=2,60 25 | DownLeft=2,50 26 | UpLeft=2,90 27 | StickX=4,0,100 28 | StickY=5,0,100 29 | CStickX=6,0,100 30 | CStickY=7,0,100 31 | LAnalog=8 32 | RAnalog=9 33 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0810_0001.ini: -------------------------------------------------------------------------------- 1 | [PS2 Controller For WiiStation] 2 | VID=0810 3 | PID=0001 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | MultiIn=1 8 | MultiInValue=01 9 | KeyA=5,80 10 | KeyB=5,40 11 | KeyX=5,20 12 | KeyY=5,10 13 | KeyL1=6,04 14 | KeyR1=6,08 15 | KeyL2=6,01 16 | KeyR2=6,02 17 | KeyStart=6,20 18 | KeySelect=6,10 19 | KeyLeft=5,06 20 | KeyDown=5,04 21 | KeyRight=5,02 22 | KeyUp=5,00 23 | RightUp=5,01 24 | DownRight=5,03 25 | DownLeft=5,05 26 | UpLeft=5,07 27 | StickX=3,1A,100 28 | StickY=4,1A,100 29 | CStickX=2,1A,100 30 | CStickY=1,1A,100 31 | LAnalog=0 32 | RAnalog=0 33 | Rumble=1 34 | RumbleType=0 35 | RumbleDataLen=05 36 | RumbleDataOn=01,00,00,7F,7F 37 | RumbleDataOff=01,00,00,00,00 38 | RumbleTransferLen=05 39 | RumbleTransfers=1 40 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0810_0003.ini: -------------------------------------------------------------------------------- 1 | [Trust Predator Gamepad For WiiStation] 2 | VID=0810 3 | PID=0003 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | KeyA=5,80 8 | KeyB=5,40 9 | KeyX=5,20 10 | KeyY=5,10 11 | KeyL1=6,04 12 | KeyR1=6,08 13 | KeyL2=6,01 14 | KeyR2=6,02 15 | KeyStart=6,20 16 | KeySelect=6,10 17 | KeyLeft=5,06 18 | KeyDown=5,04 19 | KeyRight=5,02 20 | KeyUp=5,00 21 | RightUp=5,01 22 | DownRight=5,03 23 | DownLeft=5,05 24 | UpLeft=5,07 25 | StickX=3,0,0 26 | StickY=4,0,0 27 | CStickX=2,0,0 28 | CStickY=1,0,0 29 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0925_03E8.ini: -------------------------------------------------------------------------------- 1 | [Mayflash CCPro USB Adapter - PC045 For WiiStation] 2 | VID=0925 3 | PID=03E8 4 | Polltype=1 5 | MultiIn=1 6 | MultiInValue=01 7 | DPAD=1 8 | DigitalLR=2 9 | Power=2,03 10 | KeyA=1,02 11 | KeyB=1,08 12 | KeyX=1,01 13 | KeyY=1,04 14 | KeyL1=1,40 15 | KeyR1=1,80 16 | KeyL2=6,78 17 | KeyR2=7,0F 18 | KeyStart=2,02 19 | KeySelect=2,01 20 | KeyLeft=4,60 21 | KeyDown=4,40 22 | KeyRight=4,20 23 | KeyUp=4,00 24 | RightUp=4,10 25 | DownRight=4,30 26 | DownLeft=4,50 27 | UpLeft=4,70 28 | StickX=3,0,100 29 | StickY=4,0,100 30 | CStickX=5,0,100 31 | CStickY=6,0,100 32 | LAnalog=6 33 | RAnalog=7 34 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0926_2526.ini: -------------------------------------------------------------------------------- 1 | [Mayflash 3 in 1 Magic Joy Box For WiiStation] 2 | VID=0926 3 | PID=2526 4 | Polltype=1 5 | DPAD=1 6 | KeyA=1,01 7 | KeyB=1,02 8 | KeyX=1,04 9 | KeyY=1,08 10 | KeyR1=1,40 11 | KeyL2=1,10 12 | KeyR2=1,20 13 | KeyStart=1,80 14 | KeyLeft=2,01 15 | KeyDown=2,04 16 | KeyRight=2,02 17 | KeyUp=2,08 18 | RightUp=2,0A 19 | DownRight=2,06 20 | DownLeft= 2,05 21 | UpLeft=2,09 22 | StickX=3,0,100 23 | StickY=4,0,100 24 | CStickX=5,0,100 25 | CStickY=6,0,100 26 | LAnalog=7 27 | RAnalog=7 28 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0955_7210.ini: -------------------------------------------------------------------------------- 1 | [Nvidia Shield For WiiStation] 2 | VID=0955 3 | PID=7210 4 | Polltype=1 5 | MultiIn=1 6 | MultiInValue=01 7 | DPAD=1 8 | DigitalLR=2 9 | Power=2,80 10 | KeyA=1,01 11 | KeyB=1,04 12 | KeyX=1,02 13 | KeyY=1,08 14 | KeyL1=1,10 15 | KeyR1=1,20 16 | KeyL2=0D,FF 17 | KeyR2=0F,FF 18 | KeySelect=2,01 19 | KeyStart=2,02 20 | KeyLeft=3,06 21 | KeyDown=3,04 22 | KeyRight=3,02 23 | KeyUp=3,00 24 | RightUp=3,01 25 | DownRight=3,03 26 | DownLeft=3,05 27 | UpLeft=3,07 28 | StickX=5,0,0 29 | StickY=7,0,0 30 | CStickX=9,0,0 31 | CStickY=0B,0,0 32 | LAnalog=0D 33 | RAnalog=0F 34 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/0F0D_0011.ini: -------------------------------------------------------------------------------- 1 | [Hori Real Arcade Pro 3 SA For WiiStation] 2 | VID=0F0D 3 | PID=0011 4 | Polltype=0 5 | DPAD=0 6 | DigitalLR=1 7 | KeyA=0,8 8 | KeyB=0,4 9 | KeyX=0,2 10 | KeyY=0,1 11 | KeyL1=11,FF 12 | KeyR1=12,FF 13 | KeyL2=0,10 14 | KeyR2=0,20 15 | KeyStart=1,2 16 | KeySelect=1,1 17 | KeyLeft=8,FF 18 | KeyDown=0A,FF 19 | KeyRight=7,FF 20 | KeyUp=9,FF 21 | StickX=3,0,0 22 | StickY=4,0,0 23 | CStickX=5,0,0 24 | CStickY=6,0,0 25 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/1A34_0836.ini: -------------------------------------------------------------------------------- 1 | [PDP Afterglow AP.1 Controller for PS3 For WiiStation] 2 | VID=1A34 3 | PID=0836 4 | Polltype=1 5 | DPAD=1 6 | KeyA=5,02 7 | KeyB=5,01 8 | KeyX=5,04 9 | KeyY=5,08 10 | KeyL1=5,10 11 | KeyR1=5,20 12 | KeyL2=5,40 13 | KeyR2=5,80 14 | KeyStart=6,02 15 | KeySelect=6,01 16 | KeyLeft=7,06 17 | KeyDown=7,04 18 | KeyRight=7,02 19 | KeyUp=7,00 20 | RightUp=7,01 21 | DownRight=7,03 22 | DownLeft=7,05 23 | UpLeft=7,07 24 | StickX=0,0,0 25 | StickY=1,0,0 26 | CStickX=2,0,0 27 | CStickY=3,0,0 28 | LAnalog=0 29 | RAnalog=0 30 | DigitalLR=1 31 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/1D79_0301.ini: -------------------------------------------------------------------------------- 1 | [MayFlash Wii CC USB Adapter - PC052 For WiiStation] 2 | VID=1D79 3 | PID=0301 4 | Polltype=1 5 | DPAD=1 6 | DigitalLR=1 7 | KeyA=5,80 8 | KeyB=5,40 9 | KeyX=5,20 10 | KeyY=5,10 11 | KeyL1=6,01 12 | KeyR1=6,02 13 | KeyL2=6,04 14 | KeyR2=6,08 15 | KeyStart=6,20 16 | KeySelect=6,10 17 | KeyLeft=5,06 18 | KeyDown=5,04 19 | KeyRight=5,02 20 | KeyUp=5,00 21 | RightUp=5,01 22 | DownRight=5,03 23 | DownLeft=5,05 24 | UpLeft=5,07 25 | StickX=2,0,0 26 | StickY=3,0,0 27 | CStickX=0,0,0 28 | CStickY=1,0,0 29 | LAnalog=20 30 | RAnalog=21 31 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/2006_0118.ini: -------------------------------------------------------------------------------- 1 | [Trio Linker Plus II For WiiStation] 2 | VID=2006 3 | PID=0118 4 | Polltype=1 5 | DPAD=1 6 | KeyA=1,01 7 | KeyB=1,02 8 | KeyX=1,04 9 | KeyY=1,08 10 | KeyL1=1,40 11 | KeyR1=1,80 12 | KeyL2=1,10 13 | KeyR2=1,20 14 | KeyStart=2,01 15 | KeySelect=2,02 16 | KeyLeft=2,60 17 | KeyDown=2,40 18 | KeyRight=2,20 19 | KeyUp=2,00 20 | RightUp=2,10 21 | DownRight=2,30 22 | DownLeft=2,50 23 | UpLeft=2,70 24 | StickX=3,0,0 25 | StickY=4,0,0 26 | CStickX=5,0,0 27 | CStickY=6,0,0 28 | LAnalog=7 29 | RAnalog=7 30 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/25F0_83C1.ini: -------------------------------------------------------------------------------- 1 | [Gioteck SC-1 WiiStation] 2 | VID=25F0 3 | PID=83C1 4 | Polltype=1 5 | DPAD=1 6 | KeyA=0,08 7 | KeyB=0,04 8 | KeyX=0,02 9 | KeyY=0,01 10 | KeyL1=0,10 11 | KeyR1=0,20 12 | KeyL2=0,40 13 | KeyR2=0,80 14 | KeyStart=1,02 15 | KeySelect=1,01 16 | KeyLeft=2,06 17 | KeyDown=2,04 18 | KeyRight=2,02 19 | KeyUp=2,00 20 | RightUp=2,01 21 | DownRight=2,03 22 | DownLeft=2,05 23 | UpLeft=2,07 24 | StickX=3,0,0 25 | StickY=4,0,0 26 | CStickX=5,0,0 27 | CStickY=6,0,0 28 | LAnalog=11 29 | RAnalog=12 30 | -------------------------------------------------------------------------------- /Gamecube/release/controllers/7701_0003.ini: -------------------------------------------------------------------------------- 1 | [Trio Linker V1 For WiiStation] 2 | VID=7701 3 | PID=0003 4 | Polltype=1 5 | DPAD=0 6 | DigitalLR=0 7 | KeyA=0,08 8 | KeyB=0,04 9 | KeyX=0,02 10 | KeyY=0,01 11 | KeyL1=0,40 12 | KeyR1=0,80 13 | KeyL2=0,10 14 | KeyR2=0,20 15 | KeyStart=1,02 16 | KeySelect=1,01 17 | KeyLeft=1,80 18 | KeyDown=1,40 19 | KeyRight=1,20 20 | KeyUp=1,10 21 | StickX=2,0,0 22 | StickY=3,0,0 23 | CStickX=4,0,0 24 | CStickY=5,0,0 25 | LAnalog=0 26 | RAnalog=0 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /HidController/wiidrc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 FIX94 3 | * 4 | * This software may be modified and distributed under the terms 5 | * of the MIT license. See the LICENSE file for details. 6 | */ 7 | #ifndef _WIIDRC_H_ 8 | #define _WIIDRC_H_ 9 | 10 | #define WIIDRC_BUTTON_A 0x8000 11 | #define WIIDRC_BUTTON_B 0x4000 12 | #define WIIDRC_BUTTON_X 0x2000 13 | #define WIIDRC_BUTTON_Y 0x1000 14 | #define WIIDRC_BUTTON_LEFT 0x0800 15 | #define WIIDRC_BUTTON_RIGHT 0x0400 16 | #define WIIDRC_BUTTON_UP 0x0200 17 | #define WIIDRC_BUTTON_DOWN 0x0100 18 | #define WIIDRC_BUTTON_ZL 0x0080 19 | #define WIIDRC_BUTTON_ZR 0x0040 20 | #define WIIDRC_BUTTON_L 0x0020 21 | #define WIIDRC_BUTTON_R 0x0010 22 | #define WIIDRC_BUTTON_PLUS 0x0008 23 | #define WIIDRC_BUTTON_MINUS 0x0004 24 | #define WIIDRC_BUTTON_HOME 0x0002 25 | 26 | #define WIIDRC_EXTRA_BUTTON_L3 0x80 27 | #define WIIDRC_EXTRA_BUTTON_R3 0x40 28 | #define WIIDRC_EXTRA_BUTTON_TV 0x30 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /LightrecByPPC29Libogc1.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/LightrecByPPC29Libogc1.6.zip -------------------------------------------------------------------------------- /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/gpuPeopsSoft.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/PeopsSoftGPU/gpuPeopsSoft.aps -------------------------------------------------------------------------------- /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/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/PeopsSoftGPU/gpupeopssoft.ncb -------------------------------------------------------------------------------- /PeopsSoftGPU/gpupeopssoft.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/PeopsSoftGPU/gpupeopssoft.opt -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /compiler_features.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef __GNUC__ 3 | # define likely(x) __builtin_expect((x),1) 4 | # define unlikely(x) __builtin_expect((x),0) 5 | # define preload __builtin_prefetch 6 | # ifdef __clang__ 7 | # define noinline __attribute__((noinline)) 8 | # else 9 | # define noinline __attribute__((noinline,noclone)) 10 | # endif 11 | # define unused __attribute__((unused)) 12 | #else 13 | # define likely(x) (x) 14 | # define unlikely(x) (x) 15 | # define preload (x) 16 | # define noinline 17 | # define unused 18 | #endif 19 | 20 | #ifndef __has_builtin 21 | #define __has_builtin(x) 0 22 | #endif 23 | 24 | #if __has_builtin(__builtin_add_overflow) || (defined(__GNUC__) && __GNUC__ >= 5) 25 | #define add_overflow(a, b, r) __builtin_add_overflow(a, b, &(r)) 26 | #define sub_overflow(a, b, r) __builtin_sub_overflow(a, b, &(r)) 27 | #else 28 | #define add_overflow(a, b, r) ({r = (u32)a + (u32)b; (a ^ ~b) & (a ^ r) & (1u<<31);}) 29 | #define sub_overflow(a, b, r) ({r = (u32)a - (u32)b; (a ^ b) & (a ^ r) & (1u<<31);}) 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /database.h: -------------------------------------------------------------------------------- 1 | #ifndef DATABASE_H 2 | #define DATABASE_H 3 | 4 | void Apply_Hacks_Cdrom(void); 5 | int check_unsatisfied_libcrypt(void); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /deps/libchdr/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /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@v4 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/.github/workflows/switch.yml: -------------------------------------------------------------------------------- 1 | name: Nintendo Switch 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | container: devkitpro/devkita64:latest 9 | 10 | steps: 11 | - uses: actions/checkout@v4 12 | 13 | - name: Configure CMake 14 | run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/Switch.cmake 15 | 16 | - name: Build 17 | run: cmake --build ${{github.workspace}}/build --config Release -------------------------------------------------------------------------------- /deps/libchdr/.github/workflows/vita.yml: -------------------------------------------------------------------------------- 1 | name: PlayStation Vita 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | container: vitasdk/vitasdk:latest 9 | 10 | steps: 11 | - uses: actions/checkout@v4 12 | 13 | - name: Configure CMake 14 | run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake 15 | 16 | - name: Build 17 | run: cmake --build ${{github.workspace}}/build --config Release -------------------------------------------------------------------------------- /deps/libchdr/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.d 3 | build/ 4 | -------------------------------------------------------------------------------- /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/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/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/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/lzma-19.00/lzma-history.txt -------------------------------------------------------------------------------- /deps/libchdr/deps/lzma-24.05/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-24.05/include/Delta.h: -------------------------------------------------------------------------------- 1 | /* Delta.h -- Delta converter 2 | 2023-03-03 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef ZIP7_INC_DELTA_H 5 | #define ZIP7_INC_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-24.05/include/LzHash.h: -------------------------------------------------------------------------------- 1 | /* LzHash.h -- HASH constants for LZ algorithms 2 | 2023-03-05 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef ZIP7_INC_LZ_HASH_H 5 | #define ZIP7_INC_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-24.05/include/Sort.h: -------------------------------------------------------------------------------- 1 | /* Sort.h -- Sort functions 2 | 2023-03-05 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef ZIP7_INC_SORT_H 5 | #define ZIP7_INC_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-24.05/src/BraIA64.c: -------------------------------------------------------------------------------- 1 | /* BraIA64.c -- Converter for IA-64 code 2 | 2023-02-20 : Igor Pavlov : Public domain */ 3 | 4 | #include "Precomp.h" 5 | 6 | // the code was moved to Bra.c 7 | 8 | #ifdef _MSC_VER 9 | #pragma warning(disable : 4206) // nonstandard extension used : translation unit is empty 10 | #endif 11 | 12 | #if defined(__clang__) 13 | #pragma GCC diagnostic ignored "-Wempty-translation-unit" 14 | #endif 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/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.3.1/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.3.1/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.3.1/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.3.1/contrib/blast/test.pk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/blast/test.pk -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/blast/test.txt: -------------------------------------------------------------------------------- 1 | AIAIAIAIAIAIA -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/contrib/dotzlib/DotZLib.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib.chm -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/contrib/dotzlib/DotZLib/ChecksumImpl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/ChecksumImpl.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/CircularBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/CircularBuffer.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/CodecBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/CodecBase.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/Deflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/Deflater.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/DotZLib.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/DotZLib.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/GZipStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/GZipStream.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/Inflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/dotzlib/DotZLib/Inflater.cs -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/infback9/README: -------------------------------------------------------------------------------- 1 | See infback9.h for what this is and how to use it. 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/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.3.1/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.3.1/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.3.1/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.3.1/contrib/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derived 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.3.1/contrib/minizip/configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT([minizip], [1.3.1], [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.3.1/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(zlib_filefunc_def* pzlib_filefunc_def); 22 | void fill_win32_filefunc64(zlib_filefunc64_def* pzlib_filefunc_def); 23 | void fill_win32_filefunc64A(zlib_filefunc64_def* pzlib_filefunc_def); 24 | void fill_win32_filefunc64W(zlib_filefunc64_def* pzlib_filefunc_def); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/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.3.1/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.3.1/contrib/nuget/nuget.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31903.59 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nuget", "nuget.csproj", "{B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(SolutionProperties) = preSolution 14 | HideSolutionNode = FALSE 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/contrib/puff/zeros.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/contrib/puff/zeros.raw -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/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.3.1/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.3.1/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.3.1/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.3.1/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.3.1/contrib/vstudio/vc10/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 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.3.1\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-2024 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.3.1/contrib/vstudio/vc11/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 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.3.1\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-2024 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.3.1/contrib/vstudio/vc12/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 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.3.1\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-2024 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.3.1/contrib/vstudio/vc14/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 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.3.1\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-2024 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.3.1/contrib/vstudio/vc17/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 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.3.1\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-2024 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.3.1/contrib/vstudio/vc9/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 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.3.1\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-2024 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.3.1/doc/crc-doc.1.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/doc/crc-doc.1.0.pdf -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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(gzFile file) { 12 | #ifndef NO_GZCOMPRESS 13 | gz_statep state; 14 | 15 | if (file == NULL) 16 | return Z_STREAM_ERROR; 17 | state = (gz_statep)file; 18 | 19 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 20 | #else 21 | return gzclose_r(file); 22 | #endif 23 | } 24 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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(z_streamp strm, unsigned start); 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/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.3.1/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.3.1/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.3.1/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zlib-1.3.1/zlib.3.pdf -------------------------------------------------------------------------------- /deps/libchdr/deps/zlib-1.3.1/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.3.1/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/deps/zstd-1.5.6/.buckconfig: -------------------------------------------------------------------------------- 1 | [cxx] 2 | cppflags = -DXXH_NAMESPACE=ZSTD_ -DZSTD_LEGACY_SUPPORT=4 3 | cflags = -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wpointer-arith 4 | cxxppflags = -DXXH_NAMESPACE=ZSTD_ -DZSTD_LEGACY_SUPPORT=4 5 | cxxflags = -std=c++11 -Wno-deprecated-declarations 6 | gtest_dep = //contrib/pzstd:gtest 7 | 8 | [httpserver] 9 | port = 0 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.buckversion: -------------------------------------------------------------------------------- 1 | c8dec2e8da52d483f6dd7c6cd2ad694e8e6fed2b 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.circleci/images/primary/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM circleci/buildpack-deps@sha256:f6f10c11b7b8ccfd4f4a5b830c3256803604ce61292b60cb22e26b12f62b0e8c 2 | 3 | RUN sudo dpkg --add-architecture i386 4 | RUN sudo apt-get -y -qq update 5 | RUN sudo apt-get -y install \ 6 | gcc-multilib-powerpc-linux-gnu gcc-arm-linux-gnueabi \ 7 | libc6-dev-armel-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross \ 8 | libc6-dev-ppc64-powerpc-cross zstd gzip coreutils \ 9 | libcurl4-openssl-dev 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.cirrus.yml: -------------------------------------------------------------------------------- 1 | task: 2 | name: FreeBSD (shortest) 3 | freebsd_instance: 4 | matrix: 5 | image_family: freebsd-14-0 6 | image_family: freebsd-13-2 7 | install_script: pkg install -y gmake coreutils 8 | script: | 9 | MOREFLAGS="-Werror" gmake -j all 10 | gmake shortest 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior 2 | * text eol=lf 3 | 4 | # Explicitly declare source files 5 | *.c text eol=lf 6 | *.h text eol=lf 7 | 8 | # Denote files that should not be modified. 9 | *.odt binary 10 | *.png binary 11 | 12 | # Visual Studio 13 | *.sln text eol=crlf 14 | *.vcxproj* text eol=crlf 15 | *.vcproj* text eol=crlf 16 | *.suo binary 17 | *.rc text eol=crlf 18 | 19 | # Windows 20 | *.bat text eol=crlf 21 | *.cmd text eol=crlf 22 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Downloads data '...' 16 | 2. Run '...' with flags '...' 17 | 3. Scroll up on the log to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots and charts** 24 | If applicable, add screenshots and charts to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. Mac] 28 | - Version [e.g. 22] 29 | - Compiler [e.g. gcc] 30 | - Flags [e.g. O2] 31 | - Other relevant hardware specs [e.g. Dual-core] 32 | - Build system [e.g. Makefile] 33 | 34 | **Additional context** 35 | Add any other context about the problem here. 36 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "github-actions" 4 | directory: "/" 5 | schedule: 6 | interval: "weekly" 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | *.dSYM 5 | 6 | # Libraries 7 | *.lib 8 | *.a 9 | 10 | # Shared objects (inc. Windows DLLs) 11 | *.dll 12 | *.so 13 | *.so.* 14 | *.dylib 15 | 16 | # Executables 17 | /zstd 18 | zstdmt 19 | *.exe 20 | *.out 21 | *.app 22 | 23 | # Test artefacts 24 | tmp* 25 | *.zst 26 | *.zstd 27 | dictionary. 28 | dictionary 29 | NUL 30 | cmakebuild/ 31 | install/ 32 | 33 | # Build artefacts 34 | contrib/linux-kernel/linux/ 35 | projects/ 36 | bin/ 37 | .buckd/ 38 | buck-out/ 39 | build-* 40 | *.gcda 41 | 42 | # IDE 43 | .clang_complete 44 | compile_flags.txt 45 | .clang-format 46 | 47 | # Other files 48 | .directory 49 | _codelite/ 50 | _zstdbench/ 51 | *.idea 52 | *.swp 53 | .DS_Store 54 | googletest/ 55 | *.d 56 | *.vscode 57 | *.code-workspace 58 | compile_commands.json 59 | .clangd 60 | perf.data 61 | perf.data.old 62 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | Facebook has adopted a Code of Conduct that we expect project participants to adhere to. 4 | Please read the [full text](https://code.fb.com/codeofconduct/) 5 | so that you can understand what actions will and will not be tolerated. 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting and Fixing Security Issues 2 | 3 | Please do not open GitHub issues or pull requests - this makes the problem immediately visible to everyone, including malicious actors. Security issues in this open source project can be safely reported via the Meta Bug Bounty program: 4 | 5 | https://www.facebook.com/whitehat 6 | 7 | Meta's security team will triage your report and determine whether or not is it eligible for a bounty under our program. 8 | 9 | # Receiving Vulnerability Notifications 10 | 11 | In the case that a significant security vulnerability is reported to us or discovered by us---without being publicly known---we will, at our discretion, notify high-profile, high-exposure users of Zstandard ahead of our public disclosure of the issue and associated fix. 12 | 13 | If you believe your project would benefit from inclusion in this list, please reach out to one of the maintainers. 14 | 15 | 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/VS2005/README.md: -------------------------------------------------------------------------------- 1 | ## Project Support Notice 2 | 3 | The VS2005 Project directory has been moved to the contrib directory in order to indicate that it will no longer be supported. 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/cleanTabs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sed -i '' $'s/\t/ /g' ../lib/**/*.{h,c} ../programs/*.{h,c} ../tests/*.c ./**/*.{h,cpp} ../examples/*.c ../zlibWrapper/*.{h,c} 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/diagnose_corruption/.gitignore: -------------------------------------------------------------------------------- 1 | check_flipped_bits 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/docker/Dockerfile: -------------------------------------------------------------------------------- 1 | # Dockerfile 2 | # First image to build the binary 3 | FROM alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a as builder 4 | 5 | RUN apk --no-cache add make gcc libc-dev 6 | COPY . /src 7 | RUN mkdir /pkg && cd /src && make && make DESTDIR=/pkg install 8 | 9 | # Second minimal image to only keep the built binary 10 | FROM alpine@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a 11 | 12 | # Copy the built files 13 | COPY --from=builder /pkg / 14 | 15 | # Copy the license as well 16 | RUN mkdir -p /usr/local/share/licenses/zstd 17 | COPY --from=builder /src/LICENSE /usr/local/share/licences/zstd/ 18 | 19 | # Just run `zstd` if no other command is given 20 | CMD ["/usr/local/bin/zstd"] 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/docker/README.md: -------------------------------------------------------------------------------- 1 | 2 | ## Requirement 3 | 4 | The `Dockerfile` script requires a version of `docker` >= 17.05 5 | 6 | ## Installing docker 7 | 8 | The official docker install docs use a ppa with a modern version available: 9 | https://docs.docker.com/install/linux/docker-ce/ubuntu/ 10 | 11 | ## How to run 12 | 13 | `docker build -t zstd .` 14 | 15 | ## test 16 | 17 | ``` 18 | echo foo | docker run -i --rm zstd | docker run -i --rm zstd zstdcat 19 | foo 20 | ``` 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/externalSequenceProducer/.gitignore: -------------------------------------------------------------------------------- 1 | # build artifacts 2 | externalSequenceProducer 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/externalSequenceProducer/README.md: -------------------------------------------------------------------------------- 1 | externalSequenceProducer 2 | ===================== 3 | 4 | `externalSequenceProducer` is a test tool for the Block-Level Sequence Producer API. 5 | It demonstrates how to use the API to perform a simple round-trip test. 6 | 7 | A sample sequence producer is provided in sequence_producer.c, but the user can swap 8 | this out with a different one if desired. The sample sequence producer implements 9 | LZ parsing with a 1KB hashtable. Dictionary-based parsing is not currently supported. 10 | 11 | Command line : 12 | ``` 13 | externalSequenceProducer filename 14 | ``` 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/externalSequenceProducer/sequence_producer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Yann Collet, Meta Platforms, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | #ifndef MATCHFINDER_H 12 | #define MATCHFINDER_H 13 | 14 | #define ZSTD_STATIC_LINKING_ONLY 15 | #include "zstd.h" 16 | 17 | size_t simpleSequenceProducer( 18 | void* sequenceProducerState, 19 | ZSTD_Sequence* outSeqs, size_t outSeqsCapacity, 20 | const void* src, size_t srcSize, 21 | const void* dict, size_t dictSize, 22 | int compressionLevel, 23 | size_t windowSize 24 | ); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/gen_html/.gitignore: -------------------------------------------------------------------------------- 1 | # make artefact 2 | gen_html 3 | zstd_manual.html 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/gen_html/gen-zstd-manual.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LIBVER_MAJOR_SCRIPT=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../../lib/zstd.h` 4 | LIBVER_MINOR_SCRIPT=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../../lib/zstd.h` 5 | LIBVER_PATCH_SCRIPT=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../../lib/zstd.h` 6 | LIBVER_SCRIPT=$LIBVER_MAJOR_SCRIPT.$LIBVER_MINOR_SCRIPT.$LIBVER_PATCH_SCRIPT 7 | 8 | echo ZSTD_VERSION=$LIBVER_SCRIPT 9 | ./gen_html $LIBVER_SCRIPT ../../lib/zstd.h ./zstd_manual.html 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/largeNbDicts/.gitignore: -------------------------------------------------------------------------------- 1 | # build artifacts 2 | largeNbDicts 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/.gitignore: -------------------------------------------------------------------------------- 1 | !lib/zstd 2 | !lib/zstd/* 3 | *.o 4 | *.a 5 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/README.md: -------------------------------------------------------------------------------- 1 | # Zstd in the Linux Kernel 2 | 3 | This directory contains the scripts needed to transform upstream zstd into the version imported into the kernel. All the transforms are automated and tested by our continuous integration. 4 | 5 | ## Upgrading Zstd in the Linux Kernel 6 | 7 | 1. `cd` into this directory. 8 | 2. Run `make libzstd` and read the output. Make sure that all the diffs printed and changes made by the script are correct. 9 | 3. Run `make test` and ensure that it passes. 10 | 4. Import zstd into the Linux Kernel `make import LINUX=/path/to/linux/repo` 11 | 5. Inspect the diff for sanity. 12 | 6. Check the Linux Kernel history for zstd. If any patches were made to the kernel version of zstd, but not to upstream zstd, then port them upstream if necessary. 13 | 7. Test the diff. Benchmark if necessary. Make sure to test multiple architectures: At least x86, i386, and arm. 14 | 8. Submit the patch to the LKML. 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/compiler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_COMPILER_H 11 | #define LINUX_COMPILER_H 12 | 13 | #ifndef inline 14 | #define inline __inline __attribute__((unused)) 15 | #endif 16 | 17 | #ifndef noinline 18 | #define noinline __attribute__((noinline)) 19 | #endif 20 | 21 | #define fallthrough __attribute__((__fallthrough__)) 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/errno.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_ERRNO_H 11 | #define LINUX_ERRNO_H 12 | 13 | #define EINVAL 22 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/kernel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_KERNEL_H 11 | #define LINUX_KERNEL_H 12 | 13 | #define WARN_ON(x) 14 | 15 | #define PTR_ALIGN(p, a) (typeof(p))ALIGN((unsigned long long)(p), (a)) 16 | #define ALIGN(x, a) ALIGN_MASK((x), (a) - 1) 17 | #define ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/limits.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_LIMITS_H 11 | #define LINUX_LIMITS_H 12 | 13 | #include 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/math64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_MATH64_H 11 | #define LINUX_MATH64_H 12 | 13 | #define div_u64(dividend, divisor) ((dividend) / (divisor)) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/module.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_MODULE_H 11 | #define LINUX_MODULE_H 12 | 13 | #define EXPORT_SYMBOL(symbol) \ 14 | void* __##symbol = symbol 15 | #define EXPORT_SYMBOL_GPL(symbol) \ 16 | void* __##symbol = symbol 17 | #define MODULE_LICENSE(license) 18 | #define MODULE_DESCRIPTION(description) 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/printk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_PRINTK_H 11 | #define LINUX_PRINTK_H 12 | 13 | #define pr_debug(...) 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/stddef.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_STDDEF_H 11 | #define LINUX_STDDEF_H 12 | 13 | #include 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/swab.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_SWAB_H 11 | #define LINUX_SWAB_H 12 | 13 | #define swab32(x) __builtin_bswap32((x)) 14 | #define swab64(x) __builtin_bswap64((x)) 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/test/include/linux/types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | #ifndef LINUX_TYPES_H 11 | #define LINUX_TYPES_H 12 | 13 | #include 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/linux-kernel/zstd_common_module.c: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 2 | /* 3 | * Copyright (c) Meta Platforms, Inc. and affiliates. 4 | * All rights reserved. 5 | * 6 | * This source code is licensed under both the BSD-style license (found in the 7 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 8 | * in the COPYING file in the root directory of this source tree). 9 | * You may select, at your option, one of the above-listed licenses. 10 | */ 11 | 12 | #include 13 | 14 | #include "common/huf.h" 15 | #include "common/fse.h" 16 | #include "common/zstd_internal.h" 17 | 18 | // Export symbols shared by compress and decompress into a common module 19 | 20 | #undef ZSTD_isError /* defined within zstd_internal.h */ 21 | EXPORT_SYMBOL_GPL(FSE_readNCount); 22 | EXPORT_SYMBOL_GPL(HUF_readStats); 23 | EXPORT_SYMBOL_GPL(HUF_readStats_wksp); 24 | EXPORT_SYMBOL_GPL(ZSTD_isError); 25 | EXPORT_SYMBOL_GPL(ZSTD_getErrorName); 26 | EXPORT_SYMBOL_GPL(ZSTD_getErrorCode); 27 | 28 | MODULE_LICENSE("Dual BSD/GPL"); 29 | MODULE_DESCRIPTION("Zstd Common"); 30 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/premake/premake4.lua: -------------------------------------------------------------------------------- 1 | -- Include zstd.lua in your GENie or premake4 file, which exposes a project_zstd function 2 | dofile('zstd.lua') 3 | 4 | solution 'example' 5 | configurations { 'Debug', 'Release' } 6 | project_zstd('../../lib/') 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/.gitignore: -------------------------------------------------------------------------------- 1 | # compilation result 2 | pzstd 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/SkippableFrame.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | */ 9 | #include "SkippableFrame.h" 10 | #include "mem.h" 11 | #include "utils/Range.h" 12 | 13 | #include 14 | 15 | using namespace pzstd; 16 | 17 | SkippableFrame::SkippableFrame(std::uint32_t size) : frameSize_(size) { 18 | MEM_writeLE32(data_.data(), kSkippableFrameMagicNumber); 19 | MEM_writeLE32(data_.data() + 4, kFrameContentsSize); 20 | MEM_writeLE32(data_.data() + 8, frameSize_); 21 | } 22 | 23 | /* static */ std::size_t SkippableFrame::tryRead(ByteRange bytes) { 24 | if (bytes.size() < SkippableFrame::kSize || 25 | MEM_readLE32(bytes.begin()) != kSkippableFrameMagicNumber || 26 | MEM_readLE32(bytes.begin() + 4) != kFrameContentsSize) { 27 | return 0; 28 | } 29 | return MEM_readLE32(bytes.begin() + 8); 30 | } 31 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/images/Cspeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/images/Cspeed.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/images/Dspeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/images/Dspeed.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | */ 9 | #include "ErrorHolder.h" 10 | #include "Options.h" 11 | #include "Pzstd.h" 12 | 13 | using namespace pzstd; 14 | 15 | int main(int argc, const char** argv) { 16 | Options options; 17 | switch (options.parse(argc, argv)) { 18 | case Options::Status::Failure: 19 | return 1; 20 | case Options::Status::Message: 21 | return 0; 22 | default: 23 | break; 24 | } 25 | 26 | return pzstdMain(options); 27 | } 28 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/test/BUCK: -------------------------------------------------------------------------------- 1 | cxx_test( 2 | name='options_test', 3 | srcs=['OptionsTest.cpp'], 4 | deps=['//contrib/pzstd:options'], 5 | ) 6 | 7 | cxx_test( 8 | name='pzstd_test', 9 | srcs=['PzstdTest.cpp'], 10 | deps=[ 11 | ':round_trip', 12 | '//contrib/pzstd:libpzstd', 13 | '//contrib/pzstd/utils:scope_guard', 14 | '//programs:datagen', 15 | ], 16 | ) 17 | 18 | cxx_binary( 19 | name='round_trip_test', 20 | srcs=['RoundTripTest.cpp'], 21 | deps=[ 22 | ':round_trip', 23 | '//contrib/pzstd/utils:scope_guard', 24 | '//programs:datagen', 25 | ] 26 | ) 27 | 28 | cxx_library( 29 | name='round_trip', 30 | header_namespace='test', 31 | exported_headers=['RoundTrip.h'], 32 | deps=[ 33 | '//contrib/pzstd:libpzstd', 34 | '//contrib/pzstd:options', 35 | '//contrib/pzstd/utils:scope_guard', 36 | ] 37 | ) 38 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/utils/Likely.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | */ 9 | 10 | /** 11 | * Compiler hints to indicate the fast path of an "if" branch: whether 12 | * the if condition is likely to be true or false. 13 | * 14 | * @author Tudor Bosman (tudorb@fb.com) 15 | */ 16 | 17 | #pragma once 18 | 19 | #undef LIKELY 20 | #undef UNLIKELY 21 | 22 | #if defined(__GNUC__) && __GNUC__ >= 4 23 | #define LIKELY(x) (__builtin_expect((x), 1)) 24 | #define UNLIKELY(x) (__builtin_expect((x), 0)) 25 | #else 26 | #define LIKELY(x) (x) 27 | #define UNLIKELY(x) (x) 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/utils/Portability.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | */ 9 | 10 | #pragma once 11 | 12 | #include 13 | 14 | // Required for windows, which defines min/max, but we want the std:: version. 15 | #undef min 16 | #undef max 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/utils/test/BUCK: -------------------------------------------------------------------------------- 1 | cxx_test( 2 | name='buffer_test', 3 | srcs=['BufferTest.cpp'], 4 | deps=['//contrib/pzstd/utils:buffer'], 5 | ) 6 | 7 | cxx_test( 8 | name='range_test', 9 | srcs=['RangeTest.cpp'], 10 | deps=['//contrib/pzstd/utils:range'], 11 | ) 12 | 13 | cxx_test( 14 | name='resource_pool_test', 15 | srcs=['ResourcePoolTest.cpp'], 16 | deps=['//contrib/pzstd/utils:resource_pool'], 17 | ) 18 | 19 | cxx_test( 20 | name='scope_guard_test', 21 | srcs=['ScopeGuardTest.cpp'], 22 | deps=['//contrib/pzstd/utils:scope_guard'], 23 | ) 24 | 25 | cxx_test( 26 | name='thread_pool_test', 27 | srcs=['ThreadPoolTest.cpp'], 28 | deps=['//contrib/pzstd/utils:thread_pool'], 29 | ) 30 | 31 | cxx_test( 32 | name='work_queue_test', 33 | srcs=['RangeTest.cpp'], 34 | deps=['//contrib/pzstd/utils:work_queue'], 35 | ) 36 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/pzstd/utils/test/ScopeGuardTest.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | */ 9 | #include "utils/ScopeGuard.h" 10 | 11 | #include 12 | 13 | using namespace pzstd; 14 | 15 | TEST(ScopeGuard, Dismiss) { 16 | { 17 | auto guard = makeScopeGuard([&] { EXPECT_TRUE(false); }); 18 | guard.dismiss(); 19 | } 20 | } 21 | 22 | TEST(ScopeGuard, Executes) { 23 | bool executed = false; 24 | { 25 | auto guard = makeScopeGuard([&] { executed = true; }); 26 | } 27 | EXPECT_TRUE(executed); 28 | } 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/seekable_format/examples/.gitignore: -------------------------------------------------------------------------------- 1 | seekable_compression 2 | seekable_decompression 3 | seekable_decompression_mem 4 | parallel_processing 5 | parallel_compression 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/seekable_format/tests/.gitignore: -------------------------------------------------------------------------------- 1 | seekable_tests 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/contrib/snap/snapcraft.yaml: -------------------------------------------------------------------------------- 1 | name: zstd 2 | version: git 3 | summary: Zstandard - Fast real-time compression algorithm 4 | description: | 5 | Zstandard, or zstd as short version, is a fast lossless compression 6 | algorithm, targeting real-time compression scenarios at zlib-level and better 7 | compression ratios. It's backed by a very fast entropy stage, provided by 8 | Huff0 and FSE library 9 | 10 | grade: devel # must be 'stable' to release into candidate/stable channels 11 | confinement: devmode # use 'strict' once you have the right plugs and slots 12 | 13 | apps: 14 | zstd: 15 | command: usr/local/bin/zstd 16 | plugs: [home, removable-media] 17 | zstdgrep: 18 | command: usr/local/bin/zstdgrep 19 | plugs: [home, removable-media] 20 | zstdless: 21 | command: usr/local/bin/zstdless 22 | plugs: [home, removable-media] 23 | 24 | parts: 25 | zstd: 26 | source: . 27 | plugin: make 28 | build-packages: [g++] 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/educational_decoder/.gitignore: -------------------------------------------------------------------------------- 1 | # Build artifacts 2 | harness 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/CSpeed2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/CSpeed2.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/DCspeed5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/DCspeed5.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/DSpeed3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/DSpeed3.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/cdict_v136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/cdict_v136.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/dict-cr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/dict-cr.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/dict-cs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/dict-cs.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/dict-ds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/dict-ds.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/zstd_cdict_v1_3_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/zstd_cdict_v1_3_5.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/doc/images/zstd_logo86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/doc/images/zstd_logo86.png -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/examples/.gitignore: -------------------------------------------------------------------------------- 1 | #build 2 | simple_compression 3 | simple_decompression 4 | multiple_simple_compression 5 | dictionary_compression 6 | dictionary_decompression 7 | streaming_compression 8 | streaming_decompression 9 | multiple_streaming_compression 10 | streaming_memory_usage 11 | 12 | #test artefact 13 | tmp* 14 | test* 15 | *.zst 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/lib/.gitignore: -------------------------------------------------------------------------------- 1 | # make install artefact 2 | libzstd.pc 3 | libzstd-nomt 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/lib/common/xxhash.c: -------------------------------------------------------------------------------- 1 | /* 2 | * xxHash - Extremely Fast Hash algorithm 3 | * Copyright (c) Yann Collet - Meta Platforms, Inc 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | /* 12 | * xxhash.c instantiates functions defined in xxhash.h 13 | */ 14 | 15 | #define XXH_STATIC_LINKING_ONLY /* access advanced declarations */ 16 | #define XXH_IMPLEMENTATION /* access definitions */ 17 | 18 | #include "xxhash.h" 19 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/lib/deprecated/zbuff_common.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | /*-************************************* 12 | * Dependencies 13 | ***************************************/ 14 | #include "../common/error_private.h" 15 | #include "zbuff.h" 16 | 17 | /*-**************************************** 18 | * ZBUFF Error Management (deprecated) 19 | ******************************************/ 20 | 21 | /*! ZBUFF_isError() : 22 | * tells if a return value is an error code */ 23 | unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); } 24 | /*! ZBUFF_getErrorName() : 25 | * provides error code string from function result (useful for debugging) */ 26 | const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); } 27 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/lib/dll/example/build_package.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | MKDIR bin\dll bin\static bin\example bin\include 3 | COPY tests\fullbench.c bin\example\ 4 | COPY programs\datagen.c bin\example\ 5 | COPY programs\datagen.h bin\example\ 6 | COPY programs\util.h bin\example\ 7 | COPY programs\platform.h bin\example\ 8 | COPY lib\common\mem.h bin\example\ 9 | COPY lib\common\zstd_internal.h bin\example\ 10 | COPY lib\common\error_private.h bin\example\ 11 | COPY lib\common\xxhash.h bin\example\ 12 | COPY lib\libzstd.a bin\static\libzstd_static.lib 13 | COPY lib\dll\libzstd.* bin\dll\ 14 | COPY lib\dll\example\Makefile bin\example\ 15 | COPY lib\dll\example\fullbench-dll.* bin\example\ 16 | COPY lib\dll\example\README.md bin\ 17 | COPY lib\zstd.h bin\include\ 18 | COPY lib\common\zstd_errors.h bin\include\ 19 | COPY lib\dictBuilder\zdict.h bin\include\ 20 | COPY programs\zstd.exe bin\zstd.exe 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/lib/libzstd.pc.in: -------------------------------------------------------------------------------- 1 | # ZSTD - standard compression algorithm 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. 3 | # BSD 2-Clause License (https://opensource.org/licenses/bsd-license.php) 4 | 5 | prefix=@PREFIX@ 6 | exec_prefix=@EXEC_PREFIX@ 7 | includedir=@INCLUDEDIR@ 8 | libdir=@LIBDIR@ 9 | 10 | Name: zstd 11 | Description: fast lossless compression algorithm library 12 | URL: https://facebook.github.io/zstd/ 13 | Version: @VERSION@ 14 | Libs: -L${libdir} -lzstd 15 | Libs.private: @LIBS_PRIVATE@ 16 | Cflags: -I${includedir} 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/lib/module.modulemap: -------------------------------------------------------------------------------- 1 | module libzstd [extern_c] { 2 | header "zstd.h" 3 | export * 4 | config_macros [exhaustive] \ 5 | /* zstd.h */ \ 6 | ZSTD_STATIC_LINKING_ONLY, \ 7 | ZSTDLIB_VISIBILITY, \ 8 | ZSTDLIB_VISIBLE, \ 9 | ZSTDLIB_HIDDEN, \ 10 | ZSTD_DLL_EXPORT, \ 11 | ZSTDLIB_STATIC_API, \ 12 | ZSTD_DISABLE_DEPRECATE_WARNINGS, \ 13 | ZSTD_CLEVEL_DEFAULT, \ 14 | /* zdict.h */ \ 15 | ZDICT_STATIC_LINKING_ONLY, \ 16 | ZDICTLIB_VISIBLE, \ 17 | ZDICTLIB_HIDDEN, \ 18 | ZDICTLIB_VISIBILITY, \ 19 | ZDICTLIB_STATIC_API, \ 20 | ZDICT_DISABLE_DEPRECATE_WARNINGS, \ 21 | /* zstd_errors.h */ \ 22 | ZSTDERRORLIB_VISIBLE, \ 23 | ZSTDERRORLIB_HIDDEN, \ 24 | ZSTDERRORLIB_VISIBILITY 25 | 26 | module dictbuilder [extern_c] { 27 | header "zdict.h" 28 | export * 29 | } 30 | 31 | module errors [extern_c] { 32 | header "zstd_errors.h" 33 | export * 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/.gitignore: -------------------------------------------------------------------------------- 1 | # local binary (Makefile) 2 | zstd 3 | zstd32 4 | zstd4 5 | zstd-compress 6 | zstd-decompress 7 | zstd-frugal 8 | zstd-small 9 | zstd-nolegacy 10 | zstd-dictBuilder 11 | zstd-dll 12 | zstd_arm64 13 | zstd_x64 14 | 15 | # Object files 16 | *.o 17 | *.ko 18 | default.profraw 19 | have_zlib 20 | 21 | # Executables 22 | *.exe 23 | *.out 24 | *.app 25 | 26 | # Default result files 27 | dictionary 28 | grillResults.txt 29 | _* 30 | tmp* 31 | *.zst 32 | result 33 | out 34 | 35 | # fuzzer 36 | afl 37 | 38 | # Misc files 39 | *.bat 40 | !windres/generate_res.bat 41 | dirTest* 42 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/BUCK: -------------------------------------------------------------------------------- 1 | cxx_binary( 2 | name='zstd', 3 | headers=glob(['*.h'], excludes=['datagen.h', 'platform.h', 'util.h']), 4 | srcs=glob(['*.c'], excludes=['datagen.c']), 5 | deps=[ 6 | ':datagen', 7 | ':util', 8 | '//lib:zstd', 9 | '//lib:zdict', 10 | '//lib:mem', 11 | '//lib:xxhash', 12 | ], 13 | preprocessor_flags=[ 14 | '-DZSTD_GZCOMPRESS', 15 | '-DZSTD_GZDECOMPRESS', 16 | '-DZSTD_LZMACOMPRESS', 17 | '-DZSTD_LZMADECOMPRES', 18 | '-DZSTD_LZ4COMPRESS', 19 | '-DZSTD_LZ4DECOMPRES', 20 | ], 21 | linker_flags=[ 22 | '-lz', 23 | '-llzma', 24 | '-llz4', 25 | ], 26 | ) 27 | 28 | cxx_library( 29 | name='datagen', 30 | visibility=['PUBLIC'], 31 | header_namespace='', 32 | exported_headers=['datagen.h'], 33 | srcs=['datagen.c'], 34 | deps=['//lib:mem'], 35 | ) 36 | 37 | 38 | cxx_library( 39 | name='util', 40 | visibility=['PUBLIC'], 41 | header_namespace='', 42 | exported_headers=['util.h', 'platform.h'], 43 | deps=['//lib:mem'], 44 | ) 45 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/windres/verrsrc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | /* minimal set of defines required to generate zstd.res from zstd.rc */ 11 | 12 | #define VS_VERSION_INFO 1 13 | 14 | #define VS_FFI_FILEFLAGSMASK 0x0000003FL 15 | #define VOS_NT_WINDOWS32 0x00040004L 16 | #define VFT_DLL 0x00000002L 17 | #define VFT2_UNKNOWN 0x00000000L 18 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/windres/zstd32.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/programs/windres/zstd32.res -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/windres/zstd64.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/programs/windres/zstd64.res -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/zstdcli_trace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | #ifndef ZSTDCLI_TRACE_H 12 | #define ZSTDCLI_TRACE_H 13 | 14 | /** 15 | * Enable tracing - log to filename. 16 | */ 17 | void TRACE_enable(char const* filename); 18 | 19 | /** 20 | * Shut down the tracing library. 21 | */ 22 | void TRACE_finish(void); 23 | 24 | #endif /* ZSTDCLI_TRACE_H */ 25 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/zstdgrep.1.md: -------------------------------------------------------------------------------- 1 | zstdgrep(1) -- print lines matching a pattern in zstandard-compressed files 2 | ============================================================================ 3 | 4 | SYNOPSIS 5 | -------- 6 | 7 | `zstdgrep` [] [--] [ ...] 8 | 9 | 10 | DESCRIPTION 11 | ----------- 12 | `zstdgrep` runs `grep`(1) on files, or `stdin` if no files argument is given, after decompressing them with `zstdcat`(1). 13 | 14 | The and arguments are passed on to `grep`(1). If an `-e` flag is found in the , `zstdgrep` will not look for a argument. 15 | 16 | Note that modern `grep` alternatives such as `ripgrep` (`rg`(1)) support `zstd`-compressed files out of the box, 17 | and can prove better alternatives than `zstdgrep` notably for unsupported complex pattern searches. 18 | Note though that such alternatives may also feature some minor command line differences. 19 | 20 | EXIT STATUS 21 | ----------- 22 | In case of missing arguments or missing pattern, 1 will be returned, otherwise 0. 23 | 24 | SEE ALSO 25 | -------- 26 | `zstd`(1) 27 | 28 | AUTHORS 29 | ------- 30 | Thomas Klausner 31 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/zstdless: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | zstd=${ZSTD:-zstd} 4 | 5 | # TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd 6 | 7 | export LESSOPEN="|-${zstd} -cdfq %s" 8 | exec less "$@" 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/zstdless.1: -------------------------------------------------------------------------------- 1 | . 2 | .TH "ZSTDLESS" "1" "March 2024" "zstd 1.5.6" "User Commands" 3 | . 4 | .SH "NAME" 5 | \fBzstdless\fR \- view zstandard\-compressed files 6 | . 7 | .SH "SYNOPSIS" 8 | \fBzstdless\fR [\fIflags\fR] [\fIfile\fR \.\.\.] 9 | . 10 | .SH "DESCRIPTION" 11 | \fBzstdless\fR runs \fBless\fR(1) on files or stdin, if no \fIfile\fR argument is given, after decompressing them with \fBzstdcat\fR(1)\. 12 | . 13 | .SH "SEE ALSO" 14 | \fBzstd\fR(1) 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/programs/zstdless.1.md: -------------------------------------------------------------------------------- 1 | zstdless(1) -- view zstandard-compressed files 2 | ============================================================================ 3 | 4 | SYNOPSIS 5 | -------- 6 | 7 | `zstdless` [] [ ...] 8 | 9 | 10 | DESCRIPTION 11 | ----------- 12 | `zstdless` runs `less`(1) on files or stdin, if no argument is given, after decompressing them with `zstdcat`(1). 13 | 14 | SEE ALSO 15 | -------- 16 | `zstd`(1) 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/.gitignore: -------------------------------------------------------------------------------- 1 | # local binary (Makefile) 2 | fullbench 3 | fullbench32 4 | fullbench-lib 5 | fuzzer 6 | fuzzer32 7 | fuzzer-dll 8 | zbufftest 9 | zbufftest32 10 | zbufftest-dll 11 | zstreamtest 12 | zstreamtest32 13 | zstreamtest_asan 14 | zstreamtest_tsan 15 | zstreamtest_ubsan 16 | zstreamtest-dll 17 | datagen 18 | paramgrill 19 | paramgrill32 20 | roundTripCrash 21 | longmatch 22 | symbols 23 | legacy 24 | decodecorpus 25 | pool 26 | poolTests 27 | invalidDictionaries 28 | checkTag 29 | zcat 30 | zstdcat 31 | tm 32 | 33 | # test artifacts 34 | dictionary 35 | grillResults.txt 36 | _* 37 | tmp* 38 | *.zst 39 | *.gz 40 | !gzip/hufts-segv.gz 41 | result 42 | out 43 | *.zstd 44 | hello* 45 | world 46 | 47 | # Tmp test directory 48 | zstdtest 49 | speedTest 50 | versionsTest 51 | namespaceTest 52 | dirTest* 53 | 54 | # fuzzer 55 | afl 56 | 57 | # Local script 58 | startSpeedTest 59 | speedTest.pid 60 | *.bat 61 | 62 | # Generic Object files 63 | *.o 64 | *.ko 65 | 66 | # Generic Executables 67 | *.exe 68 | *.out 69 | *.app 70 | 71 | # Specific exclusions 72 | !golden-decompression/*.zst 73 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/check_size.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # ################################################################ 3 | # Copyright (c) Meta Platforms, Inc. and affiliates. 4 | # All rights reserved. 5 | # 6 | # This source code is licensed under both the BSD-style license (found in the 7 | # LICENSE file in the root directory of this source tree) and the GPLv2 (found 8 | # in the COPYING file in the root directory of this source tree). 9 | # You may select, at your option, one of the above-listed licenses. 10 | # ################################################################ 11 | 12 | import os 13 | import subprocess 14 | import sys 15 | 16 | if len(sys.argv) != 3: 17 | print(f"Usage: {sys.argv[0]} FILE SIZE_LIMIT") 18 | sys.exit(1) 19 | 20 | file = sys.argv[1] 21 | limit = int(sys.argv[2]) 22 | 23 | if not os.path.exists(file): 24 | print(f"{file} does not exist") 25 | sys.exit(1) 26 | 27 | size = os.path.getsize(file) 28 | 29 | if size > limit: 30 | print(f"file {file} is {size} bytes, which is greater than the limit of {limit} bytes") 31 | sys.exit(1) 32 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/.gitignore: -------------------------------------------------------------------------------- 1 | !bin/ 2 | !datagen 3 | !zstdcat 4 | 5 | scratch/ 6 | bin/symlinks 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/args.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | println "+ zstd --blah" >&2 4 | zstd --blah 5 | println "+ zstd -xz" >&2 6 | zstd -xz 7 | println "+ zstd --adapt=min=1,maxx=2 file.txt" >&2 8 | zstd --adapt=min=1,maxx=2 file.txt 9 | println "+ zstd --train-cover=k=48,d=8,steps32 file.txt" >&2 10 | zstd --train-cover=k=48,d=8,steps32 file.txt 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/args.sh.exit: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/args.sh.stderr.glob: -------------------------------------------------------------------------------- 1 | + zstd --blah 2 | Incorrect parameter: --blah 3 | ... 4 | Usage: zstd * 5 | 6 | Options: 7 | ... 8 | + zstd -xz 9 | Incorrect parameter: -x 10 | ... 11 | Usage: zstd * 12 | 13 | Options: 14 | ... 15 | + zstd --adapt=min=1,maxx=2 file.txt 16 | Incorrect parameter: --adapt=min=1,maxx=2 17 | ... 18 | Usage: zstd * 19 | 20 | Options: 21 | ... 22 | + zstd --train-cover=k=48,d=8,steps32 file.txt 23 | Incorrect parameter: --train-cover=k=48,d=8,steps32 24 | ... 25 | Usage: zstd * 26 | 27 | Options: 28 | ... 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/help.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | println "+ zstd -h" 6 | zstd -h 7 | println "+ zstd -H" 8 | zstd -H 9 | println "+ zstd --help" 10 | zstd --help 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/memlimit.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | error: only numeric values with optional suffixes K, KB, KiB, M, MB, MiB are allowed 2 | error: only numeric values with optional suffixes K, KB, KiB, M, MB, MiB are allowed 3 | error: only numeric values with optional suffixes K, KB, KiB, M, MB, MiB are allowed 4 | error: only numeric values with optional suffixes K, KB, KiB, M, MB, MiB are allowed 5 | error: only numeric values with optional suffixes K, KB, KiB, M, MB, MiB are allowed 6 | error: only numeric values with optional suffixes K, KB, KiB, M, MB, MiB are allowed 7 | Should allow numeric parameter without suffix 8 | Should allow numeric parameter with expected suffix 9 | Should allow numeric parameter with expected suffix 10 | Should allow numeric parameter with expected suffix 11 | Should allow numeric parameter with expected suffix 12 | Should allow numeric parameter with expected suffix 13 | Should allow numeric parameter with expected suffix 14 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/memlimit.sh.stdout.exact: -------------------------------------------------------------------------------- 1 | + zstd --memory=32LB file 2 | + zstd --memory=32LiB file 3 | + zstd --memory=32A file 4 | + zstd --memory=32r82347dn83 file 5 | + zstd --memory=32asbdf file 6 | + zstd --memory=hello file 7 | + zstd --memory=1 file 8 | + zstd --memory=1K file 9 | + zstd --memory=1KB file 10 | + zstd --memory=1KiB file 11 | + zstd --memory=1M file 12 | + zstd --memory=1MB file 13 | + zstd --memory=1MiB file 14 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/output_dir.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | println "+ zstd -r * --output-dir-mirror=\"\"" 4 | zstd -r * --output-dir-mirror="" && die "Should not allow empty output dir!" 5 | println "+ zstd -r * --output-dir-flat=\"\"" 6 | zstd -r * --output-dir-flat="" && die "Should not allow empty output dir!" 7 | exit 0 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/output_dir.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | error: output dir cannot be empty string (did you mean to pass '.' instead?) 2 | error: output dir cannot be empty string (did you mean to pass '.' instead?) 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/output_dir.sh.stdout.exact: -------------------------------------------------------------------------------- 1 | + zstd -r * --output-dir-mirror="" 2 | + zstd -r * --output-dir-flat="" 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | zstd -V 6 | zstd --version 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/basic/version.sh.stdout.glob: -------------------------------------------------------------------------------- 1 | *** Zstandard CLI (*-bit) v1.*.*, by Yann Collet *** 2 | *** Zstandard CLI (*-bit) v1.*.*, by Yann Collet *** 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/cmp_size: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | usage() 6 | { 7 | printf "USAGE:\n\t$0 [-eq|-ne|-lt|-le|-gt|-ge] FILE1 FILE2\n" 8 | } 9 | 10 | help() 11 | { 12 | printf "Small utility to compare file sizes without printing them with set -x.\n\n" 13 | usage 14 | } 15 | 16 | case "$1" in 17 | -h) help; exit 0 ;; 18 | --help) help; exit 0 ;; 19 | esac 20 | 21 | if ! test -f $2; then 22 | printf "FILE1='%b' is not a file\n\n" "$2" 23 | usage 24 | exit 1 25 | fi 26 | 27 | if ! test -f $3; then 28 | printf "FILE2='%b' is not a file\n\n" "$3" 29 | usage 30 | exit 1 31 | fi 32 | 33 | 34 | size1=$(wc -c < $2) 35 | size2=$(wc -c < $3) 36 | 37 | case "$1" in 38 | -eq) [ "$size1" -eq "$size2" ] ;; 39 | -ne) [ "$size1" -ne "$size2" ] ;; 40 | -lt) [ "$size1" -lt "$size2" ] ;; 41 | -le) [ "$size1" -le "$size2" ] ;; 42 | -gt) [ "$size1" -gt "$size2" ] ;; 43 | -ge) [ "$size1" -ge "$size2" ] ;; 44 | esac 45 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/datagen: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | "$DATAGEN_BIN" $@ 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/die: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | println "${*}" 1>&2 4 | exit 1 5 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/println: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | printf '%b\n' "${*}" 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/unzstd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | zstdname=$(basename $0) 4 | 5 | if [ -z "$EXEC_PREFIX" ]; then 6 | "$ZSTD_SYMLINK_DIR/$zstdname" $@ 7 | else 8 | $EXEC_PREFIX "$ZSTD_SYMLINK_DIR/$zstdname" $@ 9 | fi 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/zstd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | zstdname=$(basename $0) 4 | 5 | if [ -z "$EXEC_PREFIX" ]; then 6 | "$ZSTD_SYMLINK_DIR/$zstdname" $@ 7 | else 8 | $EXEC_PREFIX "$ZSTD_SYMLINK_DIR/$zstdname" $@ 9 | fi 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/zstdcat: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | zstdname=$(basename $0) 4 | 5 | if [ -z "$EXEC_PREFIX" ]; then 6 | "$ZSTD_SYMLINK_DIR/$zstdname" $@ 7 | else 8 | $EXEC_PREFIX "$ZSTD_SYMLINK_DIR/$zstdname" $@ 9 | fi 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/zstdgrep: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | "$ZSTDGREP_BIN" $@ 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/bin/zstdless: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | "$ZSTDLESS_BIN" $@ 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/setup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | echo "1234" > file 6 | zstd file 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdgrep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | println "+ good path" 6 | zstdgrep "1234" file file.zst 7 | println "+ bad path" 8 | zstdgrep "1234" bad.zst 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdgrep.sh.exit: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdgrep.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | zstd: can't stat bad.zst : No such file or directory -- ignored 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdgrep.sh.stdout.glob: -------------------------------------------------------------------------------- 1 | + good path 2 | file:1234 3 | file.zst:1234 4 | + bad path 5 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdless.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | println "+ good path" 6 | zstdless file.zst 7 | println "+ pass parameters" 8 | zstdless -N file.zst # This parameter does not produce line #s when piped, but still serves to test that the flag went to less and not zstd 9 | println "+ bad path" 10 | zstdless bad.zst >&2 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdless.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | zstd: can't stat bad.zst : No such file or directory -- ignored 2 | bad.zst: No such file or directory 3 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/cltools/zstdless.sh.stdout.glob: -------------------------------------------------------------------------------- 1 | + good path 2 | 1234 3 | + pass parameters 4 | 1234 5 | + bad path 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/common/format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . "$COMMON/platform.sh" 4 | 5 | zstd_supports_format() 6 | { 7 | zstd -h | grep > $INTOVOID -- "--format=$1" 8 | } 9 | 10 | format_extension() 11 | { 12 | if [ "$1" = "zstd" ]; then 13 | printf "zst" 14 | elif [ "$1" = "gzip" ]; then 15 | printf "gz" 16 | else 17 | printf "$1" 18 | fi 19 | } 20 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/common/mtime.sh: -------------------------------------------------------------------------------- 1 | . "$COMMON/platform.sh" 2 | 3 | MTIME="stat -c %Y" 4 | case "$UNAME" in 5 | Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;; 6 | esac 7 | 8 | assertSameMTime() { 9 | MT1=$($MTIME "$1") 10 | MT2=$($MTIME "$2") 11 | echo MTIME $MT1 $MT2 12 | [ "$MT1" = "$MT2" ] || die "mtime on $1 doesn't match mtime on $2 ($MT1 != $MT2)" 13 | } 14 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/common/permissions.sh: -------------------------------------------------------------------------------- 1 | . "$COMMON/platform.sh" 2 | 3 | GET_PERMS="stat -c %a" 4 | case "$UNAME" in 5 | Darwin | FreeBSD | OpenBSD | NetBSD) GET_PERMS="stat -f %Lp" ;; 6 | esac 7 | 8 | assertFilePermissions() { 9 | STAT1=$($GET_PERMS "$1") 10 | STAT2=$2 11 | [ "$STAT1" = "$STAT2" ] || die "permissions on $1 don't match expected ($STAT1 != $STAT2)" 12 | } 13 | 14 | assertSamePermissions() { 15 | STAT1=$($GET_PERMS "$1") 16 | STAT2=$($GET_PERMS "$2") 17 | [ "$STAT1" = "$STAT2" ] || die "permissions on $1 don't match those on $2 ($STAT1 != $STAT2)" 18 | } 19 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/common/platform.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | UNAME=$(uname) 4 | 5 | isWindows=false 6 | INTOVOID="/dev/null" 7 | case "$UNAME" in 8 | GNU) DEVDEVICE="/dev/random" ;; 9 | *) DEVDEVICE="/dev/zero" ;; 10 | esac 11 | case "$OS" in 12 | Windows*) 13 | isWindows=true 14 | INTOVOID="NUL" 15 | DEVDEVICE="NUL" 16 | ;; 17 | esac 18 | 19 | case "$UNAME" in 20 | Darwin) MD5SUM="md5 -r" ;; 21 | FreeBSD) MD5SUM="gmd5sum" ;; 22 | NetBSD) MD5SUM="md5 -n" ;; 23 | OpenBSD) MD5SUM="md5" ;; 24 | *) MD5SUM="md5sum" ;; 25 | esac 26 | 27 | DIFF="diff" 28 | case "$UNAME" in 29 | SunOS) DIFF="gdiff" ;; 30 | esac 31 | 32 | if echo hello | zstd -v -T2 2>&1 > $INTOVOID | grep -q 'multi-threading is disabled' 33 | then 34 | hasMT="" 35 | else 36 | hasMT="true" 37 | fi 38 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/adapt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Test --adapt 6 | zstd -f file --adapt -c | zstd -t 7 | 8 | datagen -g100M > file100M 9 | 10 | # Pick parameters to force fast adaptation, even on slow systems 11 | zstd --adapt -vvvv -19 --zstd=wlog=10 file100M -o /dev/null 2>&1 | grep -q "faster speed , lighter compression" 12 | 13 | # Adaption still happens with --no-progress 14 | zstd --no-progress --adapt -vvvv -19 --zstd=wlog=10 file100M -o /dev/null 2>&1 | grep -q "faster speed , lighter compression" 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/compress-literals.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Test --[no-]compress-literals 6 | zstd file --no-compress-literals -1 -c | zstd -t 7 | zstd file --no-compress-literals -19 -c | zstd -t 8 | zstd file --no-compress-literals --fast=1 -c | zstd -t 9 | zstd file --compress-literals -1 -c | zstd -t 10 | zstd file --compress-literals --fast=1 -c | zstd -t 11 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . "$COMMON/format.sh" 4 | 5 | set -e 6 | 7 | # Test --format 8 | zstd --format=zstd file -f 9 | zstd -t file.zst 10 | for format in "gzip" "lz4" "xz" "lzma"; do 11 | if zstd_supports_format $format; then 12 | zstd --format=$format file 13 | zstd -t file.$(format_extension $format) 14 | zstd -c --format=$format file | zstd -t --format=$format 15 | fi 16 | done 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/golden.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | GOLDEN_DIR="$ZSTD_REPO_DIR/tests/golden-compression/" 6 | cp -r "$GOLDEN_DIR" golden/ 7 | 8 | zstd -rf golden/ --output-dir-mirror golden-compressed/ 9 | zstd -r -t golden-compressed/ 10 | 11 | zstd --target-compressed-block-size=1024 -rf golden/ --output-dir-mirror golden-compressed/ 12 | zstd -r -t golden-compressed/ 13 | 14 | # PR #3517 block splitter corruption test 15 | zstd -rf -19 --zstd=mml=7 golden/ --output-dir-mirror golden-compressed/ 16 | zstd -r -t golden-compressed/ -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/gzip-compat.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Uncomment the set -v line for debugging 6 | # set -v 7 | 8 | # Test gzip specific compression option 9 | if $(command -v $ZSTD_SYMLINK_DIR/gzip); then 10 | $ZSTD_SYMLINK_DIR/gzip --fast file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz 11 | $ZSTD_SYMLINK_DIR/gzip --best file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz 12 | 13 | # Test -n / --no-name: do not embed original filename in archive 14 | $ZSTD_SYMLINK_DIR/gzip -n file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz 15 | $ZSTD_SYMLINK_DIR/gzip --no-name file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz 16 | $ZSTD_SYMLINK_DIR/gzip -c --no-name file | grep -qv file 17 | fi 18 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/long-distance-matcher.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Test --long 6 | zstd -f file --long ; zstd -t file.zst 7 | zstd -f file --long=20; zstd -t file.zst 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/multi-threaded.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Test multi-threaded flags 6 | zstd --single-thread file -f -q ; zstd -t file.zst 7 | zstd -T2 -f file -q ; zstd -t file.zst 8 | zstd --rsyncable -f file -q ; zstd -t file.zst 9 | zstd -T0 -f file -q ; zstd -t file.zst 10 | zstd -T0 --auto-threads=logical -f file -q ; zstd -t file.zst 11 | zstd -T0 --auto-threads=physical -f file -q ; zstd -t file.zst 12 | 13 | # multi-thread decompression warning test 14 | zstd -T0 -f file -q ; zstd -t file.zst; zstd -T0 -d file.zst -o file3 15 | zstd -T0 -f file -q ; zstd -t file.zst; zstd -T2 -d file.zst -o file4 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/multi-threaded.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | file.zst : 65537 bytes 2 | file.zst : 65537 bytes 3 | file.zst : 65537 bytes 4 | file.zst : 65537 bytes 5 | file.zst : 65537 bytes 6 | file.zst : 65537 bytes 7 | file.zst : 65537 bytes 8 | file.zst : 65537 bytes 9 | file.zst : 65537 bytes 10 | Warning : decompression does not support multi-threading 11 | file.zst : 65537 bytes 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/multiple-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # setup 5 | echo "file1" > file1 6 | echo "file2" > file2 7 | 8 | echo "Test zstd ./file1 - file2" 9 | rm -f ./file*.zst 10 | echo "stdin" | zstd ./file1 - ./file2 | zstd -d 11 | cat file1.zst | zstd -d 12 | cat file2.zst | zstd -d 13 | 14 | echo "Test zstd -d ./file1.zst - file2.zst" 15 | rm ./file1 ./file2 16 | echo "stdin" | zstd - | zstd -d ./file1.zst - file2.zst 17 | cat file1 18 | cat file2 19 | 20 | echo "zstd -d ./file1.zst - file2.zst -c" 21 | echo "stdin" | zstd | zstd -d ./file1.zst - file2.zst -c 22 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/multiple-files.sh.stdout.exact: -------------------------------------------------------------------------------- 1 | Test zstd ./file1 - file2 2 | stdin 3 | file1 4 | file2 5 | Test zstd -d ./file1.zst - file2.zst 6 | stdin 7 | file1 8 | file2 9 | zstd -d ./file1.zst - file2.zst -c 10 | file1 11 | stdin 12 | file2 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/row-match-finder.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Test --[no-]row-match-finder 6 | zstd file -7f --row-match-finder 7 | zstd file -7f --no-row-match-finder 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/setup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen > file 6 | datagen > file0 7 | datagen > file1 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/stream-size.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Test stream size & hint 6 | datagen -g7654 | zstd --stream-size=7654 | zstd -t 7 | datagen -g7654 | zstd --size-hint=7000 | zstd -t 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/verbose-wlog.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | . "$COMMON/platform.sh" 6 | 7 | zstd < file -vv -19 -o file.19.zst 8 | zstd -vv -l file.19.zst 9 | 10 | zstd < file -vv -19 --long -o file.19.long.zst 11 | zstd -vv -l file.19.long.zst 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/verbose-wlog.sh.stderr.glob: -------------------------------------------------------------------------------- 1 | ... 2 | *wlog=23* 3 | ... 4 | *wlog=27* 5 | ... 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/verbose-wlog.sh.stdout.glob: -------------------------------------------------------------------------------- 1 | ... 2 | *Window Size: 8388608 B* 3 | ... 4 | *Window Size: 134217728 B* 5 | ... 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/window-resize.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | datagen -g1G > file 3 | zstd --long=30 -1 --single-thread --no-content-size -f file 4 | zstd -l -v file.zst 5 | 6 | # We want to ignore stderr (its outputting "*** zstd command line interface 7 | # 64-bits v1.5.3, by Yann Collet ***") 8 | 9 | rm file file.zst 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/window-resize.sh.stderr.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/window-resize.sh.stderr.ignore -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/compression/window-resize.sh.stdout.glob: -------------------------------------------------------------------------------- 1 | ... 2 | Window Size: 1.000 GiB (1073741824 B) 3 | ... 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/decompression/detectErrors.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | GOLDEN_DIR="$ZSTD_REPO_DIR/tests/golden-decompression-errors/" 6 | 7 | for file in "$GOLDEN_DIR"/*; do 8 | zstd -t $file && die "should have detected an error" 9 | done 10 | exit 0 11 | 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/decompression/golden.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | GOLDEN_DIR="$ZSTD_REPO_DIR/tests/golden-decompression/" 6 | 7 | zstd -r -t "$GOLDEN_DIR" 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/decompression/pass-through.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | file :230.00% ( 10 B => 23 B, file.zst) 2 | zstd: file: unsupported format 3 | zstd: file: unsupported format 4 | zstd: file: unsupported format 5 | zstd: file: unsupported format 6 | zstd: /*stdin*\: unsupported format 7 | zstd: file: unsupported format 8 | zstd: file: unsupported format 9 | zstd: /*stdin*\: unsupported format 10 | zstd: /*stdin*\: unsupported format 11 | zstd: file: unsupported format 12 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/decompression/pass-through.sh.stdout.exact: -------------------------------------------------------------------------------- 1 | + passthrough enabled 2 | 3 | 2 4 | 23 5 | 234 6 | some data 7 | some data 8 | some data 9 | some data 10 | some data 11 | some data 12 | some data 13 | some data 14 | some data 15 | some data 16 | some data 17 | some data 18 | some data 19 | some data 20 | some data 21 | some data 22 | + passthrough disabled 23 | some data 24 | some data 25 | some data 26 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dict-builder/empty-input.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | for i in $(seq 50); do 4 | datagen -s$i > file$i 5 | done 6 | touch empty 7 | 8 | set -v 9 | zstd -q --train empty file* 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dict-builder/empty-input.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | zstd -q --train empty file* 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dict-builder/no-inputs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -v 3 | zstd --train 4 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dict-builder/no-inputs.sh.exit: -------------------------------------------------------------------------------- 1 | 14 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dict-builder/no-inputs.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | zstd --train 2 | ! Warning : nb of samples too low for proper processing ! 3 | ! Please provide _one file per sample_. 4 | ! Alternatively, split files into fixed-size blocks representative of samples, with -B# 5 | Error 14 : nb of samples too low 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dictionaries/dictionary-mismatch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . "$COMMON/platform.sh" 4 | 5 | set -e 6 | 7 | if [ false ]; then 8 | for seed in $(seq 100); do 9 | datagen -g1000 -s$seed > file$seed 10 | done 11 | 12 | zstd --train -r . -o dict0 -qq 13 | 14 | for seed in $(seq 101 200); do 15 | datagen -g1000 -s$seed > file$seed 16 | done 17 | 18 | zstd --train -r . -o dict1 -qq 19 | 20 | [ "$($MD5SUM < dict0)" != "$($MD5SUM < dict1)" ] || die "dictionaries must not match" 21 | 22 | datagen -g1000 -s0 > file0 23 | fi 24 | 25 | set -v 26 | zstd files/0 -D dicts/0 -q 27 | zstd -t files/0.zst -D dicts/0 28 | zstd -t files/0.zst -D dicts/1 && die "Must fail" ||: 29 | zstd -t files/0.zst && die "Must fail" ||: 30 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dictionaries/dictionary-mismatch.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | zstd files/0 -D dicts/0 -q 2 | zstd -t files/0.zst -D dicts/0 3 | files/0.zst : 1000 bytes 4 | zstd -t files/0.zst -D dicts/1 && die "Must fail" ||: 5 | files/0.zst : Decoding error (36) : Dictionary mismatch 6 | zstd -t files/0.zst && die "Must fail" ||: 7 | files/0.zst : Decoding error (36) : Dictionary mismatch 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dictionaries/golden.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | GOLDEN_COMP_DIR="$ZSTD_REPO_DIR/tests/golden-compression/" 6 | GOLDEN_DICT_DIR="$ZSTD_REPO_DIR/tests/golden-dictionaries/" 7 | 8 | zstd -D "$GOLDEN_DICT_DIR/http-dict-missing-symbols" "$GOLDEN_COMP_DIR/http" -o http.zst 9 | zstd -D "$GOLDEN_DICT_DIR/http-dict-missing-symbols" -t http.zst 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dictionaries/setup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | cp -r ../files . 6 | cp -r ../dicts . 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/dictionaries/setup_once: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | . "$COMMON/platform.sh" 6 | 7 | 8 | mkdir files/ dicts/ 9 | 10 | for seed in $(seq 50); do 11 | datagen -g1000 -s$seed > files/$seed 12 | done 13 | 14 | zstd --train -r files -o dicts/0 -qq 15 | 16 | for seed in $(seq 51 100); do 17 | datagen -g1000 -s$seed > files/$seed 18 | done 19 | 20 | zstd --train -r files -o dicts/1 -qq 21 | 22 | cmp dicts/0 dicts/1 && die "dictionaries must not match!" 23 | 24 | datagen -g1000 > files/0 25 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-handling/directory-mirror.sh.stderr.exact: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-handling/directory-mirror.sh.stderr.exact -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-handling/directory-mirror.sh.stdout.exact: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-handling/directory-mirror.sh.stdout.exact -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # motivated by issue #3523 4 | 5 | datagen > file 6 | mkdir out 7 | chmod 000 out 8 | 9 | zstd file -q --trace-file-stat -o out/file.zst 10 | zstd -tq out/file.zst 11 | 12 | chmod 777 out 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isLink(file) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(2) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_getFileSize(file) 6 | Trace:FileStat: > UTIL_stat(-1, file) 7 | Trace:FileStat: < 1 8 | Trace:FileStat: < 65537 9 | Trace:FileStat: > UTIL_stat(-1, file) 10 | Trace:FileStat: < 1 11 | Trace:FileStat: > UTIL_isDirectoryStat() 12 | Trace:FileStat: < 0 13 | Trace:FileStat: > UTIL_stat(-1, file) 14 | Trace:FileStat: < 1 15 | Trace:FileStat: > UTIL_isSameFile(file, out/file.zst) 16 | Trace:FileStat: > UTIL_stat(-1, file) 17 | Trace:FileStat: < 1 18 | Trace:FileStat: > UTIL_stat(-1, out/file.zst) 19 | Trace:FileStat: < 0 20 | Trace:FileStat: < 0 21 | Trace:FileStat: > UTIL_isRegularFile(out/file.zst) 22 | Trace:FileStat: > UTIL_stat(-1, out/file.zst) 23 | Trace:FileStat: < 0 24 | Trace:FileStat: < 0 25 | zstd: out/file.zst: Permission denied 26 | zstd: can't stat out/file.zst : Permission denied -- ignored 27 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-file-to-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen > file 6 | chmod 642 file 7 | 8 | zstd file -q --trace-file-stat -o file.zst 9 | zstd -tq file.zst 10 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-file-to-stdout.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen > file 6 | 7 | zstd file -cq --trace-file-stat > file.zst 8 | zstd -tq file.zst 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-file-to-stdout.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isLink(file) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(1) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_isConsole(2) 6 | Trace:FileStat: < 0 7 | Trace:FileStat: > UTIL_getFileSize(file) 8 | Trace:FileStat: > UTIL_stat(-1, file) 9 | Trace:FileStat: < 1 10 | Trace:FileStat: < 65537 11 | Trace:FileStat: > UTIL_stat(-1, file) 12 | Trace:FileStat: < 1 13 | Trace:FileStat: > UTIL_isDirectoryStat() 14 | Trace:FileStat: < 0 15 | Trace:FileStat: > UTIL_stat(-1, file) 16 | Trace:FileStat: < 1 17 | Trace:FileStat: > UTIL_isRegularFile(/*stdout*\) 18 | Trace:FileStat: > UTIL_stat(-1, /*stdout*\) 19 | Trace:FileStat: < 0 20 | Trace:FileStat: < 0 21 | Trace:FileStat: > UTIL_getFileSize(file) 22 | Trace:FileStat: > UTIL_stat(-1, file) 23 | Trace:FileStat: < 1 24 | Trace:FileStat: < 65537 25 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-stdin-to-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen > file 6 | 7 | zstd < file -q --trace-file-stat -o file.zst 8 | zstd -tq file.zst 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-stdin-to-file.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isConsole(0) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(2) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_getFileSize(/*stdin*\) 6 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 7 | Trace:FileStat: < 0 8 | Trace:FileStat: < -1 9 | Trace:FileStat: > UTIL_isSameFile(/*stdin*\, file.zst) 10 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 11 | Trace:FileStat: < 0 12 | Trace:FileStat: < 0 13 | Trace:FileStat: > UTIL_isRegularFile(file.zst) 14 | Trace:FileStat: > UTIL_stat(-1, file.zst) 15 | Trace:FileStat: < 0 16 | Trace:FileStat: < 0 17 | Trace:FileStat: > UTIL_isRegularFile(file.zst) 18 | Trace:FileStat: > UTIL_stat(-1, file.zst) 19 | Trace:FileStat: < 1 20 | Trace:FileStat: < 1 21 | Trace:FileStat: > UTIL_getFileSize(/*stdin*\) 22 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 23 | Trace:FileStat: < 0 24 | Trace:FileStat: < -1 25 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-stdin-to-stdout.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen > file 6 | 7 | zstd < file -cq --trace-file-stat > file.zst 8 | zstd -tq file.zst 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/compress-stdin-to-stdout.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isConsole(0) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(1) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_isConsole(2) 6 | Trace:FileStat: < 0 7 | Trace:FileStat: > UTIL_getFileSize(/*stdin*\) 8 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 9 | Trace:FileStat: < 0 10 | Trace:FileStat: < -1 11 | Trace:FileStat: > UTIL_isRegularFile(/*stdout*\) 12 | Trace:FileStat: > UTIL_stat(-1, /*stdout*\) 13 | Trace:FileStat: < 0 14 | Trace:FileStat: < 0 15 | Trace:FileStat: > UTIL_getFileSize(/*stdin*\) 16 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 17 | Trace:FileStat: < 0 18 | Trace:FileStat: < -1 19 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-file-to-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen | zstd -q > file.zst 6 | chmod 642 file.zst 7 | 8 | zstd -dq --trace-file-stat file.zst 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-file-to-stdout.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen | zstd -q > file.zst 6 | 7 | zstd -dcq --trace-file-stat file.zst > file 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-file-to-stdout.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isLink(file.zst) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(1) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_isConsole(2) 6 | Trace:FileStat: < 0 7 | Trace:FileStat: > UTIL_isDirectory(file.zst) 8 | Trace:FileStat: > UTIL_stat(-1, file.zst) 9 | Trace:FileStat: < 1 10 | Trace:FileStat: > UTIL_isDirectoryStat() 11 | Trace:FileStat: < 0 12 | Trace:FileStat: < 0 13 | Trace:FileStat: > UTIL_stat(-1, file.zst) 14 | Trace:FileStat: < 1 15 | Trace:FileStat: > UTIL_isRegularFile(/*stdout*\) 16 | Trace:FileStat: > UTIL_stat(-1, /*stdout*\) 17 | Trace:FileStat: < 0 18 | Trace:FileStat: < 0 19 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-stdin-to-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen | zstd -q > file.zst 6 | 7 | zstd -dcq --trace-file-stat < file.zst -o file 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-stdin-to-file.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isConsole(0) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(2) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_isDirectory(/*stdin*\) 6 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 7 | Trace:FileStat: < 0 8 | Trace:FileStat: < 0 9 | Trace:FileStat: > UTIL_isSameFile(/*stdin*\, file) 10 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 11 | Trace:FileStat: < 0 12 | Trace:FileStat: < 0 13 | Trace:FileStat: > UTIL_isRegularFile(file) 14 | Trace:FileStat: > UTIL_stat(-1, file) 15 | Trace:FileStat: < 0 16 | Trace:FileStat: < 0 17 | Trace:FileStat: > UTIL_isRegularFile(file) 18 | Trace:FileStat: > UTIL_stat(-1, file) 19 | Trace:FileStat: < 1 20 | Trace:FileStat: < 1 21 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-stdin-to-stdout.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | datagen | zstd -q > file.zst 6 | 7 | zstd -dcq --trace-file-stat < file.zst > file 8 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/file-stat/decompress-stdin-to-stdout.sh.stderr.exact: -------------------------------------------------------------------------------- 1 | Trace:FileStat: > UTIL_isConsole(0) 2 | Trace:FileStat: < 0 3 | Trace:FileStat: > UTIL_isConsole(1) 4 | Trace:FileStat: < 0 5 | Trace:FileStat: > UTIL_isConsole(2) 6 | Trace:FileStat: < 0 7 | Trace:FileStat: > UTIL_isDirectory(/*stdin*\) 8 | Trace:FileStat: > UTIL_stat(-1, /*stdin*\) 9 | Trace:FileStat: < 0 10 | Trace:FileStat: < 0 11 | Trace:FileStat: > UTIL_isRegularFile(/*stdout*\) 12 | Trace:FileStat: > UTIL_stat(-1, /*stdout*\) 13 | Trace:FileStat: < 0 14 | Trace:FileStat: < 0 15 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/zstd-symlinks/setup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | println "hello" > hello 5 | println "world" > world 6 | zstd hello world 7 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/zstd-symlinks/zstdcat.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Test zstdcat symlink in bin/ 5 | zstdcat hello.zst 6 | zstdcat hello.zst world 7 | zstdcat hello world.zst 8 | zstdcat hello.zst world.zst 9 | 10 | # Test local zstdcat symlink 11 | ln -s $(which zstd) ./zstdcat 12 | ./zstdcat hello.zst 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/cli-tests/zstd-symlinks/zstdcat.sh.stdout.exact: -------------------------------------------------------------------------------- 1 | hello 2 | hello 3 | world 4 | hello 5 | world 6 | hello 7 | world 8 | hello 9 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/dict-files/zero-weight-dict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/dict-files/zero-weight-dict -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | # test artefacts 2 | corpora 3 | block_decompress 4 | block_round_trip 5 | dictionary_decompress 6 | dictionary_loader 7 | dictionary_round_trip 8 | dictionary_stream_round_trip 9 | raw_dictionary_round_trip 10 | simple_compress 11 | simple_decompress 12 | simple_round_trip 13 | stream_decompress 14 | stream_round_trip 15 | zstd_frame_info 16 | decompress_dstSize_tooSmall 17 | fse_read_ncount 18 | sequence_compression_api 19 | seekable_roundtrip 20 | huf_decompress 21 | huf_round_trip 22 | fuzz-*.log 23 | rt_lib_* 24 | d_lib_* 25 | crash-* 26 | 27 | # misc 28 | trace 29 | tmp* 30 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/fuzz/seq_prod_fuzz_example/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) Yann Collet, Meta Platforms, Inc. 2 | # All rights reserved. 3 | # 4 | # This source code is licensed under both the BSD-style license (found in the 5 | # LICENSE file in the root directory of this source tree) and the GPLv2 (found 6 | # in the COPYING file in the root directory of this source tree). 7 | # You may select, at your option, one of the above-listed licenses. 8 | 9 | CC = clang 10 | CFLAGS = -g -fno-omit-frame-pointer -fsanitize=undefined,address,fuzzer -I../ -I../../../lib/ 11 | 12 | .PHONY: default 13 | default: example_seq_prod.o 14 | 15 | example_seq_prod.o: example_seq_prod.c 16 | $(CC) -c $(CFLAGS) $^ -o $@ 17 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/fuzz/seq_prod_fuzz_example/README.md: -------------------------------------------------------------------------------- 1 | # Fuzzing a Custom Sequence Producer Plugin 2 | This directory contains example code for using a custom sequence producer in the zstd fuzzers. 3 | 4 | You can build and run the code in this directory using these commands: 5 | ``` 6 | $ make corpora 7 | $ make -C seq_prod_fuzz_example/ 8 | $ python3 ./fuzz.py build all --enable-fuzzer --enable-asan --enable-ubsan --cc clang --cxx clang++ --custom-seq-prod=seq_prod_fuzz_example/example_seq_prod.o 9 | $ python3 ./fuzz.py libfuzzer simple_round_trip 10 | ``` 11 | 12 | See `../fuzz_third_party_seq_prod.h` and `../README.md` for more information on zstd fuzzing. 13 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-compression/PR-3517-block-splitter-corruption-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-compression/PR-3517-block-splitter-corruption-test -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-compression/huffman-compressed-larger: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-compression/huffman-compressed-larger -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-compression/large-literal-and-match-lengths: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-compression/large-literal-and-match-lengths -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression-errors/.gitignore: -------------------------------------------------------------------------------- 1 | !*.zst 2 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression-errors/off0.bin.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression-errors/off0.bin.zst -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression-errors/zeroSeq_extraneous.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression-errors/zeroSeq_extraneous.zst -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/block-128k.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/block-128k.zst -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/empty-block.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/empty-block.zst -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/rle-first-block.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/rle-first-block.zst -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/zeroSeq_2B.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-decompression/zeroSeq_2B.zst -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/golden-dictionaries/http-dict-missing-symbols: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/golden-dictionaries/http-dict-missing-symbols -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/gzip/hufts-segv.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/deps/libchdr/deps/zstd-1.5.6/tests/gzip/hufts-segv.gz -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/gzip/init.cfg: -------------------------------------------------------------------------------- 1 | # This file is sourced by init.sh, *before* its initialization. 2 | 3 | # This goes hand in hand with the "exec 9>&2;" in Makefile.am's 4 | # TESTS_ENVIRONMENT definition. 5 | stderr_fileno_=9 6 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/gzip/z-suffix.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Check that -Sz works. 3 | 4 | # Copyright 2014-2016 Free Software Foundation, Inc. 5 | 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program. If not, see . 18 | # limit so don't run it by default. 19 | 20 | . "${srcdir=.}/init.sh"; path_prepend_ . 21 | 22 | printf anything > F && cp F G || framework_failure_ 23 | gzip -Sz F || fail=1 24 | test ! -f F || fail=1 25 | test -f Fz || fail=1 26 | gzip -dSz F || fail=1 27 | test ! -f Fz || fail=1 28 | compare F G || fail\1 29 | 30 | Exit $fail 31 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/loremOut.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | /* LOREM_genOut(): 12 | * Generate @size bytes of compressible data using lorem ipsum generator into 13 | * stdout. 14 | */ 15 | void LOREM_genOut(unsigned long long size, unsigned seed); 16 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/regression/.gitignore: -------------------------------------------------------------------------------- 1 | # regression test artifacts 2 | data-cache 3 | cache 4 | test 5 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/regression/README.md: -------------------------------------------------------------------------------- 1 | # Regression tests 2 | 3 | The regression tests run zstd in many scenarios and ensures that the size of the compressed results doesn't change. This helps us ensure that we don't accidentally regress zstd's compression ratio. 4 | 5 | These tests get run every night by CircleCI. If the job fails you can read the diff printed by the job to ensure the change isn't a regression. If all is well you can download the `results.csv` artifact and commit the new results. Or you can rebuild it yourself following the instructions below. 6 | 7 | ## Rebuilding results.csv 8 | 9 | From the root of the zstd repo run: 10 | 11 | ``` 12 | # Build the zstd binary 13 | make clean 14 | make -j zstd 15 | 16 | # Build the regression test binary 17 | cd tests/regression 18 | make clean 19 | make -j test 20 | 21 | # Run the regression test 22 | ./test --cache data-cache --zstd ../../zstd --output results.csv 23 | 24 | # Check results.csv to ensure the new results are okay 25 | git diff 26 | 27 | # Then submit the PR 28 | ``` 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/tests/regression/result.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under both the BSD-style license (found in the 6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 | * in the COPYING file in the root directory of this source tree). 8 | * You may select, at your option, one of the above-listed licenses. 9 | */ 10 | 11 | #include "result.h" 12 | 13 | char const* result_get_error_string(result_t result) { 14 | switch (result_get_error(result)) { 15 | case result_error_ok: 16 | return "okay"; 17 | case result_error_skip: 18 | return "skip"; 19 | case result_error_system_error: 20 | return "system error"; 21 | case result_error_compression_error: 22 | return "compression error"; 23 | case result_error_decompression_error: 24 | return "decompression error"; 25 | case result_error_round_trip_error: 26 | return "round trip error"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/zlibWrapper/.gitignore: -------------------------------------------------------------------------------- 1 | # object artifacts 2 | *.o 3 | 4 | # Default result files 5 | _* 6 | example 7 | example_zstd.* 8 | example_gz.* 9 | fitblk 10 | fitblk_zstd.* 11 | zwrapbench 12 | foo.gz 13 | 14 | minigzip 15 | minigzip_zstd 16 | example 17 | example_zstd 18 | fitblk 19 | fitblk_zstd 20 | zwrapbench 21 | 22 | # Misc files 23 | *.bat 24 | *.zip 25 | *.txt 26 | 27 | # Directories 28 | minizip/ 29 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/zlibWrapper/BUCK: -------------------------------------------------------------------------------- 1 | cxx_library( 2 | name='zlib_wrapper', 3 | visibility=['PUBLIC'], 4 | exported_linker_flags=['-lz'], 5 | header_namespace='', 6 | exported_headers=['zstd_zlibwrapper.h'], 7 | headers=[ 8 | 'gzcompatibility.h', 9 | 'gzguts.h', 10 | ], 11 | srcs=glob(['*.c']), 12 | deps=[ 13 | '//lib:zstd', 14 | '//lib:zstd_common', 15 | ], 16 | ) 17 | 18 | cxx_binary( 19 | name='minigzip', 20 | srcs=['examples/minigzip.c'], 21 | deps=[':zlib_wrapper'], 22 | ) 23 | -------------------------------------------------------------------------------- /deps/libchdr/deps/zstd-1.5.6/zlibWrapper/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c contains minimal changes required to be compiled with zlibWrapper: 2 | * - gz_statep was converted to union to work with -Wstrict-aliasing=1 */ 3 | 4 | /* gzclose.c -- zlib gzclose() function 5 | * Copyright (C) 2004, 2010 Mark Adler 6 | * For conditions of distribution and use, see https://www.zlib.net/zlib_license.html 7 | */ 8 | 9 | #include "gzguts.h" 10 | 11 | /* gzclose() is in a separate file so that it is linked in only if it is used. 12 | That way the other gzclose functions can be used instead to avoid linking in 13 | unneeded compression or decompression routines. */ 14 | int ZEXPORT gzclose(gzFile file) { 15 | #ifndef NO_GZCOMPRESS 16 | gz_statep state; 17 | 18 | if (file == NULL) 19 | return Z_STREAM_ERROR; 20 | state.file = file; 21 | 22 | return state.state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 23 | #else 24 | return gzclose_r(file); 25 | #endif 26 | } 27 | -------------------------------------------------------------------------------- /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 | 4 | # fuzzing 5 | if(BUILD_FUZZER) 6 | add_executable(chdr-fuzz fuzz.c) 7 | target_link_options(chdr-fuzz PRIVATE "-fsanitize=address,fuzzer") 8 | target_link_libraries(chdr-fuzz PRIVATE chdr-static) 9 | add_custom_target(fuzz 10 | COMMAND "$" "-max_len=131072" 11 | DEPENDS chdr-fuzz) 12 | endif() 13 | -------------------------------------------------------------------------------- /deps/lightrec/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.so* 3 | -------------------------------------------------------------------------------- /deps/lightrec/arch.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2024 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTREC_ARCH_H__ 7 | #define __LIGHTREC_ARCH_H__ 8 | 9 | #include 10 | #include 11 | 12 | static bool arch_has_fast_mask(void) 13 | { 14 | #if __mips_isa_rev >= 2 15 | /* On MIPS32 >= r2, we can use extr / ins instructions */ 16 | return true; 17 | #endif 18 | #ifdef __powerpc__ 19 | /* On PowerPC, we can use the RLWINM instruction */ 20 | return true; 21 | #endif 22 | #ifdef __aarch64__ 23 | /* Aarch64 can use the UBFX instruction */ 24 | return true; 25 | #endif 26 | #if defined(__x86__) || defined(__x86_64__) 27 | /* x86 doesn't have enough registers, using cached values make 28 | * little sense. Using jit_andi() will give a better result as it will 29 | * use bit-shifts for low/high masks. */ 30 | return true; 31 | #endif 32 | 33 | return false; 34 | } 35 | 36 | #endif /* __LIGHTREC_ARCH_H__ */ 37 | -------------------------------------------------------------------------------- /deps/lightrec/emitter.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2014-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __EMITTER_H__ 7 | #define __EMITTER_H__ 8 | 9 | #include "lightrec.h" 10 | 11 | struct block; 12 | struct lightrec_cstate; 13 | struct opcode; 14 | 15 | void lightrec_rec_opcode(struct lightrec_cstate *state, const struct block *block, u16 offset); 16 | void lightrec_emit_jump_to_interpreter(struct lightrec_cstate *state, 17 | const struct block *block, u16 offset); 18 | 19 | #endif /* __EMITTER_H__ */ 20 | -------------------------------------------------------------------------------- /deps/lightrec/interpreter.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2019-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTREC_INTERPRETER_H__ 7 | #define __LIGHTREC_INTERPRETER_H__ 8 | 9 | #include "lightrec.h" 10 | 11 | struct block; 12 | 13 | u32 lightrec_emulate_block(struct lightrec_state *state, struct block *block, u32 pc); 14 | u32 lightrec_handle_load_delay(struct lightrec_state *state, 15 | struct block *block, u32 pc, u32 reg); 16 | 17 | #endif /* __LIGHTREC_INTERPRETER_H__ */ 18 | -------------------------------------------------------------------------------- /deps/lightrec/lightning-wrapper.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2022 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTNING_WRAPPER_H__ 7 | #define __LIGHTNING_WRAPPER_H__ 8 | 9 | #include 10 | 11 | #include "lightrec-config.h" 12 | 13 | #if __WORDSIZE == 32 14 | 15 | #define jit_ldxi_ui(u,v,w) jit_ldxi_i(u,v,w) 16 | #define jit_stxi_ui(u,v,w) jit_stxi_i(u,v,w) 17 | #define jit_extr_i(u,v) jit_movr(u,v) 18 | #define jit_extr_ui(u,v) jit_movr(u,v) 19 | #define jit_retval_ui(u) jit_retval(u) 20 | #define jit_getarg_ui(u,v) jit_getarg_i(u,v) 21 | 22 | #endif 23 | 24 | #define jit_b() jit_beqr(0, 0) 25 | 26 | #if defined(__sh__) && OPT_SH4_USE_GBR 27 | #define jit_add_state(u,v) \ 28 | do { \ 29 | jit_new_node_ww(jit_code_movr,_R0,LIGHTREC_REG_STATE); \ 30 | jit_new_node_www(jit_code_addr,u,v,_R0); \ 31 | } while (0) 32 | #else 33 | #define jit_add_state(u,v) jit_addr(u,v,LIGHTREC_REG_STATE) 34 | #endif 35 | 36 | #endif /* __LIGHTNING_WRAPPER_H__ */ 37 | -------------------------------------------------------------------------------- /deps/lightrec/lightrec-config.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2019-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTREC_CONFIG_H__ 7 | #define __LIGHTREC_CONFIG_H__ 8 | 9 | #define ENABLE_THREADED_COMPILER 0 10 | #define ENABLE_FIRST_PASS 1 11 | #define ENABLE_DISASSEMBLER 0 12 | #define ENABLE_CODE_BUFFER 1 13 | 14 | #define HAS_DEFAULT_ELM 1 15 | 16 | #define OPT_REMOVE_DIV_BY_ZERO_SEQ 1 17 | #define OPT_REPLACE_MEMSET 1 18 | #define OPT_DETECT_IMPOSSIBLE_BRANCHES 1 19 | #define OPT_HANDLE_LOAD_DELAYS 1 20 | #define OPT_TRANSFORM_OPS 1 21 | #define OPT_LOCAL_BRANCHES 1 22 | #define OPT_SWITCH_DELAY_SLOTS 1 23 | #define OPT_FLAG_IO 1 24 | #define OPT_FLAG_MULT_DIV 1 25 | #define OPT_EARLY_UNLOAD 1 26 | #define OPT_PRELOAD_PC 1 27 | 28 | #define OPT_SH4_USE_GBR 0 29 | 30 | #endif /* __LIGHTREC_CONFIG_H__ */ 31 | 32 | -------------------------------------------------------------------------------- /deps/lightrec/lightrec-config.h.cmakein: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2019-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTREC_CONFIG_H__ 7 | #define __LIGHTREC_CONFIG_H__ 8 | 9 | #cmakedefine01 ENABLE_THREADED_COMPILER 10 | #cmakedefine01 ENABLE_FIRST_PASS 11 | #cmakedefine01 ENABLE_DISASSEMBLER 12 | #cmakedefine01 ENABLE_CODE_BUFFER 13 | 14 | #cmakedefine01 HAS_DEFAULT_ELM 15 | 16 | #cmakedefine01 OPT_REMOVE_DIV_BY_ZERO_SEQ 17 | #cmakedefine01 OPT_REPLACE_MEMSET 18 | #cmakedefine01 OPT_DETECT_IMPOSSIBLE_BRANCHES 19 | #cmakedefine01 OPT_HANDLE_LOAD_DELAYS 20 | #cmakedefine01 OPT_TRANSFORM_OPS 21 | #cmakedefine01 OPT_LOCAL_BRANCHES 22 | #cmakedefine01 OPT_SWITCH_DELAY_SLOTS 23 | #cmakedefine01 OPT_FLAG_IO 24 | #cmakedefine01 OPT_FLAG_MULT_DIV 25 | #cmakedefine01 OPT_EARLY_UNLOAD 26 | #cmakedefine01 OPT_PRELOAD_PC 27 | 28 | #cmakedefine01 OPT_SH4_USE_GBR 29 | 30 | #endif /* __LIGHTREC_CONFIG_H__ */ 31 | 32 | -------------------------------------------------------------------------------- /deps/lightrec/memmanager.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2019-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __MEMMANAGER_H__ 7 | #define __MEMMANAGER_H__ 8 | 9 | #include "lightrec.h" 10 | 11 | enum mem_type { 12 | MEM_FOR_CODE, 13 | MEM_FOR_MIPS_CODE, 14 | MEM_FOR_IR, 15 | MEM_FOR_LIGHTREC, 16 | MEM_TYPE_END, 17 | }; 18 | 19 | void * lightrec_malloc(struct lightrec_state *state, 20 | enum mem_type type, unsigned int len); 21 | void * lightrec_calloc(struct lightrec_state *state, 22 | enum mem_type type, unsigned int len); 23 | void lightrec_free(struct lightrec_state *state, 24 | enum mem_type type, unsigned int len, void *ptr); 25 | 26 | void lightrec_register(enum mem_type type, unsigned int len); 27 | void lightrec_unregister(enum mem_type type, unsigned int len); 28 | 29 | unsigned int lightrec_get_mem_usage(enum mem_type type); 30 | unsigned int lightrec_get_total_mem_usage(void); 31 | float lightrec_get_average_ipi(void); 32 | 33 | #endif /* __MEMMANAGER_H__ */ 34 | -------------------------------------------------------------------------------- /deps/lightrec/optimizer.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2014-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __OPTIMIZER_H__ 7 | #define __OPTIMIZER_H__ 8 | 9 | #include "disassembler.h" 10 | 11 | struct block; 12 | struct opcode; 13 | 14 | __cnst _Bool opcode_reads_register(union code op, u8 reg); 15 | __cnst _Bool opcode_writes_register(union code op, u8 reg); 16 | __cnst u64 opcode_write_mask(union code op); 17 | __cnst _Bool has_delay_slot(union code op); 18 | _Bool is_delay_slot(const struct opcode *list, unsigned int offset); 19 | __cnst _Bool opcode_has_load_delay(union code op); 20 | __cnst _Bool opcode_is_io(union code op); 21 | __cnst _Bool is_unconditional_jump(union code c); 22 | __cnst _Bool is_syscall(union code c); 23 | 24 | _Bool should_emulate(const struct opcode *op); 25 | 26 | int lightrec_optimize(struct lightrec_state *state, struct block *block); 27 | 28 | #endif /* __OPTIMIZER_H__ */ 29 | -------------------------------------------------------------------------------- /deps/lightrec/reaper.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2020-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTREC_REAPER_H__ 7 | #define __LIGHTREC_REAPER_H__ 8 | 9 | struct lightrec_state; 10 | struct reaper; 11 | 12 | typedef void (*reap_func_t)(struct lightrec_state *state, void *); 13 | 14 | struct reaper *lightrec_reaper_init(struct lightrec_state *state); 15 | void lightrec_reaper_destroy(struct reaper *reaper); 16 | 17 | int lightrec_reaper_add(struct reaper *reaper, reap_func_t f, void *data); 18 | void lightrec_reaper_reap(struct reaper *reaper); 19 | 20 | void lightrec_reaper_pause(struct reaper *reaper); 21 | void lightrec_reaper_continue(struct reaper *reaper); 22 | 23 | #endif /* __LIGHTREC_REAPER_H__ */ 24 | -------------------------------------------------------------------------------- /deps/lightrec/recompiler.h: -------------------------------------------------------------------------------- 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 | /* 3 | * Copyright (C) 2019-2021 Paul Cercueil 4 | */ 5 | 6 | #ifndef __LIGHTREC_RECOMPILER_H__ 7 | #define __LIGHTREC_RECOMPILER_H__ 8 | 9 | struct block; 10 | struct lightrec_state; 11 | struct recompiler; 12 | 13 | struct recompiler *lightrec_recompiler_init(struct lightrec_state *state); 14 | void lightrec_free_recompiler(struct recompiler *rec); 15 | int lightrec_recompiler_add(struct recompiler *rec, struct block *block); 16 | void lightrec_recompiler_remove(struct recompiler *rec, struct block *block); 17 | 18 | void * lightrec_recompiler_run_first_pass(struct lightrec_state *state, 19 | struct block *block, u32 *pc); 20 | 21 | void lightrec_recompiler_pause(struct recompiler *rec); 22 | void lightrec_recompiler_unpause(struct recompiler *rec); 23 | 24 | void lightrec_code_alloc_lock(struct lightrec_state *state); 25 | void lightrec_code_alloc_unlock(struct lightrec_state *state); 26 | 27 | #endif /* __LIGHTREC_RECOMPILER_H__ */ 28 | -------------------------------------------------------------------------------- /deps/lightrec/tlsf/.gitrepo: -------------------------------------------------------------------------------- 1 | ; DO NOT EDIT (unless you know what you are doing) 2 | ; 3 | ; This subdirectory is a git "subrepo", and this file is maintained by the 4 | ; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme 5 | ; 6 | [subrepo] 7 | remote = https://github.com/mattconte/tlsf 8 | branch = master 9 | commit = deff9ab509341f264addbd3c8ada533678591905 10 | parent = 1dc0344052e7379e16753e4a285c30fd158bf78d 11 | method = merge 12 | cmdver = 0.4.3 13 | -------------------------------------------------------------------------------- /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_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 | 16 | // status 17 | int iThreadAvail; 18 | } SPUConfig; 19 | 20 | extern SPUConfig spu_config; 21 | 22 | #endif /* __P_SPU_CONFIG_H__ */ 23 | -------------------------------------------------------------------------------- /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/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/Chs.zip -------------------------------------------------------------------------------- /fonts/De.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/De.zip -------------------------------------------------------------------------------- /fonts/En.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/En.dat -------------------------------------------------------------------------------- /fonts/Es.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/Es.zip -------------------------------------------------------------------------------- /fonts/It.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/It.zip -------------------------------------------------------------------------------- /fonts/Kr.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/Kr.zip -------------------------------------------------------------------------------- /fonts/Pt.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/fonts/Pt.zip -------------------------------------------------------------------------------- /gpulib/gpu_timing.h: -------------------------------------------------------------------------------- 1 | 2 | // very conservative and wrong 3 | #define gput_fill(w, h) (23 + (4 + (w) / 16u) * (h)) 4 | #define gput_copy(w, h) ((w) * (h)) 5 | #define gput_poly_base() (23) 6 | #define gput_poly_base_t() (gput_poly_base() + 90) 7 | #define gput_poly_base_g() (gput_poly_base() + 144) 8 | #define gput_poly_base_gt() (gput_poly_base() + 225) 9 | #define gput_quad_base() gput_poly_base() 10 | #define gput_quad_base_t() gput_poly_base_t() 11 | #define gput_quad_base_g() gput_poly_base_g() 12 | #define gput_quad_base_gt() gput_poly_base_gt() 13 | #define gput_line(k) (8 + (k)) 14 | #define gput_sprite(w, h) (8 + ((w) / 2u) * (h)) 15 | 16 | // sort of a workaround for lack of proper fifo emulation 17 | #define gput_sum(sum, cnt, new_cycles) do { \ 18 | sum += cnt; cnt = new_cycles; \ 19 | } while (0) 20 | -------------------------------------------------------------------------------- /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/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/libSDL.a -------------------------------------------------------------------------------- /libogc_1.8.16_ipcfix.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/libogc_1.8.16_ipcfix.zip -------------------------------------------------------------------------------- /lightrec+Libogc2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/lightrec+Libogc2.zip -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saulfabregwiivc/WiiStation/4136a00703994f5a0dd418d9e0ba2a3baca93a27/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 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------