├── .gitattributes ├── .gitignore ├── BadLicense ├── RARUnpacker.cpp ├── RARUnpacker.h ├── XADRAROfficialHandle.h ├── XADRAROfficialHandle.m └── unrar │ ├── array.hpp │ ├── coder.cpp │ ├── coder.hpp │ ├── compress.hpp │ ├── getbits.cpp │ ├── getbits.hpp │ ├── int64.hpp │ ├── license.txt │ ├── model.cpp │ ├── model.hpp │ ├── rar.hpp │ ├── rardefs.hpp │ ├── rartypes.hpp │ ├── rarvm.cpp │ ├── rarvm.hpp │ ├── rarvmtbl.cpp │ ├── suballoc.cpp │ ├── suballoc.hpp │ ├── unpack.cpp │ ├── unpack.hpp │ ├── unpack15.cpp │ └── unpack20.cpp ├── Checkerboard.png ├── Corner-Bottom-Left.png ├── Corner-Bottom-Right.png ├── Corner-Top-Left.png ├── Corner-Top-Right.png ├── Credits.rtf ├── Cursor-Hand-Pointing.png ├── Document Icons ├── Document-BMP.icns ├── Document-CBR.icns ├── Document-CBZ.icns ├── Document-CRW.icns ├── Document-EPI.icns ├── Document-EXR.icns ├── Document-FAX.icns ├── Document-FPX.icns ├── Document-GIF.icns ├── Document-ICNS.icns ├── Document-ICO.icns ├── Document-JP2.icns ├── Document-JPG.icns ├── Document-PDF.icns ├── Document-PIC.icns ├── Document-PICT.icns ├── Document-PNG.icns ├── Document-PNTG.icns ├── Document-PSD.icns ├── Document-QTIF.icns ├── Document-RAR.icns ├── Document-SGI.icns ├── Document-TGA.icns ├── Document-TIFF.icns ├── Document-XBM.icns ├── Document-ZIP.icns └── URL.png ├── HMBlkAppKit ├── HMBlkAppKit.xcodeproj │ ├── project.pbxproj │ └── xcuserdata │ │ └── ardneran.xcuserdatad │ │ └── xcschemes │ │ ├── HMBlkAppKit.xcscheme │ │ ├── TestApp.xcscheme │ │ └── xcschememanagement.plist ├── HMBlkAppKit_Prefix.pch └── source │ ├── HMDTAppKit │ ├── HMAppKitEx.h │ ├── HMAppKitEx.m │ ├── HMBlkAppKit.h │ ├── HMBlkBox.h │ ├── HMBlkBox.m │ ├── HMBlkButton.h │ ├── HMBlkButton.m │ ├── HMBlkButtonCell.h │ ├── HMBlkButtonCell.m │ ├── HMBlkContentView.h │ ├── HMBlkContentView.m │ ├── HMBlkOutlineView.h │ ├── HMBlkOutlineView.m │ ├── HMBlkPanel.h │ ├── HMBlkPanel.m │ ├── HMBlkProgressIndicator.h │ ├── HMBlkProgressIndicator.m │ ├── HMBlkScrollView.h │ ├── HMBlkScrollView.m │ ├── HMBlkScroller.h │ ├── HMBlkScroller.m │ ├── HMBlkSearchField.h │ ├── HMBlkSearchField.m │ ├── HMBlkSearchFieldCell.h │ ├── HMBlkSearchFieldCell.m │ ├── HMBlkSegmentedCell.h │ ├── HMBlkSegmentedCell.m │ ├── HMBlkSegmentedControl.h │ ├── HMBlkSegmentedControl.m │ ├── HMBlkSlider.h │ ├── HMBlkSlider.m │ ├── HMBlkSliderCell.h │ ├── HMBlkSliderCell.m │ ├── HMBlkTableHeaderCell.h │ ├── HMBlkTableHeaderCell.m │ ├── HMBlkTableView.h │ ├── HMBlkTableView.m │ ├── PGFadeOutPanel.h │ ├── PGFadeOutPanel.m │ └── resource │ │ ├── blkCancelButton.tiff │ │ ├── blkCloseButton.tiff │ │ ├── blkContextButton.tiff │ │ ├── blkContextButtonSelected.tiff │ │ ├── blkDiscCollapsed.tiff │ │ ├── blkDiscExpanded.tiff │ │ ├── blkDiscTransient.tiff │ │ ├── blkFindButton.tiff │ │ ├── blkPanelLB.tiff │ │ ├── blkPanelLM.tiff │ │ ├── blkPanelLT.tiff │ │ ├── blkPanelMB.tiff │ │ ├── blkPanelMT.tiff │ │ ├── blkPanelRB.tiff │ │ ├── blkPanelRBResizable.tiff │ │ ├── blkPanelRM.tiff │ │ ├── blkPanelRT.tiff │ │ ├── blkProgressBack.tiff │ │ ├── blkProgressBar.tiff │ │ ├── blkProgressIndeterminate.tiff │ │ ├── blkScrollerKnobHL.tiff │ │ ├── blkScrollerKnobHM.tiff │ │ ├── blkScrollerKnobHR.tiff │ │ ├── blkScrollerKnobVB.tiff │ │ ├── blkScrollerKnobVM.tiff │ │ ├── blkScrollerKnobVT.tiff │ │ ├── blkSegmentDivider.tiff │ │ ├── blkSegmentL.tiff │ │ ├── blkSegmentM.tiff │ │ ├── blkSegmentR.tiff │ │ ├── blkSegmentSelectedL.tiff │ │ ├── blkSegmentSelectedM.tiff │ │ ├── blkSegmentSelectedR.tiff │ │ ├── button-left-hilite.png │ │ ├── button-left.png │ │ ├── button-middle-hilite.png │ │ ├── button-middle.png │ │ ├── button-right-hilite.png │ │ ├── button-right.png │ │ ├── scroller-horz-cap.tiff │ │ ├── scroller-horz-inner-hilite.tiff │ │ ├── scroller-horz-inner.tiff │ │ ├── scroller-horz-outer-hilite.tiff │ │ ├── scroller-horz-outer.tiff │ │ ├── scroller-horz-track.tiff │ │ ├── scroller-vert-cap.tiff │ │ ├── scroller-vert-end-hilite.tiff │ │ ├── scroller-vert-end.tiff │ │ ├── scroller-vert-inner-hilite.tiff │ │ ├── scroller-vert-inner.tiff │ │ ├── scroller-vert-outer-hilite.tiff │ │ ├── scroller-vert-outer.tiff │ │ ├── scroller-vert-track.tiff │ │ ├── search-cancel-hilite.tiff │ │ ├── search-cancel.tiff │ │ └── search-icon.tiff │ ├── HMDTFoundation │ ├── HMFoundationEx.h │ └── HMFoundationEx.m │ ├── application │ ├── AppController.h │ ├── AppController.m │ ├── English.lproj │ │ ├── InfoPlist.strings │ │ └── MainMenu.nib │ │ │ ├── blkContextButton.tiff │ │ │ ├── blkContextButtonSelected.tiff │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ ├── Info.plist │ └── main.m │ └── framework │ └── Info.plist ├── History.txt ├── Info.plist ├── License.txt ├── Mirror-Black.png ├── Mirror-White.png ├── Notes.txt ├── PGAbout.xib ├── PGAboutBoxController.h ├── PGAboutBoxController.m ├── PGActivity.h ├── PGActivity.m ├── PGActivity.xib ├── PGActivityPanelController.h ├── PGActivityPanelController.m ├── PGAlertView.h ├── PGAlertView.m ├── PGAppKitAdditions.h ├── PGAppKitAdditions.m ├── PGArchiveAdapter.h ├── PGArchiveAdapter.m ├── PGAttachments.h ├── PGAttachments.m ├── PGBezelPanel.h ├── PGBezelPanel.m ├── PGBookmark.h ├── PGBookmark.m ├── PGBookmarkController.h ├── PGBookmarkController.m ├── PGClipView.h ├── PGClipView.m ├── PGColorWell.h ├── PGColorWell.m ├── PGColumnView.h ├── PGColumnView.m ├── PGContainerAdapter.h ├── PGContainerAdapter.m ├── PGDataProvider.h ├── PGDataProvider.m ├── PGDebug.h ├── PGDebug.m ├── PGDelayedPerforming.h ├── PGDelayedPerforming.m ├── PGDisplayController.h ├── PGDisplayController.m ├── PGDocument.h ├── PGDocument.m ├── PGDocument.xib ├── PGDocumentController.h ├── PGDocumentController.m ├── PGDocumentWindow.h ├── PGDocumentWindow.m ├── PGDragHighlightView.h ├── PGDragHighlightView.m ├── PGFindView.h ├── PGFindView.m ├── PGFloatingPanelController.h ├── PGFloatingPanelController.m ├── PGFolderAdapter.h ├── PGFolderAdapter.m ├── PGFoundationAdditions.h ├── PGFoundationAdditions.m ├── PGFullscreenController.h ├── PGFullscreenController.m ├── PGFullscreenWindow.h ├── PGFullscreenWindow.m ├── PGGenericImageAdapter.h ├── PGGenericImageAdapter.m ├── PGGeometry.h ├── PGGeometry.m ├── PGGeometryTypes.h ├── PGGeometryTypes.m ├── PGHTMLAdapter.h ├── PGHTMLAdapter.m ├── PGIconTextFieldCell.h ├── PGIconTextFieldCell.m ├── PGImageSave.xib ├── PGImageSaveAlert.h ├── PGImageSaveAlert.m ├── PGImageView.h ├── PGImageView.m ├── PGInfoView.h ├── PGInfoView.m ├── PGInspector.xib ├── PGInspectorPanelController.h ├── PGInspectorPanelController.m ├── PGKeyboardLayout.h ├── PGKeyboardLayout.m ├── PGLegacy.h ├── PGLegacy.m ├── PGLocalizing.h ├── PGLocalizing.m ├── PGMainThreadProxy.h ├── PGMainThreadProxy.m ├── PGMenu.xib ├── PGNode.h ├── PGNode.m ├── PGNodeParenting.h ├── PGOrientationMenuItemCell.h ├── PGOrientationMenuItemCell.m ├── PGPDFAdapter.h ├── PGPDFAdapter.m ├── PGPrefObject.h ├── PGPrefObject.m ├── PGPreference.xib ├── PGPreferenceWindowController.h ├── PGPreferenceWindowController.m ├── PGProgressIndicatorCell.h ├── PGProgressIndicatorCell.m ├── PGResourceAdapter.h ├── PGResourceAdapter.m ├── PGResourceAdapting.h ├── PGResourceIdentifier.h ├── PGResourceIdentifier.m ├── PGRoundedBackgroundView.h ├── PGRoundedBackgroundView.m ├── PGSubscription.h ├── PGSubscription.m ├── PGThumbnailBrowser.h ├── PGThumbnailBrowser.m ├── PGThumbnailController.h ├── PGThumbnailController.m ├── PGThumbnailView.h ├── PGThumbnailView.m ├── PGTimer.xib ├── PGTimerButton.h ├── PGTimerButton.m ├── PGTimerPanelController.h ├── PGTimerPanelController.m ├── PGURL.xib ├── PGURLAlert.h ├── PGURLAlert.m ├── PGURLLoad.h ├── PGURLLoad.m ├── PGWebAdapter.h ├── PGWebAdapter.m ├── PGWebKitAdditions.h ├── PGWebKitAdditions.m ├── PGWindowController.h ├── PGWindowController.m ├── PGXMLAdapter.h ├── PGXMLAdapter.m ├── PGZooming.h ├── PGZooming.m ├── Pref-General.icns ├── Pref-Navigation.icns ├── Scale-Big.png ├── Scale-Small.png ├── Sequential-Document.icns ├── Sequential.help └── Contents │ ├── Info.plist │ ├── Resources │ ├── Sequential.png │ ├── de.lproj │ │ ├── de.lproj.helpindex │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── en.lproj │ │ ├── en.lproj.helpindex │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── es.lproj │ │ ├── es.lproj.helpindex │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── fr.lproj │ │ ├── fr.lproj.helpindex │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── it.lproj │ │ ├── index.html │ │ ├── it.lproj.helpindex │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── ja.lproj │ │ ├── index.html │ │ ├── ja.lproj.helpindex │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── main.css │ ├── pl.lproj │ │ ├── index.html │ │ ├── online.html │ │ ├── pl.lproj.helpindex │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── pt_BR.lproj │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── pt_BR.lproj.helpindex │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ ├── ru.lproj │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── ru.lproj.helpindex │ │ ├── scaling.html │ │ ├── sessions.html │ │ └── shortcuts.html │ └── sv.lproj │ │ ├── index.html │ │ ├── online.html │ │ ├── preferences.html │ │ ├── scaling.html │ │ ├── sessions.html │ │ ├── shortcuts.html │ │ └── sv.lproj.helpindex │ └── version.plist ├── Sequential.icns ├── Sequential.xcodeproj ├── pi.mode2 ├── pi.perspective ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ └── ardneran.xcuserdatad │ ├── UserInterfaceState.xcuserstate │ └── WorkspaceSettings.xcsettings ├── Sequential_Prefix.pch ├── Silhouette-Black.png ├── Silhouette-White.png ├── UniversalDetector ├── DetectorTest.m ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── Makefile.common ├── Makefile.depend ├── Makefile.legacy ├── Makefile.linux ├── Makefile.windows ├── UniversalDetector.h ├── UniversalDetector.m ├── UniversalDetector.xcodeproj │ └── project.pbxproj ├── UniversalDetector_Prefix.pch ├── WrappedUniversalDetector.cpp ├── WrappedUniversalDetector.h ├── scan.pl └── universalchardet │ ├── .cvsignore │ ├── Big5Freq.tab │ ├── CharDistribution.cpp │ ├── CharDistribution.h │ ├── EUCKRFreq.tab │ ├── EUCTWFreq.tab │ ├── GB2312Freq.tab │ ├── JISFreq.tab │ ├── JpCntx.cpp │ ├── JpCntx.h │ ├── LangBulgarianModel.cpp │ ├── LangCyrillicModel.cpp │ ├── LangGreekModel.cpp │ ├── LangHebrewModel.cpp │ ├── LangHungarianModel.cpp │ ├── LangThaiModel.cpp │ ├── kludge.c │ ├── nsBig5Prober.cpp │ ├── nsBig5Prober.h │ ├── nsCharSetProber.cpp │ ├── nsCharSetProber.h │ ├── nsCodingStateMachine.h │ ├── nsEUCJPProber.cpp │ ├── nsEUCJPProber.h │ ├── nsEUCKRProber.cpp │ ├── nsEUCKRProber.h │ ├── nsEUCTWProber.cpp │ ├── nsEUCTWProber.h │ ├── nsError.h │ ├── nsEscCharsetProber.cpp │ ├── nsEscCharsetProber.h │ ├── nsEscSM.cpp │ ├── nsGB2312Prober.cpp │ ├── nsGB2312Prober.h │ ├── nsHebrewProber.cpp │ ├── nsHebrewProber.h │ ├── nsLatin1Prober.cpp │ ├── nsLatin1Prober.h │ ├── nsMBCSGroupProber.cpp │ ├── nsMBCSGroupProber.h │ ├── nsMBCSSM.cpp │ ├── nsPkgInt.h │ ├── nsSBCSGroupProber.cpp │ ├── nsSBCSGroupProber.h │ ├── nsSBCharSetProber.cpp │ ├── nsSBCharSetProber.h │ ├── nsSJISProber.cpp │ ├── nsSJISProber.h │ ├── nsUTF8Prober.cpp │ ├── nsUTF8Prober.h │ ├── nsUniversalDetector.cpp │ ├── nsUniversalDetector.h │ ├── nscore.h │ ├── prcpucfg.h │ ├── prmem.h │ ├── protypes.h │ └── prtypes.h ├── XADMaster ├── BWT.c ├── BWT.h ├── CRC.h ├── CRC.m ├── CSBlockStreamHandle.h ├── CSBlockStreamHandle.m ├── CSByteStreamHandle.h ├── CSByteStreamHandle.m ├── CSBzip2Handle.h ├── CSBzip2Handle.m ├── CSCommandLineParser.h ├── CSCommandLineParser.m ├── CSFileHandle.h ├── CSFileHandle.m ├── CSHandle.h ├── CSHandle.m ├── CSHexDump.h ├── CSHexDump.m ├── CSInputBuffer.h ├── CSInputBuffer.m ├── CSJSONPrinter.h ├── CSJSONPrinter.m ├── CSMemoryHandle.h ├── CSMemoryHandle.m ├── CSMultiHandle.h ├── CSMultiHandle.m ├── CSStreamHandle.h ├── CSStreamHandle.m ├── CSSubHandle.h ├── CSSubHandle.m ├── CSZlibHandle.h ├── CSZlibHandle.m ├── CarrylessRangeCoder.h ├── CarrylessRangeCoder.m ├── Checksums.h ├── Checksums.m ├── CommandLineCommon.h ├── CommandLineCommon.m ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── LZSS.c ├── LZSS.h ├── LZW.c ├── LZW.h ├── Makefile.common ├── Makefile.depend ├── Makefile.legacy ├── Makefile.linux ├── Makefile.windows ├── NSDateXAD.h ├── NSDateXAD.m ├── NSStringPrinting.h ├── NSStringPrinting.m ├── NumberParsing.h ├── NumberParsing.m ├── PDF │ ├── CCITTHandle.h │ ├── CCITTHandle.m │ ├── LZWHandle.h │ ├── LZWHandle.m │ ├── NSDictionaryNumberExtension.h │ ├── NSDictionaryNumberExtension.m │ ├── PDFEncryptionHandler.h │ ├── PDFEncryptionHandler.m │ ├── PDFEncryptionUtils.h │ ├── PDFEncryptionUtils.m │ ├── PDFParser.h │ ├── PDFParser.m │ ├── PDFStream.h │ └── PDFStream.m ├── PPMd │ ├── Context.c │ ├── Context.h │ ├── Dependencies │ ├── Fuzzer.c │ ├── Makefile │ ├── PPMd.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ ├── RangeCoder.c │ ├── RangeCoder.h │ ├── SimpleDecompressor.c │ ├── SubAllocator.h │ ├── SubAllocatorBrimstone.c │ ├── SubAllocatorBrimstone.h │ ├── SubAllocatorVariantG.c │ ├── SubAllocatorVariantG.h │ ├── SubAllocatorVariantH.c │ ├── SubAllocatorVariantH.h │ ├── SubAllocatorVariantI.c │ ├── SubAllocatorVariantI.h │ ├── VariantG.c │ ├── VariantG.h │ ├── VariantH.c │ ├── VariantH.h │ ├── VariantI.c │ └── VariantI.h ├── PPMdContext.h ├── PPMdContext.m ├── PPMdSubAllocator.h ├── PPMdSubAllocatorBrimstone.h ├── PPMdSubAllocatorBrimstone.m ├── PPMdSubAllocatorVariantG.h ├── PPMdSubAllocatorVariantG.m ├── PPMdSubAllocatorVariantH.h ├── PPMdSubAllocatorVariantH.m ├── PPMdSubAllocatorVariantI.h ├── PPMdSubAllocatorVariantI.m ├── PPMdVariantG.h ├── PPMdVariantG.m ├── PPMdVariantH.h ├── PPMdVariantH.m ├── PPMdVariantI.h ├── PPMdVariantI.m ├── Progress.h ├── Progress.m ├── RARAudioDecoder.c ├── RARAudioDecoder.h ├── RARBug.c ├── RARBug.h ├── RARVirtualMachine.c ├── RARVirtualMachine.h ├── Realloc.h ├── Scanning.h ├── Scanning.m ├── StuffItXEnglishDictionary.c ├── StuffItXUtilities.h ├── StuffItXUtilities.m ├── SystemSpecific.h ├── WinZipJPEG │ ├── ArithmeticDecoder.c │ ├── ArithmeticDecoder.h │ ├── Decompressor.c │ ├── Decompressor.h │ ├── Dependencies │ ├── InputStream.h │ ├── JPEG.c │ ├── JPEG.h │ ├── LZMA.h │ ├── Makefile │ ├── RawDecoder.c │ └── Test.c ├── Windows │ ├── Foundation.1.0.dll │ ├── bin │ │ └── libtoolstub.pl │ ├── include │ │ ├── bzlib.h │ │ ├── openssl │ │ │ ├── aes.h │ │ │ ├── applink.c │ │ │ ├── asn1.h │ │ │ ├── asn1_mac.h │ │ │ ├── asn1t.h │ │ │ ├── bio.h │ │ │ ├── blowfish.h │ │ │ ├── bn.h │ │ │ ├── buffer.h │ │ │ ├── camellia.h │ │ │ ├── cast.h │ │ │ ├── cms.h │ │ │ ├── comp.h │ │ │ ├── conf.h │ │ │ ├── conf_api.h │ │ │ ├── crypto.h │ │ │ ├── des.h │ │ │ ├── des_old.h │ │ │ ├── dh.h │ │ │ ├── dsa.h │ │ │ ├── dso.h │ │ │ ├── dtls1.h │ │ │ ├── e_os2.h │ │ │ ├── ebcdic.h │ │ │ ├── ec.h │ │ │ ├── ecdh.h │ │ │ ├── ecdsa.h │ │ │ ├── engine.h │ │ │ ├── err.h │ │ │ ├── evp.h │ │ │ ├── hmac.h │ │ │ ├── idea.h │ │ │ ├── krb5_asn.h │ │ │ ├── kssl.h │ │ │ ├── lhash.h │ │ │ ├── md4.h │ │ │ ├── md5.h │ │ │ ├── mdc2.h │ │ │ ├── modes.h │ │ │ ├── obj_mac.h │ │ │ ├── objects.h │ │ │ ├── ocsp.h │ │ │ ├── opensslconf.h │ │ │ ├── opensslv.h │ │ │ ├── ossl_typ.h │ │ │ ├── pem.h │ │ │ ├── pem2.h │ │ │ ├── pkcs12.h │ │ │ ├── pkcs7.h │ │ │ ├── pqueue.h │ │ │ ├── rand.h │ │ │ ├── rc2.h │ │ │ ├── rc4.h │ │ │ ├── ripemd.h │ │ │ ├── rsa.h │ │ │ ├── safestack.h │ │ │ ├── seed.h │ │ │ ├── sha.h │ │ │ ├── ssl.h │ │ │ ├── ssl2.h │ │ │ ├── ssl23.h │ │ │ ├── ssl3.h │ │ │ ├── stack.h │ │ │ ├── symhacks.h │ │ │ ├── tls1.h │ │ │ ├── ts.h │ │ │ ├── txt_db.h │ │ │ ├── ui.h │ │ │ ├── ui_compat.h │ │ │ ├── whrlpool.h │ │ │ ├── x509.h │ │ │ ├── x509_vfy.h │ │ │ └── x509v3.h │ │ ├── regex.h │ │ ├── zconf.h │ │ └── zlib.h │ ├── lib │ │ ├── libbz2.a │ │ ├── libcrypto.a │ │ ├── libeay32.a │ │ └── libz.a │ └── regex.c ├── XAD7ZipBCJ2Handle.h ├── XAD7ZipBCJ2Handle.m ├── XAD7ZipBranchHandles.h ├── XAD7ZipBranchHandles.m ├── XAD7ZipParser.h ├── XAD7ZipParser.m ├── XADALZipParser.h ├── XADALZipParser.m ├── XADARCCrunchHandle.h ├── XADARCCrunchHandle.m ├── XADARCCrushHandle.h ├── XADARCCrushHandle.m ├── XADARCDistillHandle.h ├── XADARCDistillHandle.m ├── XADARCParser.h ├── XADARCParser.m ├── XADARJFastestHandle.h ├── XADARJFastestHandle.m ├── XADARJParser.h ├── XADARJParser.m ├── XADAppleDouble.h ├── XADAppleDouble.m ├── XADAppleSingleParser.h ├── XADAppleSingleParser.m ├── XADArParser.h ├── XADArParser.m ├── XADArchive.h ├── XADArchive.m ├── XADArchiveParser.h ├── XADArchiveParser.m ├── XADArchiveParserDescriptions.h ├── XADArchiveParserDescriptions.m ├── XADBinHexParser.h ├── XADBinHexParser.m ├── XADBlockHandle.h ├── XADBlockHandle.m ├── XADBzip2Parser.h ├── XADBzip2Parser.m ├── XADCABBlockHandle.h ├── XADCABBlockHandle.m ├── XADCABBlockReader.h ├── XADCABBlockReader.m ├── XADCABParser.h ├── XADCABParser.m ├── XADCFBFParser.h ├── XADCFBFParser.m ├── XADCRCHandle.h ├── XADCRCHandle.m ├── XADCRCSuffixHandle.h ├── XADCRCSuffixHandle.m ├── XADChecksumHandle.h ├── XADChecksumHandle.m ├── XADCompactProLZHHandle.h ├── XADCompactProLZHHandle.m ├── XADCompactProParser.h ├── XADCompactProParser.m ├── XADCompactProRLEHandle.h ├── XADCompactProRLEHandle.m ├── XADCompressHandle.h ├── XADCompressHandle.m ├── XADCompressParser.h ├── XADCompressParser.m ├── XADCpioParser.h ├── XADCpioParser.m ├── XADCrunchHandles.h ├── XADCrunchHandles.m ├── XADCrunchParser.h ├── XADCrunchParser.m ├── XADDeflateHandle.h ├── XADDeflateHandle.m ├── XADDeltaHandle.h ├── XADDeltaHandle.m ├── XADDigestHandle.h ├── XADDigestHandle.m ├── XADDiskDoublerADnHandle.h ├── XADDiskDoublerADnHandle.m ├── XADDiskDoublerDDnHandle.h ├── XADDiskDoublerDDnHandle.m ├── XADDiskDoublerMethod2Handle.h ├── XADDiskDoublerMethod2Handle.m ├── XADDiskDoublerParser.h ├── XADDiskDoublerParser.m ├── XADException.h ├── XADException.m ├── XADFastLZSSHandle.h ├── XADFastLZSSHandle.m ├── XADGzipParser.h ├── XADGzipParser.m ├── XADISO9660Parser.h ├── XADISO9660Parser.m ├── XADLArcHandles.h ├── XADLArcHandles.m ├── XADLBRParser.h ├── XADLBRParser.m ├── XADLZHDynamicHandle.h ├── XADLZHDynamicHandle.m ├── XADLZHOldHandles.h ├── XADLZHOldHandles.m ├── XADLZHParser.h ├── XADLZHParser.m ├── XADLZHSFXParsers.h ├── XADLZHSFXParsers.m ├── XADLZHStaticHandle.h ├── XADLZHStaticHandle.m ├── XADLZMA2Handle.h ├── XADLZMA2Handle.m ├── XADLZMAAloneParser.h ├── XADLZMAAloneParser.m ├── XADLZMAHandle.h ├── XADLZMAHandle.m ├── XADLZSSHandle.h ├── XADLZSSHandle.m ├── XADLZXHandle.h ├── XADLZXHandle.m ├── XADLZXParser.h ├── XADLZXParser.m ├── XADLibXADIOHandle.h ├── XADLibXADIOHandle.m ├── XADLibXADParser.h ├── XADLibXADParser.m ├── XADMSLZXHandle.h ├── XADMSLZXHandle.m ├── XADMSZipHandle.h ├── XADMSZipHandle.m ├── XADMacArchiveParser.h ├── XADMacArchiveParser.m ├── XADMacBinaryParser.h ├── XADMacBinaryParser.m ├── XADMaster.xcodeproj │ └── project.pbxproj ├── XADMaster_Prefix.pch ├── XADNDSParser.h ├── XADNDSParser.m ├── XADNSAParser.h ├── XADNSAParser.m ├── XADNSISBzip2Handle.h ├── XADNSISBzip2Handle.m ├── XADNSISParser.h ├── XADNSISParser.m ├── XADNowCompressHandle.h ├── XADNowCompressHandle.m ├── XADNowCompressParser.h ├── XADNowCompressParser.m ├── XADPDFParser.h ├── XADPDFParser.m ├── XADPNGWriter.h ├── XADPNGWriter.m ├── XADPPMdHandles.h ├── XADPPMdHandles.m ├── XADPPMdParser.h ├── XADPPMdParser.m ├── XADPackItParser.h ├── XADPackItParser.m ├── XADPaddedBlockHandle.h ├── XADPaddedBlockHandle.m ├── XADPath.h ├── XADPath.m ├── XADPlatform.h ├── XADPlatformLinux.m ├── XADPlatformMacOSX.m ├── XADPlatformWindows.m ├── XADPlatformiOS.m ├── XADPowerPackerParser.h ├── XADPowerPackerParser.m ├── XADPrefixCode.h ├── XADPrefixCode.m ├── XADQuantumHandle.h ├── XADQuantumHandle.m ├── XADRAR13CryptHandle.h ├── XADRAR13CryptHandle.m ├── XADRAR15CryptHandle.h ├── XADRAR15CryptHandle.m ├── XADRAR15Handle.h ├── XADRAR15Handle.m ├── XADRAR20CryptHandle.h ├── XADRAR20CryptHandle.m ├── XADRAR20Handle.h ├── XADRAR20Handle.m ├── XADRAR30Filter.h ├── XADRAR30Filter.m ├── XADRAR30Handle.h ├── XADRAR30Handle.m ├── XADRARAESHandle.h ├── XADRARAESHandle.m ├── XADRARInputHandle.h ├── XADRARInputHandle.m ├── XADRARParser.h ├── XADRARParser.m ├── XADRARVirtualMachine.h ├── XADRARVirtualMachine.m ├── XADRC4Handle.h ├── XADRC4Handle.m ├── XADRLE90Handle.h ├── XADRLE90Handle.m ├── XADRPMParser.h ├── XADRPMParser.m ├── XADRegex.h ├── XADRegex.m ├── XADSARParser.h ├── XADSARParser.m ├── XADSWFGeometry.h ├── XADSWFGeometry.m ├── XADSWFParser.h ├── XADSWFParser.m ├── XADSWFTagParser.h ├── XADSWFTagParser.m ├── XADSimpleUnarchiver.h ├── XADSimpleUnarchiver.m ├── XADSkipHandle.h ├── XADSkipHandle.m ├── XADSplitFileParser.h ├── XADSplitFileParser.m ├── XADSqueezeHandle.h ├── XADSqueezeHandle.m ├── XADSqueezeParser.h ├── XADSqueezeParser.m ├── XADStacLZSHandle.h ├── XADStacLZSHandle.m ├── XADString.h ├── XADString.m ├── XADStringCFString.m ├── XADStringICU.m ├── XADStringIconv.m ├── XADStringWindows.m ├── XADStuffIt13Handle.h ├── XADStuffIt13Handle.m ├── XADStuffIt5Parser.h ├── XADStuffIt5Parser.m ├── XADStuffItArsenicHandle.h ├── XADStuffItArsenicHandle.m ├── XADStuffItHuffmanHandle.h ├── XADStuffItHuffmanHandle.m ├── XADStuffItOldHandles.h ├── XADStuffItOldHandles.m ├── XADStuffItParser.h ├── XADStuffItParser.m ├── XADStuffItRLEHandle.h ├── XADStuffItRLEHandle.m ├── XADStuffItSplitParser.h ├── XADStuffItSplitParser.m ├── XADStuffItXBlendHandle.h ├── XADStuffItXBlendHandle.m ├── XADStuffItXBlockHandle.h ├── XADStuffItXBlockHandle.m ├── XADStuffItXCyanideHandle.h ├── XADStuffItXCyanideHandle.m ├── XADStuffItXDarkhorseHandle.h ├── XADStuffItXDarkhorseHandle.m ├── XADStuffItXEnglishHandle.h ├── XADStuffItXEnglishHandle.m ├── XADStuffItXIronHandle.h ├── XADStuffItXIronHandle.m ├── XADStuffItXParser.h ├── XADStuffItXParser.m ├── XADStuffItXX86Handle.h ├── XADStuffItXX86Handle.m ├── XADTarParser.h ├── XADTarParser.m ├── XADTarSparseHandle.h ├── XADTarSparseHandle.m ├── XADTest.m ├── XADTest2.m ├── XADTest3.m ├── XADTest4.m ├── XADTest5.m ├── XADTest6.m ├── XADUnarchiver.h ├── XADUnarchiver.m ├── XADUnarchiverLinux.m ├── XADUnarchiverMacOSX.m ├── XADUnarchiverOldMacOSX.m ├── XADUnarchiverWindows.m ├── XADWinZipAESHandle.h ├── XADWinZipAESHandle.m ├── XADWinZipJPEGHandle.h ├── XADWinZipJPEGHandle.m ├── XADWinZipWavPackHandle.h ├── XADWinZipWavPackHandle.m ├── XADXARParser.h ├── XADXARParser.m ├── XADXORHandle.h ├── XADXORHandle.m ├── XADXORSumHandle.h ├── XADXORSumHandle.m ├── XADXZHandle.h ├── XADXZHandle.m ├── XADXZParser.h ├── XADXZParser.m ├── XADZipCryptHandle.h ├── XADZipCryptHandle.m ├── XADZipImplodeHandle.h ├── XADZipImplodeHandle.m ├── XADZipParser.h ├── XADZipParser.m ├── XADZipSFXParsers.h ├── XADZipSFXParsers.m ├── XADZipShrinkHandle.h ├── XADZipShrinkHandle.m ├── XADZooParser.h ├── XADZooParser.m ├── libxad │ ├── all.c │ ├── clientfunc.c │ ├── clients.c │ ├── clients │ │ ├── AMPK.c │ │ ├── Ace.c │ │ ├── CrunchDisk.c │ │ ├── DCS.c │ │ ├── DMS.c │ │ ├── FS_Amiga.c │ │ ├── FS_FAT.c │ │ ├── FS_SOS.c │ │ ├── IFF-CDAF.c │ │ ├── LhA.c │ │ ├── LhF.c │ │ ├── MDC.c │ │ ├── MXM-SimpleArc.c │ │ ├── PackDev.c │ │ ├── PackDisk.c │ │ ├── SuperDuper3.c │ │ ├── Tar.c │ │ ├── Zoom.c │ │ ├── xDisk.c │ │ ├── xMash.c │ │ ├── xadCRC_1021.c │ │ ├── xadIO.c │ │ ├── xadIO.h │ │ ├── xadIO_Compress.c │ │ └── xadIO_XPK.c │ ├── config.h │ ├── copymem.c │ ├── crc.c │ ├── cs_atarist_to_unicode.c │ ├── cs_c64_to_unicode.c │ ├── cs_ibmcp437_to_unicode.c │ ├── cs_macroman_to_unicode.c │ ├── cs_unicode_to_iso8859-1.c │ ├── cs_windowscp1252_to_unicod.c │ ├── dates.c │ ├── debug.c │ ├── diskfile.c │ ├── diskunarc.c │ ├── error.c │ ├── filename.c │ ├── fileunarc.c │ ├── gpl.txt │ ├── hook.c │ ├── hook_diskarc.c │ ├── hook_mem.c │ ├── hook_splitted.c │ ├── hook_stream.c │ ├── include │ │ ├── ConvertE.c │ │ ├── SDI_compiler.h │ │ ├── functions.h │ │ ├── privdefs.h │ │ ├── version.h │ │ └── xadmaster.h │ ├── info.c │ ├── lgpl.txt │ ├── objects.c │ ├── protection.c │ └── unix │ │ ├── emulation.c │ │ ├── emulation.h │ │ ├── hook_fh.c │ │ ├── init.c │ │ └── xadClient.h ├── lsar.m ├── lzma │ ├── Bra.c │ ├── Bra.h │ ├── Bra86.c │ ├── BraIA64.c │ ├── Lzma2Dec.c │ ├── Lzma2Dec.h │ ├── LzmaDec.c │ ├── LzmaDec.h │ └── Types.h ├── unar.m └── wavpack │ ├── bits.c │ ├── float.c │ ├── metadata.c │ ├── unpack.c │ ├── wavpack.h │ ├── wavpack_local.h │ ├── wavpack_version.h │ ├── words.c │ └── wputils.c ├── de.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── dsa_pub.pem ├── en.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── es.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGTimer.strings └── PGURL.strings ├── fr.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── it.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── ja.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── main.m ├── nl.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── pl.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGTimer.strings └── PGURL.strings ├── pt_BR.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── ru.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── sv.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGAbout.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGPreference.strings ├── PGTimer.strings └── PGURL.strings ├── version.plist └── zh_TW.lproj ├── InfoPlist.strings ├── Localizable.strings ├── PGActivity.strings ├── PGDocument.strings ├── PGImageSave.strings ├── PGInspector.strings ├── PGMenu.strings ├── PGTimer.strings └── PGURL.strings /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj binary 2 | *.nib binary 3 | *.xib binary 4 | *.helpindex binary 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ############ 2 | ## Macintosh 3 | ############ 4 | 5 | *.pbxuser 6 | *.mode1 7 | *.mode1v3 8 | *.mode2v3 9 | *.perspective 10 | *.perspectivev3 11 | *.xcuserstate 12 | project.xcworkspace/ 13 | xcuserdata/ 14 | 15 | # Generated files 16 | *.o 17 | *.pyc 18 | *.hi 19 | 20 | #Python modules 21 | MANIFEST 22 | dist/ 23 | build/ 24 | 25 | # Backup files 26 | *~.nib 27 | \#*# 28 | .#* 29 | 30 | # Other 31 | .DS_Store 32 | .svn 33 | build/ 34 | -------------------------------------------------------------------------------- /BadLicense/RARUnpacker.h: -------------------------------------------------------------------------------- 1 | #ifndef __RARUNPACKER_h__ 2 | #define __RARUNPACKER_h__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | typedef int (*RARReadFunc)(void *,const void *,int,void *); 11 | 12 | typedef struct RARUnpacker 13 | { 14 | void *io,*unpack; 15 | 16 | int method,solid; 17 | void *blockbytes; 18 | int blocklength,maxblocklength; 19 | 20 | RARReadFunc readfunc; 21 | void *readparam1; 22 | const void *readparam2; 23 | } RARUnpacker; 24 | 25 | RARUnpacker *AllocRARUnpacker(RARReadFunc readfunc,void *readparam1,const void *readparam2); 26 | void FreeRARUnpacker(RARUnpacker *self); 27 | void StartRARUnpacker(RARUnpacker *self,off_t length,int method,int solid); 28 | void *NextRARBlock(RARUnpacker *self,int *length); 29 | int IsRARFinished(RARUnpacker *self); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /BadLicense/XADRAROfficialHandle.h: -------------------------------------------------------------------------------- 1 | #import "../XADMaster/CSBlockStreamHandle.h" 2 | #import "../XADMaster/XADRARParser.h" 3 | #import "RARUnpacker.h" 4 | 5 | @interface XADRAROfficialHandle:CSBlockStreamHandle 6 | { 7 | XADRARParser *parser; 8 | NSArray *parts; 9 | int method; 10 | 11 | RARUnpacker *unpacker; 12 | CSHandle *currhandle; 13 | int part; 14 | off_t currsize,bytesdone; 15 | } 16 | 17 | -(id)initWithRARParser:(XADRARParser *)parent version:(int)version parts:(NSArray *)partarray; 18 | -(void)dealloc; 19 | 20 | -(void)resetBlockStream; 21 | -(int)produceBlockAtOffset:(off_t)pos; 22 | -(void)constructInputHandle; 23 | 24 | -(int)provideInput:(int)length buffer:(void *)buffer; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /BadLicense/unrar/coder.hpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | * Contents: 'Carryless rangecoder' by Dmitry Subbotin * 3 | ****************************************************************************/ 4 | 5 | const uint TOP=1 << 24, BOT=1 << 15; 6 | 7 | class RangeCoder 8 | { 9 | public: 10 | void InitDecoder(Unpack *UnpackRead); 11 | inline int GetCurrentCount(); 12 | inline uint GetCurrentShiftCount(uint SHIFT); 13 | inline void Decode(); 14 | inline void PutChar(unsigned int c); 15 | inline unsigned int GetChar(); 16 | 17 | uint low, code, range; 18 | struct SUBRANGE 19 | { 20 | uint LowCount, HighCount, scale; 21 | } SubRange; 22 | 23 | Unpack *UnpackRead; 24 | }; 25 | -------------------------------------------------------------------------------- /BadLicense/unrar/compress.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _RAR_COMPRESS_ 2 | #define _RAR_COMPRESS_ 3 | 4 | class ComprDataIO; 5 | class PackingFileTable; 6 | 7 | #define CODEBUFSIZE 0x4000 8 | #define MAXWINSIZE 0x400000 9 | #define MAXWINMASK (MAXWINSIZE-1) 10 | 11 | #define LOW_DIST_REP_COUNT 16 12 | 13 | #define NC 299 /* alphabet = {0, 1, 2, ..., NC - 1} */ 14 | #define DC 60 15 | #define LDC 17 16 | #define RC 28 17 | #define HUFF_TABLE_SIZE (NC+DC+RC+LDC) 18 | #define BC 20 19 | 20 | #define NC20 298 /* alphabet = {0, 1, 2, ..., NC - 1} */ 21 | #define DC20 48 22 | #define RC20 28 23 | #define BC20 19 24 | #define MC20 257 25 | 26 | enum {CODE_HUFFMAN,CODE_LZ,CODE_LZ2,CODE_REPEATLZ,CODE_CACHELZ, 27 | CODE_STARTFILE,CODE_ENDFILE,CODE_VM,CODE_VMDATA}; 28 | 29 | 30 | enum FilterType { 31 | FILTER_NONE, FILTER_PPM /*dummy*/, FILTER_E8, FILTER_E8E9, 32 | FILTER_UPCASETOLOW, FILTER_AUDIO, FILTER_RGB, FILTER_DELTA, 33 | FILTER_ITANIUM, FILTER_E8E9V2 34 | }; 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /BadLicense/unrar/getbits.cpp: -------------------------------------------------------------------------------- 1 | #include "rar.hpp" 2 | 3 | BitInput::BitInput() 4 | { 5 | InBuf=new byte[MAX_SIZE]; 6 | } 7 | 8 | 9 | BitInput::~BitInput() 10 | { 11 | delete[] InBuf; 12 | } 13 | 14 | 15 | void BitInput::faddbits(int Bits) 16 | { 17 | addbits(Bits); 18 | } 19 | 20 | 21 | unsigned int BitInput::fgetbits() 22 | { 23 | return(getbits()); 24 | } 25 | -------------------------------------------------------------------------------- /BadLicense/unrar/getbits.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _RAR_GETBITS_ 2 | #define _RAR_GETBITS_ 3 | 4 | class BitInput 5 | { 6 | public: 7 | enum BufferSize {MAX_SIZE=0x8000}; 8 | protected: 9 | int InAddr,InBit; 10 | public: 11 | BitInput(); 12 | ~BitInput(); 13 | 14 | byte *InBuf; 15 | 16 | void InitBitInput() 17 | { 18 | InAddr=InBit=0; 19 | } 20 | void addbits(int Bits) 21 | { 22 | Bits+=InBit; 23 | InAddr+=Bits>>3; 24 | InBit=Bits&7; 25 | } 26 | unsigned int getbits() 27 | { 28 | unsigned int BitField=(uint)InBuf[InAddr] << 16; 29 | BitField|=(uint)InBuf[InAddr+1] << 8; 30 | BitField|=(uint)InBuf[InAddr+2]; 31 | BitField >>= (8-InBit); 32 | return(BitField & 0xffff); 33 | } 34 | void faddbits(int Bits); 35 | unsigned int fgetbits(); 36 | bool Overflow(int IncPtr) {return(InAddr+IncPtr>=MAX_SIZE);} 37 | }; 38 | #endif 39 | -------------------------------------------------------------------------------- /BadLicense/unrar/rardefs.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _RAR_DEFS_ 2 | #define _RAR_DEFS_ 3 | 4 | #define Min(x,y) (((x)<(y)) ? (x):(y)) 5 | #define Max(x,y) (((x)>(y)) ? (x):(y)) 6 | 7 | #define ASIZE(x) (sizeof(x)/sizeof(x[0])) 8 | 9 | #define MAXPASSWORD 128 10 | #define MAXSFXSIZE 0x80000 11 | 12 | #define DefSFXName "default.sfx" 13 | #define DefSortListName "rarfiles.lst" 14 | 15 | #ifndef FA_RDONLY 16 | #define FA_RDONLY 0x01 17 | #define FA_HIDDEN 0x02 18 | #define FA_SYSTEM 0x04 19 | #define FA_LABEL 0x08 20 | #define FA_DIREC 0x10 21 | #define FA_ARCH 0x20 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /BadLicense/unrar/rartypes.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _RAR_TYPES_ 2 | #define _RAR_TYPES_ 3 | 4 | typedef unsigned char byte; //8 bits 5 | typedef unsigned short ushort; //preferably 16 bits, but can be more 6 | typedef unsigned int uint; //32 bits or more 7 | 8 | typedef unsigned int uint32; //32 bits exactly 9 | typedef int sint32; //signed 32 bits exactly 10 | #define PRESENT_INT32 11 | 12 | #if defined(_WIN_32) || defined(__GNUC__) || defined(__sgi) || defined(_AIX) || defined(__sun) || defined(__hpux) || defined(_OSF_SOURCE) 13 | typedef wchar_t wchar; 14 | #else 15 | typedef ushort wchar; 16 | #endif 17 | 18 | #define SHORT16(x) (sizeof(ushort)==2 ? (ushort)(x):((x)&0xffff)) 19 | #define UINT32(x) (sizeof(uint32)==4 ? (uint32)(x):((x)&0xffffffff)) 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /Checkerboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Checkerboard.png -------------------------------------------------------------------------------- /Corner-Bottom-Left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Corner-Bottom-Left.png -------------------------------------------------------------------------------- /Corner-Bottom-Right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Corner-Bottom-Right.png -------------------------------------------------------------------------------- /Corner-Top-Left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Corner-Top-Left.png -------------------------------------------------------------------------------- /Corner-Top-Right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Corner-Top-Right.png -------------------------------------------------------------------------------- /Cursor-Hand-Pointing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Cursor-Hand-Pointing.png -------------------------------------------------------------------------------- /Document Icons/Document-BMP.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-BMP.icns -------------------------------------------------------------------------------- /Document Icons/Document-CBR.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-CBR.icns -------------------------------------------------------------------------------- /Document Icons/Document-CBZ.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-CBZ.icns -------------------------------------------------------------------------------- /Document Icons/Document-CRW.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-CRW.icns -------------------------------------------------------------------------------- /Document Icons/Document-EPI.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-EPI.icns -------------------------------------------------------------------------------- /Document Icons/Document-EXR.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-EXR.icns -------------------------------------------------------------------------------- /Document Icons/Document-FAX.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-FAX.icns -------------------------------------------------------------------------------- /Document Icons/Document-FPX.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-FPX.icns -------------------------------------------------------------------------------- /Document Icons/Document-GIF.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-GIF.icns -------------------------------------------------------------------------------- /Document Icons/Document-ICNS.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-ICNS.icns -------------------------------------------------------------------------------- /Document Icons/Document-ICO.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-ICO.icns -------------------------------------------------------------------------------- /Document Icons/Document-JP2.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-JP2.icns -------------------------------------------------------------------------------- /Document Icons/Document-JPG.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-JPG.icns -------------------------------------------------------------------------------- /Document Icons/Document-PDF.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-PDF.icns -------------------------------------------------------------------------------- /Document Icons/Document-PIC.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-PIC.icns -------------------------------------------------------------------------------- /Document Icons/Document-PICT.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-PICT.icns -------------------------------------------------------------------------------- /Document Icons/Document-PNG.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-PNG.icns -------------------------------------------------------------------------------- /Document Icons/Document-PNTG.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-PNTG.icns -------------------------------------------------------------------------------- /Document Icons/Document-PSD.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-PSD.icns -------------------------------------------------------------------------------- /Document Icons/Document-QTIF.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-QTIF.icns -------------------------------------------------------------------------------- /Document Icons/Document-RAR.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-RAR.icns -------------------------------------------------------------------------------- /Document Icons/Document-SGI.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-SGI.icns -------------------------------------------------------------------------------- /Document Icons/Document-TGA.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-TGA.icns -------------------------------------------------------------------------------- /Document Icons/Document-TIFF.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-TIFF.icns -------------------------------------------------------------------------------- /Document Icons/Document-XBM.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-XBM.icns -------------------------------------------------------------------------------- /Document Icons/Document-ZIP.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/Document-ZIP.icns -------------------------------------------------------------------------------- /Document Icons/URL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Document Icons/URL.png -------------------------------------------------------------------------------- /HMBlkAppKit/HMBlkAppKit.xcodeproj/xcuserdata/ardneran.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | HMBlkAppKit.xcscheme 8 | 9 | orderHint 10 | 2 11 | 12 | TestApp.xcscheme 13 | 14 | orderHint 15 | 3 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0B6BCA920BB237EF0014D0BF 21 | 22 | primary 23 | 24 | 25 | 8DC2EF4F0486A6940098B216 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /HMBlkAppKit/HMBlkAppKit_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'HMBlkAppKit' target in the 'HMBlkAppKit' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkCancelButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkCancelButton.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkCloseButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkCloseButton.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkContextButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkContextButton.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkContextButtonSelected.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkContextButtonSelected.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkDiscCollapsed.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkDiscCollapsed.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkDiscExpanded.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkDiscExpanded.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkDiscTransient.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkDiscTransient.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkFindButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkFindButton.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelLB.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelLB.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelLM.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelLM.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelLT.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelLT.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelMB.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelMB.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelMT.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelMT.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRB.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRB.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRBResizable.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRBResizable.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRM.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRM.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRT.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkPanelRT.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkProgressBack.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkProgressBack.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkProgressBar.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkProgressBar.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkProgressIndeterminate.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkProgressIndeterminate.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobHL.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobHL.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobHM.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobHM.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobHR.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobHR.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobVB.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobVB.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobVM.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobVM.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobVT.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkScrollerKnobVT.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentDivider.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentDivider.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentL.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentL.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentM.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentM.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentR.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentR.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentSelectedL.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentSelectedL.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentSelectedM.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentSelectedM.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentSelectedR.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/blkSegmentSelectedR.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/button-left-hilite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/button-left-hilite.png -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/button-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/button-left.png -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/button-middle-hilite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/button-middle-hilite.png -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/button-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/button-middle.png -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/button-right-hilite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/button-right-hilite.png -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/button-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/button-right.png -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-cap.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-cap.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-inner-hilite.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-inner-hilite.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-inner.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-inner.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-outer-hilite.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-outer-hilite.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-outer.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-outer.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-track.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-horz-track.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-cap.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-cap.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-end-hilite.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-end-hilite.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-end.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-end.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-inner-hilite.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-inner-hilite.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-inner.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-inner.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-outer-hilite.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-outer-hilite.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-outer.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-outer.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-track.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/scroller-vert-track.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/search-cancel-hilite.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/search-cancel-hilite.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/search-cancel.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/search-cancel.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/HMDTAppKit/resource/search-icon.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/HMDTAppKit/resource/search-icon.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/AppController.h: -------------------------------------------------------------------------------- 1 | /* AppController */ 2 | 3 | #import 4 | #import 5 | 6 | @interface AppController : NSObject 7 | { 8 | IBOutlet NSWindow *window; 9 | HMBlkProgressIndicator* _progressIndicator0; 10 | HMBlkProgressIndicator* _progressIndicator1; 11 | } 12 | @end 13 | -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/application/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/English.lproj/MainMenu.nib/blkContextButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/application/English.lproj/MainMenu.nib/blkContextButton.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/English.lproj/MainMenu.nib/blkContextButtonSelected.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/application/English.lproj/MainMenu.nib/blkContextButtonSelected.tiff -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/English.lproj/MainMenu.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | CLASS = AppController; 5 | LANGUAGE = ObjC; 6 | OUTLETS = {"_progressIndicator0" = id; "_progressIndicator1" = id; }; 7 | SUPERCLASS = NSObject; 8 | }, 9 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 10 | {CLASS = HMBlkOutlineView; LANGUAGE = ObjC; SUPERCLASS = NSOutlineView; }, 11 | {CLASS = HMBlkPanel; LANGUAGE = ObjC; SUPERCLASS = NSPanel; }, 12 | { 13 | CLASS = HMBlkProgressIndicator; 14 | LANGUAGE = ObjC; 15 | SUPERCLASS = NSProgressIndicator; 16 | }, 17 | {CLASS = HMBlkScrollView; LANGUAGE = ObjC; SUPERCLASS = NSScrollView; }, 18 | {CLASS = HMBlkTableView; LANGUAGE = ObjC; SUPERCLASS = NSTableView; } 19 | ); 20 | IBVersion = 1; 21 | } -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/English.lproj/MainMenu.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 94 73 356 240 0 0 1280 778 7 | IBEditorPositions 8 | 9 | 29 10 | 208 487 389 44 0 0 1280 778 11 | 12 | IBFramework Version 13 | 446.1 14 | IBOpenObjects 15 | 16 | 29 17 | 230 18 | 21 19 | 213 20 | 21 | IBSystem Version 22 | 8P2137 23 | 24 | 25 | -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/HMBlkAppKit/source/application/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /HMBlkAppKit/source/application/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | jp.hmdt.hmblkappkittest 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.1 19 | NSMainNibFile 20 | MainMenu 21 | NSPrincipalClass 22 | NSApplication 23 | 24 | 25 | -------------------------------------------------------------------------------- /HMBlkAppKit/source/framework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | jp.hmdt.framework.hmdtblkappkit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.1 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Mirror-Black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Mirror-Black.png -------------------------------------------------------------------------------- /Mirror-White.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Mirror-White.png -------------------------------------------------------------------------------- /Notes.txt: -------------------------------------------------------------------------------- 1 | Please email any patches to sequential@comcast.net. -------------------------------------------------------------------------------- /Pref-General.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Pref-General.icns -------------------------------------------------------------------------------- /Pref-Navigation.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Pref-Navigation.icns -------------------------------------------------------------------------------- /Scale-Big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Scale-Big.png -------------------------------------------------------------------------------- /Scale-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Scale-Small.png -------------------------------------------------------------------------------- /Sequential-Document.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential-Document.icns -------------------------------------------------------------------------------- /Sequential.help/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en-US 7 | CFBundleIdentifier 8 | com.SequentialX.Sequential.help 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | SequentialHelp 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1 17 | CFBundleSignature 18 | hbwr 19 | CFBundleVersion 20 | 1 21 | HPDBookAccessPath 22 | index.html 23 | HPDBookIndexPath 24 | SequentialHelp.helpindex 25 | HPDBookTitle 26 | Sequential Help 27 | HPDBookType 28 | 3 29 | 30 | 31 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/Sequential.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/Sequential.png -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/de.lproj/de.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/de.lproj/de.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/de.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Viewing images online 7 | 8 | 9 | 10 | 11 |

Bilder online ansehen

12 |

Sie können jedes unterstützte Format direkt aus dem Internet öffnen. Wählen Sie Ablage > URL öffnen ... oder ziehen Sie die URL direkt aus einem anderen Programm auf das Docksymbol von Sequential.

13 |

Wenn die URL auf eine Webseite verweist, überprüft Sequential die Seite nach zu öffnenden Links und eingebetteten Bilder.

14 | 15 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/en.lproj/en.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/en.lproj/en.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/en.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Viewing images online 7 | 8 | 9 | 10 | 11 |

Viewing images online

12 |

You can open any supported format directly from the internet. To do so, choose File > Open URL… or drag the URL from another application onto Sequential's Dock icon.

13 |

If the URL refers to a web page, Sequential will scan the page for openable links and embedded images.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/en.lproj/sessions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pausing and resuming sessions 7 | 8 | 9 | 10 | 11 |

Sessions

12 |

You can stop viewing at any time and quickly return to the same page later by choosing File > Pause. The page is then added to the top of the Resume menu and the document is closed.

13 |

When you wish to resume viewing the page, select it from File > Resume. The image will be reopened and the pause session removed.

14 |

You can delete a session without opening it by holding Option and then choosing it from File > Delete.

15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/es.lproj/es.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/es.lproj/es.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/es.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ver imágenes en línea 7 | 8 | 9 | 10 | 11 |

Ver imágenes de internet

12 |

Puede ver cualquier formato soportado directamente desde internet Para hacer esto, seleccione Archivo > Abrir URL… O arrastre la URL desde otra aplicación al icono de Sequential en el Dock.

13 |

si la URL se refiere a una página web, Sequential buscará enlaces que pueda abrir e imágenes incluídas.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/fr.lproj/fr.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/fr.lproj/fr.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/fr.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Visionner des images en ligne 7 | 8 | 9 | 10 | 11 |

Visionner des images en ligne

12 |

Vous pouvez ouvrir tous les formats d'image supportés par Sequential directement depuis internet. Pour cela, choisissez Fichier > Ouvrir une URL… ou glissez une URL depuis une autre application sur l'icône Sequential.

13 |

Si l'URL correspond à celle d'une page web, Sequential la scannera pour trouver les liens et les images.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/fr.lproj/sessions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Pausing and resuming sessions 7 | 8 | 9 | 10 | 11 |

Sessions

12 |

You can stop viewing at any time and quickly return to the same page later by choosing File > Pause. The page is then added to the top of the Resume menu and the document is closed.

13 |

When you wish to resume viewing the page, select it from File > Resume. The image will be reopened and the pause session removed.

14 |

You can delete a session without opening it by holding Option and then choosing it from File > Delete.

15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/it.lproj/it.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/it.lproj/it.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/it.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Visione delle immagini online 7 | 8 | 9 | 10 | 11 |

Visione delle immagini online

12 |

Puoi aprire qualunque formato supportato direttamente da internet, scegliendo la voce di menu Archivio > Apri URL… o trascinando l'URL da un'altra applicazione all'icona di Sequential nel Dock.

13 |

Se l'URL fa riferimento ad una pagina web Sequential la analizzerà per individuare i collegamenti apribili e le immagini incorporate.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ja.lproj/ja.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/ja.lproj/ja.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ja.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | インターネット上の画像を見る方法 7 | 8 | 9 | 10 | 11 |

インターネット上の画像を見る方法

12 |

Sequentialでは、インターネット上にあるファイルを見ることができます。ファイル > URLを開く を選択するか、または他のアプリケーションからSequentialのDockアイコンにURLをドラッグしてください。

13 |

指定したURLがウェブサイトの場合、Sequentialはリンク先の画像を探して表示します。

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ja.lproj/scaling.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ズーム 7 | 8 | 9 | 10 | 11 |

ズーム

12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
モード説明
元の大きさズームなどをせずに画像を表示します。
自動余計なスクロールなどが無いように出来るだけ画像を大きくします。
ウインドウ/画面に合わせるスクロールなどが要らないようにズームします。
30 | 31 | 32 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ja.lproj/sessions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | セッションを停止や再開する方法 7 | 8 | 9 | 10 | 11 |

セッション

12 |

いつでも ファイル > 停止 を選択して停止し、後でそのページから再開することが簡単に出来ます。停止すると、現在のページが再開メニューに保存されてドキュメントが閉じられます。

13 |

停止したページから再開する場合には ファイル > 再開 を選択してください。停止した時の画像が表示されます。再開すると停止した場所の情報は削除されます。

14 |

セッションは再開せずに消す事もできます。Optionを押しながら ファイル > 削除 を選択してください。

15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/main.css: -------------------------------------------------------------------------------- 1 | * { font-family: Lucida Grande, Arial, sans-serif; } 2 | a { color: #79c; text-decoration: none; } 3 | 4 | td { padding: 0.5em; border-top: 1px solid #bbb; } 5 | table { border-bottom: 1px solid #bbb; } 6 | 7 | .icon { width: 1.5em; height: 1.5em; margin-bottom: -0.3em; } 8 | .header { font-weight: bold; background: #eee; } 9 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/pl.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Przeglądanie obrazów online 7 | 8 | 9 | 10 | 11 |

Przeglądanie obrazów online

12 |

Możesz przeglądać obrazy w każdym wspieranym formacie bezpośrednio z internetu. Wystarczy wybrać polecenie z menu Plik > Otwórz adres URL... albo przeciągnąć adres URL bezpośrednio na znaczek programu Sequential w Doku

13 |

Jeśli adres URL odnosi się do strony internetowej Sequential przeskanuje jej zawartość i pokaże obrazy.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/pl.lproj/pl.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/pl.lproj/pl.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/pt_BR.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Vizualização de imagens online 7 | 8 | 9 | 10 | 11 |

Vizualização de imagens online

12 |

Você pode abrir qualquer imagem com formato suportado diretamente da internet. Para tanto, selecione Arquivo > Abrir URL… ou arraste a URL de outra aplicação para o ícone do Sequential no Dock.

13 |

Se a URL refere a uma página web, o Sequential vai procurar links e imagens na página que podem ser abertos.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/pt_BR.lproj/pt_BR.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/pt_BR.lproj/pt_BR.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ru.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Просмотр изображений онлайн 7 | 8 | 9 | 10 | 11 |

Просмотр изображений онлайн

12 |

Вы можете открыть любой поддерживаемый тип изображений прямо из сети интернет. Для этого выберите Файл > Веб-ссылка. Вы можете также перетащить ссылку из другой программы в док-иконку Sequentional.

13 |

Если ссылка ведет на веб-страницу, программа откроет изображения, доступные на этой странице.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ru.lproj/ru.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/ru.lproj/ru.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/ru.lproj/sessions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Остановка и продолжении сессии 7 | 8 | 9 | 10 | 11 |

Сессии

12 |

Вы можете приостановить просмотр изображений и позже быстро вернуться к нему, выбрав Файл > Пауза. Страица при этом добавляется в меню Возобновить, а документ закрывается.

13 |

Когда вы хотите продолжить просмотр изображений, выберите Файл > Возобновить. Изображение будет заного открыто, а приостановленная сессия исчезнет из списка.

14 |

Вы можете удалить сессию, нажав Option и выбрав Файл > Удалить.

15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/sv.lproj/online.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Visa bilder online 7 | 8 | 9 | 10 | 11 |

Visa bilder online

12 |

Du kan öppna bildfiler som Sequential stödjer direkt från Internet. För att göra detta välj Arkiv > Öppna URL… eller dra URLen från ett annat program direkt till Sequentials Dock-ikon.

13 |

Om URLen refererar till en websida kommer Sequential försöka hitta bildlänkar och inbakade bilder.

14 | 15 | 16 | -------------------------------------------------------------------------------- /Sequential.help/Contents/Resources/sv.lproj/sv.lproj.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.help/Contents/Resources/sv.lproj/sv.lproj.helpindex -------------------------------------------------------------------------------- /Sequential.help/Contents/version.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildVersion 6 | 4 7 | CFBundleShortVersionString 8 | 100.2 9 | CFBundleVersion 10 | 192.2 11 | ProjectName 12 | MailHelp 13 | SourceVersion 14 | 1920200 15 | 16 | 17 | -------------------------------------------------------------------------------- /Sequential.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.icns -------------------------------------------------------------------------------- /Sequential.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Sequential.xcodeproj/project.xcworkspace/xcuserdata/ardneran.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Sequential.xcodeproj/project.xcworkspace/xcuserdata/ardneran.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Sequential.xcodeproj/project.xcworkspace/xcuserdata/ardneran.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges 6 | 7 | SnapshotAutomaticallyBeforeSignificantChanges 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Sequential_Prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #define numberof(x) (sizeof(x) / sizeof(*x)) 6 | #define CLAMP(min, x, max) MIN(MAX((min), (x)), (max)) 7 | -------------------------------------------------------------------------------- /Silhouette-Black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Silhouette-Black.png -------------------------------------------------------------------------------- /Silhouette-White.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/Silhouette-White.png -------------------------------------------------------------------------------- /UniversalDetector/DetectorTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "UniversalDetector.h" 3 | 4 | int main(int argc,char **argv) 5 | { 6 | NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init]; 7 | 8 | UniversalDetector *detector=[UniversalDetector detector]; 9 | 10 | for(int i=1;i 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.mozilla.universalchardet 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.1 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /UniversalDetector/UniversalDetector.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface UniversalDetector:NSObject 4 | { 5 | void *detector; 6 | NSString *charset; 7 | float confidence; 8 | const char *lastcstring; 9 | } 10 | 11 | +(UniversalDetector *)detector; 12 | +(NSArray *)possibleMIMECharsets; 13 | 14 | -(id)init; 15 | -(void)dealloc; 16 | 17 | -(void)analyzeData:(NSData *)data; 18 | -(void)analyzeBytes:(const char *)data length:(int)len; 19 | -(void)reset; 20 | 21 | -(BOOL)done; 22 | -(NSString *)MIMECharset; 23 | -(float)confidence; 24 | 25 | #ifdef __APPLE__ 26 | -(NSStringEncoding)encoding; 27 | #endif 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /UniversalDetector/UniversalDetector_Prefix.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/UniversalDetector/UniversalDetector_Prefix.pch -------------------------------------------------------------------------------- /UniversalDetector/WrappedUniversalDetector.h: -------------------------------------------------------------------------------- 1 | #ifndef __WrappedUniversalDetector_h__ 2 | #define __WrappedUniversalDetector_h__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | void *AllocUniversalDetector(); 9 | void FreeUniversalDetector(void *detectorptr); 10 | void UniversalDetectorHandleData(void *detectorptr,const char *data,int length); 11 | void UniversalDetectorReset(void *detectorptr); 12 | int UniversalDetectorDone(void *detectorptr); 13 | const char *UniversalDetectorCharset(void *detectorptr,float *confidence); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /UniversalDetector/scan.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | 5 | my %charsets; 6 | 7 | for(@ARGV) 8 | { 9 | open FILE,$_ or die; 10 | $_=do {local $/; }; 11 | 12 | # $charsets{$1}=1 while(/SequenceModel.*?=.*?\{[^}"]+"([^"]*)"[^}]+\}/gs); 13 | $charsets{$1}=1 while(/"([A-Za-z0-9_\-]+)"/g); 14 | } 15 | 16 | print join "\n",sort keys %charsets; 17 | print "\n"; -------------------------------------------------------------------------------- /UniversalDetector/universalchardet/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | -------------------------------------------------------------------------------- /UniversalDetector/universalchardet/kludge.c: -------------------------------------------------------------------------------- 1 | #include "prmem.h" // nose core nose core nose core nose core 2 | 3 | PR_IMPLEMENT(void *) PR_Malloc(PRUint32 size) 4 | { 5 | return malloc(size); 6 | } 7 | 8 | PR_IMPLEMENT(void *) PR_Calloc(PRUint32 nelem, PRUint32 elsize) 9 | { 10 | return calloc(nelem, elsize); 11 | } 12 | 13 | PR_IMPLEMENT(void *) PR_Realloc(void *ptr, PRUint32 size) 14 | { 15 | return realloc(ptr, size); 16 | } 17 | 18 | PR_IMPLEMENT(void) PR_Free(void *ptr) 19 | { 20 | free(ptr); 21 | } 22 | -------------------------------------------------------------------------------- /UniversalDetector/universalchardet/nscore.h: -------------------------------------------------------------------------------- 1 | #include "prtypes.h" 2 | 3 | typedef PRUint32 nsresult; 4 | 5 | #define nsnull 0 6 | #define NS_COM 7 | 8 | #include "nsError.h" 9 | -------------------------------------------------------------------------------- /XADMaster/BWT.h: -------------------------------------------------------------------------------- 1 | #ifndef __BWT_H__ 2 | #define __BWT_H__ 3 | 4 | #include 5 | 6 | void CalculateInverseBWT(uint32_t *transform,uint8_t *block,int blocklen); 7 | void UnsortBWT(uint8_t *dest,uint8_t *src,int blocklen,int firstindex,uint32_t *transformbuf); 8 | 9 | void UnsortST4(uint8_t *dest,uint8_t *src,int blocklen,int firstindex,uint32_t *transformbuf); 10 | 11 | typedef struct MTFState 12 | { 13 | int table[256]; 14 | } MTFState; 15 | 16 | void ResetMTFDecoder(MTFState *self); 17 | int DecodeMTF(MTFState *self,int symbol); 18 | void DecodeMTFBlock(uint8_t *block,int blocklen); 19 | void DecodeM1FFNBlock(uint8_t *block,int blocklen,int order); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /XADMaster/CRC.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | uint32_t XADCRC(uint32_t prevcrc,uint8_t byte,const uint32_t *table); 4 | uint32_t XADCalculateCRC(uint32_t prevcrc,const uint8_t *buffer,int length,const uint32_t *table); 5 | 6 | uint64_t XADCRC64(uint64_t prevcrc,uint8_t byte,const uint64_t *table); 7 | uint64_t XADCalculateCRC64(uint64_t prevcrc,const uint8_t *buffer,int length,const uint64_t *table); 8 | 9 | int XADUnReverseCRC16(int val); 10 | 11 | extern const uint32_t XADCRCTable_a001[256]; 12 | extern const uint32_t XADCRCReverseTable_1021[256]; 13 | extern const uint32_t XADCRCTable_edb88320[256]; 14 | extern const uint64_t XADCRCTable_c96c5795d7870f42[256]; 15 | -------------------------------------------------------------------------------- /XADMaster/CSBlockStreamHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | #define CSBlockStreamHandle XADBlockStreamHandle 4 | 5 | @interface CSBlockStreamHandle:CSStreamHandle 6 | { 7 | uint8_t *_currblock; 8 | off_t _blockstartpos; 9 | int _blocklength; 10 | BOOL _endofblocks; 11 | } 12 | 13 | // Intializers 14 | -(id)initWithName:(NSString *)descname length:(off_t)length; 15 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length bufferSize:(int)buffersize; 16 | -(id)initAsCopyOf:(CSBlockStreamHandle *)other; 17 | 18 | // Implemented by this class 19 | -(void)seekToFileOffset:(off_t)offs; 20 | -(void)resetStream; 21 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 22 | 23 | // Internal methods 24 | -(void)_readNextBlock; 25 | 26 | // Implemented by subclasses 27 | -(void)resetBlockStream; 28 | -(int)produceBlockAtOffset:(off_t)pos; 29 | 30 | // Called by subclasses 31 | -(void)setBlockPointer:(uint8_t *)blockpointer; 32 | -(void)endBlockStream; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /XADMaster/CSByteStreamHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | #import 4 | 5 | #define CSByteStreamHandle XADByteStreamHandle 6 | 7 | @interface CSByteStreamHandle:CSStreamHandle 8 | { 9 | uint8_t (*bytestreamproducebyte_ptr)(id,SEL,off_t); 10 | int bytesproduced; 11 | @public 12 | jmp_buf eofenv; 13 | } 14 | 15 | // Intializers 16 | -(id)initWithName:(NSString *)descname length:(off_t)length; 17 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length bufferSize:(int)buffersize; 18 | -(id)initAsCopyOf:(CSByteStreamHandle *)other; 19 | 20 | // Implemented by this class 21 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 22 | -(void)resetStream; 23 | 24 | // Implemented by subclasses 25 | -(void)resetByteStream; 26 | -(uint8_t)produceByteAtOffset:(off_t)pos; 27 | 28 | // Called by subclasses 29 | -(void)endByteStream; 30 | 31 | @end 32 | 33 | 34 | 35 | extern NSString *CSByteStreamEOFReachedException; 36 | 37 | static inline void CSByteStreamEOF(CSByteStreamHandle *self) { longjmp(self->eofenv,1); } 38 | -------------------------------------------------------------------------------- /XADMaster/CSBzip2Handle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | #include 4 | 5 | #define CSBzip2Handle XADBzip2Handle 6 | 7 | extern NSString *CSBzip2Exception; 8 | 9 | @interface CSBzip2Handle:CSStreamHandle 10 | { 11 | CSHandle *parent; 12 | off_t startoffs; 13 | bz_stream bzs; 14 | BOOL inited,checksumcorrect; 15 | 16 | uint8_t inbuffer[16*1024]; 17 | } 18 | 19 | +(CSBzip2Handle *)bzip2HandleWithHandle:(CSHandle *)handle; 20 | +(CSBzip2Handle *)bzip2HandleWithHandle:(CSHandle *)handle length:(off_t)length; 21 | 22 | // Initializers. 23 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length name:(NSString *)descname; 24 | -(void)dealloc; 25 | 26 | // Implemented by this class. 27 | -(void)resetStream; 28 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 29 | 30 | // Checksum functions for XADMaster. 31 | -(BOOL)hasChecksum; 32 | -(BOOL)isChecksumCorrect; 33 | 34 | // Internal methods. 35 | -(void)_raiseBzip2:(int)error; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XADMaster/CSHexDump.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSData (CSHexDump) 4 | 5 | -(NSString *)hexDumpWithColumns:(int)cols; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /XADMaster/CSMultiHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | #define CSMultiHandle XADMultiHandle 4 | 5 | extern NSString *CSSizeOfSegmentUnknownException; 6 | 7 | @interface CSMultiHandle:CSHandle 8 | { 9 | NSArray *handles; 10 | int currhandle; 11 | } 12 | 13 | +(CSMultiHandle *)multiHandleWithHandleArray:(NSArray *)handlearray; 14 | +(CSMultiHandle *)multiHandleWithHandles:(CSHandle *)firsthandle,...; 15 | 16 | // Initializers 17 | -(id)initWithHandles:(NSArray *)handlearray; 18 | -(id)initAsCopyOf:(CSMultiHandle *)other; 19 | -(void)dealloc; 20 | 21 | // Public methods 22 | -(NSArray *)handles; 23 | -(CSHandle *)currentHandle; 24 | 25 | // Implemented by this class 26 | -(off_t)fileSize; 27 | -(off_t)offsetInFile; 28 | -(BOOL)atEndOfFile; 29 | 30 | -(void)seekToFileOffset:(off_t)offs; 31 | -(void)seekToEndOfFile; 32 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 33 | 34 | // Internal methods 35 | -(void)_raiseSizeUnknownForSegment:(int)i; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XADMaster/CSSubHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | #define CSSubHandle XADSubHandle 4 | 5 | @interface CSSubHandle:CSHandle 6 | { 7 | CSHandle *parent; 8 | off_t start,end; 9 | } 10 | 11 | // Initializers 12 | -(id)initWithHandle:(CSHandle *)handle from:(off_t)from length:(off_t)length; 13 | -(id)initAsCopyOf:(CSSubHandle *)other; 14 | -(void)dealloc; 15 | 16 | // Public methods 17 | -(CSHandle *)parentHandle; 18 | -(off_t)startOffsetInParent; 19 | 20 | // Implemented by this class 21 | -(off_t)fileSize; 22 | -(off_t)offsetInFile; 23 | -(BOOL)atEndOfFile; 24 | 25 | -(void)seekToFileOffset:(off_t)offs; 26 | -(void)seekToEndOfFile; 27 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /XADMaster/CarrylessRangeCoder.h: -------------------------------------------------------------------------------- 1 | #import "CSInputBuffer.h" 2 | 3 | typedef struct CarrylessRangeCoder 4 | { 5 | CSInputBuffer *input; 6 | uint32_t low,code,range,bottom; 7 | BOOL uselow; 8 | } CarrylessRangeCoder; 9 | 10 | void InitializeRangeCoder(CarrylessRangeCoder *self,CSInputBuffer *input,BOOL uselow,int bottom); 11 | 12 | uint32_t RangeCoderCurrentCount(CarrylessRangeCoder *self,uint32_t scale); 13 | void RemoveRangeCoderSubRange(CarrylessRangeCoder *self,uint32_t lowcount,uint32_t highcount); 14 | 15 | int NextSymbolFromRangeCoder(CarrylessRangeCoder *self,uint32_t *freqtable,int numfreq); 16 | int NextBitFromRangeCoder(CarrylessRangeCoder *self); 17 | int NextWeightedBitFromRangeCoder(CarrylessRangeCoder *self,int weight,int size); 18 | 19 | int NextWeightedBitFromRangeCoder2(CarrylessRangeCoder *self,int weight,int shift); 20 | 21 | void NormalizeRangeCoder(CarrylessRangeCoder *self); 22 | -------------------------------------------------------------------------------- /XADMaster/CommandLineCommon.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "XADArchiveParser.h" 4 | 5 | BOOL IsListRequest(NSString *encoding); 6 | void PrintEncodingList(); 7 | 8 | NSString *ShortInfoLineForEntryWithDictionary(NSDictionary *dict); 9 | NSString *MediumInfoLineForEntryWithDictionary(NSDictionary *dict); 10 | NSString *LongInfoLineForEntryWithDictionary(NSDictionary *dict,XADArchiveParser *parser); 11 | NSString *CompressionNameExplanationForLongInfo(); 12 | 13 | BOOL IsInteractive(); 14 | int GetPromptCharacter(); 15 | NSString *AskForPassword(NSString *prompt); 16 | -------------------------------------------------------------------------------- /XADMaster/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/XADMaster/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /XADMaster/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | XADMaster 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | de.dstoecker.xadmaster 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | XADMaster 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 3.3 (libxad 13.0, modified) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /XADMaster/NSStringPrinting.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSString (Printing) 4 | 5 | +(int)terminalWidth; 6 | 7 | -(void)print; 8 | -(void)printToFile:(FILE *)fh; 9 | 10 | -(NSString *)stringByEscapingControlCharacters; 11 | 12 | -(NSArray *)linesWrappedToWidth:(int)width; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/NumberParsing.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | int64_t ParseNumberWithBase(const char *num,int length,int base); 4 | int64_t ParseDecimalNumber(const char *num,int length); 5 | int64_t ParseHexadecimalNumber(const char *num,int length); 6 | int64_t ParseOctalNumber(const char *num,int length); 7 | 8 | @interface CSHandle (NumberParsing) 9 | 10 | -(int64_t)readDecimalNumberWithDigits:(int)numdigits; 11 | -(int64_t)readHexadecimalNumberWithDigits:(int)numdigits; 12 | -(int64_t)readOctalNumberWithDigits:(int)numdigits; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/PDF/LZWHandle.h: -------------------------------------------------------------------------------- 1 | #import "../CSByteStreamHandle.h" 2 | #import "../LZW.h" 3 | 4 | extern NSString *LZWInvalidCodeException; 5 | 6 | @interface LZWHandle:CSByteStreamHandle 7 | { 8 | BOOL early; 9 | 10 | LZW *lzw; 11 | int symbolsize; 12 | 13 | int currbyte; 14 | uint8_t buffer[4096]; 15 | } 16 | 17 | -(id)initWithHandle:(CSHandle *)handle earlyChange:(BOOL)earlychange; 18 | 19 | -(void)clearTable; 20 | 21 | -(void)resetByteStream; 22 | -(uint8_t)produceByteAtOffset:(off_t)pos; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /XADMaster/PDF/NSDictionaryNumberExtension.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSDictionary (NumberExtension) 4 | 5 | -(int)intValueForKey:(NSString *)key default:(int)def; 6 | -(unsigned int)unsignedIntValueForKey:(NSString *)key default:(unsigned int)def; 7 | -(BOOL)boolValueForKey:(NSString *)key default:(BOOL)def; 8 | -(float)floatValueForKey:(NSString *)key default:(float)def; 9 | -(double)doubleValueForKey:(NSString *)key default:(double)def; 10 | 11 | -(NSString *)stringForKey:(NSString *)key default:(NSString *)def; 12 | -(NSArray *)arrayForKey:(NSString *)key; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/PPMd/PPMd.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XADMaster/PPMd/RangeCoder.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_RANGE_CODER_H__ 2 | #define __PPMD_RANGE_CODER_H__ 3 | 4 | #include 5 | #include 6 | 7 | typedef int PPMdReadFunction(void *context); 8 | 9 | typedef struct PPMdRangeCoder 10 | { 11 | PPMdReadFunction *readfunc; 12 | void *inputcontext; 13 | 14 | uint32_t low,code,range,bottom; 15 | bool uselow; 16 | } PPMdRangeCoder; 17 | 18 | void InitializePPMdRangeCoder(PPMdRangeCoder *self, 19 | PPMdReadFunction *readfunc,void *inputcontext, 20 | bool uselow,int bottom); 21 | 22 | uint32_t PPMdRangeCoderCurrentCount(PPMdRangeCoder *self,uint32_t scale); 23 | void RemovePPMdRangeCoderSubRange(PPMdRangeCoder *self,uint32_t lowcount,uint32_t highcount); 24 | 25 | int NextWeightedBitFromPPMdRangeCoder(PPMdRangeCoder *self,int weight,int size); 26 | 27 | int NextWeightedBitFromPPMdRangeCoder2(PPMdRangeCoder *self,int weight,int shift); 28 | 29 | void NormalizePPMdRangeCoder(PPMdRangeCoder *self); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /XADMaster/PPMd/SubAllocatorBrimstone.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_SUB_ALLOCATOR_BRIMSTONE_H__ 2 | #define __PPMD_SUB_ALLOCATOR_BRIMSTONE_H__ 3 | 4 | #include "SubAllocator.h" 5 | 6 | typedef struct PPMdSubAllocatorBrimstone 7 | { 8 | PPMdSubAllocator core; 9 | 10 | uint32_t SubAllocatorSize; 11 | uint8_t Index2Units[38],Units2Index[128]; 12 | uint8_t *LowUnit,*HighUnit; 13 | struct PPMAllocatorNodeBrimstone { struct PPMAllocatorNodeBrimstone *next; } FreeList[38]; 14 | uint8_t HeapStart[0]; 15 | } PPMdSubAllocatorBrimstone; 16 | 17 | PPMdSubAllocatorBrimstone *CreateSubAllocatorBrimstone(int size); 18 | void FreeSubAllocatorBrimstone(PPMdSubAllocatorBrimstone *self); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /XADMaster/PPMd/SubAllocatorVariantG.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_SUB_ALLOCATOR_VARIANT_G_H__ 2 | #define __PPMD_SUB_ALLOCATOR_VARIANT_G_H__ 3 | 4 | #include "SubAllocator.h" 5 | 6 | typedef struct PPMdSubAllocatorVariantG 7 | { 8 | PPMdSubAllocator core; 9 | 10 | uint32_t SubAllocatorSize; 11 | uint8_t Index2Units[38],Units2Index[128]; 12 | uint8_t *LowUnit,*HighUnit,*LastBreath; 13 | struct PPMAllocatorNodeVariantG { struct PPMAllocatorNodeVariantG *next; } FreeList[38]; 14 | uint8_t HeapStart[0]; 15 | } PPMdSubAllocatorVariantG; 16 | 17 | PPMdSubAllocatorVariantG *CreateSubAllocatorVariantG(int size); 18 | void FreeSubAllocatorVariantG(PPMdSubAllocatorVariantG *self); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /XADMaster/PPMd/SubAllocatorVariantH.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_SUB_ALLOCATOR_VARIANT_H_H__ 2 | #define __PPMD_SUB_ALLOCATOR_VARIANT_H_H__ 3 | 4 | #include "SubAllocator.h" 5 | 6 | struct PPMdMemoryBlockVariantH 7 | { 8 | uint16_t Stamp,NU; 9 | uint32_t next,prev; 10 | } __attribute__((packed)); 11 | 12 | typedef struct PPMdSubAllocatorVariantH 13 | { 14 | PPMdSubAllocator core; 15 | 16 | uint32_t SubAllocatorSize; 17 | uint8_t Index2Units[38],Units2Index[128],GlueCount; 18 | uint8_t *pText,*UnitsStart,*LowUnit,*HighUnit; 19 | struct PPMAllocatorNodeVariantH { struct PPMAllocatorNodeVariantH *next; } FreeList[38]; 20 | struct PPMdMemoryBlockVariantH sentinel; 21 | uint8_t HeapStart[0]; 22 | } PPMdSubAllocatorVariantH; 23 | 24 | PPMdSubAllocatorVariantH *CreateSubAllocatorVariantH(int size); 25 | void FreeSubAllocatorVariantH(PPMdSubAllocatorVariantH *self); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /XADMaster/PPMd/VariantG.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_VARIANT_G_H__ 2 | #define __PPMD_VARIANT_G_H__ 3 | 4 | #include "Context.h" 5 | 6 | // PPMd Variant G. Used (slightly modified) by StuffIt X. 7 | 8 | typedef struct PPMdModelVariantG 9 | { 10 | PPMdCoreModel core; 11 | 12 | PPMdContext *MinContext,*MedContext,*MaxContext; 13 | int MaxOrder; 14 | bool Brimstone; 15 | SEE2Context SEE2Cont[43][8],DummySEE2Cont; 16 | uint8_t NS2BSIndx[256],NS2Indx[256]; 17 | uint16_t BinSumm[128][16]; // binary SEE-contexts 18 | } PPMdModelVariantG; 19 | 20 | void StartPPMdModelVariantG(PPMdModelVariantG *self, 21 | PPMdReadFunction *readfunc,void *inputcontext, 22 | PPMdSubAllocator *alloc,int maxorder,bool brimstone); 23 | int NextPPMdVariantGByte(PPMdModelVariantG *self); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /XADMaster/PPMd/VariantH.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_VARIANT_H_H__ 2 | #define __PPMD_VARIANT_H_H__ 3 | 4 | #include "Context.h" 5 | #include "SubAllocatorVariantH.h" 6 | 7 | // PPMd Variant H. Used by RAR and 7-Zip. 8 | 9 | typedef struct PPMdModelVariantH 10 | { 11 | PPMdCoreModel core; 12 | 13 | PPMdSubAllocatorVariantH *alloc; 14 | 15 | PPMdContext *MinContext,*MaxContext; 16 | int MaxOrder,HiBitsFlag; 17 | bool SevenZip; 18 | SEE2Context SEE2Cont[25][16],DummySEE2Cont; 19 | uint8_t NS2BSIndx[256],HB2Flag[256],NS2Indx[256]; 20 | uint16_t BinSumm[128][64]; // binary SEE-contexts 21 | } PPMdModelVariantH; 22 | 23 | void StartPPMdModelVariantH(PPMdModelVariantH *self, 24 | PPMdReadFunction *readfunc,void *inputcontext, 25 | PPMdSubAllocatorVariantH *alloc,int maxorder,bool sevenzip); 26 | void RestartPPMdVariantHRangeCoder(PPMdModelVariantH *self, 27 | PPMdReadFunction *readfunc,void *inputcontext, 28 | bool sevenzip); 29 | int NextPPMdVariantHByte(PPMdModelVariantH *self); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /XADMaster/PPMd/VariantI.h: -------------------------------------------------------------------------------- 1 | #ifndef __PPMD_VARIANT_I_H__ 2 | #define __PPMD_VARIANT_I_H__ 3 | 4 | #include "Context.h" 5 | #include "SubAllocatorVariantI.h" 6 | 7 | // PPMd Variant I. Used by WinZip. 8 | 9 | #define MRM_RESTART 0 10 | #define MRM_CUT_OFF 1 11 | #define MRM_FREEZE 2 12 | 13 | typedef struct PPMdModelVariantI 14 | { 15 | PPMdCoreModel core; 16 | 17 | PPMdSubAllocatorVariantI *alloc; 18 | 19 | uint8_t NS2BSIndx[256],QTable[260]; // constants 20 | 21 | PPMdContext *MaxContext; 22 | int MaxOrder,MRMethod; 23 | SEE2Context SEE2Cont[24][32],DummySEE2Cont; 24 | uint16_t BinSumm[25][64]; // binary SEE-contexts 25 | 26 | bool endofstream; 27 | } PPMdModelVariantI; 28 | 29 | void StartPPMdModelVariantI(PPMdModelVariantI *self, 30 | PPMdReadFunction *readfunc,void *inputcontext, 31 | PPMdSubAllocatorVariantI *alloc,int maxorder,int restoration); 32 | int NextPPMdVariantIByte(PPMdModelVariantI *self); 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /XADMaster/PPMdSubAllocatorBrimstone.h: -------------------------------------------------------------------------------- 1 | #import "PPMdSubAllocator.h" 2 | 3 | typedef struct PPMdSubAllocatorBrimstone 4 | { 5 | PPMdSubAllocator core; 6 | 7 | long SubAllocatorSize; 8 | uint8_t Index2Units[38],Units2Index[128]; 9 | uint8_t *LowUnit,*HighUnit; 10 | struct PPMAllocatorNodeBrimstone { struct PPMAllocatorNodeBrimstone *next; } FreeList[38]; 11 | uint8_t HeapStart[0]; 12 | } PPMdSubAllocatorBrimstone; 13 | 14 | PPMdSubAllocatorBrimstone *CreateSubAllocatorBrimstone(int size); 15 | void FreeSubAllocatorBrimstone(PPMdSubAllocatorBrimstone *self); 16 | 17 | -------------------------------------------------------------------------------- /XADMaster/PPMdSubAllocatorVariantG.h: -------------------------------------------------------------------------------- 1 | #import "PPMdSubAllocator.h" 2 | 3 | typedef struct PPMdSubAllocatorVariantG 4 | { 5 | PPMdSubAllocator core; 6 | 7 | long SubAllocatorSize; 8 | uint8_t Index2Units[38],Units2Index[128]; 9 | uint8_t *LowUnit,*HighUnit,*LastBreath; 10 | struct PPMAllocatorNodeVariantG { struct PPMAllocatorNodeVariantG *next; } FreeList[38]; 11 | uint8_t HeapStart[0]; 12 | } PPMdSubAllocatorVariantG; 13 | 14 | PPMdSubAllocatorVariantG *CreateSubAllocatorVariantG(int size); 15 | void FreeSubAllocatorVariantG(PPMdSubAllocatorVariantG *self); 16 | -------------------------------------------------------------------------------- /XADMaster/PPMdSubAllocatorVariantH.h: -------------------------------------------------------------------------------- 1 | #import "PPMdSubAllocator.h" 2 | 3 | typedef struct PPMdSubAllocatorVariantH 4 | { 5 | PPMdSubAllocator core; 6 | 7 | long SubAllocatorSize; 8 | uint8_t Index2Units[38],Units2Index[128],GlueCount; 9 | uint8_t *pText,*UnitsStart,*LowUnit,*HighUnit; 10 | struct PPMAllocatorNodeVariantH { struct PPMAllocatorNodeVariantH *next; } FreeList[38]; 11 | uint8_t HeapStart[0]; 12 | } PPMdSubAllocatorVariantH; 13 | 14 | PPMdSubAllocatorVariantH *CreateSubAllocatorVariantH(int size); 15 | void FreeSubAllocatorVariantH(PPMdSubAllocatorVariantH *self); 16 | -------------------------------------------------------------------------------- /XADMaster/PPMdSubAllocatorVariantI.h: -------------------------------------------------------------------------------- 1 | #import "PPMdSubAllocator.h" 2 | 3 | typedef struct PPMdMemoryBlockVariantI 4 | { 5 | uint32_t Stamp; 6 | uint32_t next; 7 | uint32_t NU; 8 | } __attribute__((packed)) PPMdMemoryBlockVariantI; 9 | 10 | typedef struct PPMdSubAllocatorVariantI 11 | { 12 | PPMdSubAllocator core; 13 | 14 | uint32_t GlueCount,SubAllocatorSize; 15 | uint8_t Index2Units[38],Units2Index[128]; // constants 16 | uint8_t *pText,*UnitsStart,*LowUnit,*HighUnit; 17 | PPMdMemoryBlockVariantI BList[38]; 18 | uint8_t HeapStart[0]; 19 | } PPMdSubAllocatorVariantI; 20 | 21 | PPMdSubAllocatorVariantI *CreateSubAllocatorVariantI(int size); 22 | void FreeSubAllocatorVariantI(PPMdSubAllocatorVariantI *self); 23 | 24 | uint32_t GetUsedMemoryVariantI(PPMdSubAllocatorVariantI *self); 25 | void SpecialFreeUnitVariantI(PPMdSubAllocatorVariantI *self,uint32_t offs); 26 | uint32_t MoveUnitsUpVariantI(PPMdSubAllocatorVariantI *self,uint32_t oldoffs,int num); 27 | void ExpandTextAreaVariantI(PPMdSubAllocatorVariantI *self); 28 | -------------------------------------------------------------------------------- /XADMaster/PPMdVariantG.h: -------------------------------------------------------------------------------- 1 | #import "PPMdContext.h" 2 | 3 | // PPMd Variant G. Used (slightly modified) by StuffIt X. 4 | 5 | typedef struct PPMdModelVariantG 6 | { 7 | PPMdCoreModel core; 8 | 9 | PPMdContext *MinContext,*MedContext,*MaxContext; 10 | int MaxOrder; 11 | BOOL Brimstone; 12 | SEE2Context SEE2Cont[43][8],DummySEE2Cont; 13 | uint8_t NS2BSIndx[256],NS2Indx[256]; 14 | uint16_t BinSumm[128][16]; // binary SEE-contexts 15 | } PPMdModelVariantG; 16 | 17 | void StartPPMdModelVariantG(PPMdModelVariantG *self,CSInputBuffer *input, 18 | PPMdSubAllocator *alloc,int maxorder,BOOL brimstone); 19 | int NextPPMdVariantGByte(PPMdModelVariantG *self); 20 | -------------------------------------------------------------------------------- /XADMaster/PPMdVariantH.h: -------------------------------------------------------------------------------- 1 | #import "PPMdContext.h" 2 | #import "PPMdSubAllocatorVariantH.h" 3 | 4 | // PPMd Variant H. Used by RAR and 7-Zip. 5 | 6 | typedef struct PPMdModelVariantH 7 | { 8 | PPMdCoreModel core; 9 | 10 | PPMdSubAllocatorVariantH *alloc; 11 | 12 | PPMdContext *MinContext,*MaxContext; 13 | int MaxOrder,HiBitsFlag; 14 | BOOL SevenZip; 15 | SEE2Context SEE2Cont[25][16],DummySEE2Cont; 16 | uint8_t NS2BSIndx[256],HB2Flag[256],NS2Indx[256]; 17 | uint16_t BinSumm[128][64]; // binary SEE-contexts 18 | } PPMdModelVariantH; 19 | 20 | void StartPPMdModelVariantH(PPMdModelVariantH *self,CSInputBuffer *input, 21 | PPMdSubAllocatorVariantH *alloc,int maxorder,BOOL sevenzip); 22 | void RestartPPMdVariantHRangeCoder(PPMdModelVariantH *self,CSInputBuffer *input,BOOL sevenzip); 23 | int NextPPMdVariantHByte(PPMdModelVariantH *self); 24 | -------------------------------------------------------------------------------- /XADMaster/PPMdVariantI.h: -------------------------------------------------------------------------------- 1 | #import "PPMdContext.h" 2 | #import "PPMdSubAllocatorVariantI.h" 3 | 4 | // PPMd Variant I. Used by WinZip. 5 | 6 | #define MRM_RESTART 0 7 | #define MRM_CUT_OFF 1 8 | #define MRM_FREEZE 2 9 | 10 | typedef struct PPMdModelVariantI 11 | { 12 | PPMdCoreModel core; 13 | 14 | PPMdSubAllocatorVariantI *alloc; 15 | 16 | uint8_t NS2BSIndx[256],QTable[260]; // constants 17 | 18 | PPMdContext *MaxContext; 19 | int MaxOrder,MRMethod; 20 | SEE2Context SEE2Cont[24][32],DummySEE2Cont; 21 | uint16_t BinSumm[25][64]; // binary SEE-contexts 22 | } PPMdModelVariantI; 23 | 24 | void StartPPMdModelVariantI(PPMdModelVariantI *self,CSInputBuffer *input, 25 | PPMdSubAllocatorVariantI *alloc,int maxorder,int restoration); 26 | int NextPPMdVariantIByte(PPMdModelVariantI *self); 27 | -------------------------------------------------------------------------------- /XADMaster/Progress.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | #import "CSStreamHandle.h" 3 | #import "CSZlibHandle.h" 4 | #import "CSBzip2Handle.h" 5 | 6 | @interface CSHandle (Progress) 7 | 8 | -(double)estimatedProgress; 9 | 10 | @end 11 | 12 | @interface CSZlibHandle (Progress) 13 | 14 | -(double)estimatedProgress; 15 | 16 | @end 17 | 18 | @interface CSStreamHandle (progress) 19 | 20 | -(double)estimatedProgress; 21 | 22 | @end 23 | 24 | @interface CSBzip2Handle (progress) 25 | 26 | -(double)estimatedProgress; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /XADMaster/Progress.m: -------------------------------------------------------------------------------- 1 | #import "Progress.h" 2 | 3 | 4 | @implementation CSHandle (Progress) 5 | 6 | -(double)estimatedProgress 7 | { 8 | off_t size=[self fileSize]; 9 | if(size==CSHandleMaxLength) return 0; 10 | return (double)[self offsetInFile]/(double)size; 11 | } 12 | 13 | @end 14 | 15 | @implementation CSStreamHandle (progress) 16 | 17 | -(double)estimatedProgress 18 | { 19 | if(streamlength==CSHandleMaxLength) 20 | { 21 | if(input) return [input->parent estimatedProgress]; // TODO: better estimation 22 | else return 0; 23 | } 24 | else return (double)streampos/(double)streamlength; 25 | } 26 | 27 | @end 28 | 29 | @implementation CSZlibHandle (Progress) 30 | 31 | -(double)estimatedProgress { return [parent estimatedProgress]; } // TODO: better estimation using buffer? 32 | 33 | @end 34 | 35 | @implementation CSBzip2Handle (progress) 36 | 37 | -(double)estimatedProgress { return [parent estimatedProgress]; } // TODO: better estimation using buffer? 38 | 39 | @end 40 | 41 | // TODO: more handles like LZMA? 42 | -------------------------------------------------------------------------------- /XADMaster/RARAudioDecoder.h: -------------------------------------------------------------------------------- 1 | #ifndef __RARAUDIODECODER_H__ 2 | #define __RARAUDIODECODER_H__ 3 | 4 | typedef struct RAR20AudioState 5 | { 6 | int weight1,weight2,weight3,weight4,weight5; 7 | int delta1,delta2,delta3,delta4; 8 | int lastdelta; 9 | int error[11]; 10 | int count; 11 | int lastbyte; 12 | } RAR20AudioState; 13 | 14 | typedef struct RAR30AudioState 15 | { 16 | int weight1,weight2,weight3,weight4,weight5; 17 | int delta1,delta2,delta3,delta4; 18 | int lastdelta; 19 | int error[7]; 20 | int count; 21 | int lastbyte; 22 | } RAR30AudioState; 23 | 24 | int DecodeRAR20Audio(RAR20AudioState *state,int *channeldelta,int delta); 25 | int DecodeRAR30Audio(RAR30AudioState *state,int delta); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /XADMaster/RARBug.h: -------------------------------------------------------------------------------- 1 | #ifndef __RARBUG_H__ 2 | #define __RARBUG_H__ 3 | 4 | #include 5 | 6 | void SHA1_Update_WithRARBug(SHA_CTX *ctx,void *bytes,unsigned long length,int bug); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /XADMaster/Realloc.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | static inline void *Realloc(void *ptr,size_t newsize) 4 | { 5 | void *newptr=realloc(ptr,newsize); 6 | if(!newptr) 7 | { 8 | free(ptr); 9 | [NSException raise:NSMallocException format:@"Realloc() failed"]; 10 | } 11 | return newptr; 12 | } 13 | -------------------------------------------------------------------------------- /XADMaster/Scanning.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | typedef int (*CSByteMatchingFunctionPointer)(const uint8_t *bytes,int available,off_t offset,void *state); 4 | 5 | @interface CSHandle (Scanning) 6 | 7 | -(BOOL)scanForByteString:(uint8_t *)bytes length:(int)length; 8 | -(int)scanUsingMatchingFunction:(CSByteMatchingFunctionPointer)function 9 | maximumLength:(int)maximumlength; 10 | -(int)scanUsingMatchingFunction:(CSByteMatchingFunctionPointer)function 11 | maximumLength:(int)maximumlength context:(void *)contextptr; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XADMaster/StuffItXUtilities.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | #import "CSInputBuffer.h" 3 | 4 | uint64_t ReadSitxP2(CSHandle *fh); 5 | uint32_t ReadSitxUInt32(CSHandle *fh); 6 | uint64_t ReadSitxUInt64(CSHandle *fh); 7 | NSData *ReadSitxString(CSHandle *fh); 8 | NSData *ReadSitxData(CSHandle *fh,int n); 9 | 10 | uint64_t CSInputNextSitxP2(CSInputBuffer *fh); 11 | -------------------------------------------------------------------------------- /XADMaster/SystemSpecific.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef BSD 4 | // Kludge for reallocf() on Linux 5 | #define reallocf realloc 6 | #endif 7 | -------------------------------------------------------------------------------- /XADMaster/WinZipJPEG/Dependencies: -------------------------------------------------------------------------------- 1 | ArithmeticDecoder.o: ArithmeticDecoder.c ArithmeticDecoder.h \ 2 | InputStream.h 3 | Decompressor.o: Decompressor.c Decompressor.h InputStream.h \ 4 | ArithmeticDecoder.h JPEG.h LZMA.h ../lzma/LzmaDec.h ../lzma/Types.h 5 | JPEG.o: JPEG.c JPEG.h 6 | RawDecoder.o: RawDecoder.c Decompressor.h InputStream.h \ 7 | ArithmeticDecoder.h JPEG.h 8 | Test.o: Test.c ArithmeticDecoder.h InputStream.h 9 | ../lzma/LzmaDec.o: ../lzma/LzmaDec.c ../lzma/LzmaDec.h ../lzma/Types.h 10 | -------------------------------------------------------------------------------- /XADMaster/WinZipJPEG/InputStream.h: -------------------------------------------------------------------------------- 1 | #ifndef __WINZIP_JPEG_INPUT_STREAM_H__ 2 | #define __WINZIP_JPEG_INPUT_STREAM_H__ 3 | 4 | #include 5 | #include 6 | 7 | typedef size_t WinZipJPEGReadFunction(void *context,uint8_t *buffer,size_t length); 8 | 9 | #endif 10 | 11 | -------------------------------------------------------------------------------- /XADMaster/WinZipJPEG/LZMA.h: -------------------------------------------------------------------------------- 1 | #ifndef __WINZIP_JPEG_LZMA_H__ 2 | #define __WINZIP_JPEG_LZMA_H__ 3 | 4 | #if !__LP64__ 5 | #define _LZMA_UINT32_IS_ULONG 6 | #endif 7 | 8 | #define Byte LzmaByte 9 | #include "../lzma/LzmaDec.h" 10 | #undef Byte 11 | 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /XADMaster/Windows/Foundation.1.0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/XADMaster/Windows/Foundation.1.0.dll -------------------------------------------------------------------------------- /XADMaster/Windows/bin/libtoolstub.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | 5 | my $filelist; 6 | my $output; 7 | 8 | foreach my $i (0..$#ARGV) 9 | { 10 | $filelist=$ARGV[$i+1] if $ARGV[$i] eq "-filelist"; 11 | $output=$ARGV[$i+1] if $ARGV[$i] eq "-o"; 12 | } 13 | 14 | unlink $output; 15 | 16 | open LIST,$filelist or die; 17 | my @files=; 18 | close LIST; 19 | 20 | chomp @files; 21 | 22 | system( 23 | "/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1/bin/i386-mingw32msvc-ar", 24 | "rcs", 25 | $output, 26 | @files 27 | ); -------------------------------------------------------------------------------- /XADMaster/Windows/include/openssl/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* crypto/ebcdic.h */ 2 | 3 | #ifndef HEADER_EBCDIC_H 4 | #define HEADER_EBCDIC_H 5 | 6 | #include 7 | 8 | /* Avoid name clashes with other applications */ 9 | #define os_toascii _openssl_os_toascii 10 | #define os_toebcdic _openssl_os_toebcdic 11 | #define ebcdic2ascii _openssl_ebcdic2ascii 12 | #define ascii2ebcdic _openssl_ascii2ebcdic 13 | 14 | extern const unsigned char os_toascii[256]; 15 | extern const unsigned char os_toebcdic[256]; 16 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 17 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /XADMaster/Windows/lib/libbz2.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/XADMaster/Windows/lib/libbz2.a -------------------------------------------------------------------------------- /XADMaster/Windows/lib/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/XADMaster/Windows/lib/libcrypto.a -------------------------------------------------------------------------------- /XADMaster/Windows/lib/libeay32.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/XADMaster/Windows/lib/libeay32.a -------------------------------------------------------------------------------- /XADMaster/Windows/lib/libz.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/XADMaster/Windows/lib/libz.a -------------------------------------------------------------------------------- /XADMaster/XAD7ZipBCJ2Handle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XAD7ZipBCJ2Handle:CSByteStreamHandle 4 | { 5 | CSHandle *calls,*jumps,*ranges; 6 | off_t callstart,jumpstart,rangestart; 7 | 8 | uint16_t probabilities[258]; 9 | uint32_t range,code; 10 | 11 | int prevbyte; 12 | uint32_t val; 13 | int valbyte; 14 | } 15 | 16 | -(id)initWithHandle:(CSHandle *)handle callHandle:(CSHandle *)callhandle 17 | jumpHandle:(CSHandle *)jumphandle rangeHandle:(CSHandle *)rangehandle length:(off_t)length; 18 | -(void)dealloc; 19 | -(void)resetByteStream; 20 | -(uint8_t)produceByteAtOffset:(off_t)pos; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /XADMaster/XADALZipParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADALZipParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | +(NSArray *)volumesForHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XADMaster/XADARCCrunchHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | typedef struct XADARCCrunchEntry 4 | { 5 | BOOL used; 6 | uint8_t byte; 7 | int next; 8 | int parent; 9 | } XADARCCrunchEntry; 10 | 11 | @interface XADARCCrunchHandle:CSByteStreamHandle 12 | { 13 | BOOL fast; 14 | 15 | int numfreecodes,sp,lastcode; 16 | uint8_t lastbyte; 17 | 18 | XADARCCrunchEntry table[4096]; 19 | uint8_t stack[4096]; 20 | } 21 | 22 | -(id)initWithHandle:(CSHandle *)handle useFastHash:(BOOL)usefast; 23 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length useFastHash:(BOOL)usefast; 24 | 25 | -(void)resetByteStream; 26 | -(uint8_t)produceByteAtOffset:(off_t)pos; 27 | -(void)updateTableWithParent:(int)parent byteValue:(int)byte; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /XADMaster/XADARCCrushHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | #import "LZW.h" 3 | 4 | @interface XADARCCrushHandle:CSByteStreamHandle 5 | { 6 | LZW *lzw; 7 | int symbolsize,nextsizebump; 8 | BOOL useliteralbit; 9 | 10 | int numrecentstrings,ringindex; 11 | BOOL stringring[500]; 12 | 13 | int usageindex; 14 | 15 | int currbyte; 16 | uint8_t buffer[8192]; 17 | uint8_t usage[8192]; 18 | } 19 | 20 | -(id)initWithHandle:(CSHandle *)handle; 21 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 22 | -(void)dealloc; 23 | 24 | -(void)resetByteStream; 25 | -(uint8_t)produceByteAtOffset:(off_t)pos; 26 | 27 | @end 28 | 29 | -------------------------------------------------------------------------------- /XADMaster/XADARCDistillHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADFastLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADARCDistillHandle:XADFastLZSSHandle 5 | { 6 | XADPrefixCode *maincode,*offsetcode; 7 | } 8 | 9 | -(id)initWithHandle:(CSHandle *)handle; 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 11 | -(void)dealloc; 12 | 13 | -(void)resetLZSSHandle; 14 | -(void)expandFromPosition:(off_t)pos; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADARCParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADARCParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data 9 | name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | 17 | 18 | @interface XADARCSFXParser:XADARCParser 19 | { 20 | } 21 | 22 | +(int)requiredHeaderSize; 23 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data 24 | name:(NSString *)name propertiesToAdd:(NSMutableDictionary *)props; 25 | 26 | -(void)parse; 27 | -(NSString *)formatName; 28 | 29 | @end 30 | 31 | -------------------------------------------------------------------------------- /XADMaster/XADARJFastestHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | 3 | @interface XADARJFastestHandle:XADLZSSHandle 4 | { 5 | } 6 | 7 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 8 | -(void)resetLZSSHandle; 9 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /XADMaster/XADARJParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADARJParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADAppleDouble.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | @interface XADAppleDouble:NSObject 4 | { 5 | } 6 | 7 | +(BOOL)parseAppleDoubleWithHandle:(CSHandle *)fh resourceForkOffset:(off_t *)resourceoffsetptr 8 | resourceForkLength:(off_t *)resourcelengthptr extendedAttributes:(NSDictionary **)extattrsptr; 9 | +(void)parseAppleDoubleExtendedAttributesWithHandle:(CSHandle *)fh intoDictionary:(NSMutableDictionary *)extattrs; 10 | 11 | +(void)writeAppleDoubleHeaderToHandle:(CSHandle *)fh resourceForkSize:(int)ressize 12 | extendedAttributes:(NSDictionary *)extattrs; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /XADMaster/XADAppleSingleParser.h: -------------------------------------------------------------------------------- 1 | #import "XADMacArchiveParser.h" 2 | 3 | @interface XADAppleSingleParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADArParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADArParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADBinHexParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | #import "CSByteStreamHandle.h" 3 | 4 | @interface XADBinHexParser:XADArchiveParser 5 | { 6 | } 7 | 8 | +(int)requiredHeaderSize; 9 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | 17 | 18 | 19 | @interface XADBinHexHandle:CSByteStreamHandle 20 | { 21 | uint32_t bytes; 22 | uint8_t prev_bits; 23 | int rle_byte,rle_num; 24 | } 25 | 26 | -(void)resetByteStream; 27 | -(uint8_t)produceByteAtOffset:(off_t)pos; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /XADMaster/XADBlockHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | 4 | @interface XADBlockHandle:CSHandle 5 | { 6 | CSHandle *parent; 7 | off_t currpos,length; 8 | 9 | int numblocks,blocksize; 10 | off_t *blockoffsets; 11 | } 12 | 13 | -(id)initWithHandle:(CSHandle *)handle blockSize:(int)size; 14 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)maxlength blockSize:(int)size; 15 | -(void)dealloc; 16 | 17 | //-(void)addBlockAt:(off_t)start; 18 | -(void)setBlockChain:(uint32_t *)blocktable numberOfBlocks:(int)totalblocks 19 | firstBlock:(uint32_t)first headerSize:(off_t)headersize; 20 | 21 | -(off_t)fileSize; 22 | -(off_t)offsetInFile; 23 | -(BOOL)atEndOfFile; 24 | 25 | -(void)seekToFileOffset:(off_t)offs; 26 | -(void)seekToEndOfFile; 27 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /XADMaster/XADBzip2Parser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADBzip2Parser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADCABBlockHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | #import "XADCABBlockReader.h" 3 | 4 | 5 | @interface XADCABBlockHandle:CSBlockStreamHandle 6 | { 7 | XADCABBlockReader *blocks; 8 | uint8_t inbuffer[32768+6144]; 9 | } 10 | 11 | -(id)initWithBlockReader:(XADCABBlockReader *)blockreader; 12 | -(void)dealloc; 13 | 14 | -(void)resetBlockStream; 15 | -(int)produceBlockAtOffset:(off_t)pos; 16 | 17 | -(void)resetCABBlockHandle; 18 | -(int)produceCABBlockWithInputBuffer:(uint8_t *)buffer length:(int)length atOffset:(off_t)pos length:(int)uncomplength; 19 | 20 | @end 21 | 22 | @interface XADCABCopyHandle:XADCABBlockHandle 23 | 24 | -(int)produceCABBlockWithInputBuffer:(uint8_t *)buffer length:(int)length atOffset:(off_t)pos length:(int)uncomplength; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /XADMaster/XADCABBlockReader.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | @interface XADCABBlockReader:NSObject 4 | { 5 | CSHandle *parent; 6 | int extbytes; 7 | 8 | int numfolders; 9 | off_t offsets[100]; 10 | int numblocks[100]; 11 | 12 | int currentfolder,currentblock; 13 | 14 | off_t complen,uncomplen; 15 | } 16 | 17 | -(id)initWithHandle:(CSHandle *)handle reservedBytes:(int)reserved; 18 | -(void)dealloc; 19 | 20 | -(void)addFolderAtOffset:(off_t)startoffs numberOfBlocks:(int)numblocks; 21 | -(void)scanLengths; 22 | 23 | -(CSHandle *)handle; 24 | -(off_t)compressedLength; 25 | -(off_t)uncompressedLength; 26 | 27 | -(void)restart; 28 | -(BOOL)readNextBlockToBuffer:(uint8_t *)buffer compressedLength:(int *)compptr 29 | uncompressedLength:(int *)uncompptr; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /XADMaster/XADCABParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADCABParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | +(NSArray *)volumesForHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(CSHandle *)handleForSolidStreamWithObject:(id)obj wantChecksum:(BOOL)checksum; 14 | -(NSString *)formatName; 15 | 16 | @end 17 | 18 | @interface XADCABSFXParser:XADCABParser 19 | { 20 | } 21 | 22 | +(int)requiredHeaderSize; 23 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data 24 | name:(NSString *)name propertiesToAdd:(NSMutableDictionary *)props; 25 | +(NSArray *)volumesForHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 26 | 27 | -(void)parse; 28 | -(NSString *)formatName; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /XADMaster/XADCFBFParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADCFBFParser:XADArchiveParser 4 | { 5 | int minsize,secsize,minisecsize; 6 | 7 | uint32_t rootdirectorynode,firstminisector; 8 | 9 | int numsectors,numminisectors; 10 | uint32_t *sectable,*minisectable; 11 | } 12 | 13 | +(int)requiredHeaderSize; 14 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 15 | 16 | -(void)parse; 17 | -(XADString *)decodeFileNameWithBytes:(uint8_t *)bytes length:(int)length; 18 | -(void)processEntry:(uint32_t)n atPath:(XADPath *)path entries:(NSArray *)entries; 19 | -(void)seekToSector:(uint32_t)sector; 20 | -(uint32_t)nextSectorAfter:(uint32_t)sector; 21 | 22 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 23 | -(NSString *)formatName; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /XADMaster/XADChecksumHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | #import "Checksums.h" 3 | #import "Progress.h" 4 | 5 | @interface XADChecksumHandle:CSStreamHandle 6 | { 7 | CSHandle *parent; 8 | uint32_t correctchecksum,summask,checksum; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length correctChecksum:(int)correct mask:(int)mask; 12 | -(void)dealloc; 13 | 14 | -(void)resetStream; 15 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 16 | 17 | -(BOOL)hasChecksum; 18 | -(BOOL)isChecksumCorrect; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /XADMaster/XADCompactProLZHHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADCompactProLZHHandle:XADLZSSHandle 5 | { 6 | XADPrefixCode *literalcode,*lengthcode,*offsetcode; 7 | int blocksize,blockcount; 8 | off_t blockstart; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle blockSize:(int)blocklen; 12 | -(void)dealloc; 13 | 14 | -(void)resetLZSSHandle; 15 | -(XADPrefixCode *)allocAndParseCodeOfSize:(int)size; 16 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /XADMaster/XADCompactProParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADCompactProParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(BOOL)parseDirectoryWithPath:(XADPath *)parent numberOfEntries:(int)numentries entryArray:(NSMutableArray *)entries; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XADMaster/XADCompactProRLEHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | 4 | @interface XADCompactProRLEHandle:CSByteStreamHandle 5 | { 6 | int saved,repeat; 7 | BOOL halfescaped; 8 | } 9 | 10 | -(void)resetByteStream; 11 | -(uint8_t)produceByteAtOffset:(off_t)pos; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XADMaster/XADCompressHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | #import "LZW.h" 3 | 4 | @interface XADCompressHandle:CSByteStreamHandle 5 | { 6 | BOOL blockmode; 7 | 8 | LZW *lzw; 9 | int symbolcounter; 10 | 11 | uint8_t *buffer,*bufferend; 12 | } 13 | 14 | -(id)initWithHandle:(CSHandle *)handle flags:(int)compressflags; 15 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length flags:(int)compressflags; 16 | -(void)dealloc; 17 | 18 | -(void)resetByteStream; 19 | -(uint8_t)produceByteAtOffset:(off_t)pos; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /XADMaster/XADCompressParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADCompressParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADCpioParser.h: -------------------------------------------------------------------------------- 1 | #import "XADMacArchiveParser.h" 2 | 3 | @interface XADCpioParser:XADMacArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parseWithSeparateMacForks; 11 | -(CSHandle *)rawHandleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | 16 | 17 | -------------------------------------------------------------------------------- /XADMaster/XADCrunchHandles.h: -------------------------------------------------------------------------------- 1 | #import "XADLibXADIOHandle.h" 2 | 3 | // Implementation using the old xadIO code from libxad, emulated through XADLibXADIOHandle 4 | // TODO: Re-implement these as cleaner code. Problem: no test cases. 5 | 6 | @interface XADCrunchZHandle:XADLibXADIOHandle 7 | { 8 | BOOL oldversion,haschecksum,checksumcorrect; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle old:(BOOL)old hasChecksum:(BOOL)checksum; 12 | -(xadINT32)unpackData; 13 | 14 | @end 15 | 16 | @interface XADCrunchYHandle:XADLibXADIOHandle 17 | { 18 | BOOL oldversion,haschecksum,checksumcorrect; 19 | } 20 | 21 | -(id)initWithHandle:(CSHandle *)handle old:(BOOL)old hasChecksum:(BOOL)checksum; 22 | -(xadINT32)unpackData; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /XADMaster/XADCrunchParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADCrunchParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(NSMutableDictionary *)parseWithHandle:(CSHandle *)fh endOffset:(off_t)end parser:(XADArchiveParser *)parser; 8 | +(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum handle:(CSHandle *)handle; 9 | 10 | +(int)requiredHeaderSize; 11 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 12 | 13 | -(void)parse; 14 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 15 | -(NSString *)formatName; 16 | 17 | @end 18 | 19 | -------------------------------------------------------------------------------- /XADMaster/XADDeltaHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADDeltaHandle:CSByteStreamHandle 4 | { 5 | uint8_t deltabuffer[256]; 6 | int distance; 7 | } 8 | 9 | -(id)initWithHandle:(CSHandle *)handle; 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 11 | -(id)initWithHandle:(CSHandle *)handle deltaDistance:(int)deltadistance; 12 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length deltaDistance:(int)deltadistance; 13 | -(id)initWithHandle:(CSHandle *)handle propertyData:(NSData *)propertydata; 14 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length propertyData:(NSData *)propertydata; 15 | 16 | -(void)resetByteStream; 17 | -(uint8_t)produceByteAtOffset:(off_t)pos; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /XADMaster/XADDiskDoublerADnHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | @interface XADDiskDoublerADnHandle:CSBlockStreamHandle 4 | { 5 | uint8_t outbuffer[8192]; 6 | } 7 | 8 | -(int)produceBlockAtOffset:(off_t)pos; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /XADMaster/XADDiskDoublerDDnHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADDiskDoublerDDnHandle:XADLZSSHandle 5 | { 6 | int blocksize; 7 | off_t blockend; 8 | int literalsleft; 9 | 10 | int correctxor; 11 | 12 | XADPrefixCode *lengthcode; 13 | 14 | uint8_t buffer[0x10000]; 15 | uint8_t *literalptr; 16 | uint16_t *offsetptr; 17 | off_t nextblock; 18 | 19 | BOOL checksumcorrect,uncompressed; 20 | } 21 | 22 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 23 | -(void)dealloc; 24 | 25 | -(void)resetLZSSHandle; 26 | -(int)nextLiteralOrOffset:(int *)offsetptr andLength:(int *)lengthptr atPosition:(off_t)pos; 27 | -(void)readBlockAtPosition:(off_t)pos; 28 | -(XADPrefixCode *)readCode; 29 | 30 | -(BOOL)hasChecksum; 31 | -(BOOL)isChecksumCorrect; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /XADMaster/XADDiskDoublerMethod2Handle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADDiskDoublerMethod2Handle:CSByteStreamHandle 4 | { 5 | int numtrees,currtree; 6 | 7 | struct 8 | { 9 | uint8_t parents[512]; 10 | uint16_t leftchildren[256]; 11 | uint16_t rightchildren[256]; 12 | } trees[256]; 13 | } 14 | 15 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length numberOfTrees:(int)num; 16 | 17 | -(void)resetByteStream; 18 | -(uint8_t)produceByteAtOffset:(off_t)pos; 19 | 20 | -(void)updateStateForByte:(int)byte; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /XADMaster/XADDiskDoublerParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADDiskDoublerParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(void)parseArchive; 12 | -(void)parseArchive2; 13 | -(uint32_t)parseFileHeaderWithHandle:(CSHandle *)fh name:(XADPath *)name; 14 | 15 | -(NSString *)nameForMethod:(int)method; 16 | 17 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 18 | -(NSString *)formatName; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /XADMaster/XADLArcHandles.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | 3 | @interface XADLArcLZSHandle:XADLZSSHandle 4 | { 5 | } 6 | 7 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 8 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 9 | 10 | @end 11 | 12 | @interface XADLArcLZ5Handle:XADLZSSHandle 13 | { 14 | int flags,flagbit; 15 | } 16 | 17 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 18 | -(void)resetLZSSHandle; 19 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /XADMaster/XADLBRParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADLBRParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /XADMaster/XADLZHDynamicHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | typedef struct XADLZHDynamicNode XADLZHDynamicNode; 5 | 6 | struct XADLZHDynamicNode 7 | { 8 | XADLZHDynamicNode *parent,*leftchild,*rightchild; 9 | int index,freq,value; 10 | }; 11 | 12 | @interface XADLZHDynamicHandle:XADLZSSHandle 13 | { 14 | XADPrefixCode *distancecode; 15 | XADLZHDynamicNode *nodes[314*2-1],nodestorage[314*2-1]; 16 | } 17 | 18 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 19 | -(void)dealloc; 20 | 21 | -(void)resetLZSSHandle; 22 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 23 | 24 | -(void)updateNode:(XADLZHDynamicNode *)node; 25 | -(void)rearrangeNode:(XADLZHDynamicNode *)node; 26 | -(void)reconstructTree; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /XADMaster/XADLZHOldHandles.h: -------------------------------------------------------------------------------- 1 | #import "XADLibXADIOHandle.h" 2 | 3 | // Implementation using the old xadIO code from libxad, emulated through XADLibXADIOHandle 4 | // TODO: Re-implement these as cleaner code. Problem: no test cases. 5 | 6 | @interface XADLZH2Handle:XADLibXADIOHandle {} 7 | -(xadINT32)unpackData; 8 | @end 9 | 10 | @interface XADLZH3Handle:XADLibXADIOHandle {} 11 | -(xadINT32)unpackData; 12 | @end 13 | 14 | @interface XADPMArc2Handle:XADLibXADIOHandle {} 15 | -(xadINT32)unpackData; 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADLZHParser.h: -------------------------------------------------------------------------------- 1 | #import "XADMacArchiveParser.h" 2 | 3 | @interface XADLZHParser:XADMacArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parseWithSeparateMacForks; 11 | -(void)parseExtendedForDictionary:(NSMutableDictionary *)dict size:(int)size; 12 | 13 | -(CSHandle *)rawHandleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 14 | -(NSString *)formatName; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADLZHSFXParsers.h: -------------------------------------------------------------------------------- 1 | #import "XADLZHParser.h" 2 | 3 | @interface XADLZHAmigaSFXParser:XADLZHParser 4 | { 5 | BOOL lha150r; 6 | } 7 | 8 | +(int)requiredHeaderSize; 9 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | -(void)parse; 11 | -(CSHandle *)handleAtDataOffsetForDictionary:(NSDictionary *)dict; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | 16 | @interface XADLZHCommodore64SFXParser:XADLZHParser 17 | { 18 | } 19 | 20 | +(int)requiredHeaderSize; 21 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 22 | -(void)parse; 23 | -(NSString *)formatName; 24 | 25 | @end 26 | 27 | @interface XADLZHSFXParser:XADLZHParser 28 | { 29 | } 30 | 31 | +(int)requiredHeaderSize; 32 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 33 | -(void)parse; 34 | -(NSString *)formatName; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /XADMaster/XADLZHStaticHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADLZHStaticHandle:XADLZSSHandle 5 | { 6 | XADPrefixCode *literalcode,*distancecode; 7 | int blocksize,blockpos; 8 | int windowbits; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length windowBits:(int)bits; 12 | -(void)dealloc; 13 | 14 | -(void)resetLZSSHandle; 15 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 16 | 17 | -(XADPrefixCode *)allocAndParseCodeOfWidth:(int)bits specialIndex:(int)specialindex; 18 | -(XADPrefixCode *)allocAndParseLiteralCode; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /XADMaster/XADLZMA2Handle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | #if !__LP64__ 4 | #define _LZMA_UINT32_IS_ULONG 5 | #endif 6 | 7 | #define Byte LzmaByte 8 | #define UInt16 LzmaUInt16 9 | #define UInt32 LzmaUInt32 10 | #define UInt64 LzmaUInt64 11 | #import "lzma/Lzma2Dec.h" 12 | #undef Byte 13 | #undef UInt32 14 | #undef UInt16 15 | #undef UInt64 16 | 17 | @interface XADLZMA2Handle:CSStreamHandle 18 | { 19 | CSHandle *parent; 20 | off_t startoffs; 21 | 22 | CLzma2Dec lzma; 23 | 24 | uint8_t inbuffer[16*1024]; 25 | int bufbytes,bufoffs; 26 | BOOL seekback; 27 | } 28 | 29 | -(id)initWithHandle:(CSHandle *)handle propertyData:(NSData *)propertydata; 30 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length propertyData:(NSData *)propertydata; 31 | -(void)dealloc; 32 | 33 | -(void)setSeekBackAtEOF:(BOOL)seekateof; 34 | 35 | -(void)resetStream; 36 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /XADMaster/XADLZMAAloneParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADLZMAAloneParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADLZMAHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | #if !__LP64__ 4 | #define _LZMA_UINT32_IS_ULONG 5 | #endif 6 | 7 | #define Byte LzmaByte 8 | #define UInt16 LzmaUInt16 9 | #define UInt32 LzmaUInt32 10 | #define UInt64 LzmaUInt64 11 | #import "lzma/LzmaDec.h" 12 | #undef Byte 13 | #undef UInt32 14 | #undef UInt16 15 | #undef UInt64 16 | 17 | @interface XADLZMAHandle:CSStreamHandle 18 | { 19 | CSHandle *parent; 20 | off_t startoffs; 21 | 22 | CLzmaDec lzma; 23 | 24 | uint8_t inbuffer[16*1024]; 25 | int bufbytes,bufoffs; 26 | } 27 | 28 | -(id)initWithHandle:(CSHandle *)handle propertyData:(NSData *)propertydata; 29 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length propertyData:(NSData *)propertydata; 30 | -(void)dealloc; 31 | 32 | -(void)resetStream; 33 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /XADMaster/XADLZXHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADLZXHandle:XADLZSSHandle 5 | { 6 | XADPrefixCode *maincode,*offsetcode; 7 | 8 | int blocktype,lastoffs; 9 | off_t blockend; 10 | int mainlengths[768]; 11 | } 12 | 13 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 14 | -(void)dealloc; 15 | 16 | -(void)resetLZSSHandle; 17 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 18 | 19 | -(void)readBlockHeaderAtPosition:(off_t)pos; 20 | -(void)readDeltaLengths:(int *)lengths count:(int)count alternateMode:(BOOL)altmode; 21 | 22 | @end 23 | 24 | 25 | @interface XADLZXSwapHandle:CSByteStreamHandle 26 | { 27 | uint8_t otherbyte; 28 | } 29 | 30 | -(uint8_t)produceByteAtOffset:(off_t)pos; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /XADMaster/XADLZXParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADLZXParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(CSHandle *)handleForSolidStreamWithObject:(id)obj wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XADMaster/XADMSLZXHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADCABBlockHandle.h" 2 | #import "XADPrefixCode.h" 3 | #import "LZSS.h" 4 | 5 | @interface XADMSLZXHandle:XADCABBlockHandle 6 | { 7 | LZSS lzss; 8 | 9 | XADPrefixCode *maincode,*lengthcode,*offsetcode; 10 | 11 | int numslots; 12 | BOOL headerhasbeenread,ispreprocessed; 13 | int32_t preprocesssize; 14 | 15 | off_t inputpos; 16 | 17 | int blocktype; 18 | off_t blockend; 19 | int r0,r1,r2; 20 | int mainlengths[256+50*8],lengthlengths[249]; 21 | 22 | uint8_t outbuffer[32768]; 23 | } 24 | 25 | -(id)initWithBlockReader:(XADCABBlockReader *)blockreader windowBits:(int)windowbits; 26 | -(void)dealloc; 27 | 28 | -(void)resetCABBlockHandle; 29 | -(int)produceCABBlockWithInputBuffer:(uint8_t *)buffer length:(int)length atOffset:(off_t)pos length:(int)uncomplength; 30 | 31 | -(void)readBlockHeaderAtPosition:(off_t)pos; 32 | -(void)readDeltaLengths:(int *)lengths count:(int)count alternateMode:(BOOL)altmode; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /XADMaster/XADMSZipHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADCABBlockHandle.h" 2 | 3 | @interface XADMSZipHandle:XADCABBlockHandle 4 | { 5 | uint8_t outbuffer[32768]; 6 | int lastlength; 7 | } 8 | 9 | -(int)produceCABBlockWithInputBuffer:(uint8_t *)buffer length:(int)length atOffset:(off_t)pos length:(int)uncomplength; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /XADMaster/XADMacBinaryParser.h: -------------------------------------------------------------------------------- 1 | #import "XADMacArchiveParser.h" 2 | 3 | @interface XADMacBinaryParser:XADMacArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parseWithSeparateMacForks; 11 | -(CSHandle *)rawHandleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADMaster_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'XADMaster' target in the 'XADMaster' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | #if !NSINTEGER_DEFINED && !defined(__COCOTRON__) 10 | typedef int NSInteger; 11 | typedef unsigned int NSUInteger; 12 | #endif 13 | -------------------------------------------------------------------------------- /XADMaster/XADNDSParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADNDSParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADNSAParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | #import "XADLZSSHandle.h" 3 | 4 | @interface XADNSAParser:XADArchiveParser 5 | { 6 | } 7 | 8 | +(int)requiredHeaderSize; 9 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | 17 | @interface XADNSALZSSHandle:XADLZSSHandle 18 | { 19 | } 20 | 21 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 22 | -(void)resetLZSSHandle; 23 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /XADMaster/XADNowCompressHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | @interface XADNowCompressHandle:CSBlockStreamHandle 4 | { 5 | CSHandle *parent; 6 | 7 | NSMutableArray *files; 8 | int nextfile; 9 | 10 | struct 11 | { 12 | uint32_t offset,length; 13 | int flags; 14 | } *blocks; 15 | int maxblocks,numblocks,nextblock; 16 | 17 | uint8_t inblock[0x8000],outblock[0x10000],dictionarycache[0x8000]; 18 | } 19 | 20 | -(id)initWithHandle:(CSHandle *)handle files:(NSMutableArray *)filesarray; 21 | 22 | -(void)resetBlockStream; 23 | 24 | -(BOOL)parseAndCheckFileHeaderWithHeaderOffset:(uint32_t)headeroffset 25 | firstOffset:(uint32_t)firstoffset delta:(int32_t)delta; 26 | -(int)findFileHeaderDeltaWithHeaderOffset:(uint32_t)headeroffset firstOffset:(uint32_t)firstoffset; 27 | -(BOOL)readNextFileHeader; 28 | -(int)produceBlockAtOffset:(off_t)pos; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /XADMaster/XADNowCompressParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADNowCompressParser:XADArchiveParser 4 | { 5 | int totalentries,currentries; 6 | NSMutableArray *entries,*filesarray; 7 | off_t solidoffset; 8 | } 9 | 10 | +(int)requiredHeaderSize; 11 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 12 | 13 | -(void)parse; 14 | -(void)parseDirectoryWithParent:(XADPath *)parent numberOfEntries:(int)numentries; 15 | 16 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 17 | -(NSString *)formatName; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /XADMaster/XADPNGWriter.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface XADPNGWriter:NSObject 5 | { 6 | NSMutableData *data; 7 | int bytesperrow; 8 | 9 | z_stream zs; 10 | BOOL streaminited; 11 | 12 | int idatstart; 13 | } 14 | 15 | +(XADPNGWriter *)PNGWriter; 16 | 17 | -(id)init; 18 | -(void)dealloc; 19 | 20 | -(NSData *)data; 21 | 22 | -(void)addIHDRWithWidth:(int)width height:(int)height bitDepth:(int)bitdepth 23 | colourType:(int)colourtype; 24 | -(void)addIEND; 25 | -(void)addChunk:(uint32_t)chunktype bytes:(uint8_t *)bytes length:(int)length; 26 | 27 | -(void)startIDAT; 28 | -(void)addIDATRow:(uint8_t *)bytes; 29 | -(void)endIDAT; 30 | 31 | @end 32 | 33 | -------------------------------------------------------------------------------- /XADMaster/XADPPMdParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADPPMdParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADPaddedBlockHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | 4 | @interface XADPaddedBlockHandle:CSHandle 5 | { 6 | CSHandle *parent; 7 | off_t startoffset; 8 | int logicalsize,physicalsize; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle startOffset:(off_t)start 12 | logicalBlockSize:(int)logical physicalBlockSize:(int)physical; 13 | -(void)dealloc; 14 | 15 | -(off_t)fileSize; 16 | -(off_t)offsetInFile; 17 | -(BOOL)atEndOfFile; 18 | 19 | -(void)seekToFileOffset:(off_t)offs; 20 | -(void)seekToEndOfFile; 21 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /XADMaster/XADPowerPackerParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADPowerPackerParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /XADMaster/XADRAR13CryptHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADRAR13CryptHandle:CSByteStreamHandle 4 | { 5 | NSData *password; 6 | 7 | uint8_t key1,key2,key3; 8 | } 9 | 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length password:(NSData *)passdata; 11 | -(void)dealloc; 12 | 13 | -(void)resetByteStream; 14 | -(uint8_t)produceByteAtOffset:(off_t)pos; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADRAR15CryptHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADRAR15CryptHandle:CSByteStreamHandle 4 | { 5 | NSData *password; 6 | 7 | uint16_t key0,key1,key2,key3; 8 | } 9 | 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length password:(NSData *)passdata; 11 | -(void)dealloc; 12 | 13 | -(void)resetByteStream; 14 | -(uint8_t)produceByteAtOffset:(off_t)pos; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADRAR20CryptHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | @interface XADRAR20CryptHandle:CSBlockStreamHandle 4 | { 5 | CSHandle *parent; 6 | off_t startoffs; 7 | NSData *password; 8 | 9 | uint8_t outblock[16]; 10 | uint32_t key[4]; 11 | uint8_t table[256]; 12 | } 13 | 14 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length password:(NSData *)passdata; 15 | -(void)dealloc; 16 | 17 | -(void)resetBlockStream; 18 | -(void)calculateKey; 19 | -(int)produceBlockAtOffset:(off_t)pos; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /XADMaster/XADRAR20Handle.h: -------------------------------------------------------------------------------- 1 | #import "XADFastLZSSHandle.h" 2 | #import "XADRARParser.h" 3 | #import "XADPrefixCode.h" 4 | #import "RARAudioDecoder.h" 5 | 6 | @interface XADRAR20Handle:XADFastLZSSHandle 7 | { 8 | XADRARParser *parser; 9 | 10 | NSArray *files; 11 | int file; 12 | off_t endpos; 13 | 14 | XADPrefixCode *maincode,*offsetcode,*lengthcode; 15 | XADPrefixCode *audiocode[4]; 16 | 17 | int lastoffset,lastlength; 18 | int oldoffset[4],oldoffsetindex; 19 | 20 | BOOL audioblock; 21 | int channel,channeldelta,numchannels; 22 | RAR20AudioState audiostate[4]; 23 | 24 | int lengthtable[1028]; 25 | } 26 | 27 | -(id)initWithRARParser:(XADRARParser *)parent files:(NSArray *)filearray; 28 | -(void)dealloc; 29 | 30 | -(void)resetLZSSHandle; 31 | -(void)startNextFile; 32 | -(void)expandFromPosition:(off_t)pos; 33 | -(void)allocAndParseCodes; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /XADMaster/XADRARAESHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | #import 3 | 4 | @interface XADRARAESHandle:CSBlockStreamHandle 5 | { 6 | CSHandle *parent; 7 | off_t startoffs; 8 | 9 | AES_KEY key; 10 | uint8_t iv[16],xorblock[16],buffer[65536]; 11 | } 12 | 13 | +(NSData *)keyForPassword:(NSString *)password salt:(NSData *)salt brokenHash:(BOOL)brokenhash; 14 | 15 | -(id)initWithHandle:(CSHandle *)handle key:(NSData *)keydata; 16 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length key:(NSData *)keydata; 17 | -(void)dealloc; 18 | 19 | -(void)resetBlockStream; 20 | -(int)produceBlockAtOffset:(off_t)pos; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /XADMaster/XADRARInputHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | #import "XADRARParser.h" 3 | 4 | @interface XADRARInputHandle:CSStreamHandle 5 | { 6 | XADRARParser *parser; 7 | NSArray *parts; 8 | 9 | int part; 10 | off_t partend; 11 | 12 | uint32_t crc,correctcrc; 13 | } 14 | 15 | -(id)initWithRARParser:(XADRARParser *)parent parts:(NSArray *)partarray; 16 | -(void)dealloc; 17 | 18 | -(void)resetStream; 19 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 20 | 21 | -(void)startNextPart; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /XADMaster/XADRC4Handle.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "CSStreamHandle.h" 3 | 4 | @class XADRC4Engine; 5 | 6 | @interface XADRC4Handle:CSStreamHandle 7 | { 8 | CSHandle *parent; 9 | off_t startoffs; 10 | NSData *key; 11 | XADRC4Engine *rc4; 12 | } 13 | 14 | -(id)initWithHandle:(CSHandle *)handle key:(NSData *)keydata; 15 | -(void)dealloc; 16 | 17 | -(void)resetStream; 18 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 19 | 20 | @end 21 | 22 | @interface XADRC4Engine:NSObject 23 | { 24 | uint8_t s[256]; 25 | int i,j; 26 | } 27 | 28 | +(XADRC4Engine *)engineWithKey:(NSData *)key; 29 | 30 | -(id)initWithKey:(NSData *)key; 31 | 32 | -(NSData *)encryptedData:(NSData *)data; 33 | 34 | -(void)encryptBytes:(unsigned char *)bytes length:(int)length; 35 | -(void)skipBytes:(int)length; 36 | 37 | @end 38 | 39 | -------------------------------------------------------------------------------- /XADMaster/XADRLE90Handle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADRLE90Handle:CSByteStreamHandle 4 | { 5 | int repeatedbyte,count; 6 | } 7 | 8 | -(void)resetByteStream; 9 | -(uint8_t)produceByteAtOffset:(off_t)pos; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /XADMaster/XADRLE90Handle.m: -------------------------------------------------------------------------------- 1 | #import "XADRLE90Handle.h" 2 | #import "XADException.h" 3 | 4 | @implementation XADRLE90Handle 5 | 6 | -(void)resetByteStream 7 | { 8 | repeatedbyte=count=0; 9 | } 10 | 11 | -(uint8_t)produceByteAtOffset:(off_t)pos 12 | { 13 | if(count) 14 | { 15 | count--; 16 | return repeatedbyte; 17 | } 18 | else 19 | { 20 | if(CSInputAtEOF(input)) CSByteStreamEOF(self); 21 | 22 | uint8_t b=CSInputNextByte(input); 23 | 24 | if(b!=0x90) return repeatedbyte=b; 25 | else 26 | { 27 | uint8_t c=CSInputNextByte(input); 28 | if(c==0) return repeatedbyte=0x90; 29 | else 30 | { 31 | if(c==1) [XADException raiseDecrunchException]; 32 | count=c-2; 33 | return repeatedbyte; 34 | } 35 | } 36 | } 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /XADMaster/XADRPMParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADRPMParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | 16 | 17 | -------------------------------------------------------------------------------- /XADMaster/XADSARParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADSARParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | 10 | -(void)parse; 11 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /XADMaster/XADSkipHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | typedef struct XADSkipRegion 4 | { 5 | off_t actual,skip; 6 | } XADSkipRegion; 7 | 8 | //static inline XADSkip XADMakeSkip(off_t start,off_t length) { XADSkip skip={start,length}; return skip; } 9 | 10 | @interface XADSkipHandle:CSHandle 11 | { 12 | CSHandle *parent; 13 | XADSkipRegion *regions; 14 | int numregions; 15 | } 16 | 17 | -(id)initWithHandle:(CSHandle *)handle; 18 | -(id)initAsCopyOf:(XADSkipHandle *)other; 19 | -(void)dealloc; 20 | 21 | -(void)addSkipFrom:(off_t)start length:(off_t)length; 22 | -(void)addSkipFrom:(off_t)start to:(off_t)end; 23 | -(off_t)actualOffsetForSkipOffset:(off_t)skipoffset; 24 | -(off_t)skipOffsetForActualOffset:(off_t)actualoffset; 25 | 26 | -(off_t)fileSize; 27 | -(off_t)offsetInFile; 28 | -(BOOL)atEndOfFile; 29 | 30 | -(void)seekToFileOffset:(off_t)offs; 31 | -(void)seekToEndOfFile; 32 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /XADMaster/XADSplitFileParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADSplitFileParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | +(NSArray *)volumesForHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XADMaster/XADSqueezeHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADSqueezeHandle:CSByteStreamHandle 5 | { 6 | XADPrefixCode *code; 7 | } 8 | 9 | -(void)resetByteStream; 10 | -(uint8_t)produceByteAtOffset:(off_t)pos; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /XADMaster/XADSqueezeParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | BOOL IsSqueezeHeader(const uint8_t *bytes,int length); 4 | 5 | @interface XADSqueezeParser:XADArchiveParser 6 | { 7 | } 8 | 9 | +(NSMutableDictionary *)parseWithHandle:(CSHandle *)fh endOffset:(off_t)end parser:(XADArchiveParser *)parser; 10 | +(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum handle:(CSHandle *)handle; 11 | 12 | +(int)requiredHeaderSize; 13 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 14 | 15 | -(void)parse; 16 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 17 | -(NSString *)formatName; 18 | 19 | @end 20 | 21 | -------------------------------------------------------------------------------- /XADMaster/XADStacLZSHandle.h: -------------------------------------------------------------------------------- 1 | #import "XADFastLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADStacLZSHandle:XADFastLZSSHandle 5 | { 6 | XADPrefixCode *lengthcode; 7 | int extralength,extraoffset; 8 | } 9 | 10 | -(id)initWithHandle:(CSHandle *)handle; 11 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 12 | -(void)dealloc; 13 | 14 | -(void)resetLZSSHandle; 15 | -(void)expandFromPosition:(off_t)pos; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /XADMaster/XADStuffIt13Handle.h: -------------------------------------------------------------------------------- 1 | #import "XADLZSSHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADStuffIt13Handle:XADLZSSHandle 5 | { 6 | XADPrefixCode *firstcode,*secondcode,*offsetcode; 7 | XADPrefixCode *currcode; 8 | } 9 | 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 11 | -(void)dealloc; 12 | 13 | -(void)resetLZSSHandle; 14 | -(XADPrefixCode *)allocAndParseCodeOfSize:(int)numcodes metaCode:(XADPrefixCode *)metacode; 15 | -(int)nextLiteralOrOffset:(int *)offset andLength:(int *)length atPosition:(off_t)pos; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /XADMaster/XADStuffIt5Parser.h: -------------------------------------------------------------------------------- 1 | #import "XADStuffItParser.h" 2 | 3 | @interface XADStuffIt5Parser:XADStuffItParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | -(void)parse; 10 | -(void)parseWithNumberOfTopLevelEntries:(int)numentries; 11 | -(NSString *)formatName; 12 | 13 | @end 14 | 15 | @interface XADStuffIt5ExeParser:XADStuffIt5Parser 16 | { 17 | } 18 | 19 | +(int)requiredHeaderSize; 20 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 21 | -(void)parse; 22 | 23 | @end 24 | 25 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItHuffmanHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | #import "XADPrefixCode.h" 3 | 4 | @interface XADStuffItHuffmanHandle:CSByteStreamHandle 5 | { 6 | XADPrefixCode *code; 7 | } 8 | 9 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 10 | -(void)dealloc; 11 | 12 | -(void)resetByteStream; 13 | -(void)parseTree; 14 | -(uint8_t)produceByteAtOffset:(off_t)pos; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItHuffmanHandle.m: -------------------------------------------------------------------------------- 1 | #import "XADStuffItHuffmanHandle.h" 2 | 3 | @implementation XADStuffItHuffmanHandle 4 | 5 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length 6 | { 7 | if((self=[super initWithHandle:handle length:length])) 8 | { 9 | code=nil; 10 | } 11 | return self; 12 | } 13 | 14 | -(void)dealloc 15 | { 16 | [code release]; 17 | [super dealloc]; 18 | } 19 | 20 | -(void)resetByteStream 21 | { 22 | [code release]; 23 | code=[XADPrefixCode new]; 24 | 25 | [code startBuildingTree]; 26 | [self parseTree]; 27 | } 28 | 29 | -(void)parseTree 30 | { 31 | if(CSInputNextBit(input)==1) 32 | { 33 | [code makeLeafWithValue:CSInputNextBitString(input,8)]; 34 | } 35 | else 36 | { 37 | [code startZeroBranch]; 38 | [self parseTree]; 39 | [code startOneBranch]; 40 | [self parseTree]; 41 | [code finishBranches]; 42 | } 43 | } 44 | 45 | -(uint8_t)produceByteAtOffset:(off_t)pos 46 | { 47 | return CSInputNextSymbolUsingCode(input,code); 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItOldHandles.h: -------------------------------------------------------------------------------- 1 | #import "XADLibXADIOHandle.h" 2 | 3 | // Implementation using the old xadIO code from libxad, emulated through XADLibXADIOHandle 4 | // TODO: Re-implement these as cleaner code. Problem: no test cases. 5 | 6 | @interface XADStuffItMWHandle:XADLibXADIOHandle {} 7 | -(xadINT32)unpackData; 8 | @end 9 | 10 | @interface XADStuffIt14Handle:XADLibXADIOHandle {} 11 | -(xadINT32)unpackData; 12 | @end 13 | 14 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADStuffItParser:XADArchiveParser 4 | { 5 | } 6 | 7 | -(void)parse; 8 | -(XADString *)nameOfCompressionMethod:(int)method; 9 | 10 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 11 | -(CSHandle *)decryptHandleForEntryWithDictionary:(NSDictionary *)dict handle:(CSHandle *)fh; 12 | -(NSString *)formatName; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItRLEHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADStuffItRLEHandle:CSByteStreamHandle 4 | { 5 | int byte,count; 6 | } 7 | 8 | -(void)resetByteStream; 9 | -(uint8_t)produceByteAtOffset:(off_t)pos; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItRLEHandle.m: -------------------------------------------------------------------------------- 1 | #import "XADStuffItRLEHandle.h" 2 | #import "XADException.h" 3 | 4 | @implementation XADStuffItRLEHandle 5 | 6 | -(void)resetByteStream 7 | { 8 | byte=count=0; 9 | } 10 | 11 | -(uint8_t)produceByteAtOffset:(off_t)pos 12 | { 13 | if(count) 14 | { 15 | count--; 16 | return byte; 17 | } 18 | else 19 | { 20 | uint8_t b=CSInputNextByte(input); 21 | 22 | if(b!=0x90) return byte=b; 23 | else 24 | { 25 | uint8_t c=CSInputNextByte(input); 26 | if(c==0) return byte=0x90; 27 | else 28 | { 29 | if(c==1) [XADException raiseDecrunchException]; 30 | count=c-2; 31 | return byte; 32 | } 33 | } 34 | } 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItSplitParser.h: -------------------------------------------------------------------------------- 1 | #import "XADArchiveParser.h" 2 | 3 | @interface XADStuffItSplitParser:XADArchiveParser 4 | { 5 | } 6 | 7 | +(int)requiredHeaderSize; 8 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 9 | +(NSArray *)volumesForHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 10 | 11 | -(void)parse; 12 | -(CSHandle *)handleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 13 | -(NSString *)formatName; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXBlendHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | @interface XADStuffItXBlendHandle:CSStreamHandle 4 | { 5 | CSHandle *parent; 6 | CSHandle *currhandle; 7 | CSInputBuffer *currinput; 8 | } 9 | 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 11 | -(void)dealloc; 12 | 13 | -(void)resetStream; 14 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXBlockHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | @interface XADStuffItXBlockHandle:CSBlockStreamHandle 4 | { 5 | CSHandle *parent; 6 | off_t startoffs; 7 | uint8_t *buffer; 8 | size_t currsize; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle; 12 | -(void)dealloc; 13 | 14 | -(void)resetBlockStream; 15 | -(int)produceBlockAtOffset:(off_t)pos; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXBlockHandle.m: -------------------------------------------------------------------------------- 1 | #import "XADStuffItXBlockHandle.h" 2 | #import "StuffItXUtilities.h" 3 | 4 | @implementation XADStuffItXBlockHandle 5 | 6 | -(id)initWithHandle:(CSHandle *)handle 7 | { 8 | if((self=[super initWithName:[handle name]])) 9 | { 10 | parent=[handle retain]; 11 | startoffs=[parent offsetInFile]; 12 | buffer=NULL; 13 | currsize=0; 14 | } 15 | return self; 16 | } 17 | 18 | -(void)dealloc 19 | { 20 | free(buffer); 21 | [parent release]; 22 | [super dealloc]; 23 | } 24 | 25 | -(void)resetBlockStream 26 | { 27 | [parent seekToFileOffset:startoffs]; 28 | } 29 | 30 | -(int)produceBlockAtOffset:(off_t)pos 31 | { 32 | int size=ReadSitxP2(parent); 33 | if(!size) return -1; 34 | 35 | if(size>currsize) 36 | { 37 | free(buffer); 38 | buffer=malloc(size); 39 | currsize=size; 40 | [self setBlockPointer:buffer]; 41 | } 42 | 43 | return [parent readAtMost:size toBuffer:buffer]; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXCyanideHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | @interface XADStuffItXCyanideHandle:CSBlockStreamHandle 4 | { 5 | uint8_t *block,*sorted; 6 | uint32_t *table; 7 | size_t currsize; 8 | } 9 | 10 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 11 | -(void)dealloc; 12 | 13 | -(void)resetBlockStream; 14 | -(int)produceBlockAtOffset:(off_t)pos; 15 | 16 | -(void)readTernaryCodedBlock:(int)blocksize numberOfSymbols:(int)numsymbols; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXEnglishHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADStuffItXEnglishHandle:CSByteStreamHandle 4 | { 5 | uint8_t esccode,wordcode,firstcode,uppercode; 6 | BOOL caseflag; 7 | 8 | uint8_t wordbuf[33]; 9 | int wordoffs,wordlen; 10 | } 11 | 12 | -(void)resetByteStream; 13 | -(uint8_t)produceByteAtOffset:(off_t)pos; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXIronHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | @interface XADStuffItXIronHandle:CSBlockStreamHandle 4 | { 5 | uint8_t *block,*sorted; 6 | uint32_t *table; 7 | size_t currsize; 8 | 9 | int st4transform,fancymtf; 10 | 11 | int maxfreq1,maxfreq2,maxfreq3; 12 | int byteshift1,byteshift2,byteshift3; 13 | int countshift1,countshift2,countshift3; 14 | } 15 | 16 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 17 | -(void)dealloc; 18 | 19 | -(void)resetBlockStream; 20 | -(int)produceBlockAtOffset:(off_t)pos; 21 | 22 | -(void)decodeBlockWithLength:(int)blocksize; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /XADMaster/XADStuffItXX86Handle.h: -------------------------------------------------------------------------------- 1 | #import "CSByteStreamHandle.h" 2 | 3 | @interface XADStuffItXX86Handle:CSByteStreamHandle 4 | { 5 | off_t lasthit; 6 | uint32_t bitfield; 7 | 8 | int numbufferbytes,currbufferbyte; 9 | uint8_t buffer[4]; 10 | } 11 | 12 | -(void)resetByteStream; 13 | -(uint8_t)produceByteAtOffset:(off_t)pos; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /XADMaster/XADTarParser.h: -------------------------------------------------------------------------------- 1 | #import "XADMacArchiveParser.h" 2 | #import "XADTarSparseHandle.h" 3 | 4 | // TODO later: Multivolume tar. 5 | 6 | @interface XADTarParser:XADMacArchiveParser 7 | { 8 | NSData *currentGlobalHeader; 9 | } 10 | 11 | +(int)requiredHeaderSize; 12 | +(BOOL)recognizeFileWithHandle:(CSHandle *)handle firstBytes:(NSData *)data name:(NSString *)name; 13 | +(uint64_t)readOctalNumberInRangeFromBuffer:(NSRange)range buffer:(NSData *)buffer; 14 | +(BOOL)isTarChecksumCorrect:(NSData *)header checksum:(int)checksum; 15 | 16 | -(void)dealloc; 17 | 18 | -(void)parseWithSeparateMacForks; 19 | -(CSHandle *)rawHandleForEntryWithDictionary:(NSDictionary *)dict wantChecksum:(BOOL)checksum; 20 | -(NSString *)formatName; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /XADMaster/XADTarSparseHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | typedef struct XADTarSparseRegion 4 | { 5 | int nextRegion; 6 | off_t offset; 7 | off_t size; 8 | BOOL hasData; 9 | off_t dataOffset; 10 | } XADTarSparseRegion; 11 | 12 | @interface XADTarSparseHandle:CSHandle 13 | { 14 | CSHandle *parent; 15 | XADTarSparseRegion *regions; 16 | int numRegions; 17 | int currentRegion; 18 | off_t currentOffset; 19 | off_t realFileSize; 20 | } 21 | 22 | -(id)initWithHandle:(CSHandle *)handle size:(off_t)size; 23 | -(id)initAsCopyOf:(XADTarSparseHandle *)other; 24 | -(void)dealloc; 25 | 26 | -(void)addSparseRegionFrom:(off_t)start length:(off_t)length; 27 | -(void)addFinalSparseRegionEndingAt:(off_t)regionEndsAt; 28 | -(void)setSingleEmptySparseRegion; 29 | 30 | -(off_t)fileSize; 31 | -(off_t)offsetInFile; 32 | -(BOOL)atEndOfFile; 33 | 34 | -(void)seekToFileOffset:(off_t)offs; 35 | -(void)seekToEndOfFile; 36 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 37 | 38 | @end -------------------------------------------------------------------------------- /XADMaster/XADWinZipAESHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | 3 | #import 4 | #import 5 | 6 | @interface XADWinZipAESHandle:CSStreamHandle 7 | { 8 | CSHandle *parent; 9 | NSData *password; 10 | int keybytes; 11 | off_t startoffs; 12 | 13 | AES_KEY key; 14 | uint8_t counter[16],aesbuffer[16]; 15 | HMAC_CTX hmac; 16 | BOOL hmac_inited,hmac_done,hmac_correct; 17 | } 18 | 19 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length password:(NSData *)passdata keyLength:(int)keylength; 20 | -(void)dealloc; 21 | 22 | -(void)resetStream; 23 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /XADMaster/XADWinZipJPEGHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | #import "WinZipJPEG/Decompressor.h" 4 | 5 | @interface XADWinZipJPEGHandle:CSBlockStreamHandle 6 | { 7 | WinZipJPEGDecompressor *decompressor; 8 | uint8_t buffer[65536]; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 12 | -(void)dealloc; 13 | 14 | -(void)resetBlockStream; 15 | -(int)produceBlockAtOffset:(off_t)pos; 16 | 17 | @end 18 | 19 | -------------------------------------------------------------------------------- /XADMaster/XADWinZipWavPackHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSBlockStreamHandle.h" 2 | 3 | #import "wavpack/wavpack.h" 4 | 5 | @interface XADWinZipWavPackHandle:CSBlockStreamHandle 6 | { 7 | WavpackContext *context; 8 | BOOL header; 9 | int headerlength; 10 | uint8_t *buffer; 11 | } 12 | 13 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length; 14 | -(void)dealloc; 15 | 16 | -(void)resetBlockStream; 17 | -(int)produceBlockAtOffset:(off_t)pos; 18 | 19 | @end 20 | 21 | -------------------------------------------------------------------------------- /XADMaster/XADXORHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSHandle.h" 2 | 3 | @interface XADXORHandle:CSHandle 4 | { 5 | CSHandle *parent; 6 | NSData *password; 7 | const uint8_t *passwordbytes; 8 | int passwordlength; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle password:(NSData *)passdata; 12 | -(id)initAsCopyOf:(XADXORHandle *)other; 13 | -(void)dealloc; 14 | 15 | -(off_t)fileSize; 16 | -(off_t)offsetInFile; 17 | -(BOOL)atEndOfFile; 18 | -(void)seekToFileOffset:(off_t)offs; 19 | -(void)seekToEndOfFile; 20 | -(int)readAtMost:(int)num toBuffer:(void *)buffer; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /XADMaster/XADXORSumHandle.h: -------------------------------------------------------------------------------- 1 | #import "CSStreamHandle.h" 2 | #import "Checksums.h" 3 | #import "Progress.h" 4 | 5 | @interface XADXORSumHandle:CSStreamHandle 6 | { 7 | CSHandle *parent; 8 | uint8_t correctchecksum,checksum; 9 | } 10 | 11 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length correctChecksum:(uint8_t)correct; 12 | -(void)dealloc; 13 | 14 | -(void)resetStream; 15 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer; 16 | 17 | -(BOOL)hasChecksum; 18 | -(BOOL)isChecksumCorrect; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /XADMaster/XADXORSumHandle.m: -------------------------------------------------------------------------------- 1 | #import "XADXORSumHandle.h" 2 | 3 | @implementation XADXORSumHandle 4 | 5 | -(id)initWithHandle:(CSHandle *)handle length:(off_t)length correctChecksum:(uint8_t)correct 6 | { 7 | if((self=[super initWithName:[handle name] length:length])) 8 | { 9 | parent=[handle retain]; 10 | correctchecksum=correct; 11 | } 12 | return self; 13 | } 14 | 15 | -(void)dealloc 16 | { 17 | [parent release]; 18 | [super dealloc]; 19 | } 20 | 21 | -(void)resetStream 22 | { 23 | [parent seekToFileOffset:0]; 24 | checksum=0; 25 | } 26 | 27 | -(int)streamAtMost:(int)num toBuffer:(void *)buffer 28 | { 29 | int actual=[parent readAtMost:num toBuffer:buffer]; 30 | 31 | uint8_t *bytes=buffer; 32 | for(int i=0;i 2 | 3 | 4 | 5 | BuildVersion 6 | 1 7 | CFBundleVersion 8 | 1.0 9 | ProjectName 10 | NibPBTemplates 11 | SourceVersion 12 | 1200100 13 | 14 | 15 | -------------------------------------------------------------------------------- /zh_TW.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/btrask/Sequential/d95610c8d020cc1ca316e323c0a1a9dc3cbf1aa6/zh_TW.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /zh_TW.lproj/PGActivity.strings: -------------------------------------------------------------------------------- 1 | "Activity" = "活動"; 2 | "Cancel Load" = "取消載入"; 3 | -------------------------------------------------------------------------------- /zh_TW.lproj/PGDocument.strings: -------------------------------------------------------------------------------- 1 | "Done" = "完成"; 2 | "Decrypt" = "解密"; 3 | "Password:" = "密碼:"; 4 | "File:" = "檔案:"; 5 | "Reload" = "重新載入"; 6 | -------------------------------------------------------------------------------- /zh_TW.lproj/PGImageSave.strings: -------------------------------------------------------------------------------- 1 | "Destination Name" = "目的地名稱"; 2 | -------------------------------------------------------------------------------- /zh_TW.lproj/PGInspector.strings: -------------------------------------------------------------------------------- 1 | "Inspector" = "Inspector"; 2 | -------------------------------------------------------------------------------- /zh_TW.lproj/PGTimer.strings: -------------------------------------------------------------------------------- 1 | "Timer" = "計時器"; 2 | "Remaining:" = "剩餘:"; 3 | "Total:" = "總計:"; 4 | -------------------------------------------------------------------------------- /zh_TW.lproj/PGURL.strings: -------------------------------------------------------------------------------- 1 | "Enter a URL for Sequential to open." = "輸入要讓 Sequential 打開的 URL。"; 2 | "URL:" = "URL:"; 3 | "Open" = "打開"; 4 | "Cancel" = "取消"; 5 | --------------------------------------------------------------------------------