ESR Disc Patcher Linux/Mac & Qt4 port –
Using most of the code of 0.24a, I have made CLI (command line) versions of ESR Disc Patcher and a Qt4 port, making it possible to patch images natively on your operating system of choice (as long as it can compile standard C++ code).
Qt4 makes the program (with the DLLs) much larger on Windows, but makes it possible to work on Linux and Mac with the same exact source code.
I built the Win32 binaries with Mingw32 (GCC 3.4.6) and Qt 4.4.3. It will work with Qt 4.3 as well (this is what I have installed on Linux). I do not know how to compile with MSVC since I do not use it but I am sure it could work.
If you install Qt 4 free version for Mac OS X and have the development tools installed (Xcode, etc), you can build the GUI for Mac as well (and it will look and behave like a Mac application). If anyone could build a binary for me and post it here I would really appreciate it.
Just in case anyone wonders, NONE of the patching source code has been modified at all.
To build on Windows, have Qt 4 and Mingw installed, have their bin directories in %PATH% and do the following commands in a prompt within the directory of the source:
To distribute whatever you build, you will need to include QtCore4.dll and QtGui4.dll.
On Linux and Mac, almost same as above. Have Qt 4 free installed (on something like Ubuntu qt4-dev or whatever; on Gentoo (what I use), just have Qt 4 installed (at least 4.3, which is currently stable in Portage)), then run the following commands within the source directory:
Put these binaries into $PATH or %PATH% (Windows: a place like C:\Windows\system32 for example, if you wish). On Linux, /usr/local/bin. On Mac, SOMEWHERE (I don't use a Mac very often).
To build the CLI versions, there is a make file in the directory. Just run make if you have GCC installed with g++. It SHOULD work as there are no dependencies other than a standard C++ library.
Simple. Now to patch an ISO with the CLI version, just run esrpatch myiso.iso and to unpatch, esrunpatch myiso.iso. Or you can use the GUI.
No fancy graphics in the GUI like the original, sorry about that, but I did keep the icon for the Windows binary. I hope I can keep up to date by just replacing Patcher.h and Patcher.cpp with newer versions as bugs get fixed. For now this works. I've tested it with several ISOs and they show up fine in UltraISO back and forth.
See screen shots (first is Linux, second is Windows). Please test it out. Thanks.
1 PS2 V3 running FMCB, HDLoader (120 GB)
1 beatmaniaIIDX controller
3 Sony 8MB PS2 memory cards
1 MadCatz PS1 memory card
3 Dual Shock controllers
1 PlayStation 3 fat no BC
1 Teensy 2.0 board
1 Xbox 360 JTAG'd