-
? scummvm/scummvm.bz2
? scummvm/backends/fs/amigaos4
RCS file: /cvsroot/scummvm/scummvm/README,v
retrieving revision 1.323
diff -u -r1.323 README
|
|
|
1247 | 1247 | etc. via Fink and into /sw. If you have installed SDL |
1248 | 1248 | in another way, you'll have to edit the Makefile). |
1249 | 1249 | |
1250 | | |
| 1250 | AmigaOS 4 (Cross-compiling with Cygwin): |
| 1251 | * Make sure that you have SDL installed, you may also need |
| 1252 | libogg, libvorbis, libvorbisfile, zlib, libmad. |
| 1253 | * Type ./configure --host=ppc-amigaos |
| 1254 | * If you got an error about sdl-config, use --with-sdl-prefix |
| 1255 | parameter to set the path. |
| 1256 | * Check 'config.mak' file and if everything seems to fine: |
| 1257 | * Run 'make'. |
| 1258 | * Cross-compiling with Linux may be as easy. |
1251 | 1259 | |
1252 | 1260 | ------------------------------------------------------------------------ |
1253 | 1261 | Good Luck and Happy Adventuring! |
-
RCS file: /cvsroot/scummvm/scummvm/configure,v
retrieving revision 1.119
diff -u -r1.119 configure
|
|
|
434 | 434 | _host_os=riscos |
435 | 435 | _host_cpu=arm |
436 | 436 | ;; |
| 437 | ppc-amigaos) |
| 438 | _host_os=amigaos |
| 439 | _host_cpu=ppc |
| 440 | ;; |
437 | 441 | *) |
438 | 442 | guessed_host=`$_srcdir/config.guess` |
439 | 443 | _host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
… |
… |
|
613 | 617 | type_2_byte='short' |
614 | 618 | type_4_byte='int' |
615 | 619 | ;; |
| 620 | ppc-amigaos) |
| 621 | echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" |
| 622 | _def_endianness='#define SCUMM_BIG_ENDIAN' |
| 623 | _def_align='#define SCUMM_NEED_ALIGNMENT' |
| 624 | type_1_byte='char' |
| 625 | type_2_byte='short' |
| 626 | type_4_byte='long' |
| 627 | CXXFLAGS="$CFLAGS -newlib -mstrict-align -mcpu=750 -mtune=7400" |
| 628 | LDFLAGS="$LDFLAGS -newlib" |
| 629 | ;; |
616 | 630 | *) |
617 | 631 | echo "Cross-compiling to unknown target, please add your target to configure." |
618 | 632 | exit 1 |
-
RCS file: /cvsroot/scummvm/scummvm/backends/module.mk,v
retrieving revision 1.15
diff -u -r1.15 module.mk
|
|
|
5 | 5 | backends/fs/posix/posix-fs.o \ |
6 | 6 | backends/fs/morphos/abox-fs.o \ |
7 | 7 | backends/fs/windows/windows-fs.o \ |
| 8 | backends/fs/amigaos4/amigaos4-fs.o \ |
8 | 9 | backends/midi/alsa.o \ |
9 | 10 | backends/midi/coreaudio.o \ |
10 | 11 | backends/midi/morphos.o \ |
… |
… |
|
19 | 20 | backends/fs/posix \ |
20 | 21 | backends/fs/morphos \ |
21 | 22 | backends/fs/windows \ |
| 23 | backends/fs/amigaos4 \ |
22 | 24 | backends/midi |
23 | 25 | |
24 | 26 | # Include common rules |
-
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.114
diff -u -r1.114 gameDetector.cpp
|
|
|
617 | 617 | warning("No path was provided. Assuming the data files are in the current directory"); |
618 | 618 | gameDataPath = "./"; |
619 | 619 | } else if (gameDataPath.lastChar() != '/' |
620 | | #ifdef __MORPHOS__ |
| 620 | #if defined(__MORPHOS__) || defined(__amigaos4__) |
621 | 621 | && gameDataPath.lastChar() != ':' |
622 | 622 | #endif |
623 | 623 | && gameDataPath.lastChar() != '\\') { |
-
RCS file: /cvsroot/scummvm/scummvm/base/main.cpp,v
retrieving revision 1.78
diff -u -r1.78 main.cpp
|
|
|
122 | 122 | #endif |
123 | 123 | ; |
124 | 124 | |
| 125 | #if defined(__amigaos4__) |
| 126 | // Set the stack cookie, 640 KB should be enough for everyone |
| 127 | const char* stackCookie = "$STACK: 655360\0"; |
| 128 | #endif |
| 129 | |
125 | 130 | #if defined(WIN32) && defined(NO_CONSOLE) |
126 | 131 | #include <cstdio> |
127 | 132 | #define STDOUT_FILE TEXT("stdout.txt") |
-
RCS file: /cvsroot/scummvm/scummvm/common/file.cpp,v
retrieving revision 1.79
diff -u -r1.79 file.cpp
|
|
|
85 | 85 | file = fopen(buf, mode); |
86 | 86 | } |
87 | 87 | |
| 88 | #ifdef __amigaos4__ |
| 89 | // |
| 90 | // Work around for possibility that someone uses AmigaOS "newlib" build with SmartFileSystem (blocksize 512 bytes), leading |
| 91 | // to buffer size being only 512 bytes. "Clib2" sets the buffer size to 8KB, resulting smooth movie playback. This forces the buffer |
| 92 | // to be enough also when using "newlib" compile on SFS. |
| 93 | // |
| 94 | if (file) { |
| 95 | setvbuf(file, NULL, _IOFBF, 8192); |
| 96 | } |
| 97 | #endif |
| 98 | |
88 | 99 | return file; |
89 | 100 | } |
90 | 101 | |
-
RCS file: /cvsroot/scummvm/scummvm/common/savefile.cpp,v
retrieving revision 1.23
diff -u -r1.23 savefile.cpp
|
|
|
156 | 156 | const int dirLen = strlen(buf); |
157 | 157 | |
158 | 158 | if (dirLen > 0) { |
159 | | #ifdef __MORPHOS__ |
| 159 | #if defined(__MORPHOS__) || defined(__amigaos4__) |
160 | 160 | if (buf[dirLen-1] != ':' && buf[dirLen-1] != '/') |
161 | 161 | #endif |
162 | 162 | |
-
RCS file: /cvsroot/scummvm/scummvm/common/scummsys.h,v
retrieving revision 1.57
diff -u -r1.57 scummsys.h
|
|
|
323 | 323 | #define fsize(a) ps2_fsize(a) |
324 | 324 | |
325 | 325 | extern void ps2_disableHandleCaching(void); |
| 326 | |
| 327 | #elif defined (__amigaos4__) |
| 328 | #include <exec/types.h> |
| 329 | |
| 330 | #define scumm_stricmp strcasecmp |
| 331 | #define scumm_strnicmp strncasecmp |
| 332 | |
| 333 | #define CHECK_HEAP |
| 334 | |
| 335 | #define SCUMM_BIG_ENDIAN |
| 336 | |
| 337 | // You need to set this manually if necessary |
| 338 | #define SCUMM_NEED_ALIGNMENT |
| 339 | |
| 340 | #define FORCEINLINE inline |
| 341 | #define CDECL |
| 342 | |
| 343 | #ifndef HAVE_CONFIG_H |
| 344 | typedef unsigned char byte; |
| 345 | typedef unsigned int uint; |
| 346 | #endif |
| 347 | |
| 348 | #define START_PACK_STRUCTS |
| 349 | #define END_PACK_STRUCTS |
| 350 | #define GCC_PACK __attribute__((packed)) |
| 351 | #define NORETURN __attribute__((__noreturn__)) |
326 | 352 | #else |
327 | 353 | #error No system type defined |
328 | 354 | #endif |
-
RCS file: /cvsroot/scummvm/scummvm/common/stdafx.h,v
retrieving revision 1.26
diff -u -r1.26 stdafx.h
|
|
|
111 | 111 | #endif |
112 | 112 | #if !defined(macintosh) |
113 | 113 | #include <sys/types.h> |
114 | | #if !defined(__PLAYSTATION2__) |
| 114 | #if !defined(__PLAYSTATION2__) && !defined(__amigaos4__) |
115 | 115 | #include <sys/uio.h> |
116 | 116 | #endif |
| 117 | #if !defined(__amigaos4__) |
117 | 118 | #include <sys/param.h> |
118 | 119 | #endif |
| 120 | #endif |
119 | 121 | #if !defined (__BEOS__) |
120 | 122 | #include <unistd.h> |
121 | 123 | #endif |
-
RCS file: /cvsroot/scummvm/scummvm/common/scaler/hq2x.cpp,v
retrieving revision 1.14
diff -u -r1.14 hq2x.cpp
|
|
|
42 | 42 | #else |
43 | 43 | |
44 | 44 | #ifdef HAS_ALTIVEC |
| 45 | |
| 46 | #ifdef __amigaos4__ |
| 47 | #include <proto/exec.h> |
| 48 | #include <altivec.h> |
| 49 | static bool isAltiVecAvailable() { |
| 50 | uint32 vecUnit; |
| 51 | IExec->GetCPUInfo(GCIT_VectorUnit, &vecUnit, TAG_DONE); |
| 52 | if (vecUnit == VECTORTYPE_NONE) |
| 53 | return false; |
| 54 | else |
| 55 | return true; |
| 56 | } |
| 57 | #else |
| 58 | |
45 | 59 | #include <sys/sysctl.h> |
46 | 60 | |
47 | 61 | static bool isAltiVecAvailable() { |
… |
… |
|
54 | 68 | return false; |
55 | 69 | } |
56 | 70 | #endif |
| 71 | #endif |
57 | 72 | |
58 | 73 | #define PIXEL00_0 *(q) = w5; |
59 | 74 | #define PIXEL00_10 *(q) = interpolate16_2<bitFormat,3,1>(w5, w1); |
-
RCS file: /cvsroot/scummvm/scummvm/common/scaler/hq3x.cpp,v
retrieving revision 1.12
diff -u -r1.12 hq3x.cpp
|
|
|
42 | 42 | #else |
43 | 43 | |
44 | 44 | #ifdef HAS_ALTIVEC |
| 45 | |
| 46 | #ifdef __amigaos4__ |
| 47 | #include <proto/exec.h> |
| 48 | static bool isAltiVecAvailable() { |
| 49 | uint32 vecUnit; |
| 50 | IExec->GetCPUInfo(GCIT_VectorUnit, &vecUnit, TAG_DONE); |
| 51 | if (vecUnit == VECTORTYPE_NONE) |
| 52 | return false; |
| 53 | else |
| 54 | return true; |
| 55 | } |
| 56 | #else |
| 57 | |
45 | 58 | #include <sys/sysctl.h> |
46 | 59 | |
47 | 60 | static bool isAltiVecAvailable() { |
… |
… |
|
54 | 67 | return false; |
55 | 68 | } |
56 | 69 | #endif |
| 70 | #endif |
57 | 71 | |
58 | 72 | #define PIXEL00_1M *(q) = interpolate16_2<bitFormat,3,1>(w5, w1); |
59 | 73 | #define PIXEL00_1U *(q) = interpolate16_2<bitFormat,3,1>(w5, w2); |
-
RCS file: /cvsroot/scummvm/scummvm/gui/options.cpp,v
retrieving revision 1.76
diff -u -r1.76 options.cpp
|
|
|
33 | 33 | #include "sound/mididrv.h" |
34 | 34 | #include "sound/mixer.h" |
35 | 35 | |
36 | | #if (!( defined(__PALM_OS__) || defined(__DC__) || defined(__GP32__)) && !defined(_MSC_VER)) |
| 36 | #if (!( defined(__PALM_OS__) || defined(__DC__) || defined(__GP32__) || defined(__amigaos4__) ) && !defined(_MSC_VER)) |
37 | 37 | #include <sys/param.h> |
38 | 38 | #include <unistd.h> |
39 | 39 | #endif |
-
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v90he.cpp,v
retrieving revision 2.249
diff -u -r2.249 script_v90he.cpp
|
|
|
2547 | 2547 | case 2001: |
2548 | 2548 | // Used in football |
2549 | 2549 | debug(0, "o90_kernelGetFunctions: U32 code %d (args %d) %d", args[1], num - 2, args[2]); |
2550 | | push(_logicHE->dispatch(args[1], num - 2, &args[2])); |
| 2550 | push(_logicHE->dispatch( args[1], num - 2, (int32*)&args[2])); |
2551 | 2551 | break; |
2552 | 2552 | default: |
2553 | 2553 | error("o90_kernelGetFunctions: default case %d", args[0]); |
… |
… |
|
2613 | 2613 | case 2001: |
2614 | 2614 | // Used in SoccerMLS/Soccer2004 |
2615 | 2615 | debug(0, "o90_kernelSetFunctions: U32 code %d (args %d) %d", args[1], num - 2, args[2]); |
2616 | | _logicHE->dispatch(args[1], num - 2, &args[2]); |
| 2616 | _logicHE->dispatch(args[1], num - 2, (int32*)&args[2]); |
2617 | 2617 | break; |
2618 | 2618 | default: |
2619 | 2619 | error("o90_kernelSetFunctions: default case %d (param count %d)", args[0], num); |
-
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/partialManager.cpp,v
retrieving revision 1.2
diff -u -r1.2 partialManager.cpp
|
|
|
19 | 19 | * IN THE SOFTWARE. |
20 | 20 | */ |
21 | 21 | |
| 22 | #ifdef __amigaos4__ |
| 23 | #include <strings.h> |
| 24 | #else |
22 | 25 | #include <memory.h> |
| 26 | #endif |
23 | 27 | |
24 | 28 | #include "mt32emu.h" |
25 | 29 | |
-
RCS file: /cvsroot/scummvm/scummvm/tools/credits.pl,v
retrieving revision 1.14
diff -u -r1.14 credits.pl
|
|
|
329 | 329 | add_person("Jamieson Christian", "jamieson630", "iMUSE, MIDI, all things musical"); |
330 | 330 | add_person("Jerome Fisher", "KingGuppy", "MT-32 emulator"); |
331 | 331 | add_person("Jochen Hoenicke", "hoenicke", "Speaker & PCjr sound support, Adlib work"); |
| 332 | add_person("Hans-Jörg Frieden", "", "Port: AmigaOS 4"); |
332 | 333 | end_section(); |
333 | 334 | |
334 | 335 | |
… |
… |
|
362 | 363 | add_person("Daniel Schepler", "", "Final MI1 CD music support, initial Ogg Vorbis support"); |
363 | 364 | add_person("André Souza", "", "SDL-based OpenGL renderer"); |
364 | 365 | add_person("Tim ???", "realmz", "Initial MI1 CD music support"); |
| 366 | add_person("Juha Niemimäki", "", "AmigaOS 4 port maintaining"); |
365 | 367 | end_section(); |
366 | 368 | |
367 | 369 | |