From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1D3451382C5 for ; Wed, 16 Jun 2021 18:29:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52719E0815; Wed, 16 Jun 2021 18:29:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34C9CE0815 for ; Wed, 16 Jun 2021 18:29:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8FBA0340E0E for ; Wed, 16 Jun 2021 18:29:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A2D8B7A0 for ; Wed, 16 Jun 2021 18:29:05 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1623868120.12e018257ac178d689924fc09fa116aa07fa906d.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/hatari/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/hatari/files/hatari-2.2.1-default-rom.patch games-emulation/hatari/files/hatari-2.2.1-joystick.patch X-VCS-Directories: games-emulation/hatari/files/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 12e018257ac178d689924fc09fa116aa07fa906d X-VCS-Branch: master Date: Wed, 16 Jun 2021 18:29:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c61648f4-ae01-4c1d-88e3-600f30788b0b X-Archives-Hash: b06235408affc1eb0e8f545975d08171 commit: 12e018257ac178d689924fc09fa116aa07fa906d Author: Michael Mair-Keimberger levelnine at> AuthorDate: Wed Jun 16 18:17:13 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Jun 16 18:28:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e01825 games-emulation/hatari: remove unused patches Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/21272 Signed-off-by: Ionen Wolkens gentoo.org> .../hatari/files/hatari-2.2.1-default-rom.patch | 16 ------ .../hatari/files/hatari-2.2.1-joystick.patch | 59 ---------------------- 2 files changed, 75 deletions(-) diff --git a/games-emulation/hatari/files/hatari-2.2.1-default-rom.patch b/games-emulation/hatari/files/hatari-2.2.1-default-rom.patch deleted file mode 100644 index c42f67f733c..00000000000 --- a/games-emulation/hatari/files/hatari-2.2.1-default-rom.patch +++ /dev/null @@ -1,16 +0,0 @@ -Use etos512k.img from the emutos package rather than tos.img. - -diff -Naur a/src/configuration.c b/src/configuration.c ---- a/src/configuration.c 2019-02-08 08:30:11.000000000 +0000 -+++ b/src/configuration.c 2019-11-10 21:19:31.712605716 +0000 -@@ -841,8 +841,8 @@ - ConfigureParams.Sound.YmVolumeMixing = YM_TABLE_MIXING; - - /* Set defaults for Rom */ -- sprintf(ConfigureParams.Rom.szTosImageFileName, "%s%ctos.img", -- Paths_GetDataDir(), PATHSEP); -+ sprintf(ConfigureParams.Rom.szTosImageFileName, "%s%c..%cemutos%cetos512k.img", -+ Paths_GetDataDir(), PATHSEP, PATHSEP, PATHSEP); - ConfigureParams.Rom.bPatchTos = true; - strcpy(ConfigureParams.Rom.szCartridgeImageFileName, ""); - diff --git a/games-emulation/hatari/files/hatari-2.2.1-joystick.patch b/games-emulation/hatari/files/hatari-2.2.1-joystick.patch deleted file mode 100644 index 193bb7206c3..00000000000 --- a/games-emulation/hatari/files/hatari-2.2.1-joystick.patch +++ /dev/null @@ -1,59 +0,0 @@ -https://bugs.gentoo.org/689538 - -diff -ruN hatari-2.1.0.old/src/gui-sdl/sdlgui.c hatari-2.1.0/src/gui-sdl/sdlgui.c ---- hatari-2.1.0.old/src/gui-sdl/sdlgui.c 2018-02-07 18:33:56.000000000 +0000 -+++ hatari-2.1.0/src/gui-sdl/sdlgui.c 2019-07-08 23:55:50.481270799 +0100 -@@ -1329,12 +1329,28 @@ - } - break; - -+ case SDL_JOYHATMOTION: -+ if (sdlEvent.jhat.value & SDL_HAT_LEFT) -+ retbutton = SDLGui_HandleShortcut(dlg, SG_SHORTCUT_LEFT); -+ else if (sdlEvent.jhat.value & SDL_HAT_RIGHT) -+ retbutton = SDLGui_HandleShortcut(dlg, SG_SHORTCUT_RIGHT); -+ if (sdlEvent.jhat.value & SDL_HAT_UP) -+ { -+ SDLGui_RemoveFocus(dlg, focused); -+ focused = SDLGui_FocusNext(dlg, focused, -1); -+ } -+ else if (sdlEvent.jhat.value & SDL_HAT_DOWN) -+ { -+ SDLGui_RemoveFocus(dlg, focused); -+ focused = SDLGui_FocusNext(dlg, focused, +1); -+ } -+ break; -+ - case SDL_JOYBUTTONDOWN: - retbutton = SDLGui_HandleSelection(dlg, focused, focused); - break; - - case SDL_JOYBALLMOTION: -- case SDL_JOYHATMOTION: - case SDL_MOUSEMOTION: - break; - -diff -ruN hatari-2.1.0.old/src/joy.c hatari-2.1.0/src/joy.c ---- hatari-2.1.0.old/src/joy.c 2018-02-07 18:33:56.000000000 +0000 -+++ hatari-2.1.0/src/joy.c 2019-07-09 14:46:36.502410790 +0100 -@@ -199,9 +199,20 @@ - */ - static bool Joy_ReadJoystick(int nSdlJoyID, JOYREADING *pJoyReading) - { -+ unsigned hat = SDL_JoystickGetHat(sdlJoystick[nSdlJoyID], 0); -+ - /* Joystick is OK, read position from the configured joystick axis */ - pJoyReading->XPos = SDL_JoystickGetAxis(sdlJoystick[nSdlJoyID], pJoyReading->XAxisID); - pJoyReading->YPos = SDL_JoystickGetAxis(sdlJoystick[nSdlJoyID], pJoyReading->YAxisID); -+ /* Similarly to other emulators that support hats, override axis readings with hats */ -+ if (hat & SDL_HAT_LEFT) -+ pJoyReading->XPos = -32768; -+ if (hat & SDL_HAT_RIGHT) -+ pJoyReading->XPos = 32767; -+ if (hat & SDL_HAT_UP) -+ pJoyReading->YPos = -32768; -+ if (hat & SDL_HAT_DOWN) -+ pJoyReading->YPos = 32767; - /* Sets bit #0 if button #1 is pressed: */ - pJoyReading->Buttons = SDL_JoystickGetButton(sdlJoystick[nSdlJoyID], 0); - /* Sets bit #1 if button #2 is pressed: */