[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[599] vendor/fuse-emulator/current
Brought to you by:
fredm
From: <fr...@us...> - 2009-06-27 13:00:53
|
Revision: 599 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=599&view=rev Author: fredm Date: 2009-06-27 12:46:44 +0000 (Sat, 27 Jun 2009) Log Message: ----------- Load . into vendor/fuse-emulator/current. Modified Paths: -------------- vendor/fuse-emulator/current/fuse/AUTHORS vendor/fuse-emulator/current/fuse/ChangeLog vendor/fuse-emulator/current/fuse/Makefile.am vendor/fuse-emulator/current/fuse/README vendor/fuse-emulator/current/fuse/ay.c vendor/fuse-emulator/current/fuse/ay.h vendor/fuse-emulator/current/fuse/compat/Makefile.am vendor/fuse-emulator/current/fuse/compat/amiga/Makefile.am vendor/fuse-emulator/current/fuse/compat/amiga/paths.c vendor/fuse-emulator/current/fuse/compat/morphos/Makefile.am vendor/fuse-emulator/current/fuse/compat/morphos/osname.c vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am vendor/fuse-emulator/current/fuse/compat/unix/file.c vendor/fuse-emulator/current/fuse/compat/unix/osname.c vendor/fuse-emulator/current/fuse/compat/unix/paths.c vendor/fuse-emulator/current/fuse/compat/unix/timer.c vendor/fuse-emulator/current/fuse/compat/wii/Makefile.am vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am vendor/fuse-emulator/current/fuse/compat/win32/osname.c vendor/fuse-emulator/current/fuse/compat/win32/paths.c vendor/fuse-emulator/current/fuse/compat/win32/timer.c vendor/fuse-emulator/current/fuse/compat.h vendor/fuse-emulator/current/fuse/configure.in vendor/fuse-emulator/current/fuse/debugger/event.c vendor/fuse-emulator/current/fuse/debugger/variable.c vendor/fuse-emulator/current/fuse/disk/beta.c vendor/fuse-emulator/current/fuse/disk/beta.h vendor/fuse-emulator/current/fuse/disk/disk.c vendor/fuse-emulator/current/fuse/disk/disk.h vendor/fuse-emulator/current/fuse/disk/fdd.c vendor/fuse-emulator/current/fuse/disk/fdd.h vendor/fuse-emulator/current/fuse/disk/plusd.c vendor/fuse-emulator/current/fuse/disk/plusd.h vendor/fuse-emulator/current/fuse/disk/upd_fdc.c vendor/fuse-emulator/current/fuse/display.c vendor/fuse-emulator/current/fuse/display.h vendor/fuse-emulator/current/fuse/event.c vendor/fuse-emulator/current/fuse/event.h vendor/fuse-emulator/current/fuse/fuse.c vendor/fuse-emulator/current/fuse/hacking/ChangeLog vendor/fuse-emulator/current/fuse/hacking/Makefile.am vendor/fuse-emulator/current/fuse/hacking/cvs-tags vendor/fuse-emulator/current/fuse/hacking/timer.txt vendor/fuse-emulator/current/fuse/ide/divide.c vendor/fuse-emulator/current/fuse/ide/divide.h vendor/fuse-emulator/current/fuse/ide/ide.c vendor/fuse-emulator/current/fuse/ide/ide.h vendor/fuse-emulator/current/fuse/ide/simpleide.c vendor/fuse-emulator/current/fuse/ide/simpleide.h vendor/fuse-emulator/current/fuse/ide/zxatasp.c vendor/fuse-emulator/current/fuse/ide/zxatasp.h vendor/fuse-emulator/current/fuse/ide/zxcf.c vendor/fuse-emulator/current/fuse/ide/zxcf.h vendor/fuse-emulator/current/fuse/input.c vendor/fuse-emulator/current/fuse/joystick.c vendor/fuse-emulator/current/fuse/joystick.h vendor/fuse-emulator/current/fuse/kempmouse.c vendor/fuse-emulator/current/fuse/keysyms.pl vendor/fuse-emulator/current/fuse/loader.c vendor/fuse-emulator/current/fuse/machine.c vendor/fuse-emulator/current/fuse/machines/pentagon.c vendor/fuse-emulator/current/fuse/machines/pentagon1024.c vendor/fuse-emulator/current/fuse/machines/pentagon512.c vendor/fuse-emulator/current/fuse/machines/scorpion.c vendor/fuse-emulator/current/fuse/machines/spec128.c vendor/fuse-emulator/current/fuse/machines/spec16.c vendor/fuse-emulator/current/fuse/machines/spec48.c vendor/fuse-emulator/current/fuse/machines/spec48.h vendor/fuse-emulator/current/fuse/machines/spec_se.c vendor/fuse-emulator/current/fuse/machines/specplus2.c vendor/fuse-emulator/current/fuse/machines/specplus2a.c vendor/fuse-emulator/current/fuse/machines/specplus3.c vendor/fuse-emulator/current/fuse/machines/specplus3.h vendor/fuse-emulator/current/fuse/machines/specplus3e.c vendor/fuse-emulator/current/fuse/machines/tc2048.c vendor/fuse-emulator/current/fuse/machines/tc2068.c vendor/fuse-emulator/current/fuse/machines/tc2068.h vendor/fuse-emulator/current/fuse/man/fuse.1 vendor/fuse-emulator/current/fuse/memory.c vendor/fuse-emulator/current/fuse/memory.h vendor/fuse-emulator/current/fuse/mempool.c vendor/fuse-emulator/current/fuse/mempool.h vendor/fuse-emulator/current/fuse/menu.c vendor/fuse-emulator/current/fuse/menu.h vendor/fuse-emulator/current/fuse/menu_data.dat vendor/fuse-emulator/current/fuse/menu_data.pl vendor/fuse-emulator/current/fuse/periph.c vendor/fuse-emulator/current/fuse/periph.h vendor/fuse-emulator/current/fuse/perl/cpp-perl.pl vendor/fuse-emulator/current/fuse/rzx.c vendor/fuse-emulator/current/fuse/scld.c vendor/fuse-emulator/current/fuse/settings.dat vendor/fuse-emulator/current/fuse/settings.pl vendor/fuse-emulator/current/fuse/snapshot.c vendor/fuse-emulator/current/fuse/sound/Makefile.am vendor/fuse-emulator/current/fuse/sound/alsasound.c vendor/fuse-emulator/current/fuse/sound/coreaudiosound.c vendor/fuse-emulator/current/fuse/sound/sdlsound.c vendor/fuse-emulator/current/fuse/sound.cpp vendor/fuse-emulator/current/fuse/sound.h vendor/fuse-emulator/current/fuse/spectrum.c vendor/fuse-emulator/current/fuse/tape.c vendor/fuse-emulator/current/fuse/timer/Makefile.am vendor/fuse-emulator/current/fuse/timer/sdl.c vendor/fuse-emulator/current/fuse/timer/timer.c vendor/fuse-emulator/current/fuse/timer/timer.h vendor/fuse-emulator/current/fuse/ui/Makefile.am vendor/fuse-emulator/current/fuse/ui/fb/Makefile.am vendor/fuse-emulator/current/fuse/ui/fb/fbdisplay.c vendor/fuse-emulator/current/fuse/ui/gtk/Makefile.am vendor/fuse-emulator/current/fuse/ui/gtk/confirm.c vendor/fuse-emulator/current/fuse/ui/gtk/debugger.c vendor/fuse-emulator/current/fuse/ui/gtk/gtkdisplay.c vendor/fuse-emulator/current/fuse/ui/gtk/gtkinternals.h vendor/fuse-emulator/current/fuse/ui/gtk/gtkui.c vendor/fuse-emulator/current/fuse/ui/gtk/options-header.pl vendor/fuse-emulator/current/fuse/ui/gtk/options.pl vendor/fuse-emulator/current/fuse/ui/gtk/pokefinder.c vendor/fuse-emulator/current/fuse/ui/options.dat vendor/fuse-emulator/current/fuse/ui/scaler/scaler_hq2x.c vendor/fuse-emulator/current/fuse/ui/scaler/scaler_hq3x.c vendor/fuse-emulator/current/fuse/ui/svga/svgadisplay.c vendor/fuse-emulator/current/fuse/ui/svga/svgajoystick.c vendor/fuse-emulator/current/fuse/ui/svga/svgaui.c vendor/fuse-emulator/current/fuse/ui/ui.h vendor/fuse-emulator/current/fuse/ui/uijoystick.c vendor/fuse-emulator/current/fuse/ui/widget/Makefile.am vendor/fuse-emulator/current/fuse/ui/widget/debugger.c vendor/fuse-emulator/current/fuse/ui/widget/filesel.c vendor/fuse-emulator/current/fuse/ui/widget/menu.c vendor/fuse-emulator/current/fuse/ui/widget/options-header.pl vendor/fuse-emulator/current/fuse/ui/widget/options.pl vendor/fuse-emulator/current/fuse/ui/widget/query.c vendor/fuse-emulator/current/fuse/ui/widget/select.c vendor/fuse-emulator/current/fuse/ui/widget/text.c vendor/fuse-emulator/current/fuse/ui/widget/widget.c vendor/fuse-emulator/current/fuse/ui/widget/widget.h vendor/fuse-emulator/current/fuse/ui/widget/widget_internals.h vendor/fuse-emulator/current/fuse/ui/win32/Makefile.am vendor/fuse-emulator/current/fuse/ui/win32/confirm.c vendor/fuse-emulator/current/fuse/ui/win32/debugger.c vendor/fuse-emulator/current/fuse/ui/win32/fileselector.c vendor/fuse-emulator/current/fuse/ui/win32/icons/Makefile.am vendor/fuse-emulator/current/fuse/ui/win32/memorybrowser.c vendor/fuse-emulator/current/fuse/ui/win32/memorybrowser.h vendor/fuse-emulator/current/fuse/ui/win32/memorybrowser.rc vendor/fuse-emulator/current/fuse/ui/win32/options-header.pl vendor/fuse-emulator/current/fuse/ui/win32/options-resource.pl vendor/fuse-emulator/current/fuse/ui/win32/pokefinder.c vendor/fuse-emulator/current/fuse/ui/win32/rollback.c vendor/fuse-emulator/current/fuse/ui/win32/rollback.h vendor/fuse-emulator/current/fuse/ui/win32/rollback.rc vendor/fuse-emulator/current/fuse/ui/win32/roms.c vendor/fuse-emulator/current/fuse/ui/win32/roms.h vendor/fuse-emulator/current/fuse/ui/win32/roms.rc vendor/fuse-emulator/current/fuse/ui/win32/win32joystick.c vendor/fuse-emulator/current/fuse/ui/win32/win32ui.c vendor/fuse-emulator/current/fuse/ui.c vendor/fuse-emulator/current/fuse/ula.c vendor/fuse-emulator/current/fuse/utils.c vendor/fuse-emulator/current/fuse/utils.h vendor/fuse-emulator/current/fuse/z80/coretest.c vendor/fuse-emulator/current/fuse/z80/z80.c vendor/fuse-emulator/current/fuse/z80/z80_ops.c vendor/fuse-emulator/current/fuse-utils/ChangeLog vendor/fuse-emulator/current/fuse-utils/Makefile.am vendor/fuse-emulator/current/fuse-utils/README vendor/fuse-emulator/current/fuse-utils/audio2tape.cc vendor/fuse-emulator/current/fuse-utils/configure.in vendor/fuse-emulator/current/fuse-utils/converter/romloader.cc vendor/fuse-emulator/current/fuse-utils/converter/romloaderstate.h vendor/fuse-emulator/current/fuse-utils/hacking/ChangeLog vendor/fuse-emulator/current/fuse-utils/hacking/cvs-tags vendor/fuse-emulator/current/fuse-utils/importer/interpolator.h vendor/fuse-emulator/current/fuse-utils/importer/soundfile.cc vendor/fuse-emulator/current/fuse-utils/man/audio2tape.1 vendor/fuse-emulator/current/fuse-utils/man/createhdf.1 vendor/fuse-emulator/current/fuse-utils/man/fuse-utils.1 vendor/fuse-emulator/current/fuse-utils/man/listbasic.1 vendor/fuse-emulator/current/fuse-utils/man/profile2map.1 vendor/fuse-emulator/current/fuse-utils/man/raw2hdf.1 vendor/fuse-emulator/current/fuse-utils/man/rzxcheck.1 vendor/fuse-emulator/current/fuse-utils/man/rzxdump.1 vendor/fuse-emulator/current/fuse-utils/man/rzxtool.1 vendor/fuse-emulator/current/fuse-utils/man/scl2trd.1 vendor/fuse-emulator/current/fuse-utils/man/snap2tzx.1 vendor/fuse-emulator/current/fuse-utils/man/snapconv.1 vendor/fuse-emulator/current/fuse-utils/man/tape2wav.1 vendor/fuse-emulator/current/fuse-utils/man/tapeconv.1 vendor/fuse-emulator/current/fuse-utils/man/tzxlist.1 vendor/fuse-emulator/current/fuse-utils/tape2wav.c vendor/fuse-emulator/current/fusetest/Makefile vendor/fuse-emulator/current/fusetest/README vendor/fuse-emulator/current/fusetest/contention.asm vendor/fuse-emulator/current/fusetest/first.asm vendor/fuse-emulator/current/fusetest/framelength.asm vendor/fuse-emulator/current/fusetest/fusetest.asm vendor/fuse-emulator/current/fusetest/guessmachine.asm vendor/fuse-emulator/current/fusetest/sync.asm vendor/fuse-emulator/current/fusetest/tests.asm vendor/fuse-emulator/current/gdos-tools/configure.in vendor/fuse-emulator/current/gdos-tools/hacking/ChangeLog vendor/fuse-emulator/current/libgdos/configure.in vendor/fuse-emulator/current/libgdos/hacking/ChangeLog vendor/fuse-emulator/current/libspectrum/AUTHORS vendor/fuse-emulator/current/libspectrum/ChangeLog vendor/fuse-emulator/current/libspectrum/Makefile.am vendor/fuse-emulator/current/libspectrum/README vendor/fuse-emulator/current/libspectrum/accessor.pl vendor/fuse-emulator/current/libspectrum/configure.in vendor/fuse-emulator/current/libspectrum/doc/cvs-tags vendor/fuse-emulator/current/libspectrum/doc/libspectrum.3 vendor/fuse-emulator/current/libspectrum/doc/libspectrum.txt vendor/fuse-emulator/current/libspectrum/hacking/ChangeLog vendor/fuse-emulator/current/libspectrum/libspectrum.c vendor/fuse-emulator/current/libspectrum/libspectrum.h.in vendor/fuse-emulator/current/libspectrum/make-perl.c vendor/fuse-emulator/current/libspectrum/myglib/gslist.c vendor/fuse-emulator/current/libspectrum/sna.c vendor/fuse-emulator/current/libspectrum/snap_accessors.txt vendor/fuse-emulator/current/libspectrum/snapshot.c vendor/fuse-emulator/current/libspectrum/szx.c vendor/fuse-emulator/current/libspectrum/tape.c vendor/fuse-emulator/current/libspectrum/tape_block.c vendor/fuse-emulator/current/libspectrum/test/Makefile.am vendor/fuse-emulator/current/libspectrum/timings.c vendor/fuse-emulator/current/libspectrum/tzx_write.c vendor/fuse-emulator/current/libspectrum/warajevo_read.c vendor/fuse-emulator/current/libspectrum/z80.c vendor/fuse-emulator/current/website/fuse.php vendor/fuse-emulator/current/website/libspectrum.php Added Paths: ----------- vendor/fuse-emulator/current/fuse/compat/unix/dir.c vendor/fuse-emulator/current/fuse/compat/wii/dir.c vendor/fuse-emulator/current/fuse/compat/wii/osname.c vendor/fuse-emulator/current/fuse/compat/wii/paths.c vendor/fuse-emulator/current/fuse/compat/wii/timer.c vendor/fuse-emulator/current/fuse/fuller.c vendor/fuse-emulator/current/fuse/fuller.h vendor/fuse-emulator/current/fuse/ide/Makefile.am vendor/fuse-emulator/current/fuse/melodik.c vendor/fuse-emulator/current/fuse/melodik.h vendor/fuse-emulator/current/fuse/sound/Blip_Buffer.cpp vendor/fuse-emulator/current/fuse/sound/Blip_Buffer.h vendor/fuse-emulator/current/fuse/sound/wiisound.c vendor/fuse-emulator/current/fuse/timer/native.c vendor/fuse-emulator/current/fuse/ui/wii/ vendor/fuse-emulator/current/fuse/ui/wii/Makefile.am vendor/fuse-emulator/current/fuse/ui/wii/wiidisplay.c vendor/fuse-emulator/current/fuse/ui/wii/wiidisplay.h vendor/fuse-emulator/current/fuse/ui/wii/wiijoystick.c vendor/fuse-emulator/current/fuse/ui/wii/wiikeyboard.c vendor/fuse-emulator/current/fuse/ui/wii/wiikeyboard.h vendor/fuse-emulator/current/fuse/ui/wii/wiikeysyms.h vendor/fuse-emulator/current/fuse/ui/wii/wiimouse.c vendor/fuse-emulator/current/fuse/ui/wii/wiimouse.h vendor/fuse-emulator/current/fuse/ui/wii/wiiui.c vendor/fuse-emulator/current/fuse/ui/win32/installer/ vendor/fuse-emulator/current/fuse/ui/win32/installer/Makefile.am vendor/fuse-emulator/current/fuse/ui/win32/installer/fuse.nsi vendor/fuse-emulator/current/fuse-utils/converter/romloaderstate.cc vendor/fuse-emulator/current/fusetest/findcontention.asm vendor/fuse-emulator/current/fusetest/findcontention.dot vendor/fuse-emulator/current/fusetest/testcontention.asm Removed Paths: ------------- vendor/fuse-emulator/current/debian/lib765/ vendor/fuse-emulator/current/debian/libdsk/ vendor/fuse-emulator/current/fuse/compat/wii/file.c Modified: vendor/fuse-emulator/current/fuse/AUTHORS =================================================================== --- vendor/fuse-emulator/current/fuse/AUTHORS 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/AUTHORS 2009-06-27 12:46:44 UTC (rev 599) @@ -41,6 +41,8 @@ * Gergely Szasz: Interface I/microdrive emulation, the 'movie' code and the ao sound driver. +* Bjoern Giesler: the original Wii port. + * Philip Kendall: everything else. -$Id: AUTHORS 2433 2004-11-28 21:58:44Z pak21 $ +$Id: AUTHORS 3944 2009-01-10 18:17:04Z pak21 $ Modified: vendor/fuse-emulator/current/fuse/ChangeLog =================================================================== --- vendor/fuse-emulator/current/fuse/ChangeLog 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/ChangeLog 2009-06-27 12:46:44 UTC (rev 599) @@ -1,5 +1,15 @@ -2008-11-?? Philip Kendall <phi...@sh...> +2008-12-10 Philip Kendall <phi...@sh...> + * Fuse 0.10.0.1 released + + * Writing files would not truncate the file at the correct point, + leading to corrupt files when overwriting an existing file + (Philip Kendall; thanks, Matthew Westcott). + + * Distribute ui/fb/fbmouse.h (Fredrick Meunier; thanks, rkd77). + +2008-12-03 Philip Kendall <phi...@sh...> + * Fuse 0.10.0 released * New upd765 FDC emulation; all known +3 DSK images now work (Gergely @@ -16,6 +26,8 @@ * Reading from the 128K's memory control port causes that byte to be written back to the port (Philip Kendall; thanks, Marat Fayzullin). + * Reading the AY data port on the +2A/+3 is the same as reading + the register port (Philip Kendall; thanks, Mark Woodmass). * NMI causes Z80 to unHALT (Philip Kendall; thanks, Simon Owen). * Emulate C, H and P/V flags on repeated IO instructions (Philip Kendall). @@ -929,4 +941,4 @@ * Version 0.1.0 released. -$Id: ChangeLog 3787 2008-10-22 19:10:25Z pak21 $ +$Id: ChangeLog 3900 2008-12-10 19:31:31Z pak21 $ Modified: vendor/fuse-emulator/current/fuse/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ # Process this file with automake to produce Makefile.in -## Copyright (c) 1999-2008 Philip Kendall +## Copyright (c) 1999-2009 Philip Kendall -## $Id: Makefile.am 3617 2008-05-17 08:09:47Z pak21 $ +## $Id: Makefile.am 4032 2009-06-10 11:09:44Z fredm $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -29,6 +29,7 @@ debugger \ disk \ hacking \ + ide \ lib \ machines \ man \ @@ -44,6 +45,7 @@ DIST_SUBDIRS = debugger \ disk \ hacking \ + ide \ lib \ machines \ man \ @@ -59,10 +61,9 @@ fuse_SOURCES = ay.c \ dck.c \ display.c \ - divide.c \ event.c \ + fuller.c \ fuse.c \ - ide.c \ if1.c \ if2.c \ input.c \ @@ -71,6 +72,7 @@ keyboard.c \ loader.c \ machine.c \ + melodik.c \ memory.c \ mempool.c \ menu.c \ @@ -83,19 +85,16 @@ scld.c \ screenshot.c \ settings.c \ - simpleide.c \ slt.c \ snapshot.c \ - sound.c \ + sound.cpp \ spectrum.c \ tape.c \ ui.c \ uidisplay.c \ ula.c \ utils.c \ - windres.rc \ - zxatasp.c \ - zxcf.c + windres.rc if COMPAT_DIRNAME fuse_SOURCES += compat/dirname.c @@ -113,36 +112,42 @@ fuse_LDADD = debugger/libdebugger.a \ @UI_LIBS@ \ +debugger/libdebugger.a \ +disk/libdisk.a \ +ide/libide.a \ machines/libmachines.a \ -disk/libdisk.a \ pokefinder/libpokefinder.a \ sound/libsound.a \ +timer/libtimer.a \ ui/scaler/libscaler.a \ unittests/libunittests.a \ -debugger/libdebugger.a \ -timer/libtimer.a \ z80/libz80.a \ @LIBSPEC_LIBS@ \ @GLIB_LIBS@ \ @PNG_LIBS@ \ @SOUND_LIBS@ \ -@SAMPLERATE_LIBS@ \ @SDL_LIBS@ \ @X_LIBS@ \ @XML_LIBS@ \ compat/@COMPAT_OSNAME@/libcompatos.a \ @WINDRES_OBJ@ -fuse_DEPENDENCIES = @UI_LIBS@ \ - disk/libdisk.a \ - debugger/libdebugger.a \ - machines/libmachines.a \ - sound/libsound.a \ - unittests/libunittests.a\ - z80/libz80.a \ - @WINDRES_OBJ@ +fuse_DEPENDENCIES = debugger/libdebugger.a \ +@UI_LIBS@ \ +debugger/libdebugger.a \ +disk/libdisk.a \ +ide/libide.a \ +machines/libmachines.a \ +pokefinder/libpokefinder.a \ +sound/libsound.a \ +timer/libtimer.a \ +ui/scaler/libscaler.a \ +unittests/libunittests.a \ +z80/libz80.a \ +compat/@COMPAT_OSNAME@/libcompatos.a \ +@WINDRES_OBJ@ -BUILT_SOURCES = settings.c settings.h +BUILT_SOURCES = options.h settings.c settings.h windres.o: windres.rc winfuse.ico @WINDRES@ -I$(srcdir) -I. $(srcdir)/windres.rc windres.o @@ -153,18 +158,25 @@ settings.h: settings-header.pl settings.dat @PERL@ -I$(srcdir)/perl $(srcdir)/settings-header.pl $(srcdir)/settings.dat > $@.tmp && mv $@.tmp $@ +if WIDGET +options.h: $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/@WIDGET@/options-header.pl $(srcdir)/ui/options.dat $(srcdir)/perl/Fuse.pm $(srcdir)/perl/Fuse/Dialog.pm + @PERL@ $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/options.dat | @PERL@ -I$(srcdir)/perl $(srcdir)/ui/@WIDGET@/options-header.pl - public > $@.tmp && mv $@.tmp $@ +else +options.h: $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/@UI@/options-header.pl $(srcdir)/ui/options.dat $(srcdir)/perl/Fuse.pm $(srcdir)/perl/Fuse/Dialog.pm + @PERL@ $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/options.dat | @PERL@ -I$(srcdir)/perl $(srcdir)/ui/@UI@/options-header.pl - public > $@.tmp && mv $@.tmp $@ +endif + INCLUDES = @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBSPEC_CFLAGS@ \ -@XML_CFLAGS@ @SAMPLERATE_CFLAGS@ -DFUSEDATADIR="\"${pkgdatadir}\"" @SDL_CFLAGS@ +@XML_CFLAGS@ -DFUSEDATADIR="\"${pkgdatadir}\"" @SDL_CFLAGS@ noinst_HEADERS = ay.h \ bitmap.h \ compat.h \ dck.h \ display.h \ - divide.h \ event.h \ + fuller.h \ fuse.h \ - ide.h \ if1.h \ if2.h \ input.h \ @@ -172,7 +184,9 @@ kempmouse.h \ loader.h \ machine.h \ + melodik.h \ memory.h \ + mempool.h \ menu.h \ module.h \ periph.h \ @@ -180,7 +194,6 @@ rzx.h \ screenshot.h \ settings.h \ - simpleide.h \ slt.h \ snapshot.h \ sound.h \ @@ -188,12 +201,11 @@ tape.h \ utils.h \ joystick.h \ + options.h \ printer.h \ profile.h \ scld.h \ - ula.h \ - zxatasp.h \ - zxcf.h + ula.h EXTRA_DIST = AUTHORS \ README \ @@ -207,7 +219,8 @@ settings.dat \ winfuse.ico -CLEANFILES = settings.c \ +CLEANFILES = options.h \ + settings.c \ settings.h AM_CPPFLAGS = Modified: vendor/fuse-emulator/current/fuse/README =================================================================== --- vendor/fuse-emulator/current/fuse/README 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/README 2009-06-27 12:46:44 UTC (rev 599) @@ -1,5 +1,5 @@ -The Free Unix Spectrum Emulator (Fuse) 0.9.0 -============================================ +The Free Unix Spectrum Emulator (Fuse) 0.10.0.1 +=============================================== Fuse (the Free Unix Spectrum Emulator) was originally, and somewhat unsurprisingly, an emulator of the ZX Spectrum (a popular 1980s home @@ -55,8 +55,6 @@ * libpng: the ability to save screenshots * libxml2: the ability to load and save Fuse's current configuration * zlib: support for compressed RZX files - * samplerate: support for better beeper sound quality; get it from - http://www.mega-nerd.com/SRC/ If you've used Fuse prior to version 0.5.0, note that the external utilities (tzxlist, etc) are now available separately from Fuse @@ -123,6 +121,36 @@ The native Cocoa port by Fredrick Meunier <fr...@sp...> comes as a set of Xcode projects for libgcrypt, libspectrum and Fuse itself. +Building the Wii version of Fuse +-------------------------------- + +You'll need to have the standard Wii homebrew toolchain installed; see +eg <http://wiibrew.org/wiki/DevkitPro> for some information on setting +this up. + +After that, make sure the dev tools are in your path (export +PATH=$PATH:$DEVKITPPC/bin) and that a Wii version of libspectrum has been +built and installed. + +Then, use this configure line: + +./configure --target=powerpc-gekko --host=powerpc-gekko \ + --with-wii \ + --without-libxml2 --without-libiconv --without-gpm \ + --without-x --without-glib \ + CFLAGS="-g -I$DEVKITPPC/include -I$DEVKITPRO/libogc/include" \ + LDFLAGS="-g -mrvl -mcpu=750 -meabi -mhard-float \ + -Wl,-Map,fuse.elf.map -L$DEVKITPPC/lib \ + -L$DEVKITPRO/libogc/lib/wii" \ + LIBS="-lfat -lwiiuse -lbte -logc -lm" + +Finally, to build, use this line: + +EXEEXT=".elf" make -e + +This should build fuse.elf, which you can run on your Wii via the usual +methods. + Closing comments ---------------- @@ -150,6 +178,6 @@ ( http://www.worldofspectrum.org/faq/index.html ) first! Philip Kendall <phi...@sh...> -5 January 2008 +10 December 2008 -$Id: README 3801 2008-10-31 16:22:13Z pak21 $ +$Id: README 4021 2009-05-29 13:39:51Z fredm $ Modified: vendor/fuse-emulator/current/fuse/ay.c =================================================================== --- vendor/fuse-emulator/current/fuse/ay.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/ay.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* ay.c: AY-8-3912 routines - Copyright (c) 1999-2004 Philip Kendall + Copyright (c) 1999-2009 Philip Kendall - $Id: ay.c 3494 2008-01-15 16:37:50Z pak21 $ + $Id: ay.c 4030 2009-06-07 14:38:38Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -131,22 +131,26 @@ if( current == 14 ) printer_serial_write( b ); } -static void -ay_from_snapshot( libspectrum_snap *snap ) +void +ay_state_from_snapshot( libspectrum_snap *snap ) { size_t i; - if( machine_current->capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_AY ) { + ay_registerport_write( 0xfffd, + libspectrum_snap_out_ay_registerport( snap ) ); - ay_registerport_write( 0xfffd, - libspectrum_snap_out_ay_registerport( snap ) ); + for( i = 0; i < AY_REGISTERS; i++ ) { + machine_current->ay.registers[i] = + libspectrum_snap_ay_registers( snap, i ); + sound_ay_write( i, machine_current->ay.registers[i], 0 ); + } +} - for( i = 0; i < AY_REGISTERS; i++ ) { - machine_current->ay.registers[i] = - libspectrum_snap_ay_registers( snap, i ); - sound_ay_write( i, machine_current->ay.registers[i], 0 ); - } - +static void +ay_from_snapshot( libspectrum_snap *snap ) +{ + if( machine_current->capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_AY ) { + ay_state_from_snapshot( snap ); } } Modified: vendor/fuse-emulator/current/fuse/ay.h =================================================================== --- vendor/fuse-emulator/current/fuse/ay.h 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/ay.h 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* ay.h: AY-8-3912 routines - Copyright (c) 1999-2004 Philip Kendall + Copyright (c) 1999-2009 Philip Kendall - $Id: ay.h 2993 2007-06-17 13:54:49Z pak21 $ + $Id: ay.h 4030 2009-06-07 14:38:38Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,4 +42,6 @@ void ay_dataport_write( libspectrum_word port, libspectrum_byte b ); +void ay_state_from_snapshot( libspectrum_snap *snap ); + #endif /* #ifndef FUSE_AY_H */ Modified: vendor/fuse-emulator/current/fuse/compat/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2003-2007 Philip Kendall -## $Id: Makefile.am 3283 2007-11-09 12:21:06Z fredm $ +## $Id: Makefile.am 3944 2009-01-10 18:17:04Z pak21 $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -26,6 +26,7 @@ DIST_SUBDIRS += compat/amiga \ compat/morphos \ compat/unix \ + compat/wii \ compat/win32 EXTRA_fuse_SOURCES += compat/dirname.c \ Modified: vendor/fuse-emulator/current/fuse/compat/amiga/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/amiga/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/amiga/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 3687 2008-06-23 11:55:23Z pak21 $ +## $Id: Makefile.am 3935 2009-01-07 12:55:13Z pak21 $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -27,8 +27,10 @@ noinst_LIBRARIES = libcompatos.a -libcompatos_a_SOURCES = ../unix/file.c \ +libcompatos_a_SOURCES = ../unix/dir.c \ + ../unix/file.c \ osname.c \ - paths.c + paths.c \ + ../unix/timer.c INCLUDES = @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBSPEC_CFLAGS@ Modified: vendor/fuse-emulator/current/fuse/compat/amiga/paths.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/amiga/paths.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/amiga/paths.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* paths.c: Path-related compatibility routines Copyright (c) 1999-2007 Philip Kendall - $Id: paths.c 3578 2008-03-22 20:51:36Z zubzero $ + $Id: paths.c 3843 2008-11-19 21:27:03Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,6 +42,5 @@ int compat_is_absolute_path( const char *path ) { - /* Is this correct? */ - return path[0] == '/'; + return strchr(path,':'); } Modified: vendor/fuse-emulator/current/fuse/compat/morphos/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/morphos/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/morphos/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 3687 2008-06-23 11:55:23Z pak21 $ +## $Id: Makefile.am 3935 2009-01-07 12:55:13Z pak21 $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -27,8 +27,10 @@ noinst_LIBRARIES = libcompatos.a -libcompatos_a_SOURCES = ../unix/file.c \ +libcompatos_a_SOURCES = ../unix/dir.c \ + ../unix/file.c \ osname.c \ - ../amiga/paths.c + ../amiga/paths.c \ + ../unix/timer.c INCLUDES = @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBSPEC_CFLAGS@ Modified: vendor/fuse-emulator/current/fuse/compat/morphos/osname.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/morphos/osname.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/morphos/osname.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* osname.c: Get a representation of the OS we're running on Copyright (c) 1999-2007 Philip Kendall - $Id: osname.c 3139 2007-09-03 10:27:57Z fredm $ + $Id: osname.c 3922 2008-12-31 19:01:31Z zubzero $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by Modified: vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 3687 2008-06-23 11:55:23Z pak21 $ +## $Id: Makefile.am 3935 2009-01-07 12:55:13Z pak21 $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -27,8 +27,10 @@ noinst_LIBRARIES = libcompatos.a -libcompatos_a_SOURCES = file.c \ +libcompatos_a_SOURCES = dir.c \ + file.c \ osname.c \ - paths.c + paths.c \ + timer.c INCLUDES = @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBSPEC_CFLAGS@ Added: vendor/fuse-emulator/current/fuse/compat/unix/dir.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/dir.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/unix/dir.c 2009-06-27 12:46:44 UTC (rev 599) @@ -0,0 +1,63 @@ +/* dir.c: Directory-related compatibility routines + Copyright (c) 2009 Philip Kendall + + $Id: dir.c 3945 2009-01-10 18:44:42Z zubzero $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Author contact information: + + E-mail: phi...@sh... + +*/ + +#include <config.h> + +#include <errno.h> +#include <string.h> + +#include "compat.h" + +compat_dir +compat_opendir( const char *path ) +{ + return opendir( path ); +} + +compat_dir_result_t +compat_readdir( compat_dir directory, char *name, size_t length ) +{ + compat_dir_result_t r; + struct dirent *dirent; + + errno = 0; + dirent = readdir( directory ); + + if( dirent ) { + r = COMPAT_DIR_RESULT_OK; + strncpy( name, dirent->d_name, length ); + name[ length - 1 ] = 0; + } else { + r = ( errno == 0 ? COMPAT_DIR_RESULT_END : COMPAT_DIR_RESULT_ERROR ); + } + + return r; +} + +int +compat_closedir( compat_dir directory ) +{ + return closedir( directory ); +} Modified: vendor/fuse-emulator/current/fuse/compat/unix/file.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/file.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/unix/file.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* file.c: File-related compatibility routines Copyright (c) 2008 Philip Kendall - $Id: file.c 3776 2008-10-06 00:49:45Z fredm $ + $Id: file.c 4040 2009-06-27 09:32:42Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,22 +33,15 @@ #include <unistd.h> #include "compat.h" +#include "utils.h" #include "ui/ui.h" -/* Certain brain damaged operating systems (DOS/Windows) treat text - and binary files different in open(2) and need to be given the - O_BINARY flag to tell them it's a binary file */ -#ifndef O_BINARY -#define O_BINARY 0 -#endif /* #ifndef O_BINARY */ +const compat_fd COMPAT_FILE_OPEN_FAILED = NULL; -const compat_fd COMPAT_FILE_OPEN_FAILED = -1; - compat_fd compat_file_open( const char *path, int write ) { - int flags = write ? O_WRONLY | O_CREAT | O_BINARY : O_RDONLY | O_BINARY; - return open( path, flags, 0666 ); + return fopen( path, write ? "w" : "r" ); } off_t @@ -56,7 +49,7 @@ { struct stat file_info; - if( fstat( fd, &file_info ) ) { + if( fstat( fileno( fd ), &file_info ) ) { ui_error( UI_ERROR_ERROR, "couldn't stat file: %s", strerror( errno ) ); return -1; } @@ -67,15 +60,11 @@ int compat_file_read( compat_fd fd, utils_file *file ) { - ssize_t bytes = read( fd, file->buffer, file->length ); + size_t bytes = fread( file->buffer, 1, file->length, fd ); if( bytes != file->length ) { - if( bytes == -1 ) { - ui_error( UI_ERROR_ERROR, "error reading file: %s", strerror( errno ) ); - } else { - ui_error( UI_ERROR_ERROR, - "error reading file: expected %ld bytes, but read only %ld", - (unsigned long)file->length, (unsigned long)bytes ); - } + ui_error( UI_ERROR_ERROR, + "error reading file: expected %lu bytes, but read only %lu", + file->length, bytes ); return 1; } @@ -85,15 +74,11 @@ int compat_file_write( compat_fd fd, const unsigned char *buffer, size_t length ) { - ssize_t bytes = write( fd, buffer, length ); + size_t bytes = fwrite( buffer, 1, length, fd ); if( bytes != length ) { - if( bytes == -1 ) { - ui_error( UI_ERROR_ERROR, "error writing file: %s", strerror( errno ) ); - } else { - ui_error( UI_ERROR_ERROR, - "error writing file: expected %ld bytes, but wrote only %ld", - (unsigned long)length, (unsigned long)bytes ); - } + ui_error( UI_ERROR_ERROR, + "error writing file: expected %lu bytes, but wrote only %lu", + length, bytes ); return 1; } @@ -103,5 +88,5 @@ int compat_file_close( compat_fd fd ) { - return close( fd ); + return fclose( fd ); } Modified: vendor/fuse-emulator/current/fuse/compat/unix/osname.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/osname.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/unix/osname.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* osname.c: Get a representation of the OS we're running on Copyright (c) 1999-2007 Philip Kendall - $Id: osname.c 3626 2008-05-23 10:30:30Z pak21 $ + $Id: osname.c 3922 2008-12-31 19:01:31Z zubzero $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by Modified: vendor/fuse-emulator/current/fuse/compat/unix/paths.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/paths.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/unix/paths.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* paths.c: Path-related compatibility routines Copyright (c) 1999-2007 Philip Kendall - $Id: paths.c 3253 2007-10-26 02:02:17Z zubzero $ + $Id: paths.c 3922 2008-12-31 19:01:31Z zubzero $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by Modified: vendor/fuse-emulator/current/fuse/compat/unix/timer.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/timer.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/unix/timer.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ -/* unix.c: UNIX speed routines for Fuse - Copyright (c) 1999-2007 Philip Kendall, Marek Januszewski, Fredrick Meunier +/* timer.c: UNIX speed routines for Fuse + Copyright (c) 1999-2008 Philip Kendall, Marek Januszewski, Fredrick Meunier - $Id: unix.c 3115 2007-08-19 02:49:14Z fredm $ + $Id: timer.c 3982 2009-02-11 12:00:22Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,46 +27,29 @@ #include <errno.h> #include <string.h> +#include <sys/time.h> #include <unistd.h> -#include "timer.h" +#include "compat.h" #include "ui/ui.h" -int -timer_get_real_time( timer_type *real_time ) +double +compat_timer_get_time( void ) { + struct timeval tv; int error; - error = gettimeofday( real_time, NULL ); + error = gettimeofday( &tv, NULL ); if( error ) { - ui_error( UI_ERROR_ERROR, "error getting time: %s", strerror( errno ) ); - return 1; + ui_error( UI_ERROR_ERROR, "%s: error getting time: %s", __func__, strerror( errno ) ); + return -1; } - return 0; + return tv.tv_sec + tv.tv_usec / 1000000.0; } -float -timer_get_time_difference( timer_type *a, timer_type *b ) -{ - return ( a->tv_sec - b->tv_sec ) + ( a->tv_usec - b->tv_usec ) / 1000000.0; -} - void -timer_add_time_difference( timer_type *a, long msec ) +compat_timer_sleep( int ms ) { - a->tv_usec += msec * 1000; - if( a->tv_usec >= 1000000 ) { - a->tv_usec -= 1000000; - a->tv_sec += 1; - } else if( a->tv_usec < 0 ) { - a->tv_usec += 1000000; - a->tv_sec -= 1; - } -} - -void -timer_sleep_ms( int ms ) -{ usleep( ms * 1000 ); } Modified: vendor/fuse-emulator/current/fuse/compat/wii/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/wii/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/wii/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 3687 2008-06-23 11:55:23Z pak21 $ +## $Id: Makefile.am 4040 2009-06-27 09:32:42Z fredm $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -27,8 +27,10 @@ noinst_LIBRARIES = libcompatos.a -libcompatos_a_SOURCES = file.c \ +libcompatos_a_SOURCES = dir.c \ + ../unix/file.c \ osname.c \ - paths.c + paths.c \ + timer.c INCLUDES = @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBSPEC_CFLAGS@ Added: vendor/fuse-emulator/current/fuse/compat/wii/dir.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/wii/dir.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/wii/dir.c 2009-06-27 12:46:44 UTC (rev 599) @@ -0,0 +1,50 @@ +/* dir.c: Directory-related compatibility routines + Copyright (c) 2009 Philip Kendall + + $Id: dir.c 3945 2009-01-10 18:44:42Z zubzero $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Author contact information: + + E-mail: phi...@sh... + +*/ + +#include <config.h> + +#include "compat.h" + +compat_dir +compat_opendir( const char *path ) +{ + return diropen( path ); +} + +compat_dir_result_t +compat_readdir( compat_dir directory, char *path, size_t length ) +{ + struct stat fstat; + + int done = dirnext( directory, path, &fstat ); + + return done ? COMPAT_DIR_RESULT_END : COMPAT_DIR_RESULT_OK; +} + +int +compat_closedir( compat_dir directory ) +{ + return dirclose( directory ); +} Deleted: vendor/fuse-emulator/current/fuse/compat/wii/file.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/wii/file.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/wii/file.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,90 +0,0 @@ -/* file.c: File-related compatibility routines - Copyright (c) 2008 Philip Kendall - - $Id: file.c 3688 2008-06-23 18:17:56Z pak21 $ - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - Author contact information: - - E-mail: phi...@sh... - -*/ - -#include <config.h> - -#include <errno.h> -#include <fcntl.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> - -#include "compat.h" -#include "ui/ui.h" - -const compat_fd COMPAT_FILE_OPEN_FAILED = NULL; - -compat_fd -compat_file_open( const char *path, int write ) -{ - return fopen( path, write ? "w" : "r" ); -} - -off_t -compat_file_get_length( compat_fd fd ) -{ - struct stat file_info; - - if( fstat( fileno( fd ), &file_info ) ) { - ui_error( UI_ERROR_ERROR, "couldn't stat file: %s", strerror( errno ) ); - return -1; - } - - return file_info.st_size; -} - -int -compat_file_read( compat_fd fd, utils_file *file ) -{ - size_t bytes = fread( file->buffer, 1, file->length, fd ); - if( bytes != file->length ) { - ui_error( UI_ERROR_ERROR, - "error reading file: expected %d bytes, but read only %d", - file->length, bytes ); - return 1; - } - - return 0; -} - -int -compat_file_write( compat_fd fd, const unsigned char *buffer, size_t length ) -{ - size_t bytes = fwrite( buffer, 1, length, fd ); - if( bytes != length ) { - ui_error( UI_ERROR_ERROR, - "error writing file: expected %d bytes, but wrote only %d", - length, bytes ); - return 1; - } - - return 0; -} - -int -compat_file_close( compat_fd fd ) -{ - return fclose( fd ); -} Added: vendor/fuse-emulator/current/fuse/compat/wii/osname.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/wii/osname.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/wii/osname.c 2009-06-27 12:46:44 UTC (rev 599) @@ -0,0 +1,39 @@ +/* osname.c: Get a representation of the OS we're running on + Copyright (c) 1999-2009 Philip Kendall, Bjoern Giesler + + $Id: osname.c 3945 2009-01-10 18:44:42Z zubzero $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Author contact information: + + E-mail: phi...@sh... + +*/ + +#include <config.h> + +#include <errno.h> +#include <stdlib.h> +#include <string.h> + +#include "ui/ui.h" + +int +compat_osname( char *buffer, size_t length ) +{ + snprintf(buffer, length, "Wii"); + return 0; +} Added: vendor/fuse-emulator/current/fuse/compat/wii/paths.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/wii/paths.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/wii/paths.c 2009-06-27 12:46:44 UTC (rev 599) @@ -0,0 +1,54 @@ +/* paths.c: Path-related compatibility routines + Copyright (c) 1999-2009 Philip Kendall, Bjoern Giesler + + $Id: paths.c 3970 2009-01-19 03:47:02Z specu $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Author contact information: + + E-mail: phi...@sh... + +*/ + +#include <config.h> + +#include <stdlib.h> +#include <string.h> + +#include "compat.h" + +const char* +compat_get_temp_path( void ) +{ + return "/tmp"; +} + +const char* +compat_get_home_path( void ) +{ + return "sd:/apps/fuse"; +} + +int +compat_is_absolute_path( const char *path ) +{ + if(strlen(path) >= 1 && path[0] == '/') + return 1; + if(strlen(path) >= strlen("fat:/") && + strncmp(path, "fat:/", strlen("fat:/")) == 0) + return 1; + return 0; +} Added: vendor/fuse-emulator/current/fuse/compat/wii/timer.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/wii/timer.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/wii/timer.c 2009-06-27 12:46:44 UTC (rev 599) @@ -0,0 +1,57 @@ +/* unix.c: UNIX speed routines for Fuse + Copyright (c) 1999-2007 Philip Kendall, Marek Januszewski, Fredrick Meunier + + $Id: timer.c 3944 2009-01-10 18:17:04Z pak21 $ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Author contact information: + + E-mail: phi...@sh... + +*/ + +#include <config.h> + +#include <errno.h> +#include <string.h> +#include <unistd.h> + +#include "compat.h" +#include "ui/ui.h" + +/* FIXME: where should we get this prototype from? */ +extern int clock_gettime(struct timespec *tp); + +double +compat_timer_get_time( void ) +{ + int error; + struct timespec tp; + + error = clock_gettime(&tp); + if( error ) { + ui_error( UI_ERROR_ERROR, "%s: error getting time: %s", __func__, strerror( errno ) ); + return -1; + } + + return tp.tv_sec + tp.tv_nsec / 1000000000.0; +} + +void +compat_timer_sleep( int ms ) +{ + usleep( ms * 1000 ); +} Modified: vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 3687 2008-06-23 11:55:23Z pak21 $ +## $Id: Makefile.am 3935 2009-01-07 12:55:13Z pak21 $ ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -27,8 +27,10 @@ noinst_LIBRARIES = libcompatos.a -libcompatos_a_SOURCES = ../unix/file.c \ +libcompatos_a_SOURCES = ../unix/dir.c \ + ../unix/file.c \ osname.c \ - paths.c + paths.c \ + timer.c INCLUDES = @GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBSPEC_CFLAGS@ Modified: vendor/fuse-emulator/current/fuse/compat/win32/osname.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/win32/osname.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/win32/osname.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* osname.c: Get a representation of the OS we're running on Copyright (c) 1999-2007 Philip Kendall - $Id: osname.c 3315 2007-11-20 03:01:59Z zubzero $ + $Id: osname.c 3922 2008-12-31 19:01:31Z zubzero $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by Modified: vendor/fuse-emulator/current/fuse/compat/win32/paths.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/win32/paths.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/win32/paths.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* paths.c: Path-related compatibility routines Copyright (c) 1999-2007 Philip Kendall - $Id: paths.c 3253 2007-10-26 02:02:17Z zubzero $ + $Id: paths.c 3922 2008-12-31 19:01:31Z zubzero $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by Modified: vendor/fuse-emulator/current/fuse/compat/win32/timer.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/win32/timer.c 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat/win32/timer.c 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ -/* win32.c: Win32 speed routines for Fuse - Copyright (c) 1999-2007 Philip Kendall, Marek Januszewski, Fredrick Meunier +/* timer.c: Win32 speed routines for Fuse + Copyright (c) 1999-2008 Philip Kendall, Marek Januszewski, Fredrick Meunier - $Id: win32.c 3087 2007-07-31 19:08:50Z zubzero $ + $Id: timer.c 3951 2009-01-12 18:09:42Z specu $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,30 +25,18 @@ #include <config.h> -#include "timer.h" +#include <windows.h> -int -timer_get_real_time( timer_type *real_time ) -{ - *real_time = GetTickCount(); +#include "compat.h" - return 0; -} - -float -timer_get_time_difference( timer_type *a, timer_type *b ) +double +compat_timer_get_time( void ) { - return ( (long)*a - (long)*b ) / 1000.0; + return GetTickCount() / 1000.0; } void -timer_add_time_difference( timer_type *a, long msec ) +compat_timer_sleep( int ms ) { - *a += msec; -} - -void -timer_sleep_ms( int ms ) -{ Sleep( ms ); } Modified: vendor/fuse-emulator/current/fuse/compat.h =================================================================== --- vendor/fuse-emulator/current/fuse/compat.h 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/compat.h 2009-06-27 12:46:44 UTC (rev 599) @@ -1,7 +1,7 @@ /* compat.h: various compatibility bits Copyright (c) 2003-2008 Philip Kendall - $Id: compat.h 3687 2008-06-23 11:55:23Z pak21 $ + $Id: compat.h 4040 2009-06-27 09:32:42Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,10 +26,11 @@ #ifndef FUSE_COMPAT_H #define FUSE_COMPAT_H +#include <stdio.h> +#include <dirent.h> #include <stdlib.h> +#include <sys/types.h> -#include <utils.h> - /* Remove the gcc-specific incantations if we're not using gcc */ #ifdef __GNUC__ @@ -54,7 +55,7 @@ #endif /* #ifndef HAVE_GETOPT_LONG */ #ifndef HAVE_MKSTEMP -int mkstemp( char *template ); +int mkstemp( char *templ ); #endif /* #ifndef HAVE_MKSTEMP */ /* That which separates components in a path name */ @@ -66,24 +67,52 @@ #define FUSE_DIR_SEP_STR "/" #endif +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + int compat_osname( char *buffer, size_t length ); const char* compat_get_temp_path( void ); const char* compat_get_home_path( void ); int compat_is_absolute_path( const char *path ); +typedef FILE* compat_fd; + #ifndef UI_WII -typedef int compat_fd; +typedef DIR* compat_dir; #else /* #ifndef UI_WII */ -typedef FILE* compat_fd; +typedef DIR_ITER* compat_dir; #endif /* #ifndef UI_WII */ extern const compat_fd COMPAT_FILE_OPEN_FAILED; +/* File handling */ + +struct utils_file; + compat_fd compat_file_open( const char *path, int write ); off_t compat_file_get_length( compat_fd fd ); -int compat_file_read( compat_fd fd, utils_file *file ); +int compat_file_read( compat_fd fd, struct utils_file *file ); int compat_file_write( compat_fd fd, const unsigned char *buffer, size_t length ); int compat_file_close( compat_fd fd ); +/* Directory handling */ + +typedef enum compat_dir_result_t { + COMPAT_DIR_RESULT_OK, + COMPAT_DIR_RESULT_END, + COMPAT_DIR_RESULT_ERROR, +} compat_dir_result_t; + +compat_dir compat_opendir( const char *path ); +compat_dir_result_t compat_readdir( compat_dir directory, char *name, + size_t length ); +int compat_closedir( compat_dir directory ); + +/* Timing routines */ + +double compat_timer_get_time( void ); +void compat_timer_sleep( int ms ); + #endif /* #ifndef FUSE_COMPAT_H */ Modified: vendor/fuse-emulator/current/fuse/configure.in =================================================================== --- vendor/fuse-emulator/current/fuse/configure.in 2009-06-27 12:33:22 UTC (rev 598) +++ vendor/fuse-emulator/current/fuse/configure.in 2009-06-27 12:46:44 UTC (rev 599) @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Id: configure.in 3796 2008-10-28 20:44:45Z specu $ +dnl $Id: configure.in 4028 2009-05-31 13:15:52Z fredm $ dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -24,10 +24,11 @@ AC_CANONICAL_SYSTEM dnl Use automake to produce `Makefile.in' -AM_INIT_AUTOMAKE(fuse, 0.9.0) +AM_INIT_AUTOMAKE(fuse, 0.10.0.1) dnl Checks for programs. AC_PROG_CC +AC_PROG_CXX AC_PROG_RANLIB AC_PATH_PROG(PERL, perl) AC_SUBST(PERL) @@ -92,7 +93,7 @@ AC_MSG_RESULT($win32) if test "$win32" = yes; then AC_CHECK_HEADER(windows.h, - LIBS="$LIBS -mwindows -lcomctl32"; + LIBS="$LIBS -mwindows -lcomctl32 -lwinmm"; AC_DEFINE([UI_WIN32], 1, [Defined if Win32 UI in use]) AC_DEFINE([WINVER], 0x0400, [Minimal supported version of Windows is 95 or NT4]) AC_DEFINE([_WIN32_IE], 0x400, [Internet Explorer is 4.0 or higher is required]) @@ -148,6 +149,38 @@ fi fi +dnl Look for Wii interface (default = 0) +if test -z "$UI"; then + AC_MSG_CHECKING(whether Wii UI requested) + AC_ARG_WITH(wii, + [ --with-wii use Wii FB for user interface], + if test "$withval" = no; then wii=no; else wii=yes; fi, + wii=no) + AC_MSG_RESULT($wii) + if test "$wii" = yes; then + AC_DEFINE([UI_WII], 1, [Defined if Wii UI in use]) + AC_DEFINE([USE_WIDGET], 1, [Defined if we're using a widget-based UI]) + AC_DEFINE([USE_JOYSTICK], 1, [Defined if we're using hardware joysticks]) + UI=wii; WIDGET=widget; + UI_LIBS="ui/wii/libuiwii.a ui/widget/libwidget.a" + target_os=wii + dnl Look for libgpm (default=yes) + AC_MSG_CHECKING(whether gpm requested) + AC_ARG_WITH(gpm, + [ --without-gpm don't use libgpm for e.g. Kempston mouse], + if test "$withval" = no; then gpm=no; else gpm=yes; fi, + gpm=yes) + AC_MSG_RESULT($gpm) + dnl Note: we use libdl to get libgpm at runtime + if test "$gpm" = yes; then + AC_CHECK_HEADER(gpm.h, + UI_LIBS="$UI_LIBS -ldl"; + AC_DEFINE([HAVE_GPM_H], 1, [Defined if gpm in use]), + AC_MSG_ERROR([libgpm not found])) + fi + fi +fi + dnl Look for SDL (default=no) if test -z "$UI"; then AC_MSG_CHECKING(whether SDL UI requested) @@ -227,6 +260,7 @@ AC_SUBST(UI) AC_SUBST(UI_LIBS) AC_SUBST(WIDGET) +AM_CONDITIONAL(WIDGET, test x$WIDGET != x) # If we're not using GTK+, must either find glib or use the replacement... [truncated message content] |