diff options
author | TheMorc <r.gracik@gmail.com> | 2021-01-22 14:05:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-25 22:34:43 +0100 |
commit | ffc51853bf2f3f830712d73c35ba33c912f45677 (patch) | |
tree | 6f6a7a1e322553d5a477d6f1791cde5027c8446f /Ports/pt2-clone/patches | |
parent | b56ef9042be65afe035a20b8c1e37f5cf18102d9 (diff) | |
download | serenity-ffc51853bf2f3f830712d73c35ba33c912f45677.zip |
Ports: Add ProTracker 2 clone
Diffstat (limited to 'Ports/pt2-clone/patches')
-rw-r--r-- | Ports/pt2-clone/patches/CMakeLists_outputpath.patch | 10 | ||||
-rw-r--r-- | Ports/pt2-clone/patches/PATH_MAX.patch | 78 | ||||
-rw-r--r-- | Ports/pt2-clone/patches/hackyMouse.patch | 11 |
3 files changed, 99 insertions, 0 deletions
diff --git a/Ports/pt2-clone/patches/CMakeLists_outputpath.patch b/Ports/pt2-clone/patches/CMakeLists_outputpath.patch new file mode 100644 index 0000000000..b44fbf3ac6 --- /dev/null +++ b/Ports/pt2-clone/patches/CMakeLists_outputpath.patch @@ -0,0 +1,10 @@ +--- pt2-clone-1.28/CMakeLists.txt 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28D/CMakeLists.txt 2021-01-22 13:59:34.871852522 +0100 +@@ -3,7 +3,6 @@ + project(pt2-clone) + + find_package(SDL2 REQUIRED) +-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${pt2-clone_SOURCE_DIR}/release/other/") + + file(GLOB pt2-clone_SRC + "${pt2-clone_SOURCE_DIR}/src/*.c" diff --git a/Ports/pt2-clone/patches/PATH_MAX.patch b/Ports/pt2-clone/patches/PATH_MAX.patch new file mode 100644 index 0000000000..87a881226d --- /dev/null +++ b/Ports/pt2-clone/patches/PATH_MAX.patch @@ -0,0 +1,78 @@ +Common subdirectories: pt2-clone-1.28/src/gfx and pt2-clone-1.28d/src/gfx +diff -u pt2-clone-1.28/src/pt2_config.c pt2-clone-1.28d/src/pt2_config.c +--- pt2-clone-1.28/src/pt2_config.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_config.c 2021-01-22 13:34:22.058489000 +0100 +@@ -21,6 +21,7 @@ + #include "pt2_diskop.h" + #include "pt2_textout.h" + #include "pt2_sampler.h" ++#define PATH_MAX 4096 + + #ifndef _WIN32 + static char oldCwd[PATH_MAX]; +diff -u pt2-clone-1.28/src/pt2_diskop.c pt2-clone-1.28d/src/pt2_diskop.c +--- pt2-clone-1.28/src/pt2_diskop.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_diskop.c 2021-01-22 13:33:49.531212000 +0100 +@@ -36,6 +36,7 @@ + #include "pt2_visuals.h" + #include "pt2_sample_loader.h" + #include "pt2_bmp.h" ++#define PATH_MAX 4096 + + typedef struct fileEntry_t + { +diff -u pt2-clone-1.28/src/pt2_edit.c pt2-clone-1.28d/src/pt2_edit.c +--- pt2-clone-1.28/src/pt2_edit.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_edit.c 2021-01-22 13:33:14.987979000 +0100 +@@ -29,6 +29,7 @@ + #include "pt2_audio.h" + #include "pt2_sync.h" + #include "pt2_chordmaker.h" ++#define PATH_MAX 4096 + + const int8_t scancode2NoteLo[52] = // "USB usage page standard" order + { +diff -u pt2-clone-1.28/src/pt2_main.c pt2-clone-1.28d/src/pt2_main.c +--- pt2-clone-1.28/src/pt2_main.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_main.c 2021-01-22 13:33:34.867538000 +0100 +@@ -36,6 +36,7 @@ + #include "pt2_bmp.h" + #include "pt2_sync.h" + #include "pt2_sampling.h" ++#define PATH_MAX 4096 + + #define CRASH_TEXT "Oh no!\nThe ProTracker 2 clone has crashed...\n\nA backup .mod was hopefully " \ + "saved to the current module directory.\n\nPlease report this bug if you can.\n" \ +diff -u pt2-clone-1.28/src/pt2_module_loader.c pt2-clone-1.28d/src/pt2_module_loader.c +--- pt2-clone-1.28/src/pt2_module_loader.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_module_loader.c 2021-01-22 13:34:32.490256000 +0100 +@@ -27,6 +27,7 @@ + #include "pt2_sample_loader.h" + #include "pt2_config.h" + #include "pt2_sampling.h" ++#define PATH_MAX 4096 + + typedef struct mem_t + { +diff -u pt2-clone-1.28/src/pt2_mouse.c pt2-clone-1.28d/src/pt2_mouse.c +--- pt2-clone-1.28/src/pt2_mouse.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_mouse.c 2021-01-22 13:33:59.278995000 +0100 +@@ -26,6 +26,7 @@ + #include "pt2_bmp.h" + #include "pt2_sampling.h" + #include "pt2_chordmaker.h" ++#define PATH_MAX 4096 + + /* TODO: Move irrelevant routines outta here! Disgusting design! + ** Keep in mind that this was programmed in my early programming days... +diff -u pt2-clone-1.28/src/pt2_sample_loader.c pt2-clone-1.28d/src/pt2_sample_loader.c +--- pt2-clone-1.28/src/pt2_sample_loader.c 2021-01-01 20:48:32.000000000 +0100 ++++ pt2-clone-1.28d/src/pt2_sample_loader.c 2021-01-22 13:34:03.582900000 +0100 +@@ -19,6 +19,7 @@ + #include "pt2_config.h" + #include "pt2_sampling.h" + #include "pt2_downsamplers2x.h" ++#define PATH_MAX 4096 + + enum + { diff --git a/Ports/pt2-clone/patches/hackyMouse.patch b/Ports/pt2-clone/patches/hackyMouse.patch new file mode 100644 index 0000000000..06c407b344 --- /dev/null +++ b/Ports/pt2-clone/patches/hackyMouse.patch @@ -0,0 +1,11 @@ +--- pt2-clone-1.28/src/pt2_visuals.c 2021-01-22 17:55:51.038785767 +0100 ++++ pt2-clone-1.28/src/pt2_visuals.c.og 2021-01-22 17:55:12.287382000 +0100 +@@ -2426,7 +2426,7 @@ + SDL_ShowCursor(SDL_FALSE); + + // Workaround: SDL_GetGlobalMouseState() doesn't work with KMSDRM +- video.useDesktopMouseCoords = true; ++ video.useDesktopMouseCoords = false; + const char *videoDriver = SDL_GetCurrentVideoDriver(); + if (videoDriver != NULL && strcmp("KMSDRM", videoDriver) == 0) + video.useDesktopMouseCoords = true; |