src/doge/patcher/FilePatcher.java
public static void revertAllPatchesInOneMod(RandomAccessFile fh,
            HashMap<String, Function> listOfNewFunctions, Modification mod)
            throws IOException {
        boolean fileAndNewModMatched = FileVerifier
                .isFileAndNewModMatched(fh, listOfNewFunctions, mod);
        boolean fileAndOldModMatched = FileVerifier
                .isFileAndOldModMatched(fh, listOfNewFunctions, mod);

        if (fileAndNewModMatched || fileAndOldModMatched) {
            ArrayList<Patch> patches = mod.getPatches();
            for (Patch patch : patches) {
                FilePatcher.revertPatch(fh, listOfNewFunctions, patch);
            }
        } else {
            FileVerifier.printModMismatch(mod);
        }
    }
/**
     * Disable a modification
     *
     * @param fh RandomAccessFile for better performance
     * @param listOfNewFunctions can be gotten from a DumpParser
     * @param mod a modification
     */
Disable a modification
@param fh RandomAccessFile for better performance
@param listOfNewFunctions can be gotten from a DumpParser
@param mod a modification
Disable a modification @param fh RandomAccessFile for better performance @param listOfNewFunctions can be gotten from a DumpParser @param mod a modification
public static void revertAllPatchesInOneMod(RandomAccessFile fh,
            HashMap<String, Function> listOfNewFunctions, Modification mod)
            throws IOException {
        boolean fileAndNewModMatched = FileVerifier
                .isFileAndNewModMatched(fh, listOfNewFunctions, mod);
        boolean fileAndOldModMatched = FileVerifier
                .isFileAndOldModMatched(fh, listOfNewFunctions, mod);
        if (fileAndNewModMatched || fileAndOldModMatched) {
            ArrayList<Patch> patches = mod.getPatches();
            for (Patch patch : patches) {
                FilePatcher.revertPatch(fh, listOfNewFunctions, patch);
            }
        } else {
            FileVerifier.printModMismatch(mod);
        }
    }
public static void revertAllPatchesInOneMod ( RandomAccessFile fh , HashMap < String , Function > listOfNewFunctions , Modification mod ) throws IOException { boolean fileAndNewModMatched = FileVerifier . isFileAndNewModMatched ( fh , listOfNewFunctions , mod ) ; boolean fileAndOldModMatched = FileVerifier . isFileAndOldModMatched ( fh , listOfNewFunctions , mod ) ; if ( fileAndNewModMatched || fileAndOldModMatched ) { ArrayList < Patch > patches = mod . getPatches ( ) ; for ( Patch patch : patches ) { FilePatcher . revertPatch ( fh , listOfNewFunctions , patch ) ; } } else { FileVerifier . printModMismatch ( mod ) ; } }
Disable a modification
 @param fh RandomAccessFile for better performance
 @param listOfNewFunctions can be gotten from a DumpParser
 @param mod a modification
Disable a modification @param fh RandomAccessFile for better performance @param listOfNewFunctions can be gotten from a DumpParser @param mod a modification