Rewrite the patcher in C (but properly this time)#26
Rewrite the patcher in C (but properly this time)#26ThisKwasior wants to merge 1 commit intosaturn-xvi:mainfrom
Conversation
|
huge work. Since it’s already so portable, what do you think about adding a simple CLI launcher to the mix? It could handle the patching and then immediately boot the game/app in one go. I have no idea how much would it actually help with anything (and it probably wont help at all), but seems like a cool thing 😊 |
|
Would needlessly complicate things in my opinion (and wouldn't be crossplatform). Although I was thinking about separating the binary patch from the source code if the project ever supports other OW1 versions. |
|
Good to know :] |
|
Hmm I dont know if its a good idea to adapt the patcher to have no file dialog... @olususus is probably right that we want to have a launcher that does all this for us in the long term ^^ Would you mind adding nativefiledialog to the project? Also, is there a reason that you chose C instead of C++? Just curious, since that complicated your implementation :) |
|
I chose C because it's my prefered language and every platform has a C compiler. |
Patcher is drag'n'drop, works on both Windows and Linux and doesn't require any dependencies other than the compiler and standard C library.
For now, one would need to compile it manually, but could be implemented into the build system of #22.
Compiling is as easy as:
gcc patcher.c -o patcher.exePatched executable has been tested by me on Windows 10 and Debian Trixie (via wine).