]> git.pld-linux.org Git - packages/Atari800.git/commitdiff
- added nodisk patch (make disk change detection work) auto/th/Atari800-4.2.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 14 Jan 2021 21:14:14 +0000 (22:14 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 14 Jan 2021 21:14:14 +0000 (22:14 +0100)
Atari800-nodisk.patch [new file with mode: 0644]
Atari800.spec

diff --git a/Atari800-nodisk.patch b/Atari800-nodisk.patch
new file mode 100644 (file)
index 0000000..1d6ac13
--- /dev/null
@@ -0,0 +1,15 @@
+Allows disk flip autodetection in "The Big Demo" to work
+(disk1 -> empty -> disk2 cycle and the opposite)
+--- atari800-4.2.0/src/sio.c.orig      2019-12-28 18:00:29.000000000 +0100
++++ atari800-4.2.0/src/sio.c   2021-01-14 17:31:08.961358709 +0100
+@@ -1083,7 +1083,9 @@
+               Log_print("Drive Status unit %d %x %x %x %x",unit,buffer[0], buffer[1], buffer[2], buffer[3]);
+               return 'C';
+       }       
+-      buffer[0] = 16;         /* drive active */
++       /* DVSTAT0 bit 4: drive active(?)/motor on;
++          "The Big Demo" expects 0->1 trigger to detect disk insertion after "flip the disk" message */
++      buffer[0] = disk[unit] != NULL ? 16 : 0;
+       buffer[1] = disk[unit] != NULL ? 255 /* WD 177x OK */ : 127 /* no disk */;
+       if (io_success[unit] != 0)
+               buffer[0] |= 4;     /* failed RW-operation */
index 5912731c0127574ba55fe3a7eba452f12b20bb68..e8b675f150c4aaceda7cf5dda7905f07e0c60459 100644 (file)
@@ -10,6 +10,7 @@ Source0:      https://github.com/atari800/atari800/releases/download/ATARI800_4_2_0/a
 # Source0-md5: 695031b9bc3461cd18ec9090779d984b
 Source1:       %{name}-chooser
 Patch0:                %{name}-romdir.patch
+Patch1:                %{name}-nodisk.patch
 URL:           https://atari800.github.io/
 BuildRequires: SDL-devel >= 1.2
 BuildRequires: automake
@@ -50,7 +51,6 @@ oraz X11.
 %package x11
 Summary:       Atari 800 Emulator - X Window version
 Summary(pl.UTF-8):     Emulator Atari 800 - wersja dla systemu X Window
-License:       GPL
 Group:         Applications/Emulators
 Requires:      %{name}-common = %{version}-%{release}
 
@@ -69,7 +69,6 @@ obsługą dźwięku OSS i joysticka.
 %package SDL
 Summary:       Atari 800 Emulator - SDL version
 Summary(pl.UTF-8):     Emulator Atari 800 - wersja SDL
-License:       GPL
 Group:         Applications/Emulators
 Requires:      %{name}-common = %{version}-%{release}
 Obsoletes:     Atari800-svga < 2.1.0
@@ -89,6 +88,7 @@ obsługą dźwięku i joysticka.
 %prep
 %setup -q -n atari800-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 cp -f /usr/share/automake/config.sub .
This page took 0.121082 seconds and 4 git commands to generate.