@@ -0,0 +1,1099 @@
+import java.io.File;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B%0A        if (args.length %3C 3) %7B%0A            System.err.println(%22You must specify 3 arguments!%22);%0A            System.err.println(%22%5Ctjava -jar jbeat.jar original.jar patch.bps output.jar%22)%0A            System.err.println(%22In This will apply patch.bps to original.jar and safe to output.jar%22);%0A            return;%0A        %7D%0A        File in = new File(args%5B0%5D);%0A        File patch = new File(args%5B1%5D);%0A        File out = new File(args%5B2%5D);%0A        %0A        if (out.exists()) %7B%0A            System.err.println(%22The output file %22 + args%5B2%5D + %22 exists.%22)%0A            System.err.println(%22Please delete it before running this program%22);%0A            return;%0A        %7D%0A        out.createNewFile()%0A        %0A        try %7B%0A            Patcher patcher = new Patcher(patch, in, out);%0A        %7D catch (Exception e) %7B%0A            System.err.println(%22Unable to patch file%22);%0A            e.printStackTrace();%0A            return;%0A        %7D%0A        %0A        System.out.prinln(%22Successfuly Patched: %22 args%5B0%5D %22 with %22 + args%5B1%5D);%0A    %7D%0A%7D%0A

Add Command Line Interface for Patching