.. | ||
0001-Add-SerenityOS-platform-detection.patch | ||
0002-Add-missing-includes.patch | ||
0003-Read-the-executable-path-from-proc-self-exe.patch | ||
0004-Remove-use-of-strptime.patch | ||
0005-Don-t-try-linking-to-stdc-fs.patch | ||
0006-Add-compile-options-to-CMakeLists.txt.patch | ||
0007-Disable-locale-detection-for-writing-the-default-con.patch | ||
0008-Disable-g2.dat-target.patch | ||
ReadMe.md |
Patches for openrct2 on SerenityOS
0001-Add-SerenityOS-platform-detection.patch
Add SerenityOS platform detection
We teach OpenRCT2 about the name of our platform.
0002-Add-missing-includes.patch
Add missing includes
These are missing when compiling the release build.
0003-Read-the-executable-path-from-proc-self-exe.patch
Read the executable path from /proc/self/exe
When looking for the executable path, we behave exactly like Linux.
0004-Remove-use-of-strptime.patch
Remove use of strptime()
This is a hack to patch out strptime() from duktape, which is not being used by this project.
0005-Don-t-try-linking-to-stdc-fs.patch
Don't try linking to stdc++fs
This code tried to link to stdc++fs for std::filesystem features, which are already included in our toolchain.
0006-Add-compile-options-to-CMakeLists.txt.patch
Add compile options to CMakeLists.txt
This irons out some compiler warnings that turned into errors when compiling a release build.
0007-Disable-locale-detection-for-writing-the-default-con.patch
Disable locale detection for writing the default config.ini
At the time of writing, locale support in Serenity is not great. We always returned the "C" locale, which this code interpreted wrong. Since this is just used for writing a default value to the game config (which can be changed later), we just default to English.
0008-Disable-g2.dat-target.patch
Disable g2.dat target
Normally, the build system uses one of the compiled binaries to pack assets into g2.dat
. However, since we cross-compile this binary for Serenity, we can't do this on the host system. Instead, we download the latest Linux build of OpenRCT2 and copy its g2.dat
into the disk image.