src/doge/parser/FileVerifier.java
public static boolean isFileAndOldPatchMatched(RandomAccessFile fh,
            HashMap<String, Function> listOfNewFunctions, Patch patch) throws IOException {
        int newOffset = FilePatcher.getNewOffset(listOfNewFunctions, patch);
        return FileVerifier
                .isFileAndBytesMatched(fh, newOffset, patch.getLength(), patch.getOriginalBytes());
    }
/**
     * Check if the file matches the original state of a patch before applying a mod
     *
     * @param fh RandomAccessFile for better performance
     * @param listOfNewFunctions can be gotten from DumpParser
     * @param patch a Patch object
     * @return true if they match, else false
     */
Check if the file matches the original state of a patch before applying a mod
@param fh RandomAccessFile for better performance
@param listOfNewFunctions can be gotten from DumpParser
@param patch a Patch object
@return true if they match, else false
Check if the file matches the original state of a patch before applying a mod @param fh RandomAccessFile for better performance @param listOfNewFunctions can be gotten from DumpParser @param patch a Patch object @return true if they match else false
public static boolean isFileAndOldPatchMatched(RandomAccessFile fh,
            HashMap<String, Function> listOfNewFunctions, Patch patch) throws IOException {
        int newOffset = FilePatcher.getNewOffset(listOfNewFunctions, patch);
        return FileVerifier
                .isFileAndBytesMatched(fh, newOffset, patch.getLength(), patch.getOriginalBytes());
    }
public static boolean isFileAndOldPatchMatched ( RandomAccessFile fh , HashMap < String , Function > listOfNewFunctions , Patch patch ) throws IOException { int newOffset = FilePatcher . getNewOffset ( listOfNewFunctions , patch ) ; return FileVerifier . isFileAndBytesMatched ( fh , newOffset , patch . getLength ( ) , patch . getOriginalBytes ( ) ) ; }
Check if the file matches the original state of a patch before applying a mod
 @param fh RandomAccessFile for better performance
 @param listOfNewFunctions can be gotten from DumpParser
 @param patch a Patch object
 @return true if they match, else false
Check if the file matches the original state of a patch before applying a mod @param fh RandomAccessFile for better performance @param listOfNewFunctions can be gotten from DumpParser @param patch a Patch object @return true if they match else false