summaryrefslogtreecommitdiff
path: root/games-arcade/rocksndiamonds
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/rocksndiamonds')
-rw-r--r--games-arcade/rocksndiamonds/Manifest1
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-4.3.2.0-music-info-url.patch71
2 files changed, 72 insertions, 0 deletions
diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest
index bfc4283c1b4d..261b84bf69d9 100644
--- a/games-arcade/rocksndiamonds/Manifest
+++ b/games-arcade/rocksndiamonds/Manifest
@@ -2,6 +2,7 @@ AUX rocksndiamonds-4.1.0.0-CVE-2011-4606.patch 961 BLAKE2B 10eae087eb32a90ae0f05
AUX rocksndiamonds-4.1.0.0-YN.patch 700 BLAKE2B 92cdef21f6a301b37671fd2748b72f0b774861644fe75b480a99230ea0b4df6525207d09e661125e42aa20375ac4da0be96c5dc308a58ad237969a736f87bcb7 SHA512 3781a5ac8c43fdf6372c5e74b3ab3e57eeaff6adb814a590330a457b1ef8c37447d93e549745fa96fec3fc45e463d7669982aeda58fabd6ac8e20708746f6859
AUX rocksndiamonds-4.1.0.0-music-info-url.patch 2598 BLAKE2B 9edde25c6306eebf10e365828b367fb090972e16aba53010c5ea1bba4628e4ec1cebcf13a80e5a68e19c00d84db0b0347e891411f3dc19a4b117b5c82b6c39bd SHA512 64a6908f7cf9e9d332634e8222c71b30fecbc550e49433d619a58f4a1a5c688e757c1c035bfc1a6d1c2a672921219e3390b87b8b96f0b4abefcc2048bec94038
AUX rocksndiamonds-4.1.4.1-gcc10.patch 987 BLAKE2B 6cba0dccb2a41df79a6d19695619923de7b3b770511c8cf18781ce4ce250d163d8249ed56e9a71528c4f3f679bb2ad287e6b254d2f09e994ef220c870aaaf771 SHA512 0188f5558d1546bd162734f1028d32d56c1109604b2837ea3e5a815b06ef7951bc5e01f9bf13e47373b176e344975a4f4cdbfbaec400d6b0456f1f0d4c2d1ce1
+AUX rocksndiamonds-4.3.2.0-music-info-url.patch 2605 BLAKE2B 90bbd4b96ee834f9b56d04ec7e06571ff7be4ddac7293a65626ae0d26aa8a6604476bde0832834df4cb6f5f5b5c37b0666e2a53330403c8a122e5c2f7a4acb50 SHA512 9360c03acb38df1a70c27ebed47df4d624a89b7fdeb9a56e8c6845b7d5a8c6c91d02776e45c8cbb85e92f40870b2528e77d288b0aa243d45d09adafdf342a423
DIST Andreas_Buschbeck-1.0.0.zip 18331338 BLAKE2B b6520ab10ce62d4bec804a2a7e1c4908a683f9f3833e5b1d4c64d376eb4225abc38c44a519bed8cbbd3fc928bfdddda17f292b0011805e45a30b84101dad9d1d SHA512 1b47914561aea5b07035cc70f8b1b6d35f0c829d89327713ad644d82225e778a7ffd27f9d421c40dd303f85c9fc0774244dd97d405f5db866ba3d1f8027151e4
DIST BD2K3-1.0.0.zip 4715324 BLAKE2B 72e25038c41a7a1c29a896459db97954d18731d6980f5096c28ebddb09c0b6d7bdb68a8c56f17d26c71085e4ae883d2ceaad8e95b5525cbf532d18f32ecdd638 SHA512 80f172584d2077a3ade0749790802ef9cecde75283d6b889e7d2fedf9b55fd1fd7f1f1fd5596b17d5b2a542172699a929ea626086e77d28fde11487440c43622
DIST Boulder_Dash_Dream-1.0.0.zip 10923437 BLAKE2B 976156c763281b993550a08361c5b6279a471e24568205c0369cc3f57d99e97db84d914a560c909b30fe92b8c8c10931cf6a8a8de4da181edac410a770d922b7 SHA512 f2765f52653b4f9d6c4a6548076281f6749d08c2dfd220345bdc0058b94d51c49ef81acdc87ff71bc1b3f337f3cc6a1d08b9e5a02d6aaeaeac5d894f97ba3d8e
diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-4.3.2.0-music-info-url.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.3.2.0-music-info-url.patch
new file mode 100644
index 000000000000..6dc46277a1b2
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-4.3.2.0-music-info-url.patch
@@ -0,0 +1,71 @@
+diff -up rocksndiamonds-4.3.2.0/src/files.c.url rocksndiamonds-4.3.2.0/src/files.c
+--- rocksndiamonds-4.3.2.0/src/files.c.url 2022-04-16 19:22:44.000000000 -0400
++++ rocksndiamonds-4.3.2.0/src/files.c 2022-04-26 10:32:33.995238563 -0400
+@@ -12674,11 +12674,13 @@ static struct MusicFileInfo *get_music_f
+ { "artist_header", &tmp_music_file_info.artist_header },
+ { "album_header", &tmp_music_file_info.album_header },
+ { "year_header", &tmp_music_file_info.year_header },
++ { "url_header", &tmp_music_file_info.url_header },
+
+ { "title", &tmp_music_file_info.title },
+ { "artist", &tmp_music_file_info.artist },
+ { "album", &tmp_music_file_info.album },
+ { "year", &tmp_music_file_info.year },
++ { "url", &tmp_music_file_info.url },
+
+ { NULL, NULL },
+ };
+@@ -12794,11 +12796,13 @@ void LoadMusicInfo(void)
+ checked_free(music_file_info->artist_header);
+ checked_free(music_file_info->album_header);
+ checked_free(music_file_info->year_header);
++ checked_free(music_file_info->url_header);
+
+ checked_free(music_file_info->title);
+ checked_free(music_file_info->artist);
+ checked_free(music_file_info->album);
+ checked_free(music_file_info->year);
++ checked_free(music_file_info->url);
+
+ free(music_file_info);
+
+diff -up rocksndiamonds-4.3.2.0/src/main.h.url rocksndiamonds-4.3.2.0/src/main.h
+--- rocksndiamonds-4.3.2.0/src/main.h.url 2022-04-16 19:22:44.000000000 -0400
++++ rocksndiamonds-4.3.2.0/src/main.h 2022-04-26 10:32:33.995238563 -0400
+@@ -3710,11 +3710,13 @@ struct MusicFileInfo
+ char *artist_header;
+ char *album_header;
+ char *year_header;
++ char *url_header;
+
+ char *title;
+ char *artist;
+ char *album;
+ char *year;
++ char *url;
+
+ int music;
+
+diff -up rocksndiamonds-4.3.2.0/src/screens.c.url rocksndiamonds-4.3.2.0/src/screens.c
+--- rocksndiamonds-4.3.2.0/src/screens.c.url 2022-04-26 10:32:33.996238568 -0400
++++ rocksndiamonds-4.3.2.0/src/screens.c 2022-04-26 10:34:29.617828672 -0400
+@@ -3392,6 +3392,19 @@ void HandleInfoScreen_Music(int dx, int
+ ystart += ystep_head;
+ }
+
++ if (!strEqual(list->url, UNKNOWN_NAME))
++ {
++ if (!strEqual(list->url_header, UNKNOWN_NAME))
++ DrawTextSCentered(ystart, font_head, list->url_header);
++ else
++ DrawTextSCentered(ystart, font_head, "from the website");
++
++ ystart += ystep_head;
++
++ DrawTextFCentered(ystart, font_text, "%s", list->url);
++ ystart += ystep_head;
++ }
++
+ DrawTextSCentered(ybottom, font_foot, TEXT_NEXT_PAGE);
+
+ if (button != MB_MENU_INITIALIZE)