MPatcher
Class MPatcher
java.lang.Object
MPatcher.MPatcher
- public class MPatcher
- extends java.lang.Object
|
Field Summary |
static MPatcher.gui.MainForm |
application
Reference to main window, you can use this to open your dialogs. |
static Firmware |
firmware
Reference to currenty open firmware CG1. |
static java.lang.String |
title
Application name and version. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
application
public static MPatcher.gui.MainForm application
- Reference to main window, you can use this to open your dialogs.
firmware
public static Firmware firmware
- Reference to currenty open firmware CG1.
title
public static java.lang.String title
- Application name and version.
MPatcher
public MPatcher()
debugLog
public static void debugLog(java.lang.String msg)
getPatches
public static java.lang.Class[] getPatches()
getResourceUrl
public static java.net.URL getResourceUrl(java.lang.String s)
isStartedFromConsole
public static boolean isStartedFromConsole()
main
public static void main(java.lang.String[] args)
- Main method. You can run this program from consolle giving arguments then program will open firmware, apply all patches, save patched file to same file_name what opened.
- Parameters:
args - MPatcher input_firmware_file_name output_firmware_file_name [-d] patch_name1 [patch_name2] [patch_name3] [patch_name4] ...
-d force debugMode on for all executed patches