Rocks'n'Diamonds on OS/2 revisited
Posted: Thu Nov 26, 2020 4:07 am
Hi, had an urge to play Rocks'n'Diamonds on OS/2 (actually ArcaOS), so downloaded the 4.2.0.4 source and with this patch,
And some EXTRA_LDFLAGS (probably not strictly needed) and NO_JOYSTICK defined in the top level makefile it compiles fine and seems to mostly work. Our SDL2 port is new and probably alpha/beta status so some questions about warnings.
In %HOME%\.rocksndiamonds\stderr.txt I see these warnings. I take it the mods failures are due to SDL2_mixer shortcomings, the getKeyFromKeyName happened when I tried to change the user name from root to mine, which failed with esc recovering. Is this another SDL2 deficiency?
I also was looking for the Windows ico file and could not find it, be nice to convert it to OS/2 format, name it rocksndiamonds.ico and put it beside the binary so the system uses it.
Anyways great to see Rocks'n'Diamonds still being maintained and worked on and the fact that it compiles on edge operating systems with almost no work is nice
Code: Select all
diff --git a/src/libgame/zip/ioapi.h b/src/libgame/zip/ioapi.h
index 0741de44..d8665be5 100644
--- a/src/libgame/zip/ioapi.h
+++ b/src/libgame/zip/ioapi.h
@@ -33,7 +33,7 @@
# define ftello64 ftell
# define fseeko64 fseek
#else
-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__) || defined(__linux__)
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__) || defined(__linux__) || defined(__OS2__)
# define fopen64 fopen
# define ftello64 ftello
# define fseeko64 fseeko
--
In %HOME%\.rocksndiamonds\stderr.txt I see these warnings. I take it the mods failures are due to SDL2_mixer shortcomings, the getKeyFromKeyName happened when I tried to change the user name from root to mine, which failed with esc recovering. Is this another SDL2 deficiency?
Code: Select all
[WARN] configuration file 'W:\Home/.rocksndiamonds/cache/artworkinfo.cache' is empty
[WARN] cannot read music file 'K:\work\rocksndiamonds-4.2.0.4/music/mus_classic/mod.apoplexy': Unrecognized audio format
[WARN] cannot read music file 'K:\work\rocksndiamonds-4.2.0.4/music/mus_classic/mod.chiptune': Unrecognized audio format
[WARN] cannot read music file 'K:\work\rocksndiamonds-4.2.0.4/music/mus_classic/mod.cream_of_the_earth': Unrecognized audio format
[WARN] getKeyFromKeyName(): not completely implemented
Anyways great to see Rocks'n'Diamonds still being maintained and worked on and the fact that it compiles on edge operating systems with almost no work is nice