fuse-for-macosx-commits Mailing List for Fuse for macOS (Page 6)
Brought to you by:
fredm
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(31) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(24) |
Feb
(11) |
Mar
(6) |
Apr
(48) |
May
(9) |
Jun
(38) |
Jul
(33) |
Aug
(15) |
Sep
|
Oct
(3) |
Nov
(6) |
Dec
(3) |
2008 |
Jan
|
Feb
(24) |
Mar
(11) |
Apr
(22) |
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(3) |
Nov
(18) |
Dec
(23) |
2009 |
Jan
(16) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(7) |
Jul
(4) |
Aug
(11) |
Sep
(9) |
Oct
|
Nov
(3) |
Dec
(2) |
2010 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(8) |
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(9) |
Nov
|
Dec
(8) |
2011 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(2) |
Dec
|
2012 |
Jan
(4) |
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
(13) |
Dec
(11) |
2013 |
Jan
(4) |
Feb
(1) |
Mar
(8) |
Apr
(8) |
May
(16) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2014 |
Jan
|
Feb
(6) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(10) |
Jun
(9) |
Jul
(6) |
Aug
(5) |
Sep
(3) |
Oct
(6) |
Nov
(5) |
Dec
|
From: <fr...@us...> - 2012-12-05 12:45:09
|
Revision: 713 http://sourceforge.net/p/fuse-for-macosx/code/713 Author: fredm Date: 2012-12-05 12:44:59 +0000 (Wed, 05 Dec 2012) Log Message: ----------- Merge up to vendor revision 4676. Revision Links: -------------- http://sourceforge.net/p/fuse-for-macosx/code/4676 Modified Paths: -------------- trunk/fuse/Makefile.am trunk/fuse/README trunk/fuse/compat/unix/Makefile.am trunk/fuse/compat/unix/file.c trunk/fuse/compat/win32/Makefile.am trunk/fuse/compat.h trunk/fuse/configure.in trunk/fuse/debugger/breakpoint.c trunk/fuse/debugger/command.c trunk/fuse/debugger/debugger.c trunk/fuse/debugger/debugger.h trunk/fuse/debugger/debugger_internals.h trunk/fuse/debugger/event.c trunk/fuse/debugger/expression.c trunk/fuse/debugger/variable.c trunk/fuse/display.c trunk/fuse/display.h trunk/fuse/event.c trunk/fuse/event.h trunk/fuse/fuse.c trunk/fuse/fusepb/English.lproj/InfoPlist.strings trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj trunk/fuse/fusepb/Info-Fuse.plist trunk/fuse/fusepb/controllers/FuseController.h trunk/fuse/fusepb/controllers/FuseController.m trunk/fuse/fusepb/controllers/LoadBinaryController.m trunk/fuse/fusepb/controllers/PreferencesController.h trunk/fuse/fusepb/controllers/PreferencesController.m trunk/fuse/fusepb/libspectrum.h trunk/fuse/fusepb/models/Emulator.h trunk/fuse/fusepb/models/Emulator.m trunk/fuse/fusepb/resources/Fuse Help/html/tocstart.html trunk/fuse/fusepb/settings-header.pl trunk/fuse/fusepb/timer/timer.c trunk/fuse/fusepb/views/DisplayOpenGLView.h trunk/fuse/fusepb/views/DisplayOpenGLView.m trunk/fuse/fusepb/xibs/MainMenu.xib trunk/fuse/fusepb/xibs/Preferences.xib trunk/fuse/hacking/ChangeLog trunk/fuse/hacking/Makefile.am trunk/fuse/lib/Makefile.am trunk/fuse/machine.c trunk/fuse/machine.h trunk/fuse/machines/machines_periph.c trunk/fuse/machines/pentagon.c trunk/fuse/machines/pentagon1024.c trunk/fuse/machines/pentagon512.c trunk/fuse/machines/scorpion.c trunk/fuse/machines/spec128.c trunk/fuse/machines/spec16.c trunk/fuse/machines/spec48.c trunk/fuse/machines/spec48_ntsc.c trunk/fuse/machines/spec_se.c trunk/fuse/machines/specplus2.c trunk/fuse/machines/specplus2a.c trunk/fuse/machines/specplus3.c trunk/fuse/machines/specplus3e.c trunk/fuse/machines/tc2048.c trunk/fuse/machines/tc2068.c trunk/fuse/machines/tc2068.h trunk/fuse/machines/ts2068.c trunk/fuse/man/fuse.1 trunk/fuse/memory.c trunk/fuse/memory.h trunk/fuse/mempool.c trunk/fuse/mempool.h trunk/fuse/menu.c trunk/fuse/menu.h trunk/fuse/menu_data.dat trunk/fuse/periph.c trunk/fuse/periph.h trunk/fuse/peripherals/Makefile.am trunk/fuse/peripherals/ay.c trunk/fuse/peripherals/ay.h trunk/fuse/peripherals/dck.c trunk/fuse/peripherals/disk/beta.c trunk/fuse/peripherals/disk/beta.h trunk/fuse/peripherals/disk/disciple.c trunk/fuse/peripherals/disk/disciple.h trunk/fuse/peripherals/disk/disk.c trunk/fuse/peripherals/disk/fdd.c trunk/fuse/peripherals/disk/fdd.h trunk/fuse/peripherals/disk/opus.c trunk/fuse/peripherals/disk/opus.h trunk/fuse/peripherals/disk/plusd.c trunk/fuse/peripherals/disk/plusd.h trunk/fuse/peripherals/disk/upd_fdc.c trunk/fuse/peripherals/disk/upd_fdc.h trunk/fuse/peripherals/disk/wd_fdc.c trunk/fuse/peripherals/disk/wd_fdc.h trunk/fuse/peripherals/fuller.c trunk/fuse/peripherals/fuller.h trunk/fuse/peripherals/ide/divide.c trunk/fuse/peripherals/ide/divide.h trunk/fuse/peripherals/ide/ide.c trunk/fuse/peripherals/ide/ide.h trunk/fuse/peripherals/ide/simpleide.c trunk/fuse/peripherals/ide/simpleide.h trunk/fuse/peripherals/ide/zxatasp.c trunk/fuse/peripherals/ide/zxatasp.h trunk/fuse/peripherals/ide/zxcf.c trunk/fuse/peripherals/ide/zxcf.h trunk/fuse/peripherals/if1.c trunk/fuse/peripherals/if1.h trunk/fuse/peripherals/if2.c trunk/fuse/peripherals/if2.h trunk/fuse/peripherals/kempmouse.c trunk/fuse/peripherals/kempmouse.h trunk/fuse/peripherals/melodik.c trunk/fuse/peripherals/melodik.h trunk/fuse/peripherals/nic/Makefile.am trunk/fuse/peripherals/printer.c trunk/fuse/peripherals/printer.h trunk/fuse/peripherals/scld.c trunk/fuse/peripherals/scld.h trunk/fuse/peripherals/speccyboot.c trunk/fuse/peripherals/speccyboot.h trunk/fuse/peripherals/specdrum.c trunk/fuse/peripherals/specdrum.h trunk/fuse/peripherals/ula.c trunk/fuse/peripherals/ula.h trunk/fuse/pokefinder/pokefinder.c trunk/fuse/pokefinder/pokefinder.h trunk/fuse/pokefinder/pokemem.c trunk/fuse/profile.c trunk/fuse/profile.h trunk/fuse/psg.c trunk/fuse/psg.h trunk/fuse/rzx.c trunk/fuse/rzx.h trunk/fuse/screenshot.c trunk/fuse/screenshot.h trunk/fuse/settings-header.pl trunk/fuse/settings.dat trunk/fuse/settings.pl trunk/fuse/slt.c trunk/fuse/slt.h trunk/fuse/snapshot.c trunk/fuse/sound/aosound.c trunk/fuse/sound/coreaudiosound.c trunk/fuse/sound/sdlsound.c trunk/fuse/sound.c trunk/fuse/sound.h trunk/fuse/spectrum.c trunk/fuse/spectrum.h trunk/fuse/tape.c trunk/fuse/tape.h trunk/fuse/timer/timer.c trunk/fuse/ui/cocoa/options-cocoa-header.pl trunk/fuse/ui/cocoa/options.pl trunk/fuse/ui/gtk/binary.c trunk/fuse/ui/gtk/browse.c trunk/fuse/ui/gtk/confirm.c trunk/fuse/ui/gtk/debugger.c trunk/fuse/ui/gtk/gtkdisplay.c trunk/fuse/ui/gtk/gtkinternals.h trunk/fuse/ui/gtk/gtkjoystick.c trunk/fuse/ui/gtk/gtkmouse.c trunk/fuse/ui/gtk/gtkui.c trunk/fuse/ui/gtk/memory.c trunk/fuse/ui/gtk/options.pl trunk/fuse/ui/gtk/picture.c trunk/fuse/ui/gtk/pokefinder.c trunk/fuse/ui/gtk/pokemem.c trunk/fuse/ui/gtk/rollback.c trunk/fuse/ui/gtk/roms.c trunk/fuse/ui/gtk/stock.c trunk/fuse/ui/options.dat trunk/fuse/ui/scaler/scaler.c trunk/fuse/ui/scaler/scalers.c trunk/fuse/ui/ui.h trunk/fuse/ui/widget/filesel.c trunk/fuse/ui/widget/menu.c trunk/fuse/ui/widget/options.pl trunk/fuse/ui/widget/pokefinder.c trunk/fuse/ui/widget/pokemem.c trunk/fuse/ui/widget/roms.c trunk/fuse/ui/widget/widget.c trunk/fuse/ui/widget/widget.h trunk/fuse/ui/win32/binary.c trunk/fuse/ui/win32/debugger.c trunk/fuse/ui/win32/debugger.rc trunk/fuse/ui/win32/fileselector.c trunk/fuse/ui/win32/memorybrowser.c trunk/fuse/ui/win32/memorybrowser.rc trunk/fuse/ui/win32/options.pl trunk/fuse/ui/win32/picture.c trunk/fuse/ui/win32/pokefinder.c trunk/fuse/ui/win32/roms.c trunk/fuse/ui/win32/win32internals.h trunk/fuse/ui/win32/win32ui.c trunk/fuse/ui/xlib/xdisplay.c trunk/fuse/ui/xlib/xui.c trunk/fuse/ui.c trunk/fuse/unittests/unittests.c trunk/fuse/unittests/unittests.h trunk/fuse/utils.c trunk/fuse/utils.h trunk/fuse/z80/coretest.c trunk/fuse/z80/z80.c trunk/fuse/z80/z80.h trunk/fuse/z80/z80_checks.h trunk/fuse/z80/z80_macros.h trunk/fuse/z80/z80_ops.c Added Paths: ----------- trunk/fuse/compat/unix/socket.c trunk/fuse/compat/win32/socket.c trunk/fuse/data/ trunk/fuse/hacking/peripheral_tests.txt trunk/fuse/hacking/spectranet.txt trunk/fuse/hacking/valgrind.supp trunk/fuse/lib/tests/ trunk/fuse/movie.c trunk/fuse/movie.h trunk/fuse/movie_tables.h trunk/fuse/peripherals/flash/ trunk/fuse/peripherals/nic/w5100.c trunk/fuse/peripherals/nic/w5100.h trunk/fuse/peripherals/nic/w5100_internals.h trunk/fuse/peripherals/nic/w5100_socket.c trunk/fuse/peripherals/spectranet.c trunk/fuse/peripherals/spectranet.h Property Changed: ---------------- trunk/fuse/ Property changes on: trunk/fuse ___________________________________________________________________ Modified: svn:mergeinfo - /vendor/fuse-emulator/0.10.0/fuse:556-557 /vendor/fuse-emulator/0.10.0-pre1/fuse:545-546 /vendor/fuse-emulator/current/fuse:530-685 /vendor/fuse-emulator/fuse-1.0.0a/fuse:668-669 /vendor/fuse-emulator/fuse-r4617/fuse:686 + /vendor/fuse-emulator/0.10.0/fuse:556-557 /vendor/fuse-emulator/0.10.0-pre1/fuse:545-546 /vendor/fuse-emulator/current/fuse:530-712 /vendor/fuse-emulator/fuse-1.0.0a/fuse:668-669 /vendor/fuse-emulator/fuse-r4617/fuse:686 Modified: trunk/fuse/Makefile.am =================================================================== --- trunk/fuse/Makefile.am 2012-11-24 10:24:08 UTC (rev 712) +++ trunk/fuse/Makefile.am 2012-12-05 12:44:59 UTC (rev 713) @@ -1,7 +1,7 @@ # Process this file with automake to produce Makefile.in ## Copyright (c) 1999-2009 Philip Kendall -## $Id: Makefile.am 4288 2011-02-03 21:06:22Z pak21 $ +## $Id: Makefile.am 4674 2012-02-20 11:03:58Z 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,6 +26,7 @@ bin_PROGRAMS = fuse SUBDIRS = @COMPAT_SUBDIR@ \ + data \ debugger \ hacking \ lib \ @@ -41,7 +42,8 @@ unittests \ z80 -DIST_SUBDIRS = debugger \ +DIST_SUBDIRS = data \ + debugger \ hacking \ lib \ machines \ @@ -66,6 +68,7 @@ memory.c \ mempool.c \ menu.c \ + movie.c \ module.c \ periph.c \ profile.c \ @@ -104,6 +107,7 @@ machines/libmachines.a \ peripherals/libperipherals.a \ peripherals/disk/libdisk.a \ +peripherals/flash/libflash.a \ peripherals/ide/libide.a \ peripherals/nic/libnic.a \ pokefinder/libpokefinder.a \ @@ -128,6 +132,7 @@ machines/libmachines.a \ peripherals/libperipherals.a \ peripherals/disk/libdisk.a \ +peripherals/flash/libflash.a \ peripherals/ide/libide.a \ peripherals/nic/libnic.a \ pokefinder/libpokefinder.a \ @@ -173,6 +178,8 @@ memory.h \ mempool.h \ menu.h \ + movie.h \ + movie_tables.h \ module.h \ periph.h \ psg.h \ Modified: trunk/fuse/README =================================================================== --- trunk/fuse/README 2012-11-24 10:24:08 UTC (rev 712) +++ trunk/fuse/README 2012-12-05 12:44:59 UTC (rev 713) @@ -64,6 +64,8 @@ * Either the native port by Fredrick Meunier, or the original version will compile on OS X 10.3 (Panther) or later. +* On Mac OS X Lion you will need to use clang as gcc-llvm-4.2.1 fails to + correctly compile z80_ops.c. Windows @@ -216,4 +218,4 @@ Philip Kendall <phi...@sh...> 16 December 2010 -$Id: README 4410 2011-05-01 10:51:21Z zubzero $ +$Id: README 4624 2012-01-09 20:59:35Z pak21 $ Modified: trunk/fuse/compat/unix/Makefile.am =================================================================== --- trunk/fuse/compat/unix/Makefile.am 2012-11-24 10:24:08 UTC (rev 712) +++ trunk/fuse/compat/unix/Makefile.am 2012-12-05 12:44:59 UTC (rev 713) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 4237 2010-12-31 19:31:26Z pak21 $ +## $Id: Makefile.am 4624 2012-01-09 20:59:35Z 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 @@ -31,6 +31,7 @@ file.c \ osname.c \ paths.c \ + socket.c \ timer.c \ tuntap.c Modified: trunk/fuse/compat/unix/file.c =================================================================== --- trunk/fuse/compat/unix/file.c 2012-11-24 10:24:08 UTC (rev 712) +++ trunk/fuse/compat/unix/file.c 2012-12-05 12:44:59 UTC (rev 713) @@ -1,7 +1,7 @@ /* file.c: File-related compatibility routines Copyright (c) 2008 Philip Kendall - $Id: file.c 4534 2011-08-11 12:59:47Z fredm $ + $Id: file.c 4624 2012-01-09 20:59:35Z 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 @@ -64,7 +64,7 @@ if( bytes != file->length ) { ui_error( UI_ERROR_ERROR, "error reading file: expected %lu bytes, but read only %lu", - file->length, bytes ); + (unsigned long)file->length, (unsigned long)bytes ); return 1; } @@ -78,7 +78,7 @@ if( bytes != length ) { ui_error( UI_ERROR_ERROR, "error writing file: expected %lu bytes, but wrote only %lu", - length, bytes ); + (unsigned long)length, (unsigned long)bytes ); return 1; } Copied: trunk/fuse/compat/unix/socket.c (from rev 712, vendor/fuse-emulator/current/fuse/compat/unix/socket.c) =================================================================== --- trunk/fuse/compat/unix/socket.c (rev 0) +++ trunk/fuse/compat/unix/socket.c 2012-12-05 12:44:59 UTC (rev 713) @@ -0,0 +1,118 @@ +/* socket.c: Socket-related compatibility routines + Copyright (c) 2011 Philip Kendall + + $Id$ + + 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 "fuse.h" +#include "ui/ui.h" + +const compat_socket_t compat_socket_invalid = -1; +const int compat_socket_EBADF = EBADF; + +struct compat_socket_selfpipe_t { + int read_fd; + int write_fd; +}; + +void +compat_socket_networking_init( void ) +{ + /* No action necessary */ +} + +void +compat_socket_networking_end( void ) +{ + /* No action necessary */ +} + +int +compat_socket_close( compat_socket_t fd ) +{ + return close( fd ); +} + +int compat_socket_get_error( void ) +{ + return errno; +} + +const char * +compat_socket_get_strerror( void ) +{ + return strerror( errno ); +} + +compat_socket_selfpipe_t* compat_socket_selfpipe_alloc( void ) +{ + int error; + int pipefd[2]; + + compat_socket_selfpipe_t *self = malloc( sizeof( *self ) ); + if( !self ) { + ui_error( UI_ERROR_ERROR, "%s: %d: out of memory", __FILE__, __LINE__ ); + fuse_abort(); + } + + error = pipe( pipefd ); + if( error ) { + ui_error( UI_ERROR_ERROR, "%s: %d: error %d creating pipe", __FILE__, __LINE__, error ); + fuse_abort(); + } + + self->read_fd = pipefd[0]; + self->write_fd = pipefd[1]; + + return self; +} + +void compat_socket_selfpipe_free( compat_socket_selfpipe_t *self ) +{ + close( self->read_fd ); + close( self->write_fd ); + free( self ); +} + +compat_socket_t compat_socket_selfpipe_get_read_fd( compat_socket_selfpipe_t *self ) +{ + return self->read_fd; +} + +void compat_socket_selfpipe_wake( compat_socket_selfpipe_t *self ) +{ + const char dummy = 0; + write( self->write_fd, &dummy, 1 ); +} + +void compat_socket_selfpipe_discard_data( compat_socket_selfpipe_t *self ) +{ + char bitbucket; + read( self->read_fd, &bitbucket, 1 ); +} Modified: trunk/fuse/compat/win32/Makefile.am =================================================================== --- trunk/fuse/compat/win32/Makefile.am 2012-11-24 10:24:08 UTC (rev 712) +++ trunk/fuse/compat/win32/Makefile.am 2012-12-05 12:44:59 UTC (rev 713) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 4237 2010-12-31 19:31:26Z pak21 $ +## $Id: Makefile.am 4624 2012-01-09 20:59:35Z 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 @@ -31,6 +31,7 @@ ../unix/file.c \ osname.c \ paths.c \ + socket.c \ timer.c \ ../unix/tuntap.c Copied: trunk/fuse/compat/win32/socket.c (from rev 712, vendor/fuse-emulator/current/fuse/compat/win32/socket.c) =================================================================== --- trunk/fuse/compat/win32/socket.c (rev 0) +++ trunk/fuse/compat/win32/socket.c 2012-12-05 12:44:59 UTC (rev 713) @@ -0,0 +1,241 @@ +/* socket.c: Socket-related compatibility routines + Copyright (c) 2011 Sergio Baldoví, Philip Kendall + + $Id$ + + 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 <winsock2.h> +#include <ws2tcpip.h> + +#include "compat.h" +#include "fuse.h" +#include "ui/ui.h" + +const compat_socket_t compat_socket_invalid = INVALID_SOCKET; +const int compat_socket_EBADF = WSAENOTSOCK; + +struct compat_socket_selfpipe_t { + SOCKET self_socket; + libspectrum_word port; +}; + +int +compat_socket_close( compat_socket_t fd ) +{ + return closesocket( fd ); +} + +int compat_socket_get_error( void ) +{ + return WSAGetLastError(); +} + +const char * +compat_socket_get_strerror( void ) +{ + static TCHAR buffer[256]; + TCHAR *ptr; + DWORD msg_size; + + /* get description of last winsock error */ + msg_size = FormatMessage( + FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, + NULL, WSAGetLastError(), + MAKELANGID( LANG_NEUTRAL, SUBLANG_DEFAULT ), + buffer, sizeof( buffer ) / sizeof( TCHAR ), NULL ); + + if( !msg_size ) return NULL; + + /* skip 'new line' like chars */ + for( ptr = buffer; *ptr; ptr++ ) { + if( ( *ptr == '\r' ) || ( *ptr == '\n' ) ) { + *ptr = '\0'; + break; + } + } + + return (const char *)buffer; +} + +static int +selfpipe_test( compat_socket_selfpipe_t *self ) +{ + fd_set readfds; + int active; + struct timeval tv = { 1, 0 }; + + /* Send testing packet */ + compat_socket_selfpipe_wake( self ); + + /* Safe reading from control socket */ + FD_ZERO( &readfds ); + FD_SET( self->self_socket, &readfds ); + active = select( 0, &readfds, NULL, NULL, &tv ); + if( active == 0 || active == compat_socket_invalid ) { + return -1; + } + + /* Discard testing packet */ + if( FD_ISSET( self->self_socket, &readfds ) ) { + compat_socket_selfpipe_discard_data( self ); + } + + return 0; +} + +compat_socket_selfpipe_t * +compat_socket_selfpipe_alloc( void ) +{ + unsigned long mode = 1; + struct sockaddr_in sa; + socklen_t sa_len = sizeof(sa); + + compat_socket_selfpipe_t *self = malloc( sizeof( *self ) ); + if( !self ) { + ui_error( UI_ERROR_ERROR, "%s: %d: out of memory", __FILE__, __LINE__ ); + fuse_abort(); + } + + self->self_socket = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); + if( self->self_socket == compat_socket_invalid ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to open socket; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + /* Set nonblocking mode */ + if( ioctlsocket( self->self_socket, FIONBIO, &mode ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to set socket nonblocking; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + memset( &sa, 0, sizeof(sa) ); + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl( INADDR_LOOPBACK ); + + if( bind( self->self_socket, (struct sockaddr*)&sa, sizeof(sa) ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to bind socket; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + /* Get ephemeral port number */ + if( getsockname( self->self_socket, (struct sockaddr *)&sa, &sa_len ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to get socket name; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + self->port = ntohs( sa.sin_port ); + + /* Test communications in order to detect blocking firewalls */ + if( selfpipe_test( self ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "Networking: failed to test internal communications" ); + fuse_abort(); + } + + return self; +} + +void +compat_socket_selfpipe_free( compat_socket_selfpipe_t *self ) +{ + compat_socket_close( self->self_socket ); + free( self ); +} + +compat_socket_t +compat_socket_selfpipe_get_read_fd( compat_socket_selfpipe_t *self ) +{ + return self->self_socket; +} + +void +compat_socket_selfpipe_wake( compat_socket_selfpipe_t *self ) +{ + struct sockaddr_in sa; + + memset( &sa, 0, sizeof(sa) ); + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl( INADDR_LOOPBACK ); + sa.sin_port = htons( self->port ); + + sendto( self->self_socket, NULL, 0, 0, (struct sockaddr*)&sa, sizeof(sa) ); +} + +void +compat_socket_selfpipe_discard_data( compat_socket_selfpipe_t *self ) +{ + ssize_t bytes_read; + struct sockaddr_in sa; + socklen_t sa_length = sizeof(sa); + static char bitbucket[0x100]; + + do { + /* Socket is non blocking, so we can do this safely */ + bytes_read = recvfrom( self->self_socket, bitbucket, sizeof( bitbucket ), + 0, (struct sockaddr*)&sa, &sa_length ); + } while( bytes_read != -1 ); +} + + +void +compat_socket_networking_init( void ) +{ + WORD wVersionRequested; + WSADATA wsaData; + int error; + + wVersionRequested = MAKEWORD( 2, 2 ); + error = WSAStartup( wVersionRequested, &wsaData ); + if( error ) { + ui_error( UI_ERROR_ERROR, "%s:%d: error %d from WSAStartup()", __FILE__, + __LINE__, error ); + fuse_abort(); + } + + if( LOBYTE( wsaData.wVersion ) != 2 || HIBYTE( wsaData.wVersion ) != 2 ) { + ui_error( UI_ERROR_ERROR, + "%s:%d: unexpected version 0x%02x from WSAStartup()", + __FILE__, __LINE__, wsaData.wVersion ); + fuse_abort(); + } +} + +void +compat_socket_networking_end( void ) +{ + WSACleanup(); +} + Modified: trunk/fuse/compat.h =================================================================== --- trunk/fuse/compat.h 2012-11-24 10:24:08 UTC (rev 712) +++ trunk/fuse/compat.h 2012-12-05 12:44:59 UTC (rev 713) @@ -1,7 +1,7 @@ /* compat.h: various compatibility bits Copyright (c) 2003-2008 Philip Kendall - $Id: compat.h 4534 2011-08-11 12:59:47Z fredm $ + $Id: compat.h 4648 2012-01-22 19:57:35Z 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 @@ -31,6 +31,10 @@ #include <stdlib.h> #include <sys/types.h> +#ifdef WIN32 +#include <winsock2.h> +#endif + /* Remove the gcc-specific incantations if we're not using gcc */ #ifdef __GNUC__ @@ -120,4 +124,30 @@ int compat_get_tap( const char *interface_name ); +/* Socket handling */ + +#ifndef WIN32 +typedef int c |
From: <fr...@us...> - 2012-11-24 10:24:11
|
Revision: 712 http://sourceforge.net/p/fuse-for-macosx/code/712 Author: fredm Date: 2012-11-24 10:24:08 +0000 (Sat, 24 Nov 2012) Log Message: ----------- Merge up to vendor revision 4676. Revision Links: -------------- http://sourceforge.net/p/fuse-for-macosx/code/4676 Modified Paths: -------------- trunk/libspectrum/libspectrum/accessor.pl trunk/libspectrum/libspectrum/csw.c trunk/libspectrum/libspectrum/hacking/ChangeLog trunk/libspectrum/libspectrum/make-perl.c trunk/libspectrum/libspectrum/snap_accessors.txt trunk/libspectrum/libspectrum/snapshot.c trunk/libspectrum/libspectrum/szx.c Property Changed: ---------------- trunk/libspectrum/libspectrum/ Property changes on: trunk/libspectrum/libspectrum ___________________________________________________________________ Modified: svn:mergeinfo - /vendor/fuse-emulator/0.10.0/libspectrum:556-557 /vendor/fuse-emulator/0.10.0-pre1/libspectrum:545-546 /vendor/fuse-emulator/current/libspectrum:530-685 /vendor/fuse-emulator/fuse-1.0.0a/libspectrum:668-669 /vendor/fuse-emulator/fuse-r4617/libspectrum:686 + /vendor/fuse-emulator/0.10.0/libspectrum:556-557 /vendor/fuse-emulator/0.10.0-pre1/libspectrum:545-546 /vendor/fuse-emulator/current/libspectrum:530-711 /vendor/fuse-emulator/fuse-1.0.0a/libspectrum:668-669 /vendor/fuse-emulator/fuse-r4617/libspectrum:686 Modified: trunk/libspectrum/libspectrum/accessor.pl =================================================================== --- trunk/libspectrum/libspectrum/accessor.pl 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/accessor.pl 2012-11-24 10:24:08 UTC (rev 712) @@ -3,7 +3,7 @@ # accessor.pl: generate accessor functions # Copyright (c) 2003-2009 Philip Kendall -# $Id: accessor.pl 4356 2011-04-07 14:21:40Z fredm $ +# $Id: accessor.pl 4624 2012-01-09 20:59:35Z 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 @@ -216,6 +216,22 @@ /* Cheetah SpecDrum status */ int specdrum_active; libspectrum_signed_byte specdrum_dac; + + /* Spectranet status */ + int spectranet_active; + int spectranet_paged; + int spectranet_paged_via_io; + int spectranet_programmable_trap_active; + int spectranet_programmable_trap_msb; + int spectranet_all_traps_disabled; + int spectranet_rst8_trap_disabled; + int spectranet_deny_downstream_a15; + int spectranet_page_a; + int spectranet_page_b; + libspectrum_word spectranet_programmable_trap; + libspectrum_byte *spectranet_w5100[1]; + libspectrum_byte *spectranet_flash[1]; + libspectrum_byte *spectranet_ram[1]; }; /* Initialise a libspectrum_snap structure */ Modified: trunk/libspectrum/libspectrum/csw.c =================================================================== --- trunk/libspectrum/libspectrum/csw.c 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/csw.c 2012-11-24 10:24:08 UTC (rev 712) @@ -2,7 +2,7 @@ Copyright (c) 2002-2007 Darren Salt, Fredrick Meunier Based on tap.c, copyright (c) 2001 Philip Kendall - $Id: csw.c 3708 2008-07-01 08:07:01Z pak21 $ + $Id: csw.c 4653 2012-02-03 11:48:30Z 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 @@ -86,8 +86,8 @@ if( compressed != 0 && compressed != 1 ) goto csw_bad_compress; + if( length < 29 - buffer[12] ) goto csw_short; length -= 29 - buffer[12]; - if( length < 0 ) goto csw_short; buffer += 29 + buffer[12]; break; Modified: trunk/libspectrum/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/libspectrum/hacking/ChangeLog 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/hacking/ChangeLog 2012-11-24 10:24:08 UTC (rev 712) @@ -850,6 +850,18 @@ 20110515 tap.c: add support for the TZX set signal level block (Fred). 20110515 tzx_write.c: factor out common code for writing signal level and pure tone blocks (Fred). +20110608 accessor.pl,snap_accessors.txt,snapshot.c,szx.c: beginnings of + Spectranet snapshot support. +20110610 accessor.pl,snap_accessors.txt,szx.c: pretty much working Spectranet + snapshot support. +20110611 accessor.pl,snap_accessors.txt,szx.c: implement Spectranet + programmable trap support. +20110619 accessor.pl,snap_accessors.txt,szx.c: implement Spectranet "deny + downstream A15 flag". +20110621 accessor.pl,snap_accessors.txt,szx.c: implement Spectranet "paged via + IO port" flag. +20110622 accessor.pl,snapshot.c,snap_accessors.txt,szx.c: store core W5100 + state in snapshots. 20110811 libspectrum.h.in,libspectrum.c: add support for detecting POK files (patch #3382538) (Sergio Baldoví). 20110905 libspectrum.c,make-perl.c,myglib/garray.c: remove operations with @@ -857,3 +869,9 @@ recordings or saving snapshots (part of patch #3404090) (Sergio Baldoví). 20111106 rzx.c,szx.c: remove unused variables (thanks, gcc 4.6). +20120203 csw.c: fix less than 0 check on unsigned expression (thanks, clang + 2.1) (Fred). +20120203 szx.c: correct error argument in libspectrum_print_error() calls + (thanks, clang 2.1) (Fred). +20120220 make-perl.c: advertise that we support bzip2 compressed and wav files + (part of patch #3413549) (Sergio Baldoví). Modified: trunk/libspectrum/libspectrum/make-perl.c =================================================================== --- trunk/libspectrum/libspectrum/make-perl.c 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/make-perl.c 2012-11-24 10:24:08 UTC (rev 712) @@ -1,7 +1,7 @@ /* make-perl.c: Generate a perl script to create the libspectrum_* typedefs Copyright (c) 2002-2003 Philip Kendall, Darren Salt - $Id: make-perl.c 4539 2011-09-05 12:17:34Z fredm $ + $Id: make-perl.c 4673 2012-02-20 10:50:13Z 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 @@ -321,6 +321,16 @@ #endif /* #ifdef HAVE_ZLIB_H */ +#ifdef HAVE_LIBBZ2 + printf( "\n/* we support files compressed with bz2 */\n" ); + printf( "#define LIBSPECTRUM_SUPPORTS_BZ2_COMPRESSION (1)\n\n" ); +#endif /* #ifdef HAVE_LIBBZ2 */ + +#ifdef HAVE_LIB_AUDIOFILE + printf( "\n/* we support files wav files */\n" ); + printf( "#define LIBSPECTRUM_SUPPORTS_AUDIOFILE (1)\n\n" ); +#endif /* #ifdef HAVE_LIB_AUDIOFILE */ + printf( "CODE\n}\n\n" ); return 0; Modified: trunk/libspectrum/libspectrum/snap_accessors.txt =================================================================== --- trunk/libspectrum/libspectrum/snap_accessors.txt 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/snap_accessors.txt 2012-11-24 10:24:08 UTC (rev 712) @@ -1,7 +1,7 @@ # snap_accessors.txt: simple accessors for libspectrum_snap # Copyright (c) 2003-2009 Philip Kendall -# $Id: snap_accessors.txt 4356 2011-04-07 14:21:40Z fredm $ +# $Id: snap_accessors.txt 4624 2012-01-09 20:59:35Z 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 @@ -172,3 +172,18 @@ int specdrum_active libspectrum_signed_byte specdrum_dac + +int spectranet_active +int spectranet_paged +int spectranet_paged_via_io +int spectranet_programmable_trap_active +int spectranet_programmable_trap_msb +int spectranet_all_traps_disabled +int spectranet_rst8_trap_disabled +int spectranet_deny_downstream_a15 +int spectranet_page_a +int spectranet_page_b +libspectrum_word spectranet_programmable_trap +libspectrum_byte* spectranet_w5100 1 +libspectrum_byte* spectranet_flash 1 +libspectrum_byte* spectranet_ram 1 Modified: trunk/libspectrum/libspectrum/snapshot.c =================================================================== --- trunk/libspectrum/libspectrum/snapshot.c 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/snapshot.c 2012-11-24 10:24:08 UTC (rev 712) @@ -1,7 +1,7 @@ /* snapshot.c: Snapshot handling routines Copyright (c) 2001-2009 Philip Kendall, Darren Salt - $Id: snapshot.c 4356 2011-04-07 14:21:40Z fredm $ + $Id: snapshot.c 4624 2012-01-09 20:59:35Z 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 @@ -210,6 +210,13 @@ libspectrum_snap_set_melodik_active( snap, 0 ); + libspectrum_snap_set_spectranet_active( snap, 0 ); + libspectrum_snap_set_spectranet_all_traps_disabled( snap, 0 ); + libspectrum_snap_set_spectranet_rst8_trap_disabled( snap, 0 ); + libspectrum_snap_set_spectranet_w5100( snap, 0, NULL ); + libspectrum_snap_set_spectranet_flash( snap, 0, NULL ); + libspectrum_snap_set_spectranet_ram( snap, 0, NULL ); + return snap; } @@ -251,6 +258,13 @@ if( libspectrum_snap_interface1_rom( snap, 0 ) ) libspectrum_free( libspectrum_snap_interface1_rom( snap, 0 ) ); + if( libspectrum_snap_spectranet_w5100( snap, 0 ) ) + libspectrum_free( libspectrum_snap_spectranet_w5100( snap, 0 ) ); + if( libspectrum_snap_spectranet_flash( snap, 0 ) ) + libspectrum_free( libspectrum_snap_spectranet_flash( snap, 0 ) ); + if( libspectrum_snap_spectranet_ram( snap, 0 ) ) + libspectrum_free( libspectrum_snap_spectranet_ram( snap, 0 ) ); + libspectrum_free( snap ); return LIBSPECTRUM_ERROR_NONE; Modified: trunk/libspectrum/libspectrum/szx.c =================================================================== --- trunk/libspectrum/libspectrum/szx.c 2012-11-24 06:50:35 UTC (rev 711) +++ trunk/libspectrum/libspectrum/szx.c 2012-11-24 10:24:08 UTC (rev 712) @@ -1,7 +1,7 @@ /* szx.c: Routines for .szx snapshots Copyright (c) 1998-2010 Philip Kendall, Fredrick Meunier, Stuart Brady - $Id: szx.c 4548 2011-11-06 21:44:48Z pak21 $ + $Id: szx.c 4654 2012-02-03 11:52:16Z 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 @@ -66,7 +66,7 @@ static const char *libspectrum_string = "libspectrum: "; static const libspectrum_byte SZX_VERSION_MAJOR = 1; -static const libspectrum_byte SZX_VERSION_MINOR = 3; +static const libspectrum_byte SZX_VERSION_MINOR = 5; /* Constants etc for each chunk type */ @@ -191,6 +191,17 @@ #define ZXSTBID_DIVIDERAMPAGE "DIRP" +#define ZXSTBID_SPECTRANET "SNET" +static const libspectrum_word ZXSTSNET_PAGED = 1; +static const libspectrum_word ZXSTSNET_PAGED_VIA_IO = 2; +static const libspectrum_word ZXSTSNET_PROGRAMMABLE_TRAP_ACTIVE = 4; +static const libspectrum_word ZXSTSNET_PROGRAMMABLE_TRAP_MSB = 8; +static const libspectrum_word ZXSTSNET_ALL_DISABLED = 16; +static const libspectrum_word ZXSTSNET_RST8_DISABLED = 32; +static const libspectrum_word ZXSTSNET_DENY_DOWNSTREAM_A15 = 64; +static const libspectrum_word ZXSTSNET_FLASH_COMPRESSED = 128; +static const libspectrum_word ZXSTSNET_RAM_COMPRESSED = 256; + static libspectrum_error read_chunk( libspectrum_snap *snap, libspectrum_word version, const libspectrum_byte **buffer, const libspectrum_byte *end, @@ -278,6 +289,9 @@ static libspectrum_error write_drum_chunk( libspectrum_byte **buffer, libspectrum_byte **ptr, size_t *length, libspectrum_snap *snap ); +static libspectrum_error +write_snet_chunk( libspectrum_byte **buffer, libspectrum_byte **ptr, + size_t *length, libspectrum_snap *snap, int compress ); #ifdef HAVE_ZLIB_H @@ -1896,6 +1910,140 @@ } static libspectrum_error +read_snet_memory( libspectrum_snap *snap, const libspectrum_byte **buffer, + int compressed, size_t *data_remaining, + void (*setter)(libspectrum_snap*, int, libspectrum_byte*) ) +{ + size_t data_length, uncompressed_length = 0; + libspectrum_error error; + libspectrum_byte *data_out, *uncompressed_data; + const libspectrum_byte *data; + + if( *data_remaining < 4 ) { + libspectrum_print_error( LIBSPECTRUM_ERROR_UNKNOWN, + "%s:read_snet_memory: not enough data for length", __FILE__ ); + return LIBSPECTRUM_ERROR_UNKNOWN; + } + + data_length = libspectrum_read_dword( buffer ); + *data_remaining -= 4; + + if( *data_remaining < data_length ) { + libspectrum_print_error( LIBSPECTRUM_ERROR_UNKNOWN, + "%s:read_snet_memory: not enough data", __FILE__ ); + return LIBSPECTRUM_ERROR_UNKNOWN; + } + *data_remaining -= data_length; + + if( compressed ) { + +#ifdef HAVE_ZLIB_H + + error = libspectrum_zlib_inflate( *buffer, data_length, &uncompressed_data, + &uncompressed_length ); + if( error ) return error; + + *buffer += data_length; + + if( uncompressed_length != 0x20000 ) { + libspectrum_print_error( LIBSPECTRUM_ERROR_UNKNOWN, + "%s:read_snet_memory: data decompressed to %lu but should be 0x20000", + __FILE__, (unsigned long)uncompressed_length ); + libspectrum_free( uncompressed_data ); + return LIBSPECTRUM_ERROR_UNKNOWN; + } + + data = uncompressed_data; + +#else + + libspectrum_print_error( LIBSPECTRUM_ERROR_UNKNOWN, + "%s:read_snet_memory: zlib needed for decompression\n", __FILE__ ); + return LIBSPECTRUM_ERROR_UNKNOWN; + +#endif + + } else { + if( data_length != 0x20000 ) { + libspectrum_print_error( LIBSPECTRUM_ERROR_UNKNOWN, + "%s:read_snet_memory: data has length %lu but should be 0x20000", + __FILE__, (unsigned long)data_length ); + return LIBSPECTRUM_ERROR_NONE; + } + + data = *buffer; + *buffer += data_length; + } + + data_out = libspectrum_malloc( 0x20000 ); + memcpy( data_out, data, 0x20000 ); + setter( snap, 0, data_out ); + + return LIBSPECTRUM_ERROR_NONE; +} + +static libspectrum_error +read_snet_chunk( libspectrum_snap *snap, libspectrum_word version GCC_UNUSED, + const libspectrum_byte **buffer, + const libspectrum_byte *end GCC_UNUSED, size_t data_length, + szx_context *ctx GCC_UNUSED ) +{ + libspectrum_word flags; + int flash_compressed, ram_compressed; + libspectrum_error error; + libspectrum_byte *w5100; + size_t data_remaining; + + if( data_length < 62 ) { + libspectrum_print_error( + LIBSPECTRUM_ERROR_UNKNOWN, + "read_snet_chunk: length %lu too short", (unsigned long)data_length + ); + return LIBSPECTRUM_ERROR_UNKNOWN; + } + + libspectrum_snap_set_spectranet_active( snap, 1 ); + + flags = libspectrum_read_word( buffer ); + libspectrum_snap_set_spectranet_paged( snap, flags & ZXSTSNET_PAGED ); + libspectrum_snap_set_spectranet_paged_via_io( snap, flags & ZXSTSNET_PAGED_VIA_IO ); + libspectrum_snap_set_spectranet_programmable_trap_active( snap, + flags & ZXSTSNET_PROGRAMMABLE_TRAP_ACTIVE ); + libspectrum_snap_set_spectranet_programmable_trap_msb( snap, + flags & ZXSTSNET_PROGRAMMABLE_TRAP_MSB ); + libspectrum_snap_set_spectranet_all_traps_disabled( snap, flags & ZXSTSNET_ALL_DISABLED ); + libspectrum_snap_set_spectranet_rst8_trap_disabled( snap, flags & ZXSTSNET_RST8_DISABLED ); + libspectrum_snap_set_spectranet_deny_downstream_a15( snap, flags & ZXSTSNET_DENY_DOWNSTREAM_A15 ); + flash_compressed = flags & ZXSTSNET_FLASH_COMPRESSED; + ram_compressed = flags & ZXSTSNET_RAM_COMPRESSED; + + libspectrum_snap_set_spectranet_page_a( snap, **buffer ); (*buffer)++; + libspectrum_snap_set_spectranet_page_b( snap, **buffer ); (*buffer)++; + + libspectrum_snap_set_spectranet_programmable_trap( snap, + libspectrum_read_word( buffer ) ); + + w5100 = libspectrum_malloc( 0x30 * sizeof( libspectrum_byte ) ); + libspectrum_snap_set_spectranet_w5100( snap, 0, w5100 ); + memcpy( w5100, *buffer, 0x30 ); + (*buffer) += 0x30; + + data_remaining = data_length - 54; + + error = read_snet_memory( snap, buffer, flash_compressed, &data_remaining, + libspectrum_snap_set_spectranet_flash ); + if( error ) + return error; + + error = read_snet_memory( snap, buffer, ram_compressed, &data_remaining, + libspectrum_snap_set_spectranet_ram ); + if( error ) + return error; + + return LIBSPECTRUM_ERROR_NONE; +} + +static libspectrum_error skip_chunk( libspectrum_snap *snap GCC_UNUSED, libspectrum_word version GCC_UNUSED, const libspectrum_byte **buffer, @@ -1944,6 +2092,7 @@ { ZXSTBID_SIMPLEIDE, read_side_chunk }, { ZXSTBID_SPECDRUM, read_drum_chunk }, { ZXSTBID_SPECREGS, read_spcr_chunk }, + { ZXSTBID_SPECTRANET, read_snet_chunk }, { ZXSTBID_TIMEXREGS, read_scld_chunk }, { ZXSTBID_USPEECH, skip_chunk }, { ZXSTBID_Z80REGS, read_z80r_chunk }, @@ -2118,10 +2267,10 @@ default: libspectrum_print_error( - LIBSPECTRUM_MACHINE_UNKNOWN, + LIBSPECTRUM_ERROR_UNKNOWN, "libspectrum_szx_read: unknown machine type %d", (int)*buffer ); - return LIBSPECTRUM_MACHINE_UNKNOWN; + return LIBSPECTRUM_ERROR_UNKNOWN; } /* Skip to the end of the header */ @@ -2295,6 +2444,11 @@ } } + if( libspectrum_snap_spectranet_active( snap ) ) { + error = write_snet_chunk( buffer, &ptr, length, snap, compress ); + if( error ) return error; + } + /* Set length to be actual length, not allocated length */ *length = ptr - *buffer; @@ -3452,6 +3606,111 @@ return LIBSPECTRUM_ERROR_NONE; } +static libspectrum_error +write_snet_chunk( libspectrum_byte **buffer, libspectrum_byte **ptr, + size_t *length, libspectrum_snap *snap, int compress ) +{ +#ifdef HAVE_ZLIB_H + libspectrum_error error; +#endif + + size_t flash_length; + libspectrum_byte *flash_data; + libspectrum_byte *compressed_flash_data = NULL; + int flash_compressed = 0; + + size_t ram_length; + libspectrum_byte *ram_data; + libspectrum_byte *compressed_ram_data = NULL; + int ram_compressed = 0; + + size_t block_size; + libspectrum_word flags = 0; + + flash_data = libspectrum_snap_spectranet_flash( snap, 0 ); + flash_length = 0x20000; + + ram_data = libspectrum_snap_spectranet_ram( snap, 0 ); + ram_length = 0x20000; + +#ifdef HAVE_ZLIB_H + + if( compress ) { + size_t compressed_length; + + error = libspectrum_zlib_compress( flash_data, flash_length, + &compressed_flash_data, &compressed_length ); + if( error ) return error; + + if( compress & LIBSPECTRUM_FLAG_SNAPSHOT_ALWAYS_COMPRESS || + compressed_length < flash_length ) { + flash_compressed = 1; + flash_data = compressed_flash_data; + flash_length = compressed_length; + } + + error = libspectrum_zlib_compress( ram_data, ram_length, + &compressed_ram_data, &compressed_length ); + if( error ) return error; + + if( compress & LIBSPECTRUM_FLAG_SNAPSHOT_ALWAYS_COMPRESS || + compressed_length < flash_length ) { + ram_compressed = 1; + ram_data = compressed_ram_data; + ram_length = compressed_length; + } + } + +#endif + + block_size = 62 + flash_length + ram_length; + + write_chunk_header( buffer, ptr, length, ZXSTBID_SPECTRANET, block_size ); + + if( libspectrum_snap_spectranet_paged( snap ) ) + flags |= ZXSTSNET_PAGED; + if( libspectrum_snap_spectranet_paged_via_io( snap ) ) + flags |= ZXSTSNET_PAGED_VIA_IO; + if( libspectrum_snap_spectranet_programmable_trap_active( snap ) ) + flags |= ZXSTSNET_PROGRAMMABLE_TRAP_ACTIVE; + if( libspectrum_snap_spectranet_programmable_trap_msb( snap ) ) + flags |= ZXSTSNET_PROGRAMMABLE_TRAP_MSB; + if( libspectrum_snap_spectranet_all_traps_disabled( snap ) ) + flags |= ZXSTSNET_ALL_DISABLED; + if( libspectrum_snap_spectranet_rst8_trap_disabled( snap ) ) + flags |= ZXSTSNET_RST8_DISABLED; + if( libspectrum_snap_spectranet_deny_downstream_a15( snap ) ) + flags |= ZXSTSNET_DENY_DOWNSTREAM_A15; + if( flash_compressed ) + flags |= ZXSTSNET_FLASH_COMPRESSED; + if( ram_compressed ) + flags |= ZXSTSNET_RAM_COMPRESSED; + libspectrum_write_word( ptr, flags ); + + *(*ptr)++ = libspectrum_snap_spectranet_page_a( snap ); + *(*ptr)++ = libspectrum_snap_spectranet_page_b( snap ); + + libspectrum_write_word( ptr, + libspectrum_snap_spectranet_programmable_trap( snap ) ); + + memcpy( *ptr, libspectrum_snap_spectranet_w5100( snap, 0 ), 0x30 ); + (*ptr) += 0x30; + + libspectrum_write_dword( ptr, flash_length ); + memcpy( *ptr, flash_data, flash_length ); *ptr += flash_length; + + libspectrum_write_dword( ptr, ram_length ); + memcpy( *ptr, ram_data, ram_length ); *ptr += ram_length; + + if( flash_compressed ) + libspectrum_free( compressed_flash_data ); + + if( ram_compressed ) + libspectrum_free( compressed_ram_data ); + + return LIBSPECTRUM_ERROR_NONE; +} + static void write_chunk_header( libspectrum_byte **buffer, libspectrum_byte **ptr, size_t *length, const char *id, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-24 06:50:38
|
Revision: 711 http://sourceforge.net/p/fuse-for-macosx/code/711 Author: fredm Date: 2012-11-24 06:50:35 +0000 (Sat, 24 Nov 2012) Log Message: ----------- Tag vendor/fuse-emulator/current as vendor/fuse-emulator/fuse-r4676. Revision Links: -------------- http://sourceforge.net/p/fuse-for-macosx/code/4676 Added Paths: ----------- vendor/fuse-emulator/fuse-r4676/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-24 06:50:13
|
Revision: 710 http://sourceforge.net/p/fuse-for-macosx/code/710 Author: fredm Date: 2012-11-24 06:50:08 +0000 (Sat, 24 Nov 2012) Log Message: ----------- Load . into vendor/fuse-emulator/current. Modified Paths: -------------- vendor/fuse-emulator/current/fuse/Makefile.am vendor/fuse-emulator/current/fuse/README vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am vendor/fuse-emulator/current/fuse/compat/unix/file.c vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am vendor/fuse-emulator/current/fuse/compat.h vendor/fuse-emulator/current/fuse/configure.in vendor/fuse-emulator/current/fuse/debugger/breakpoint.c vendor/fuse-emulator/current/fuse/debugger/command.c vendor/fuse-emulator/current/fuse/debugger/debugger.c vendor/fuse-emulator/current/fuse/debugger/debugger.h vendor/fuse-emulator/current/fuse/debugger/debugger_internals.h vendor/fuse-emulator/current/fuse/debugger/event.c vendor/fuse-emulator/current/fuse/debugger/expression.c vendor/fuse-emulator/current/fuse/debugger/variable.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/lib/Makefile.am vendor/fuse-emulator/current/fuse/machine.c vendor/fuse-emulator/current/fuse/machine.h vendor/fuse-emulator/current/fuse/machines/machines_periph.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_ntsc.c 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/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/machines/ts2068.c 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/periph.c vendor/fuse-emulator/current/fuse/periph.h vendor/fuse-emulator/current/fuse/peripherals/Makefile.am vendor/fuse-emulator/current/fuse/peripherals/ay.c vendor/fuse-emulator/current/fuse/peripherals/ay.h vendor/fuse-emulator/current/fuse/peripherals/dck.c vendor/fuse-emulator/current/fuse/peripherals/disk/beta.c vendor/fuse-emulator/current/fuse/peripherals/disk/beta.h vendor/fuse-emulator/current/fuse/peripherals/disk/disciple.c vendor/fuse-emulator/current/fuse/peripherals/disk/disciple.h vendor/fuse-emulator/current/fuse/peripherals/disk/disk.c vendor/fuse-emulator/current/fuse/peripherals/disk/fdd.c vendor/fuse-emulator/current/fuse/peripherals/disk/fdd.h vendor/fuse-emulator/current/fuse/peripherals/disk/opus.c vendor/fuse-emulator/current/fuse/peripherals/disk/opus.h vendor/fuse-emulator/current/fuse/peripherals/disk/plusd.c vendor/fuse-emulator/current/fuse/peripherals/disk/plusd.h vendor/fuse-emulator/current/fuse/peripherals/disk/upd_fdc.c vendor/fuse-emulator/current/fuse/peripherals/disk/upd_fdc.h vendor/fuse-emulator/current/fuse/peripherals/disk/wd_fdc.c vendor/fuse-emulator/current/fuse/peripherals/disk/wd_fdc.h vendor/fuse-emulator/current/fuse/peripherals/fuller.c vendor/fuse-emulator/current/fuse/peripherals/fuller.h vendor/fuse-emulator/current/fuse/peripherals/ide/divide.c vendor/fuse-emulator/current/fuse/peripherals/ide/divide.h vendor/fuse-emulator/current/fuse/peripherals/ide/ide.c vendor/fuse-emulator/current/fuse/peripherals/ide/ide.h vendor/fuse-emulator/current/fuse/peripherals/ide/simpleide.c vendor/fuse-emulator/current/fuse/peripherals/ide/simpleide.h vendor/fuse-emulator/current/fuse/peripherals/ide/zxatasp.c vendor/fuse-emulator/current/fuse/peripherals/ide/zxatasp.h vendor/fuse-emulator/current/fuse/peripherals/ide/zxcf.c vendor/fuse-emulator/current/fuse/peripherals/ide/zxcf.h vendor/fuse-emulator/current/fuse/peripherals/if1.c vendor/fuse-emulator/current/fuse/peripherals/if1.h vendor/fuse-emulator/current/fuse/peripherals/if2.c vendor/fuse-emulator/current/fuse/peripherals/if2.h vendor/fuse-emulator/current/fuse/peripherals/kempmouse.c vendor/fuse-emulator/current/fuse/peripherals/kempmouse.h vendor/fuse-emulator/current/fuse/peripherals/melodik.c vendor/fuse-emulator/current/fuse/peripherals/melodik.h vendor/fuse-emulator/current/fuse/peripherals/nic/Makefile.am vendor/fuse-emulator/current/fuse/peripherals/printer.c vendor/fuse-emulator/current/fuse/peripherals/printer.h vendor/fuse-emulator/current/fuse/peripherals/scld.c vendor/fuse-emulator/current/fuse/peripherals/scld.h vendor/fuse-emulator/current/fuse/peripherals/speccyboot.c vendor/fuse-emulator/current/fuse/peripherals/speccyboot.h vendor/fuse-emulator/current/fuse/peripherals/specdrum.c vendor/fuse-emulator/current/fuse/peripherals/specdrum.h vendor/fuse-emulator/current/fuse/peripherals/ula.c vendor/fuse-emulator/current/fuse/peripherals/ula.h vendor/fuse-emulator/current/fuse/pokefinder/pokefinder.c vendor/fuse-emulator/current/fuse/pokefinder/pokefinder.h vendor/fuse-emulator/current/fuse/pokefinder/pokemem.c vendor/fuse-emulator/current/fuse/profile.c vendor/fuse-emulator/current/fuse/profile.h vendor/fuse-emulator/current/fuse/psg.c vendor/fuse-emulator/current/fuse/psg.h vendor/fuse-emulator/current/fuse/rzx.c vendor/fuse-emulator/current/fuse/rzx.h vendor/fuse-emulator/current/fuse/screenshot.c vendor/fuse-emulator/current/fuse/screenshot.h vendor/fuse-emulator/current/fuse/settings-header.pl vendor/fuse-emulator/current/fuse/settings.dat vendor/fuse-emulator/current/fuse/settings.pl vendor/fuse-emulator/current/fuse/slt.c vendor/fuse-emulator/current/fuse/slt.h vendor/fuse-emulator/current/fuse/snapshot.c vendor/fuse-emulator/current/fuse/sound/aosound.c vendor/fuse-emulator/current/fuse/sound/coreaudiosound.c vendor/fuse-emulator/current/fuse/sound/sdlsound.c vendor/fuse-emulator/current/fuse/sound.c vendor/fuse-emulator/current/fuse/sound.h vendor/fuse-emulator/current/fuse/spectrum.c vendor/fuse-emulator/current/fuse/spectrum.h vendor/fuse-emulator/current/fuse/tape.c vendor/fuse-emulator/current/fuse/tape.h vendor/fuse-emulator/current/fuse/timer/timer.c vendor/fuse-emulator/current/fuse/ui/gtk/binary.c vendor/fuse-emulator/current/fuse/ui/gtk/browse.c 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/gtkjoystick.c vendor/fuse-emulator/current/fuse/ui/gtk/gtkmouse.c vendor/fuse-emulator/current/fuse/ui/gtk/gtkui.c vendor/fuse-emulator/current/fuse/ui/gtk/memory.c vendor/fuse-emulator/current/fuse/ui/gtk/options.pl vendor/fuse-emulator/current/fuse/ui/gtk/picture.c vendor/fuse-emulator/current/fuse/ui/gtk/pokefinder.c vendor/fuse-emulator/current/fuse/ui/gtk/pokemem.c vendor/fuse-emulator/current/fuse/ui/gtk/rollback.c vendor/fuse-emulator/current/fuse/ui/gtk/roms.c vendor/fuse-emulator/current/fuse/ui/gtk/stock.c vendor/fuse-emulator/current/fuse/ui/options.dat vendor/fuse-emulator/current/fuse/ui/scaler/scaler.c vendor/fuse-emulator/current/fuse/ui/scaler/scalers.c vendor/fuse-emulator/current/fuse/ui/ui.h 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.pl vendor/fuse-emulator/current/fuse/ui/widget/pokefinder.c vendor/fuse-emulator/current/fuse/ui/widget/pokemem.c vendor/fuse-emulator/current/fuse/ui/widget/roms.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/win32/binary.c vendor/fuse-emulator/current/fuse/ui/win32/debugger.c vendor/fuse-emulator/current/fuse/ui/win32/debugger.rc vendor/fuse-emulator/current/fuse/ui/win32/fileselector.c vendor/fuse-emulator/current/fuse/ui/win32/memorybrowser.c vendor/fuse-emulator/current/fuse/ui/win32/memorybrowser.rc vendor/fuse-emulator/current/fuse/ui/win32/options.pl vendor/fuse-emulator/current/fuse/ui/win32/picture.c vendor/fuse-emulator/current/fuse/ui/win32/pokefinder.c vendor/fuse-emulator/current/fuse/ui/win32/roms.c vendor/fuse-emulator/current/fuse/ui/win32/win32internals.h vendor/fuse-emulator/current/fuse/ui/win32/win32ui.c vendor/fuse-emulator/current/fuse/ui/xlib/xdisplay.c vendor/fuse-emulator/current/fuse/ui/xlib/xui.c vendor/fuse-emulator/current/fuse/ui.c vendor/fuse-emulator/current/fuse/unittests/unittests.c vendor/fuse-emulator/current/fuse/unittests/unittests.h 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.h vendor/fuse-emulator/current/fuse/z80/z80_checks.h vendor/fuse-emulator/current/fuse/z80/z80_macros.h vendor/fuse-emulator/current/fuse/z80/z80_ops.c vendor/fuse-emulator/current/fuse-utils/Makefile.am vendor/fuse-emulator/current/fuse-utils/configure.in vendor/fuse-emulator/current/fuse-utils/hacking/ChangeLog vendor/fuse-emulator/current/fuse-utils/man/Makefile.am vendor/fuse-emulator/current/fuse-utils/rzxtool.c vendor/fuse-emulator/current/fuse-utils/scl2trd.c vendor/fuse-emulator/current/fuse-utils/snap2tzx.c vendor/fuse-emulator/current/libspectrum/accessor.pl vendor/fuse-emulator/current/libspectrum/csw.c vendor/fuse-emulator/current/libspectrum/hacking/ChangeLog vendor/fuse-emulator/current/libspectrum/make-perl.c vendor/fuse-emulator/current/libspectrum/snap_accessors.txt vendor/fuse-emulator/current/libspectrum/snapshot.c vendor/fuse-emulator/current/libspectrum/szx.c Added Paths: ----------- vendor/fuse-emulator/current/fuse/compat/unix/socket.c vendor/fuse-emulator/current/fuse/compat/win32/socket.c vendor/fuse-emulator/current/fuse/data/ vendor/fuse-emulator/current/fuse/data/Makefile.am vendor/fuse-emulator/current/fuse/data/fuse.desktop.in vendor/fuse-emulator/current/fuse/data/fuse.xml.in vendor/fuse-emulator/current/fuse/data/icons/ vendor/fuse-emulator/current/fuse/data/icons/128x128/ vendor/fuse-emulator/current/fuse/data/icons/128x128/application-x-spectrum.png vendor/fuse-emulator/current/fuse/data/icons/128x128/fuse.png vendor/fuse-emulator/current/fuse/data/icons/16x16/ vendor/fuse-emulator/current/fuse/data/icons/16x16/application-x-spectrum.png vendor/fuse-emulator/current/fuse/data/icons/16x16/fuse.png vendor/fuse-emulator/current/fuse/data/icons/256x256/ vendor/fuse-emulator/current/fuse/data/icons/256x256/application-x-spectrum.png vendor/fuse-emulator/current/fuse/data/icons/256x256/fuse.png vendor/fuse-emulator/current/fuse/data/icons/32x32/ vendor/fuse-emulator/current/fuse/data/icons/32x32/application-x-spectrum.png vendor/fuse-emulator/current/fuse/data/icons/32x32/fuse.png vendor/fuse-emulator/current/fuse/data/icons/48x48/ vendor/fuse-emulator/current/fuse/data/icons/48x48/application-x-spectrum.png vendor/fuse-emulator/current/fuse/data/icons/48x48/fuse.png vendor/fuse-emulator/current/fuse/data/icons/64x64/ vendor/fuse-emulator/current/fuse/data/icons/64x64/application-x-spectrum.png vendor/fuse-emulator/current/fuse/data/icons/64x64/fuse.png vendor/fuse-emulator/current/fuse/hacking/peripheral_tests.txt vendor/fuse-emulator/current/fuse/hacking/spectranet.txt vendor/fuse-emulator/current/fuse/hacking/valgrind.supp vendor/fuse-emulator/current/fuse/lib/tests/ vendor/fuse-emulator/current/fuse/lib/tests/fatware-success.hdf.bz2 vendor/fuse-emulator/current/fuse/lib/tests/idedos-success.hdf.bz2 vendor/fuse-emulator/current/fuse/lib/tests/success.mdr vendor/fuse-emulator/current/fuse/lib/tests/success.mgt.bz2 vendor/fuse-emulator/current/fuse/lib/tests/success.opd vendor/fuse-emulator/current/fuse/lib/tests/success.udi vendor/fuse-emulator/current/fuse/movie.c vendor/fuse-emulator/current/fuse/movie.h vendor/fuse-emulator/current/fuse/movie_tables.h vendor/fuse-emulator/current/fuse/peripherals/flash/ vendor/fuse-emulator/current/fuse/peripherals/flash/Makefile.am vendor/fuse-emulator/current/fuse/peripherals/flash/am29f010.c vendor/fuse-emulator/current/fuse/peripherals/flash/am29f010.h vendor/fuse-emulator/current/fuse/peripherals/nic/w5100.c vendor/fuse-emulator/current/fuse/peripherals/nic/w5100.h vendor/fuse-emulator/current/fuse/peripherals/nic/w5100_internals.h vendor/fuse-emulator/current/fuse/peripherals/nic/w5100_socket.c vendor/fuse-emulator/current/fuse/peripherals/spectranet.c vendor/fuse-emulator/current/fuse/peripherals/spectranet.h vendor/fuse-emulator/current/fuse-utils/compat/getopt.c vendor/fuse-emulator/current/fuse-utils/compat/getopt.h vendor/fuse-emulator/current/fuse-utils/compat/getopt1.c vendor/fuse-emulator/current/fuse-utils/fmfconv.c vendor/fuse-emulator/current/fuse-utils/fmfconv.h vendor/fuse-emulator/current/fuse-utils/fmfconv_aiff.c vendor/fuse-emulator/current/fuse-utils/fmfconv_au.c vendor/fuse-emulator/current/fuse-utils/fmfconv_ff.c vendor/fuse-emulator/current/fuse-utils/fmfconv_ppm.c vendor/fuse-emulator/current/fuse-utils/fmfconv_scr.c vendor/fuse-emulator/current/fuse-utils/fmfconv_wav.c vendor/fuse-emulator/current/fuse-utils/fmfconv_yuv.c vendor/fuse-emulator/current/fuse-utils/man/fmfconv.1 vendor/fuse-emulator/current/fuse-utils/movie_tables.h Modified: vendor/fuse-emulator/current/fuse/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/Makefile.am 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/Makefile.am 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ # Process this file with automake to produce Makefile.in ## Copyright (c) 1999-2009 Philip Kendall -## $Id: Makefile.am 4288 2011-02-03 21:06:22Z pak21 $ +## $Id: Makefile.am 4674 2012-02-20 11:03:58Z 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,6 +26,7 @@ bin_PROGRAMS = fuse SUBDIRS = @COMPAT_SUBDIR@ \ + data \ debugger \ hacking \ lib \ @@ -41,7 +42,8 @@ unittests \ z80 -DIST_SUBDIRS = debugger \ +DIST_SUBDIRS = data \ + debugger \ hacking \ lib \ machines \ @@ -66,6 +68,7 @@ memory.c \ mempool.c \ menu.c \ + movie.c \ module.c \ periph.c \ profile.c \ @@ -104,6 +107,7 @@ machines/libmachines.a \ peripherals/libperipherals.a \ peripherals/disk/libdisk.a \ +peripherals/flash/libflash.a \ peripherals/ide/libide.a \ peripherals/nic/libnic.a \ pokefinder/libpokefinder.a \ @@ -128,6 +132,7 @@ machines/libmachines.a \ peripherals/libperipherals.a \ peripherals/disk/libdisk.a \ +peripherals/flash/libflash.a \ peripherals/ide/libide.a \ peripherals/nic/libnic.a \ pokefinder/libpokefinder.a \ @@ -173,6 +178,8 @@ memory.h \ mempool.h \ menu.h \ + movie.h \ + movie_tables.h \ module.h \ periph.h \ psg.h \ Modified: vendor/fuse-emulator/current/fuse/README =================================================================== --- vendor/fuse-emulator/current/fuse/README 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/README 2012-11-24 06:50:08 UTC (rev 710) @@ -64,6 +64,8 @@ * Either the native port by Fredrick Meunier, or the original version will compile on OS X 10.3 (Panther) or later. +* On Mac OS X Lion you will need to use clang as gcc-llvm-4.2.1 fails to + correctly compile z80_ops.c. Windows @@ -216,4 +218,4 @@ Philip Kendall <phi...@sh...> 16 December 2010 -$Id: README 4410 2011-05-01 10:51:21Z zubzero $ +$Id: README 4624 2012-01-09 20:59:35Z pak21 $ Modified: vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/compat/unix/Makefile.am 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 4237 2010-12-31 19:31:26Z pak21 $ +## $Id: Makefile.am 4624 2012-01-09 20:59:35Z 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 @@ -31,6 +31,7 @@ file.c \ osname.c \ paths.c \ + socket.c \ timer.c \ tuntap.c Modified: vendor/fuse-emulator/current/fuse/compat/unix/file.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/file.c 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/compat/unix/file.c 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ /* file.c: File-related compatibility routines Copyright (c) 2008 Philip Kendall - $Id: file.c 4534 2011-08-11 12:59:47Z fredm $ + $Id: file.c 4624 2012-01-09 20:59:35Z 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 @@ -64,7 +64,7 @@ if( bytes != file->length ) { ui_error( UI_ERROR_ERROR, "error reading file: expected %lu bytes, but read only %lu", - file->length, bytes ); + (unsigned long)file->length, (unsigned long)bytes ); return 1; } @@ -78,7 +78,7 @@ if( bytes != length ) { ui_error( UI_ERROR_ERROR, "error writing file: expected %lu bytes, but wrote only %lu", - length, bytes ); + (unsigned long)length, (unsigned long)bytes ); return 1; } Added: vendor/fuse-emulator/current/fuse/compat/unix/socket.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/unix/socket.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/unix/socket.c 2012-11-24 06:50:08 UTC (rev 710) @@ -0,0 +1,118 @@ +/* socket.c: Socket-related compatibility routines + Copyright (c) 2011 Philip Kendall + + $Id$ + + 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 "fuse.h" +#include "ui/ui.h" + +const compat_socket_t compat_socket_invalid = -1; +const int compat_socket_EBADF = EBADF; + +struct compat_socket_selfpipe_t { + int read_fd; + int write_fd; +}; + +void +compat_socket_networking_init( void ) +{ + /* No action necessary */ +} + +void +compat_socket_networking_end( void ) +{ + /* No action necessary */ +} + +int +compat_socket_close( compat_socket_t fd ) +{ + return close( fd ); +} + +int compat_socket_get_error( void ) +{ + return errno; +} + +const char * +compat_socket_get_strerror( void ) +{ + return strerror( errno ); +} + +compat_socket_selfpipe_t* compat_socket_selfpipe_alloc( void ) +{ + int error; + int pipefd[2]; + + compat_socket_selfpipe_t *self = malloc( sizeof( *self ) ); + if( !self ) { + ui_error( UI_ERROR_ERROR, "%s: %d: out of memory", __FILE__, __LINE__ ); + fuse_abort(); + } + + error = pipe( pipefd ); + if( error ) { + ui_error( UI_ERROR_ERROR, "%s: %d: error %d creating pipe", __FILE__, __LINE__, error ); + fuse_abort(); + } + + self->read_fd = pipefd[0]; + self->write_fd = pipefd[1]; + + return self; +} + +void compat_socket_selfpipe_free( compat_socket_selfpipe_t *self ) +{ + close( self->read_fd ); + close( self->write_fd ); + free( self ); +} + +compat_socket_t compat_socket_selfpipe_get_read_fd( compat_socket_selfpipe_t *self ) +{ + return self->read_fd; +} + +void compat_socket_selfpipe_wake( compat_socket_selfpipe_t *self ) +{ + const char dummy = 0; + write( self->write_fd, &dummy, 1 ); +} + +void compat_socket_selfpipe_discard_data( compat_socket_selfpipe_t *self ) +{ + char bitbucket; + read( self->read_fd, &bitbucket, 1 ); +} Modified: vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/compat/win32/Makefile.am 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Copyright (c) 2007-2008 Philip Kendall -## $Id: Makefile.am 4237 2010-12-31 19:31:26Z pak21 $ +## $Id: Makefile.am 4624 2012-01-09 20:59:35Z 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 @@ -31,6 +31,7 @@ ../unix/file.c \ osname.c \ paths.c \ + socket.c \ timer.c \ ../unix/tuntap.c Added: vendor/fuse-emulator/current/fuse/compat/win32/socket.c =================================================================== --- vendor/fuse-emulator/current/fuse/compat/win32/socket.c (rev 0) +++ vendor/fuse-emulator/current/fuse/compat/win32/socket.c 2012-11-24 06:50:08 UTC (rev 710) @@ -0,0 +1,241 @@ +/* socket.c: Socket-related compatibility routines + Copyright (c) 2011 Sergio Baldoví, Philip Kendall + + $Id$ + + 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 <winsock2.h> +#include <ws2tcpip.h> + +#include "compat.h" +#include "fuse.h" +#include "ui/ui.h" + +const compat_socket_t compat_socket_invalid = INVALID_SOCKET; +const int compat_socket_EBADF = WSAENOTSOCK; + +struct compat_socket_selfpipe_t { + SOCKET self_socket; + libspectrum_word port; +}; + +int +compat_socket_close( compat_socket_t fd ) +{ + return closesocket( fd ); +} + +int compat_socket_get_error( void ) +{ + return WSAGetLastError(); +} + +const char * +compat_socket_get_strerror( void ) +{ + static TCHAR buffer[256]; + TCHAR *ptr; + DWORD msg_size; + + /* get description of last winsock error */ + msg_size = FormatMessage( + FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, + NULL, WSAGetLastError(), + MAKELANGID( LANG_NEUTRAL, SUBLANG_DEFAULT ), + buffer, sizeof( buffer ) / sizeof( TCHAR ), NULL ); + + if( !msg_size ) return NULL; + + /* skip 'new line' like chars */ + for( ptr = buffer; *ptr; ptr++ ) { + if( ( *ptr == '\r' ) || ( *ptr == '\n' ) ) { + *ptr = '\0'; + break; + } + } + + return (const char *)buffer; +} + +static int +selfpipe_test( compat_socket_selfpipe_t *self ) +{ + fd_set readfds; + int active; + struct timeval tv = { 1, 0 }; + + /* Send testing packet */ + compat_socket_selfpipe_wake( self ); + + /* Safe reading from control socket */ + FD_ZERO( &readfds ); + FD_SET( self->self_socket, &readfds ); + active = select( 0, &readfds, NULL, NULL, &tv ); + if( active == 0 || active == compat_socket_invalid ) { + return -1; + } + + /* Discard testing packet */ + if( FD_ISSET( self->self_socket, &readfds ) ) { + compat_socket_selfpipe_discard_data( self ); + } + + return 0; +} + +compat_socket_selfpipe_t * +compat_socket_selfpipe_alloc( void ) +{ + unsigned long mode = 1; + struct sockaddr_in sa; + socklen_t sa_len = sizeof(sa); + + compat_socket_selfpipe_t *self = malloc( sizeof( *self ) ); + if( !self ) { + ui_error( UI_ERROR_ERROR, "%s: %d: out of memory", __FILE__, __LINE__ ); + fuse_abort(); + } + + self->self_socket = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); + if( self->self_socket == compat_socket_invalid ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to open socket; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + /* Set nonblocking mode */ + if( ioctlsocket( self->self_socket, FIONBIO, &mode ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to set socket nonblocking; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + memset( &sa, 0, sizeof(sa) ); + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl( INADDR_LOOPBACK ); + + if( bind( self->self_socket, (struct sockaddr*)&sa, sizeof(sa) ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to bind socket; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + /* Get ephemeral port number */ + if( getsockname( self->self_socket, (struct sockaddr *)&sa, &sa_len ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "%s: %d: failed to get socket name; errno %d: %s\n", + __FILE__, __LINE__, compat_socket_get_error(), + compat_socket_get_strerror() ); + fuse_abort(); + } + + self->port = ntohs( sa.sin_port ); + + /* Test communications in order to detect blocking firewalls */ + if( selfpipe_test( self ) == -1 ) { + ui_error( UI_ERROR_ERROR, + "Networking: failed to test internal communications" ); + fuse_abort(); + } + + return self; +} + +void +compat_socket_selfpipe_free( compat_socket_selfpipe_t *self ) +{ + compat_socket_close( self->self_socket ); + free( self ); +} + +compat_socket_t +compat_socket_selfpipe_get_read_fd( compat_socket_selfpipe_t *self ) +{ + return self->self_socket; +} + +void +compat_socket_selfpipe_wake( compat_socket_selfpipe_t *self ) +{ + struct sockaddr_in sa; + + memset( &sa, 0, sizeof(sa) ); + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl( INADDR_LOOPBACK ); + sa.sin_port = htons( self->port ); + + sendto( self->self_socket, NULL, 0, 0, (struct sockaddr*)&sa, sizeof(sa) ); +} + +void +compat_socket_selfpipe_discard_data( compat_socket_selfpipe_t *self ) +{ + ssize_t bytes_read; + struct sockaddr_in sa; + socklen_t sa_length = sizeof(sa); + static char bitbucket[0x100]; + + do { + /* Socket is non blocking, so we can do this safely */ + bytes_read = recvfrom( self->self_socket, bitbucket, sizeof( bitbucket ), + 0, (struct sockaddr*)&sa, &sa_length ); + } while( bytes_read != -1 ); +} + + +void +compat_socket_networking_init( void ) +{ + WORD wVersionRequested; + WSADATA wsaData; + int error; + + wVersionRequested = MAKEWORD( 2, 2 ); + error = WSAStartup( wVersionRequested, &wsaData ); + if( error ) { + ui_error( UI_ERROR_ERROR, "%s:%d: error %d from WSAStartup()", __FILE__, + __LINE__, error ); + fuse_abort(); + } + + if( LOBYTE( wsaData.wVersion ) != 2 || HIBYTE( wsaData.wVersion ) != 2 ) { + ui_error( UI_ERROR_ERROR, + "%s:%d: unexpected version 0x%02x from WSAStartup()", + __FILE__, __LINE__, wsaData.wVersion ); + fuse_abort(); + } +} + +void +compat_socket_networking_end( void ) +{ + WSACleanup(); +} + Modified: vendor/fuse-emulator/current/fuse/compat.h =================================================================== --- vendor/fuse-emulator/current/fuse/compat.h 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/compat.h 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ /* compat.h: various compatibility bits Copyright (c) 2003-2008 Philip Kendall - $Id: compat.h 4534 2011-08-11 12:59:47Z fredm $ + $Id: compat.h 4648 2012-01-22 19:57:35Z 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 @@ -31,6 +31,10 @@ #include <stdlib.h> #include <sys/types.h> +#ifdef WIN32 +#include <winsock2.h> +#endif + /* Remove the gcc-specific incantations if we're not using gcc */ #ifdef __GNUC__ @@ -120,4 +124,30 @@ int compat_get_tap( const char *interface_name ); +/* Socket handling */ + +#ifndef WIN32 +typedef int compat_socket_t; +#else /* #ifndef WIN32 */ +typedef SOCKET compat_socket_t; +#endif + +extern const compat_socket_t compat_socket_invalid; +extern const int compat_socket_EBADF; + +void compat_socket_networking_init( void ); +void compat_socket_networking_end( void ); + +int compat_socket_close( compat_socket_t fd ); +int compat_socket_get_error( void ); +const char *compat_socket_get_strerror( void ); + +typedef struct compat_socket_selfpipe_t compat_socket_selfpipe_t; + +compat_socket_selfpipe_t* compat_socket_selfpipe_alloc( void ); +void compat_socket_selfpipe_free( compat_socket_selfpipe_t *self ); +compat_socket_t compat_socket_selfpipe_get_read_fd( compat_socket_selfpipe_t *self ); +void compat_socket_selfpipe_wake( compat_socket_selfpipe_t *self ); +void compat_socket_selfpipe_discard_data( compat_socket_selfpipe_t *self ); + #endif /* #ifndef FUSE_COMPAT_H */ Modified: vendor/fuse-emulator/current/fuse/configure.in =================================================================== --- vendor/fuse-emulator/current/fuse/configure.in 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/configure.in 2012-11-24 06:50:08 UTC (rev 710) @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Id: configure.in 4617 2012-01-03 11:47:27Z fredm $ +dnl $Id: configure.in 4674 2012-02-20 11:03:58Z 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 @@ -110,7 +110,7 @@ AC_MSG_RESULT($win32) if test "$win32" = yes; then AC_CHECK_HEADER(windows.h, - LIBS="$LIBS -mwindows -lcomctl32 -lwinmm"; + LIBS="$LIBS -mwindows -lcomctl32 -lwinmm -lpthread -lws2_32"; 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]) @@ -322,10 +322,11 @@ AC_TRY_COMPILE([#include <libspectrum.h>],[ int test = LIBSPECTRUM_SUPPORTS_ZLIB_COMPRESSION; ], - AUTOLOAD_SNAPS=compressed; AC_MSG_RESULT(yes), - AUTOLOAD_SNAPS=uncompressed; AC_MSG_RESULT(no)) + AUTOLOAD_SNAPS=compressed; LIBSPEC_HAVE_ZLIB=yes; AC_MSG_RESULT(yes), + AUTOLOAD_SNAPS=uncompressed; LIBSPEC_HAVE_ZLIB=""; AC_MSG_RESULT(no)) CPPFLAGS="$ac_save_CPPFLAGS" AC_SUBST(AUTOLOAD_SNAPS) +AC_SUBST(LIBSPEC_HAVE_ZLIB) AC_LINK_FILES([ lib/"$AUTOLOAD_SNAPS"/disk_plus3.szx lib/"$AUTOLOAD_SNAPS"/tape_128.szx @@ -356,6 +357,44 @@ lib/tape_se.szx lib/tape_ts2068.szx]) +dnl Check whether to use zlib (the UNIX version is called z, Win32 zdll) +AC_MSG_CHECKING(whether to use zlib) +AC_ARG_WITH(zlib, +[ --without-zlib don't use zlib], +if test "$withval" = no; then zlib=no; else zlib=yes; fi, +zlib=yes) +AC_MSG_RESULT($zlib) +if test "$zlib" = yes; then + AC_CHECK_HEADERS( + zlib.h, + AC_SEARCH_LIBS(compress2, z zdll) + ) +fi + +dnl Check if supplied libspectrum has support for bz2 compressed files +AC_MSG_CHECKING(whether libspectrum supports compressed bz2 files) +ac_save_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $LIBSPEC_CFLAGS" +AC_TRY_COMPILE([#include <libspectrum.h>],[ + int test = LIBSPECTRUM_SUPPORTS_BZ2_COMPRESSION; +], + LIBSPEC_HAVE_BZ2=yes; AC_MSG_RESULT(yes), + LIBSPEC_HAVE_BZ2=""; AC_MSG_RESULT(no)) +CPPFLAGS="$ac_save_CPPFLAGS" +AC_SUBST(LIBSPEC_HAVE_BZ2) + +dnl Check if supplied libspectrum has support for wav files +AC_MSG_CHECKING(whether libspectrum supports wav files) +ac_save_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $LIBSPEC_CFLAGS" +AC_TRY_COMPILE([#include <libspectrum.h>],[ + int test = LIBSPECTRUM_SUPPORTS_AUDIOFILE; +], + LIBSPEC_HAVE_AUDIOFILE=yes; AC_MSG_RESULT(yes), + LIBSPEC_HAVE_AUDIOFILE=""; AC_MSG_RESULT(no)) +CPPFLAGS="$ac_save_CPPFLAGS" +AC_SUBST(LIBSPEC_HAVE_AUDIOFILE) + dnl Check if a version of libpng which supplies png_write_png is available AC_MSG_CHECKING(whether PNG support requested) AC_ARG_WITH(png, @@ -681,6 +720,29 @@ AC_SUBST(COMPAT_SUBDIR) AC_SUBST(COMPAT_OSNAME) +dnl Decide whether to install desktop and mime files +AC_ARG_ENABLE(desktop-integration, +AS_HELP_STRING([--enable-desktop-integration], [add menu entry and file associations]), +if test "$enableval" = yes; then desktopintegration=yes; else desktopintegration=no; fi, +desktdesktopintegration=no) +AC_MSG_CHECKING(whether to install desktop file) +AC_MSG_RESULT($desktopintegration) +AM_CONDITIONAL(DESKTOP_INTEGRATION, test "$desktopintegration" = yes) +AC_CHECK_PROGS(GTK_UPDATE_ICON_CACHE,gtk-update-icon-cache,true) + +dnl Where to install the desktop and mime files +AC_ARG_WITH(desktop-dir, +AS_HELP_STRING([--with-desktop-dir=DIR], [location of desktop files (default=datadir)]), +if test "$withval" = no; then desktopdir=no; else desktopdir=yes; fi, +desktopdir=no) +if test "$desktopdir" = yes; then + DESKTOP_DATADIR=$with_desktop_dir +else + DESKTOP_DATADIR="$datadir" +fi +AM_CONDITIONAL(DESKTOP_DATADIR, test "$desktopdir" == yes) +AC_SUBST(DESKTOP_DATADIR) + dnl Do we want the low memory compile? AC_MSG_CHECKING(whether low memory compile requested) AC_ARG_ENABLE(smallmem, @@ -723,6 +785,7 @@ compat/unix/Makefile \ compat/wii/Makefile \ compat/win32/Makefile \ +data/Makefile \ debugger/Makefile \ hacking/Makefile \ lib/Makefile \ @@ -732,6 +795,7 @@ peripherals/disk/Makefile \ peripherals/ide/Makefile \ peripherals/nic/Makefile \ +peripherals/flash/Makefile \ perl/Makefile \ perl/Fuse/Makefile \ pokefinder/Makefile \ Added: vendor/fuse-emulator/current/fuse/data/Makefile.am =================================================================== --- vendor/fuse-emulator/current/fuse/data/Makefile.am (rev 0) +++ vendor/fuse-emulator/current/fuse/data/Makefile.am 2012-11-24 06:50:08 UTC (rev 710) @@ -0,0 +1,116 @@ +## Process this file with automake to produce Makefile.in +## Copyright (c) 2011 Philip Kendall + +## $Id: Makefile.am 4674 2012-02-20 11:03:58Z 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 +## 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... + +AUTOMAKE_OPTIONS = foreign + +if DESKTOP_INTEGRATION + +fusemimedir = $(DESKTOP_DATADIR)/mime/packages +fusemime_DATA = fuse.xml + +appdatadir = $(DESKTOP_DATADIR)/applications +appdata_DATA = fuse.desktop + +iconsdatadir = $(DESKTOP_DATADIR)/icons/hicolor +icons16dir = $(iconsdatadir)/16x16/apps +icons32dir = $(iconsdatadir)/32x32/apps +icons48dir = $(iconsdatadir)/48x48/apps +icons64dir = $(iconsdatadir)/64x64/apps +icons128dir = $(iconsdatadir)/128x128/apps +icons256dir = $(iconsdatadir)/256x256/apps + +dist_icons16_DATA = icons/16x16/fuse.png +dist_icons32_DATA = icons/32x32/fuse.png +dist_icons48_DATA = icons/48x48/fuse.png +dist_icons64_DATA = icons/64x64/fuse.png +dist_icons128_DATA = icons/128x128/fuse.png +dist_icons256_DATA = icons/256x256/fuse.png + +mimeicons16dir = $(iconsdatadir)/16x16/mimetypes +mimeicons32dir = $(iconsdatadir)/32x32/mimetypes +mimeicons48dir = $(iconsdatadir)/48x48/mimetypes +mimeicons64dir = $(iconsdatadir)/64x64/mimetypes +mimeicons128dir = $(iconsdatadir)/128x128/mimetypes +mimeicons256dir = $(iconsdatadir)/256x256/mimetypes + +dist_mimeicons16_DATA = icons/16x16/application-x-spectrum.png +dist_mimeicons32_DATA = icons/32x32/application-x-spectrum.png +dist_mimeicons48_DATA = icons/48x48/application-x-spectrum.png +dist_mimeicons64_DATA = icons/64x64/application-x-spectrum.png +dist_mimeicons128_DATA = icons/128x128/application-x-spectrum.png +dist_mimeicons256_DATA = icons/256x256/application-x-spectrum.png + +# Generate fuse.xml according to libspectrum capabilities +fuse.xml: fuse.xml.in + if test -z "$(LIBSPEC_HAVE_AUDIOFILE)"; then \ + mime_audiofile='/LIBSPECTRUM_HAVE_AUDIOFILE_BEGIN/,/LIBSPECTRUM_HAVE_AUDIOFILE_END/d'; \ + else \ + mime_audiofile='/LIBSPECTRUM_HAVE_AUDIOFILE/d'; \ + fi; \ + if test -z "$(LIBSPEC_HAVE_ZLIB)"; then \ + mime_zlib='/LIBSPECTRUM_HAVE_ZLIB_BEGIN/,/LIBSPECTRUM_HAVE_ZLIB_END/d'; \ + else \ + mime_zlib='/LIBSPECTRUM_HAVE_ZLIB/d'; \ + fi; \ + if test -z "$(LIBSPEC_HAVE_BZ2)"; then \ + mime_bz2='/LIBSPECTRUM_HAVE_BZ2_BEGIN/,/LIBSPECTRUM_HAVE_BZ2_END/d'; \ + else \ + mime_bz2='/LIBSPECTRUM_HAVE_BZ2/d'; \ + fi; \ + $(SED) -e "$$mime_audiofile" -e "$$mime_zlib" -e "$$mime_bz2" < fuse.xml.in > $@ + +# Generate fuse.desktop from fuse.xml to keep mime types list in sync +fuse.desktop: fuse.desktop.in $(srcdir)/fuse.xml + list=`$(SED) -e '/<mime-type/ s/.*<mime-type type="\(.*\)">.*/\1;/' -e t -e d < $(srcdir)/fuse.xml | tr -d '\n'` && \ + $(SED) -e "s|@MIME_TYPES@|$$list|" < fuse.desktop.in > $@ + +update-database-cache: + if test -z "$(DESTDIR)"; then \ + update-desktop-database $(DESKTOP_DATADIR)/applications; \ + update-mime-database $(DESKTOP_DATADIR)/mime; \ + touch --no-create $(iconsdatadir); \ + $(GTK_UPDATE_ICON_CACHE) -t ${iconsdatadir}; \ + fi + +install-data-hook: update-database-cache + +uninstall-hook: update-database-cache + +validate: fuse.desktop + ( dfvalidate=`which desktop-file-validate`; \ + if test x$$dfvalidate != x && test -x $$dfvalidate; then \ + $$dfvalidate $< || ( echo "* $< INVALID *"; exit 1 ) \ + fi ) + +dist-hook: validate + +endif + +EXTRA_DIST = \ + fuse.desktop.in \ + fuse.xml.in + +CLEANFILES = \ + fuse.desktop \ + fuse.xml + Added: vendor/fuse-emulator/current/fuse/data/fuse.desktop.in =================================================================== --- vendor/fuse-emulator/current/fuse/data/fuse.desktop.in (rev 0) +++ vendor/fuse-emulator/current/fuse/data/fuse.desktop.in 2012-11-24 06:50:08 UTC (rev 710) @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Categories=Game;Emulator;GNOME;GTK; +Name=Fuse Spectrum Emulator +Comment=Emulator of the 1980s ZX Spectrum home computer and its various clones +MimeType=@MIME_TYPES@ +Exec=fuse %f +Icon=fuse + Added: vendor/fuse-emulator/current/fuse/data/fuse.xml.in =================================================================== --- vendor/fuse-emulator/current/fuse/data/fuse.xml.in (rev 0) +++ vendor/fuse-emulator/current/fuse/data/fuse.xml.in 2012-11-24 06:50:08 UTC (rev 710) @@ -0,0 +1,284 @@ +<?xml version="1.0" encoding="UTF-8"?> +<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> + <mime-type type="audio/x-spectrum-csw"> + <comment>ZX Spectrum audio</comment> + <magic> + <match type="string" offset="0" value="Compressed Square Wave\x1a"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.csw"/> + </mime-type> + <mime-type type="application/x-spectrum-dck"> + <comment>ZX Spectrum cartridge</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.dck"/> + </mime-type> + <mime-type type="application/x-spectrum-dsk"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="MV - CPCEMU Disk-File\x0d\x0aDisk-Info\x0d\x0a"/> + <match type="string" offset="0" value="EXTENDED CPC DSK File\x0d\x0aDisk-Info\x0d\x0a"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.dsk"/> + </mime-type> + <mime-type type="application/x-spectrum-fdi"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="FDI"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.fdi"/> + </mime-type> + <mime-type type="application/x-spectrum-hdf"> + <comment>ZX Spectrum harddisk</comment> + <magic> + <match type="string" offset="0" value="RS-IDE\x1a"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.hdf"/> + </mime-type> + <mime-type type="application/x-spectrum-img"> + <comment>ZX Spectrum disk</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.img"/> + </mime-type> + <mime-type type="application/x-spectrum-ltp"> + <comment>ZX Spectrum tape</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.ltp"/> + </mime-type> + <mime-type type="application/x-spectrum-mdr"> + <comment>ZX Spectrum microdrive</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.mdr"/> + </mime-type> + <mime-type type="application/x-spectrum-mgt"> + <comment>ZX Spectrum disk</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.mgt"/> + </mime-type> + <mime-type type="application/x-spectrum-mgtsnp"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.mgtsnp"/> + </mime-type> + <mime-type type="application/x-spectrum-opd"> + <comment>ZX Spectrum disk</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.opd"/> + </mime-type> + <mime-type type="application/x-spectrum-opu"> + <comment>ZX Spectrum disk</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.opu"/> + </mime-type> + <mime-type type="application/x-spectrum-pzx"> + <comment>ZX Spectrum tape</comment> + <magic> + <match type="string" offset="0" value="PZXT"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.pzx"/> + </mime-type> + <mime-type type="application/x-spectrum-raw"> + <comment>ZX Spectrum tape</comment> + <magic> + <match type="string" offset="0" value="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0Raw tape sample"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.raw"/> + </mime-type> + <mime-type type="application/x-spectrum-rom"> + <comment>ZX Spectrum cartridge</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.rom"/> + </mime-type> + <mime-type type="application/x-spectrum-rzx"> + <comment>ZX Spectrum action replay</comment> + <magic> + <match type="string" offset="0" value="RZX!"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.rzx"/> + </mime-type> + <mime-type type="application/x-spectrum-sad"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="Aley's disk backup"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.sad"/> + </mime-type> + <mime-type type="application/x-spectrum-scl"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="SINCLAIR"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.scl"/> + </mime-type> + <mime-type type="application/x-spectrum-slt"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.slt"/> + </mime-type> + <mime-type type="application/x-spectrum-sna"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.sna"/> + <glob pattern="*.snapshot"/> + </mime-type> + <mime-type type="application/x-spectrum-snp"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.snp"/> + </mime-type> + <mime-type type="application/x-spectrum-sp"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.sp"/> + </mime-type> + <mime-type type="application/x-spectrum-spc"> + <comment>ZX Spectrum tape</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.spc"/> + </mime-type> + <mime-type type="application/x-spectrum-sta"> + <comment>ZX Spectrum tape</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.sta"/> + </mime-type> + <mime-type type="application/x-spectrum-szx"> + <comment>ZX Spectrum snapshot</comment> + <magic> + <match type="string" offset="0" value="ZXST"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.szx"/> + <glob pattern="*.zx-state"/> + </mime-type> + <mime-type type="application/x-spectrum-td0"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="TD"/> + <match type="string" offset="0" value="td"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.td0"/> + </mime-type> + <mime-type type="application/x-spectrum-tap"> + <comment>ZX Spectrum tape</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.tap"/> + </mime-type> + <mime-type type="application/x-spectrum-trd"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="SINCLAIR"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.trd"/> + </mime-type> + <mime-type type="application/x-spectrum-tzx"> + <comment>ZX Spectrum tape</comment> + <magic> + <match type="string" offset="0" value="ZXTape!\x1a"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.tzx"/> + </mime-type> + <mime-type type="application/x-spectrum-udi"> + <comment>ZX Spectrum disk</comment> + <magic> + <match type="string" offset="0" value="UDI!"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.udi"/> + </mime-type> + <mime-type type="application/x-spectrum-z80"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.z80"/> + </mime-type> + <mime-type type="application/x-spectrum-zxs"> + <comment>ZX Spectrum snapshot</comment> + <magic> + <match type="string" offset="0" value="SNAP"/> + </magic> + <icon name="application-x-spectrum"/> + <glob pattern="*.zxs"/> + </mime-type> + ##LIBSPECTRUM_HAVE_AUDIOFILE_BEGIN## + <mime-type type="audio/x-spectrum-wav"> + <comment>ZX Spectrum audio</comment> + <magic priority="20"> + <match value="WAVE" type="string" offset="8"/> + <match value="WAV " type="string" offset="8"/> + </magic> + <glob pattern="*.wav"/> + </mime-type> + ##LIBSPECTRUM_HAVE_AUDIOFILE_END## + ##LIBSPECTRUM_HAVE_ZLIB_BEGIN## + <mime-type type="application/x-spectrum-compressed"> + <comment>ZX Spectrum compressed</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.csw.gz"/> + <glob pattern="*.dck.gz"/> + <glob pattern="*.hdf.gz"/> + <glob pattern="*.mdr.gz"/> + <glob pattern="*.mgtsnp.gz"/> + <glob pattern="*.ltp.gz"/> + <glob pattern="*.pzx.gz"/> + <glob pattern="*.raw.gz"/> + <glob pattern="*.rom.gz"/> + <glob pattern="*.rzx.gz"/> + <glob pattern="*.slt.gz"/> + <glob pattern="*.sna.gz"/> + <glob pattern="*.snapshot.gz"/> + <glob pattern="*.snp.gz"/> + <glob pattern="*.sp.gz"/> + <glob pattern="*.spc.gz"/> + <glob pattern="*.sta.gz"/> + <glob pattern="*.szx.gz"/> + <glob pattern="*.tap.gz"/> + <glob pattern="*.tzx.gz"/> + ##LIBSPECTRUM_HAVE_AUDIOFILE_BEGIN## + <glob pattern="*.wav.gz"/> + ##LIBSPECTRUM_HAVE_AUDIOFILE_END## + <glob pattern="*.z80.gz"/> + <glob pattern="*.zxs.gz"/> + </mime-type> + ##LIBSPECTRUM_HAVE_ZLIB_END## + ##LIBSPECTRUM_HAVE_BZ2_BEGIN## + <mime-type type="application/x-spectrum-compressed-bz2"> + <comment>ZX Spectrum compressed</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.csw.bz2"/> + <glob pattern="*.dck.bz2"/> + <glob pattern="*.hdf.bz2"/> + <glob pattern="*.mdr.bz2"/> + <glob pattern="*.mgtsnp.bz2"/> + <glob pattern="*.ltp.bz2"/> + <glob pattern="*.pzx.bz2"/> + <glob pattern="*.raw.bz2"/> + <glob pattern="*.rom.bz2"/> + <glob pattern="*.rzx.bz2"/> + <glob pattern="*.slt.bz2"/> + <glob pattern="*.sna.bz2"/> + <glob pattern="*.snapshot.bz2"/> + <glob pattern="*.snp.bz2"/> + <glob pattern="*.sp.bz2"/> + <glob pattern="*.spc.bz2"/> + <glob pattern="*.sta.bz2"/> + <glob pattern="*.szx.bz2"/> + <glob pattern="*.tap.bz2"/> + <glob pattern="*.tzx.bz2"/> + ##LIBSPECTRUM_HAVE_AUDIOFILE_BEGIN## + <glob pattern="*.wav.bz2"/> + ##LIBSPECTRUM_HAVE_AUDIOFILE_END## + <glob pattern="*.z80.bz2"/> + <glob pattern="*.zxs.bz2"/> + </mime-type> + ##LIBSPECTRUM_HAVE_BZ2_END## +</mime-info> Added: vendor/fuse-emulator/current/fuse/data/icons/128x128/application-x-spectrum.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/128x128/application-x-spectrum.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/128x128/fuse.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/128x128/fuse.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/16x16/application-x-spectrum.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/16x16/application-x-spectrum.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/16x16/fuse.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/16x16/fuse.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/256x256/application-x-spectrum.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/256x256/application-x-spectrum.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/256x256/fuse.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/256x256/fuse.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/32x32/application-x-spectrum.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/32x32/application-x-spectrum.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/32x32/fuse.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/32x32/fuse.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/48x48/application-x-spectrum.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/48x48/application-x-spectrum.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/48x48/fuse.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/48x48/fuse.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/64x64/application-x-spectrum.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/64x64/application-x-spectrum.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: vendor/fuse-emulator/current/fuse/data/icons/64x64/fuse.png =================================================================== (Binary files differ) Property changes on: vendor/fuse-emulator/current/fuse/data/icons/64x64/fuse.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: vendor/fuse-emulator/current/fuse/debugger/breakpoint.c =================================================================== --- vendor/fuse-emulator/current/fuse/debugger/breakpoint.c 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/debugger/breakpoint.c 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ /* breakpoint.c: a debugger breakpoint Copyright (c) 2002-2011 Philip Kendall - $Id: breakpoint.c 4415 2011-05-01 22:51:43Z pak21 $ + $Id: breakpoint.c 4641 2012-01-21 13:42:51Z 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 @@ -35,6 +35,7 @@ #include "fuse.h" #include "memory.h" #include "ui/ui.h" +#include "utils.h" /* The current breakpoints */ GSList *debugger_breakpoints; @@ -177,13 +178,8 @@ } value.event.detail = NULL; - value.event.type = strdup( type_string ); - value.event.detail = strdup( detail ); - if( !value.event.type || !value.event.detail ) { - free( value.event.type ); - free( value.event.detail ); - return 1; - } + value.event.type = utils_safe_strdup( type_string ); + value.event.detail = utils_safe_strdup( detail ); return breakpoint_add( type, value, ignore, life, condition ); } @@ -197,8 +193,8 @@ bp = malloc( sizeof( *bp ) ); if( !bp ) { - ui_error( UI_ERROR_ERROR, "Out of memory at %s:%d", __FILE__, __LINE__ ); - return 1; + ui_error( UI_ERROR_ERROR, "out of memory at %s:%d", __FILE__, __LINE__ ); + fuse_abort(); } bp->id = next_breakpoint_id++; bp->type = type; @@ -223,13 +219,9 @@ /* If this was a timed breakpoint, set an event to stop emulation at that point */ - if( type == DEBUGGER_BREAKPOINT_TYPE_TIME ) { - int error; + if( type == DEBUGGER_BREAKPOINT_TYPE_TIME ) + event_add( value.time.tstates, debugger_breakpoint_event ); - error = event_add( value.time.tstates, debugger_breakpoint_event ); - if( error ) return error; - } - return 0; } @@ -274,16 +266,16 @@ static memory_page* get_page( debugger_breakpoint_type type, libspectrum_word address ) { - memory_page *page; + memory_page *bank; switch( type ) { case DEBUGGER_BREAKPOINT_TYPE_EXECUTE: case DEBUGGER_BREAKPOINT_TYPE_READ: - page = memory_map_read; + bank = memory_map_read; break; case DEBUGGER_BREAKPOINT_TYPE_WRITE: - page = memory_map_write; + bank = memory_map_write; break; default: @@ -292,7 +284,7 @@ fuse_abort(); } - return page; + return &bank[ address >> MEMORY_PAGE_SIZE_LOGARITHM ]; } int @@ -566,8 +558,7 @@ if( !bp ) return 1; free( bp->commands ); - bp->commands = strdup( commands ); - if( !bp->commands ) return 1; + bp->commands = utils_safe_strdup( commands ); return 0; } Modified: vendor/fuse-emulator/current/fuse/debugger/command.c =================================================================== --- vendor/fuse-emulator/current/fuse/debugger/command.c 2012-11-23 12:25:10 UTC (rev 709) +++ vendor/fuse-emulator/current/fuse/debugger/command.c 2012-11-24 06:50:08 UTC (rev 710) @@ -1,7 +1,7 @@ /* command.c: Parse a debugger command Copyright (c) 2002-2008 Philip Kendall - $Id: command.c 4125 2010-05-06 22:18:50Z pak21 $ + $Id: command.c 4633 2012-01-19 23:26:10Z 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 @@ -33,6 +33,7 @@ #include "debugger_internals.h" #include "mempool.h" #include "ui/ui.h" +#include "utils.h" #include "z80/z80.h" #include "z80/z80_macros.h" @@ -46,18 +47,14 @@ in... [truncated message content] |
From: <fr...@us...> - 2012-11-23 12:25:11
|
Revision: 709 http://sourceforge.net/p/fuse-for-macosx/code/709 Author: fredm Date: 2012-11-23 12:25:10 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Undo overzealous modernisation. Modified Paths: -------------- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m Modified: trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m =================================================================== --- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2012-11-23 12:20:54 UTC (rev 708) +++ trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2012-11-23 12:25:10 UTC (rev 709) @@ -342,19 +342,19 @@ NSUInteger length = [zxScreen length]; if(length) { screen0 = [[[NSData alloc] initWithBytes:[zxScreen bytes] length:SCREEN_BITMAP_SIZE] autorelease]; - dictionary[@"Screen0"] = screen0; + [dictionary setObject:screen0 forKey:@"Screen0"]; if(mode == ScreenModeSinclair || mode == ScreenModeTimexHiCol) { assert((mode == ScreenModeSinclair && length == SCREEN_STANDARD_BYTES) || (mode == ScreenModeTimexHiCol && length == SCREEN_TIMEX_HI_COL_BYTES)); attributes = [[[NSData alloc] initWithBytes:[zxScreen bytes] + SCREEN_BITMAP_SIZE length:length - SCREEN_BITMAP_SIZE] autorelease]; - dictionary[@"Attributes"] = attributes; + [dictionary setObject:attributes forKey:@"Attributes"]; } else if( mode == ScreenModeTimexHiRes) { assert(length == SCREEN_TIMEX_HI_RES_BYTES); screen1 = [[[NSData alloc] initWithBytes:[zxScreen bytes] + SCREEN_BITMAP_SIZE length:SCREEN_BITMAP_SIZE] autorelease]; out255 = [[[NSData alloc] initWithBytes:[zxScreen bytes] + 2 * SCREEN_BITMAP_SIZE length:1] autorelease]; - dictionary[@"Screen1"] = screen1; - dictionary[@"Out255"] = out255; + [dictionary setObject:screen1 forKey:@"Screen1"]; + [dictionary setObject:out255 forKey:@"Out255"]; } else { // Wtf? assert(0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-23 12:20:55
|
Revision: 708 http://sourceforge.net/p/fuse-for-macosx/code/708 Author: fredm Date: 2012-11-23 12:20:54 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Undo overzealous modernisation. Modified Paths: -------------- trunk/FuseImporter/LibspectrumMetadataImporter.m Modified: trunk/FuseImporter/LibspectrumMetadataImporter.m =================================================================== --- trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-11-23 11:26:32 UTC (rev 707) +++ trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-11-23 12:20:54 UTC (rev 708) @@ -188,7 +188,8 @@ return NO; } - attributes[(NSString *)kMDItemAudioChannelCount] = @1; + [attributes setObject:[NSNumber numberWithInt:1] + forKey:(NSString *)kMDItemAudioChannelCount]; block = libspectrum_tape_iterator_init( &iterator, tape ); @@ -256,37 +257,44 @@ switch( libspectrum_tape_block_ids( block, i ) ) { case 0: - attributes[(NSString *)kMDItemTitle] = [NSString stringWithCString: + [attributes setObject:[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding]; + encoding:NSWindowsCP1252StringEncoding] + forKey:(NSString *)kMDItemTitle]; break; case 1: info = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) encoding:NSWindowsCP1252StringEncoding]; - attributes[(NSString *)kMDItemPublishers] = [info componentsSeparatedByString:@"\n"]; + [attributes setObject:[info componentsSeparatedByString:@"\n"] + forKey:(NSString *)kMDItemPublishers]; break; case 2: info = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) encoding:NSWindowsCP1252StringEncoding]; - attributes[(NSString *)kMDItemAuthors] = [info componentsSeparatedByString:@"\n"]; + [attributes setObject:[info componentsSeparatedByString:@"\n"] + forKey:(NSString *)kMDItemAuthors]; break; case 3: - attributes[(NSString *)kMDItemRecordingYear] = @([[NSString stringWithCString: + [attributes setObject:[NSNumber numberWithInt: + [[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] intValue]); + encoding:NSWindowsCP1252StringEncoding] intValue]] + forKey:(NSString *)kMDItemRecordingYear]; break; case 4: // We will want to translate from "English" etc. info = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) encoding:NSWindowsCP1252StringEncoding]; - attributes[(NSString *)kMDItemLanguages] = [info componentsSeparatedByString:@"\n"]; + [attributes setObject:[info componentsSeparatedByString:@"\n"] + forKey:(NSString *)kMDItemLanguages]; break; case 5: - attributes[@"net_sourceforge_projects_fuse_emulator_Category"] = [NSString stringWithCString: + [attributes setObject:[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding]; + encoding:NSWindowsCP1252StringEncoding] + forKey:@"net_sourceforge_projects_fuse_emulator_Category"]; break; case 6: { @@ -308,23 +316,27 @@ options:NSCaseInsensitiveSearch range:NSMakeRange(0, [priceString length])]; // Also should consider UKP from some TZX Vault info blocks? - attributes[@"net_sourceforge_projects_fuse_emulator_Price"] = priceString; + [attributes setObject:priceString + forKey:@"net_sourceforge_projects_fuse_emulator_Price"]; } break; case 7: - attributes[@"net_sourceforge_projects_fuse_emulator_Loader"] = [NSString stringWithCString: + [attributes setObject:[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding]; + encoding:NSWindowsCP1252StringEncoding] + forKey:@"net_sourceforge_projects_fuse_emulator_Loader"]; break; case 8: - attributes[@"net_sourceforge_projects_fuse_emulator_Origin"] = [NSString stringWithCString: + [attributes setObject:[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding]; + encoding:NSWindowsCP1252StringEncoding] + forKey:@"net_sourceforge_projects_fuse_emulator_Origin"]; break; case 255: - attributes[(NSString *)kMDItemComment] = [NSString stringWithCString: + [attributes setObject:[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding]; + encoding:NSWindowsCP1252StringEncoding] + forKey:(NSString *)kMDItemComment]; break; default: NSLog(@"(Unknown string): %s", (const char *)libspectrum_tape_block_texts( block, i )); @@ -350,10 +362,12 @@ } } if( [machines count] ) { - attributes[@"net_sourceforge_projects_fuse_emulator_Machines"] = machines; + [attributes setObject:machines + forKey:@"net_sourceforge_projects_fuse_emulator_Machines"]; } if( [peripherals count] ) { - attributes[@"net_sourceforge_projects_fuse_emulator_Peripherals"] = peripherals; + [attributes setObject:peripherals + forKey:@"net_sourceforge_projects_fuse_emulator_Peripherals"]; } break; @@ -379,7 +393,8 @@ float duration = tstates_total/3500000.0; - attributes[(NSString *)kMDItemDurationSeconds] = @(duration); + [attributes setObject:[NSNumber numberWithFloat:duration] + forKey:(NSString *)kMDItemDurationSeconds]; error = libspectrum_tape_free( tape ); if( error != LIBSPECTRUM_ERROR_NONE ) { @@ -399,10 +414,15 @@ if( !libspectrum_snap_issue2(snap) && (libspectrum_snap_machine(snap) == LIBSPECTRUM_MACHINE_48 || libspectrum_snap_machine(snap) == LIBSPECTRUM_MACHINE_16) ) { - attributes[@"net_sourceforge_projects_fuse_emulator_Machines"] = @[[NSString stringWithFormat:@"%s (Issue 1)", - libspectrum_machine_name(libspectrum_snap_machine(snap))]]; + [attributes setObject:[NSArray arrayWithObject: + [NSString stringWithFormat:@"%s (Issue 1)", + libspectrum_machine_name(libspectrum_snap_machine(snap))]] + forKey:@"net_sourceforge_projects_fuse_emulator_Machines"]; } else { - attributes[@"net_sourceforge_projects_fuse_emulator_Machines"] = @[@(libspectrum_machine_name(libspectrum_snap_machine(snap)))]; + [attributes setObject:[NSArray arrayWithObject: + [NSString stringWithUTF8String: + libspectrum_machine_name(libspectrum_snap_machine(snap))]] + forKey:@"net_sourceforge_projects_fuse_emulator_Machines"]; } if( libspectrum_snap_joystick_active_count( snap ) ) { @@ -441,7 +461,8 @@ } if( [peripherals count] ) { - attributes[@"net_sourceforge_projects_fuse_emulator_Peripherals"] = peripherals; + [attributes setObject:peripherals + forKey:@"net_sourceforge_projects_fuse_emulator_Peripherals"]; } return error ? NO : YES; @@ -537,12 +558,16 @@ return NO; } - attributes[(NSString *)kMDItemPixelWidth] = @(width); - attributes[(NSString *)kMDItemPixelHeight] = @192; - attributes[(NSString *)kMDItemOrientation] = @0; - attributes[(NSString *)kMDItemColorSpace] = @"RGB"; + [attributes setObject:[NSNumber numberWithInt:width] + forKey:(NSString *)kMDItemPixelWidth]; + [attributes setObject:[NSNumber numberWithInt:192] + forKey:(NSString *)kMDItemPixelHeight]; + [attributes setObject:[NSNumber numberWithInt:0] + forKey:(NSString *)kMDItemOrientation]; + [attributes setObject:@"RGB" forKey:(NSString *)kMDItemColorSpace]; - attributes[@"net_sourceforge_projects_fuse_emulator_GraphicsMode"] = mode; + [attributes setObject:mode + forKey:@"net_sourceforge_projects_fuse_emulator_GraphicsMode"]; return YES; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-23 11:26:35
|
Revision: 707 http://sourceforge.net/p/fuse-for-macosx/code/707 Author: fredm Date: 2012-11-23 11:26:32 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Start of hi-res icon (thanks, Paul van der Laan) Add POK flie dialog Modified Paths: -------------- trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj trunk/fuse/fusepb/Info-Fuse.plist trunk/fuse/fusepb/controllers/FuseController.h trunk/fuse/fusepb/controllers/FuseController.m trunk/fuse/fusepb/xibs/MainMenu.xib trunk/fuse/fusepb/xibs/PokeFinder.xib trunk/fuse/ui/cocoa/cocoaui.m Added Paths: ----------- trunk/fuse/fusepb/Fuse.iconset/ trunk/fuse/fusepb/Fuse.iconset/icon_128x128.png trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g trunk/fuse/fusepb/Fuse.iconset/icon_16x16.png trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g trunk/fuse/fusepb/Fuse.iconset/icon_256x256.png trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g trunk/fuse/fusepb/Fuse.iconset/icon_32x32.png trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g trunk/fuse/fusepb/Fuse.iconset/icon_512x512.png trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g trunk/fuse/fusepb/controllers/PokeMemoryController.h trunk/fuse/fusepb/controllers/PokeMemoryController.m trunk/fuse/fusepb/xibs/PokeMemory.xib Removed Paths: ------------- trunk/fuse/fusepb/resources/Fuse.icns Added: trunk/fuse/fusepb/Fuse.iconset/icon_128x128.png =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/icon_128x128.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/icon_16x16.png =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/icon_16x16.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/icon_256x256.png =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/icon_256x256.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/icon_32x32.png =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/icon_32x32.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/icon_512x512.png =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/icon_512x512.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g =================================================================== (Binary files differ) Property changes on: trunk/fuse/fusepb/Fuse.iconset/ico...@2x...g ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj =================================================================== --- trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj 2012-11-23 11:18:15 UTC (rev 706) +++ trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj 2012-11-23 11:26:32 UTC (rev 707) @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + B6013812164692F5005FD3AE /* Fuse.iconset in Resources */ = {isa = PBXBuildFile; fileRef = B6013811164692F5005FD3AE /* Fuse.iconset */; }; B604B21B0DC182BE00981CC7 /* FuseGenerator.qlgenerator in CopyFiles */ = {isa = PBXBuildFile; fileRef = B61EEB950D1A917D006FEA80 /* FuseGenerator.qlgenerator */; }; B61159BF0EEE99D50029FEA3 /* Graphics_Filter.png in Resources */ = {isa = PBXBuildFile; fileRef = B61159BE0EEE99D50029FEA3 /* Graphics_Filter.png */; }; B61159C10EEE99E20029FEA3 /* Machine.png in Resources */ = {isa = PBXBuildFile; fileRef = B61159C00EEE99E20029FEA3 /* Machine.png */; }; @@ -16,6 +17,8 @@ B61159C90EEE9A140029FEA3 /* Select_ROMs.png in Resources */ = {isa = PBXBuildFile; fileRef = B61159C80EEE9A140029FEA3 /* Select_ROMs.png */; }; B61159CB0EEE9A1E0029FEA3 /* Sound.png in Resources */ = {isa = PBXBuildFile; fileRef = B61159CA0EEE9A1E0029FEA3 /* Sound.png */; }; B615BFE80B4261E50082D535 /* HIDJoysticks.m in Sources */ = {isa = PBXBuildFile; fileRef = B615BFE60B4261E50082D535 /* HIDJoysticks.m */; }; + B61700F4163EAF8D00142336 /* PokeMemory.xib in Resources */ = {isa = PBXBuildFile; fileRef = B61700F3163EAF8D00142336 /* PokeMemory.xib */; }; + B61700F7163EAFC600142336 /* PokeMemoryController.m in Sources */ = {isa = PBXBuildFile; fileRef = B61700F6163EAFC600142336 /* PokeMemoryController.m */; }; B61F459309121DF100C8096C /* Fuse Help in CopyFiles */ = {isa = PBXBuildFile; fileRef = B6F905ED05CDA24300C2F10D /* Fuse Help */; }; B61F459409121DF100C8096C /* disk_plus3.szx in CopyFiles */ = {isa = PBXBuildFile; fileRef = B650C3F2076596C700DE7E81 /* disk_plus3.szx */; }; B61F459509121DF100C8096C /* tape_16.szx in CopyFiles */ = {isa = PBXBuildFile; fileRef = B650C3F4076596FD00DE7E81 /* tape_16.szx */; }; @@ -50,7 +53,6 @@ B61F462509121DF100C8096C /* tc2068-1.rom in Resources */ = {isa = PBXBuildFile; fileRef = B6FEA44C0444C2CC0013916D /* tc2068-1.rom */; }; B61F462909121DF100C8096C /* 48k.png in Resources */ = {isa = PBXBuildFile; fileRef = F56B6A6203A628A901CA65B5 /* 48k.png */; }; B61F462A09121DF100C8096C /* ts2068.png in Resources */ = {isa = PBXBuildFile; fileRef = B6C3479F044B091100E1BBA7 /* ts2068.png */; }; - B61F462B09121DF100C8096C /* Fuse.icns in Resources */ = {isa = PBXBuildFile; fileRef = F5F4333103903ED801E7A043 /* Fuse.icns */; }; B61F462C09121DF100C8096C /* dsk.icns in Resources */ = {isa = PBXBuildFile; fileRef = B643BB8D0403A0FD00A864FD /* dsk.icns */; }; B61F462D09121DF100C8096C /* scr.icns in Resources */ = {isa = PBXBuildFile; fileRef = B643BB900403A11B00A864FD /* scr.icns */; }; B61F462E09121DF100C8096C /* sna.icns in Resources */ = {isa = PBXBuildFile; fileRef = B643BB910403A11B00A864FD /* sna.icns */; }; @@ -378,6 +380,7 @@ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; }; 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; }; 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; }; + B6013811164692F5005FD3AE /* Fuse.iconset */ = {isa = PBXFileReference; lastKnownFileType = folder.iconset; name = Fuse.iconset; path = ../Fuse.iconset; sourceTree = "<group>"; }; B6018479065A586900B0BE59 /* zxatasp.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = zxatasp.c; sourceTree = "<group>"; }; B601847A065A586900B0BE59 /* zxatasp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = zxatasp.h; sourceTree = "<group>"; }; B601847B065A586900B0BE59 /* zxcf.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = zxcf.c; sourceTree = "<group>"; }; @@ -396,6 +399,9 @@ B61159CA0EEE9A1E0029FEA3 /* Sound.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Sound.png; sourceTree = "<group>"; }; B615BFE50B4261E50082D535 /* HIDJoysticks.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = HIDJoysticks.h; path = content_arrays/HIDJoysticks.h; sourceTree = "<group>"; }; B615BFE60B4261E50082D535 /* HIDJoysticks.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = HIDJoysticks.m; path = content_arrays/HIDJoysticks.m; sourceTree = "<group>"; }; + B61700F3163EAF8D00142336 /* PokeMemory.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PokeMemory.xib; sourceTree = "<group>"; }; + B61700F5163EAFC600142336 /* PokeMemoryController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PokeMemoryController.h; path = controllers/PokeMemoryController.h; sourceTree = "<group>"; }; + B61700F6163EAFC600142336 /* PokeMemoryController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PokeMemoryController.m; path = controllers/PokeMemoryController.m; sourceTree = "<group>"; }; B61EEB950D1A917D006FEA80 /* FuseGenerator.qlgenerator */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.bundle"; name = FuseGenerator.qlgenerator; path = ../../FuseGenerator/build/Release/FuseGenerator.qlgenerator; sourceTree = SOURCE_ROOT; }; B61F46A909121DF100C8096C /* Info-Fuse.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Fuse.plist"; sourceTree = "<group>"; }; B61F46AA09121DF200C8096C /* Fuse.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Fuse.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -754,7 +760,6 @@ F59B558F039FD8F901A804BA /* TapeBrowserController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TapeBrowserController.h; path = controllers/TapeBrowserController.h; sourceTree = SOURCE_ROOT; }; F59B5590039FD8F901A804BA /* TapeBrowserController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TapeBrowserController.m; path = controllers/TapeBrowserController.m; sourceTree = SOURCE_ROOT; }; F5F291060396932B01730B00 /* Credits.html */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.html; path = Credits.html; sourceTree = "<group>"; }; - F5F4333103903ED801E7A043 /* Fuse.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Fuse.icns; sourceTree = "<group>"; }; F5F876370399540D011FA3A4 /* FuseController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FuseController.h; path = controllers/FuseController.h; sourceTree = SOURCE_ROOT; }; F5F876380399540D011FA3A4 /* FuseController.m */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 2; lastKnownFileType = sourcecode.c.objc; name = FuseController.m; path = controllers/FuseController.m; sourceTree = SOURCE_ROOT; tabWidth = 2; }; /* End PBXFileReference section */ @@ -950,6 +955,8 @@ B6D2989205B061CB00C2AA14 /* MemoryBrowserController.m */, B62F3BCE059F5BF300A7009A /* PokeFinderController.h */, B62F3BCF059F5BF300A7009A /* PokeFinderController.m */, + B61700F5163EAFC600142336 /* PokeMemoryController.h */, + B61700F6163EAFC600142336 /* PokeMemoryController.m */, B650F73E07E7CD3F00E4F3AF /* PreferencesController.h */, B650F73F07E7CD3F00E4F3AF /* PreferencesController.m */, B63F9949077182B4004D6DFA /* RollbackController.h */, @@ -971,7 +978,7 @@ B639B7670A6BAFCF00927E24 /* csw.icns */, B6F0480E0952B597006D8005 /* dck.icns */, B643BB8D0403A0FD00A864FD /* dsk.icns */, - F5F4333103903ED801E7A043 /* Fuse.icns */, + B6013811164692F5005FD3AE /* Fuse.iconset */, B61159BE0EEE99D50029FEA3 /* Graphics_Filter.png */, B650986A09366C8F003AF1BF /* hdf.icns */, B61159C00EEE99E20029FEA3 /* Machine.png */, @@ -1041,6 +1048,7 @@ B665EE0F1052A3BD00FCFED8 /* LoadBinary.xib */, B665EE121052A3DC00FCFED8 /* MemoryBrowser.xib */, B665EE151052A40000FCFED8 /* PokeFinder.xib */, + B61700F3163EAF8D00142336 /* PokeMemory.xib */, B665EE181052A41F00FCFED8 /* Preferences.xib */, B665EE1B1052A43900FCFED8 /* Rollback.xib */, B665EE1E1052A45200FCFED8 /* SaveBinary.xib */, @@ -1541,7 +1549,6 @@ B61F462509121DF100C8096C /* tc2068-1.rom in Resources */, B61F462909121DF100C8096C /* 48k.png in Resources */, B61F462A09121DF100C8096C /* ts2068.png in Resources */, - B61F462B09121DF100C8096C /* Fuse.icns in Resources */, B61F463309121DF100C8096C /* blank.icns in Resources */, B639B7680A6BAFCF00927E24 /* csw.icns in Resources */, B6F0480F0952B597006D8005 /* dck.icns in Resources */, @@ -1589,6 +1596,8 @@ B665EE251052A51B00FCFED8 /* TapeBrowser.xib in Resources */, B665EE281052A53C00FCFED8 /* SavePanelAccessoryView.xib in Resources */, B629532E114FB265007808E0 /* libspectrum.h.in in Resources */, + B61700F4163EAF8D00142336 /* PokeMemory.xib in Resources */, + B6013812164692F5005FD3AE /* Fuse.iconset in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1779,6 +1788,7 @@ B6E1F1B114F6555400600EB0 /* disciple.c in Sources */, B6E1F1B414F6560500600EB0 /* tuntap.c in Sources */, B6E1F24414F7A14200600EB0 /* enc28j60.c in Sources */, + B61700F7163EAFC600142336 /* PokeMemoryController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; Modified: trunk/fuse/fusepb/Info-Fuse.plist =================================================================== --- trunk/fuse/fusepb/Info-Fuse.plist 2012-11-23 11:18:15 UTC (rev 706) +++ trunk/fuse/fusepb/Info-Fuse.plist 2012-11-23 11:26:32 UTC (rev 707) @@ -511,6 +511,23 @@ <string>net.sourceforge.projects.fuse-emulator.opu</string> </array> </dict> + <dict> + <key>CFBundleTypeExtensions</key> + <array> + <string>pok</string> + <string>POK</string> + </array> + <key>CFBundleTypeIconFile</key> + <string>blank</string> + <key>CFBundleTypeName</key> + <string>ZX Spectrum Poke File</string> + <key>CFBundleTypeRole</key> + <string>Viewer</string> + <key>LSItemContentTypes</key> + <array> + <string>net.sourceforge.projects.fuse-emulator.pok</string> + </array> + </dict> </array> <key>CFBundleExecutable</key> <string>Fuse</string> Modified: trunk/fuse/fusepb/controllers/FuseController.h =================================================================== --- trunk/fuse/fusepb/controllers/FuseController.h 2012-11-23 11:18:15 UTC (rev 706) +++ trunk/fuse/fusepb/controllers/FuseController.h 2012-11-23 11:26:32 UTC (rev 707) @@ -33,6 +33,7 @@ @class MemoryBrowserController; @class PreferencesController; @class PokeFinderController; +@class PokeMemoryController; @class RollbackController; @class SaveBinaryController; @class TapeBrowserController; @@ -67,6 +68,7 @@ MemoryBrowserController *memoryBrowserController; PreferencesController *preferencesController; PokeFinderController *pokeFinderController; + PokeMemoryController *pokeMemoryController; RollbackController *rollbackController; SaveBinaryController *saveBinaryController; TapeBrowserController *tapeBrowserController; @@ -143,6 +145,7 @@ |
From: <fr...@us...> - 2012-11-23 11:18:19
|
Revision: 706 http://sourceforge.net/p/fuse-for-macosx/code/706 Author: fredm Date: 2012-11-23 11:18:15 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Don't clear window contents when deallocating, they will have been cleaned when the window was closing. Modified Paths: -------------- trunk/fuse/fusepb/controllers/MemoryBrowserController.m Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-22 10:30:52 UTC (rev 705) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-23 11:18:15 UTC (rev 706) @@ -72,14 +72,6 @@ NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; [nc removeObserver:notificationObserver]; - [tableContents removeAllObjects]; - - [tableContents release]; - - tableContents = nil; - - [memoryBrowser reloadData]; - [super dealloc]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-22 10:30:55
|
Revision: 705 http://sourceforge.net/p/fuse-for-macosx/code/705 Author: fredm Date: 2012-11-22 10:30:52 +0000 (Thu, 22 Nov 2012) Log Message: ----------- Remove window close observer when window closes to be tidy. Modified Paths: -------------- trunk/fuse/fusepb/controllers/MemoryBrowserController.m Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-21 11:42:04 UTC (rev 704) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-22 10:30:52 UTC (rev 705) @@ -32,6 +32,8 @@ @implementation MemoryBrowserController +id notificationObserver; + - (id)init { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; @@ -42,28 +44,34 @@ [self setWindowFrameAutosaveName:@"MemoryBrowserWindow"]; - [nc addObserverForName:@"NSWindowWillCloseNotification" - object:[self window] - queue:mainQueue - usingBlock:^(NSNotification *note) { - [NSApp stopModal]; + notificationObserver = + [nc addObserverForName:@"NSWindowWillCloseNotification" + object:[self window] + queue:mainQueue + usingBlock:^(NSNotification *note) { + [nc removeObserver:notificationObserver]; + + [NSApp stopModal]; - [tableContents removeAllObjects]; + [tableContents removeAllObjects]; - [tableContents release]; + [tableContents release]; - tableContents = nil; + tableContents = nil; - [memoryBrowser reloadData]; + [memoryBrowser reloadData]; - [[DisplayOpenGLView instance] unpause]; - }]; + [[DisplayOpenGLView instance] unpause]; + }]; return self; } - (void)dealloc { + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + [nc removeObserver:notificationObserver]; + [tableContents removeAllObjects]; [tableContents release]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-21 11:42:06
|
Revision: 704 http://sourceforge.net/p/fuse-for-macosx/code/704 Author: fredm Date: 2012-11-21 11:42:04 +0000 (Wed, 21 Nov 2012) Log Message: ----------- Fix problem leaving modal state when closing Memory Browser window. Modified Paths: -------------- trunk/fuse/fusepb/controllers/MemoryBrowserController.h trunk/fuse/fusepb/controllers/MemoryBrowserController.m Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.h =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.h 2012-11-02 12:39:26 UTC (rev 703) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.h 2012-11-21 11:42:04 UTC (rev 704) @@ -31,7 +31,6 @@ IBOutlet NSTableView *memoryBrowser; NSMutableArray *tableContents; } -- (IBAction)apply:(id)sender; - (void)showWindow:(id)sender; - (int)numberOfRowsInTableView:(NSTableView *)table; - (id)tableView:(NSTableView *)table objectValueForTableColumn:(NSTableColumn *)col row:(int)row; Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-02 12:39:26 UTC (rev 703) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-21 11:42:04 UTC (rev 704) @@ -34,11 +34,31 @@ - (id)init { + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + NSOperationQueue *mainQueue = [NSOperationQueue mainQueue]; + tableContents = nil; self = [super initWithWindowNibName:@"MemoryBrowser"]; [self setWindowFrameAutosaveName:@"MemoryBrowserWindow"]; + [nc addObserverForName:@"NSWindowWillCloseNotification" + object:[self window] + queue:mainQueue + usingBlock:^(NSNotification *note) { + [NSApp stopModal]; + + [tableContents removeAllObjects]; + + [tableContents release]; + + tableContents = nil; + + [memoryBrowser reloadData]; + + [[DisplayOpenGLView instance] unpause]; + }]; + return self; } @@ -55,22 +75,6 @@ [super dealloc]; } -- (IBAction)apply:(id)sender -{ - [NSApp stopModal]; - [[self window] close]; - - [tableContents removeAllObjects]; - - [tableContents release]; - - tableContents = nil; - - [memoryBrowser reloadData]; - - [[DisplayOpenGLView instance] unpause]; -} - - (void)showWindow:(id)sender { size_t i, j; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-02 12:39:33
|
Revision: 703 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=703&view=rev Author: fredm Date: 2012-11-02 12:39:26 +0000 (Fri, 02 Nov 2012) Log Message: ----------- Hmm, various modernising refactorings broke the build, roll them back. Modified Paths: -------------- trunk/fuse/fusepb/controllers/DebuggerController.m trunk/fuse/fusepb/controllers/FuseController.m trunk/fuse/fusepb/controllers/MemoryBrowserController.m trunk/fuse/fusepb/controllers/PokeFinderController.m trunk/fuse/fusepb/controllers/PreferencesController.m trunk/fuse/fusepb/controllers/RollbackController.m trunk/fuse/fusepb/models/Emulator.m trunk/fuse/fusepb/views/DisplayOpenGLView.m trunk/fuse/settings.pl Modified: trunk/fuse/fusepb/controllers/DebuggerController.m =================================================================== --- trunk/fuse/fusepb/controllers/DebuggerController.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/controllers/DebuggerController.m 2012-11-02 12:39:26 UTC (rev 703) @@ -130,7 +130,7 @@ if( row < 0 || row >= [eventsContents count] ) return; - record = eventsContents[row]; + record = [eventsContents objectAtIndex:row]; value = [record valueForKey:@"time"]; error = debugger_breakpoint_add_time( DEBUGGER_BREAKPOINT_TYPE_TIME, @@ -525,31 +525,31 @@ switch( [table tag] ) { case 0: if(row < 0 || row > [dissasemblyContents count]) return nil; - record = dissasemblyContents[row]; + record = [dissasemblyContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; break; case 1: if(row < 0 || row > [stackContents count]) return nil; - record = stackContents[row]; + record = [stackContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; break; case 2: if(row < 0 || row > [breakpointsContents count]) return nil; - record = breakpointsContents[row]; + record = [breakpointsContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; break; case 3: if(row < 0 || row > [eventsContents count]) return nil; - record = eventsContents[row]; + record = [eventsContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; break; case 4: if(row < 0 || row > [memoryMapContents count]) return nil; - record = memoryMapContents[row]; + record = [memoryMapContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; break; Modified: trunk/fuse/fusepb/controllers/FuseController.m =================================================================== --- trunk/fuse/fusepb/controllers/FuseController.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/controllers/FuseController.m 2012-11-02 12:39:26 UTC (rev 703) @@ -1797,7 +1797,8 @@ - (void)openRecent:(id)fileMenu { - NSString *file = settings_current.cocoa->recent_snapshots[[recentSnaps indexOfItem:fileMenu]]; + NSString *file = [settings_current.cocoa->recent_snapshots + objectAtIndex:[recentSnaps indexOfItem:fileMenu]]; char *filename = strdup([file UTF8String]); if( filename == NULL ) return; @@ -1828,7 +1829,8 @@ } NSMutableString *commonPrefix = [NSMutableString - stringWithString:settings_current.cocoa->recent_snapshots[[[matches lastObject][1] intValue]]]; + stringWithString:[settings_current.cocoa->recent_snapshots + objectAtIndex:[[[matches lastObject] objectAtIndex:1] intValue]]]; /* Iterate through matches to find shortest common string as found by commonPrefixWithString */ @@ -1837,12 +1839,14 @@ /* Compare all strings with commonPrefixWithString and find the shortest prefix */ id object2; - NSString *file = settings_current.cocoa->recent_snapshots[[object[1] intValue]]; + NSString *file = [settings_current.cocoa->recent_snapshots + objectAtIndex:[[object objectAtIndex:1] intValue]]; NSEnumerator *enumerator2 = [matches objectEnumerator]; while( (object2 = [enumerator2 nextObject]) ) { if([object isEqual:object2]) continue; - NSString *file2 = settings_current.cocoa->recent_snapshots[[object2[0] intValue]]; + NSString *file2 = [settings_current.cocoa->recent_snapshots + objectAtIndex:[[object2 objectAtIndex:0] intValue]]; NSString *prefix = [file commonPrefixWithString:file2 options:NSLiteralSearch]; if( [prefix length] < [commonPrefix length] ) { @@ -1856,9 +1860,9 @@ the full path with commonPrefix removed, and with snap name - .../ prepended */ for( object in matches ) { - unsigned index = [object[0] intValue]; - NSString *file = settings_current.cocoa->recent_snapshots[[object[0] intValue]]; - + unsigned index = [[object objectAtIndex:0] intValue]; + NSString *file = [settings_current.cocoa->recent_snapshots + objectAtIndex:[[object objectAtIndex:0] intValue]]; NSMutableString *label = [NSMutableString stringWithString:file]; [label replaceCharactersInRange:range withString:@" - .../"]; @@ -2470,7 +2474,7 @@ result = [oPanel runModal]; if (result == NSOKButton) { NSArray *filesToOpen = [oPanel URLs]; - NSString *aFile = [filesToOpen[0] path]; + NSString *aFile = [[filesToOpen objectAtIndex:0] path]; [aFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; filename = strdup ( buffer ); } @@ -2488,7 +2492,7 @@ sPanel = [NSSavePanel savePanel]; [sPanel setTitle:title]; - [sPanel setAllowedFileTypes:@[fileTypes[0]]]; + [sPanel setAllowedFileTypes:[NSArray arrayWithObject:[fileTypes objectAtIndex:0]]]; [sPanel setCanSelectHiddenExtension:YES]; if( [fileTypes count] > 1 ) { Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-02 12:39:26 UTC (rev 703) @@ -121,7 +121,7 @@ id record, value; NSParameterAssert(row >= 0 && row < [tableContents count]); - record = tableContents[row]; + record = [tableContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; } Modified: trunk/fuse/fusepb/controllers/PokeFinderController.m =================================================================== --- trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-11-02 12:39:26 UTC (rev 703) @@ -80,7 +80,7 @@ if( row < 0 || row >= [tableContents count] ) return; - record = tableContents[row]; + record = [tableContents objectAtIndex:row]; value = [record valueForKey:@"page"]; page = [value unsignedLongValue]; value = [record valueForKey:@"offset_number"]; @@ -169,7 +169,7 @@ id record, value; if( row < 0 || row >= [tableContents count] ) return nil; - record = tableContents[row]; + record = [tableContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; } Modified: trunk/fuse/fusepb/controllers/PreferencesController.m =================================================================== --- trunk/fuse/fusepb/controllers/PreferencesController.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/controllers/PreferencesController.m 2012-11-02 12:39:26 UTC (rev 703) @@ -117,7 +117,7 @@ - (void)awakeFromNib { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSToolbarItem *item = [toolbar items][[defaults integerForKey:@"preferencestab"]]; + NSToolbarItem *item = [[toolbar items] objectAtIndex:[defaults integerForKey:@"preferencestab"]]; [toolbar setSelectedItemIdentifier:[item itemIdentifier]]; [self selectPrefPanel:item]; } @@ -326,7 +326,7 @@ newMachineRoms = settings_set_rom_array( &settings_current ); for( i=0; i<[newMachineRoms count]; i++ ) { - [self replaceObjectInMachineRomsAtIndex:i withObject:newMachineRoms[i]]; + [self replaceObjectInMachineRomsAtIndex:i withObject:[newMachineRoms objectAtIndex:i]]; } } @@ -540,7 +540,7 @@ - (id)objectInMachineRomsAtIndex:(unsigned int)index { - return machineRoms[index]; + return [machineRoms objectAtIndex:index]; } - (void)insertObject:(id)anObject inMachineRomsAtIndex:(unsigned int)index @@ -555,7 +555,7 @@ - (void)replaceObjectInMachineRomsAtIndex:(unsigned int)index withObject:(id)anObject { - machineRoms[index] = anObject; + [machineRoms replaceObjectAtIndex:index withObject:anObject]; } @end Modified: trunk/fuse/fusepb/controllers/RollbackController.m =================================================================== --- trunk/fuse/fusepb/controllers/RollbackController.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/controllers/RollbackController.m 2012-11-02 12:39:26 UTC (rev 703) @@ -121,7 +121,7 @@ id record, value; NSParameterAssert(row >= 0 && row < [tableContents count]); - record = tableContents[row]; + record = [tableContents objectAtIndex:row]; value = [record valueForKey:[col identifier]]; return value; } Modified: trunk/fuse/fusepb/models/Emulator.m =================================================================== --- trunk/fuse/fusepb/models/Emulator.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/models/Emulator.m 2012-11-02 12:39:26 UTC (rev 703) @@ -76,8 +76,8 @@ pool = [[NSAutoreleasePool alloc] init]; serverConnection = [NSConnection - connectionWithReceivePort:portArray[0] - sendPort:portArray[1]]; + connectionWithReceivePort:[portArray objectAtIndex:0] + sendPort:[portArray objectAtIndex:1]]; [serverConnection setRootObject:self]; proxy_view = (id)[serverConnection rootProxy]; [proxy_view setServer:self]; Modified: trunk/fuse/fusepb/views/DisplayOpenGLView.m =================================================================== --- trunk/fuse/fusepb/views/DisplayOpenGLView.m 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/fusepb/views/DisplayOpenGLView.m 2012-11-02 12:39:26 UTC (rev 703) @@ -1412,8 +1412,8 @@ -(void) windowChangedScreen:(NSNotification*)inNotification { NSWindow *window = [self window]; - CGDirectDisplayID displayID = (CGDirectDisplayID)[[[window screen] - deviceDescription][@"NSScreenNumber"] intValue]; + CGDirectDisplayID displayID = (CGDirectDisplayID)[[[[window screen] + deviceDescription] objectForKey:@"NSScreenNumber"] intValue]; if((displayID != 0) && (mainViewDisplayID != displayID)) { CVDisplayLinkSetCurrentCGDisplay(displayLink, displayID); Modified: trunk/fuse/settings.pl =================================================================== --- trunk/fuse/settings.pl 2012-11-02 12:03:41 UTC (rev 702) +++ trunk/fuse/settings.pl 2012-11-02 12:39:26 UTC (rev 703) @@ -161,25 +161,25 @@ if( $type eq 'boolean' ) { print << "CODE"; value = settings->$name ? YES : NO; - defaultValues[@"$options{$name}->{configfile}"] = @(value); + [defaultValues setObject:@(value) forKey:@"$options{$name}->{configfile}"]; CODE } elsif( $type eq 'string' ) { print << "CODE"; if( settings->$name ) - defaultValues[@"$options{$name}->{configfile}"] = @(settings->$name); + [defaultValues setObject:@(settings->$name) forKey:@"$options{$name}->{configfile}"]; else - defaultValues[@"$options{$name}->{configfile}"] = @""; + [defaultValues setObject:@"" forKey:@"$options{$name}->{configfile}"]; CODE } elsif( $type eq 'numeric' ) { print << "CODE"; - defaultValues[@"$options{$name}->{configfile}"] = @(settings->$name); + [defaultValues setObject:@(settings->$name) forKey:@"$options{$name}->{configfile}"]; CODE } elsif( $type eq 'nsarray' ) { print << "CODE"; if( settings->cocoa && settings->cocoa->$name ) - defaultValues[@"$options{$name}->{configfile}"] = settings->cocoa->$name; + [defaultValues setObject:settings->cocoa->$name forKey:@"$options{$name}->{configfile}"]; else - defaultValues[@"$options{$name}->{configfile}"] = @[]; + [defaultValues setObject:[NSArray array] forKey:@"$options{$name}->{configfile}"]; CODE } elsif( $type eq 'nsdictionary' ) { # Do nothing This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-02 12:03:53
|
Revision: 702 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=702&view=rev Author: fredm Date: 2012-11-02 12:03:41 +0000 (Fri, 02 Nov 2012) Log Message: ----------- Migrate to modern Objective-C syntax. Modified Paths: -------------- trunk/fuse/fusepb/content_arrays/CAMachines.m trunk/fuse/fusepb/content_arrays/HIDJoysticks.m trunk/fuse/fusepb/content_arrays/Joysticks.m trunk/fuse/fusepb/controllers/DebuggerController.m trunk/fuse/fusepb/controllers/FuseController.m trunk/fuse/fusepb/controllers/JoystickConfigurationController.m trunk/fuse/fusepb/controllers/LoadBinaryController.m trunk/fuse/fusepb/controllers/MemoryBrowserController.m trunk/fuse/fusepb/controllers/PokeFinderController.m trunk/fuse/fusepb/controllers/PreferencesController.m trunk/fuse/fusepb/controllers/RollbackController.m trunk/fuse/fusepb/controllers/TapeBrowserController.m trunk/fuse/fusepb/models/Emulator.m trunk/fuse/fusepb/transformers/MachineNameToIdTransformer.m trunk/fuse/fusepb/transformers/MachineScalerIsEnabled.m trunk/fuse/fusepb/transformers/ScalerNameToIdTransformer.m trunk/fuse/fusepb/transformers/VolumeSliderToPrefTransformer.m trunk/fuse/fusepb/views/DisplayOpenGLView.m trunk/fuse/settings.pl trunk/fuse/ui/cocoa/cocoaerror.m trunk/fuse/ui/cocoa/cocoascreenshot.m trunk/fuse/ui/cocoa/cocoaui.m Modified: trunk/fuse/fusepb/content_arrays/CAMachines.m =================================================================== --- trunk/fuse/fusepb/content_arrays/CAMachines.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/content_arrays/CAMachines.m 2012-11-02 12:03:41 UTC (rev 702) @@ -43,8 +43,7 @@ for( i=0; i<machine_count; i++ ) { [machines addObject: - [Machine machineWithName:[NSString stringWithUTF8String: - libspectrum_machine_name( machine_types[i]->machine )] + [Machine machineWithName:@(libspectrum_machine_name( machine_types[i]->machine )) andType:machine_types[i]->machine] ]; } Modified: trunk/fuse/fusepb/content_arrays/HIDJoysticks.m =================================================================== --- trunk/fuse/fusepb/content_arrays/HIDJoysticks.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/content_arrays/HIDJoysticks.m 2012-11-02 12:03:41 UTC (rev 702) @@ -46,8 +46,7 @@ if( joysticks_supported > 0 ){ for( i=0; i<joysticks_supported; i++ ) { [joysticks addObject: - [HIDJoystick joystickWithName:[NSString stringWithUTF8String: - SDL_SYS_JoystickName(i)] + [HIDJoystick joystickWithName:@(SDL_SYS_JoystickName(i)) andType:i+1] ]; } Modified: trunk/fuse/fusepb/content_arrays/Joysticks.m =================================================================== --- trunk/fuse/fusepb/content_arrays/Joysticks.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/content_arrays/Joysticks.m 2012-11-02 12:03:41 UTC (rev 702) @@ -43,9 +43,7 @@ for( i=0; i<JOYSTICK_TYPE_COUNT; i++ ) { [joysticks addObject: - [Joystick joystickWithName:[NSString stringWithUTF8String: - joystick_name[i]] - andType:i] + [Joystick joystickWithName:@(joystick_name[i]) andType:i] ]; } } Modified: trunk/fuse/fusepb/controllers/DebuggerController.m =================================================================== --- trunk/fuse/fusepb/controllers/DebuggerController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/DebuggerController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -130,7 +130,7 @@ if( row < 0 || row >= [eventsContents count] ) return; - record = [eventsContents objectAtIndex:row]; + record = eventsContents[row]; value = [record valueForKey:@"time"]; error = debugger_breakpoint_add_time( DEBUGGER_BREAKPOINT_TYPE_TIME, @@ -197,11 +197,11 @@ libspectrum_word address; if( debugger_output_base == 10 ) { - format_16_bit = [NSString stringWithUTF8String:"%5d"]; - format_8_bit = [NSString stringWithUTF8String:"%3d"]; + format_16_bit = @"%5d"; + format_8_bit = @"%3d"; } else { - format_16_bit = [NSString stringWithUTF8String:"0x%04X"]; - format_8_bit = [NSString stringWithUTF8String:"0x%02X"]; + format_16_bit = @"0x%04X"; + format_8_bit = @"0x%02X"; } [PCText setStringValue:[NSString stringWithFormat:format_16_bit, PC ]]; @@ -226,7 +226,7 @@ for( i = 0; i < 8; i++ ) buffer[i] = ( F & ( 0x80 >> i ) ) ? '1' : '0'; buffer[8] = '\0'; - [flags setStringValue:[NSString stringWithUTF8String:buffer]]; + [flags setStringValue:@(buffer)]; capabilities = libspectrum_machine_capabilities( machine_current->machine ); @@ -336,20 +336,18 @@ if( bp->condition ) { char condition_cstring[80]; debugger_expression_deparse( condition_cstring, 80, bp->condition ); - condition = [NSString stringWithUTF8String:condition_cstring]; + condition = @(condition_cstring); } else { condition = @""; } [breakpointsContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - id, @"id", - type, @"type", - value, @"value", - ignore, @"ignore", - life, @"life", - condition, @"condition", - nil] + @{@"id": id, + @"type": type, + @"value": value, + @"ignore": ignore, + @"life": life, + @"condition": condition} ]; } @@ -371,14 +369,12 @@ disassembly_address = [NSString stringWithFormat:format_16_bit, address ]; debugger_disassemble( buffer, 40, &length, address ); - instruction = [NSString stringWithUTF8String:buffer]; + instruction = @(buffer); address += length; [dissasemblyContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - disassembly_address, @"address", - instruction, @"instruction", - nil] + @{@"address": disassembly_address, + @"instruction": instruction} ]; } @@ -403,10 +399,8 @@ stack_value = [NSString stringWithFormat:format_16_bit, contents ]; [stackContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - stack_address, @"address", - stack_value, @"value", - nil] + @{@"address": stack_address, + @"value": stack_value} ]; } @@ -440,18 +434,16 @@ NSString *memory_map_address = [NSString stringWithFormat:format_16_bit, i*MEMORY_PAGE_SIZE ]; NSString *memory_map_type = [NSString stringWithFormat:@"%s", memory_source_description( memory_map_read[i].source )]; - NSNumber *memory_map_page = [ NSNumber numberWithInt:memory_map_read[i].page_num ]; + NSNumber *memory_map_page = @(memory_map_read[i].page_num); NSString *memory_map_writeable = [NSString stringWithFormat:@"%s", memory_map_read[i].writable ? "Y" : "N" ]; NSString *memory_map_contended = [NSString stringWithFormat:@"%s", memory_map_read[i].contended ? "Y" : "N" ]; [memoryMapContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - memory_map_address, @"address", - memory_map_type, @"type", - memory_map_page, @"page", - memory_map_writeable, @"writeable", - memory_map_contended, @"contended", - nil] + @{@"address": memory_map_address, + @"type": memory_map_type, + @"page": memory_map_page, + @"writeable": memory_map_writeable, + @"contended": memory_map_contended} ]; } @@ -463,15 +455,10 @@ /* Skip events which have been removed */ if( ptr->type == event_type_null ) return; - NSNumber *event_time = [ NSNumber numberWithUnsignedLong:ptr->tstates ]; - NSString *event_type = [ NSString stringWithUTF8String:event_name( ptr->type ) ]; + NSNumber *event_time = @(ptr->tstates); + NSString *event_type = @(event_name( ptr->type )); - [eventsContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - event_time, @"time", - event_type, @"type", - nil] - ]; + [eventsContents addObject:@{@"time": event_time, @"type": event_type}]; } - (void)debugger_disassemble:(libspectrum_word)address @@ -538,31 +525,31 @@ switch( [table tag] ) { case 0: if(row < 0 || row > [dissasemblyContents count]) return nil; - record = [dissasemblyContents objectAtIndex:row]; + record = dissasemblyContents[row]; value = [record valueForKey:[col identifier]]; return value; break; case 1: if(row < 0 || row > [stackContents count]) return nil; - record = [stackContents objectAtIndex:row]; + record = stackContents[row]; value = [record valueForKey:[col identifier]]; return value; break; case 2: if(row < 0 || row > [breakpointsContents count]) return nil; - record = [breakpointsContents objectAtIndex:row]; + record = breakpointsContents[row]; value = [record valueForKey:[col identifier]]; return value; break; case 3: if(row < 0 || row > [eventsContents count]) return nil; - record = [eventsContents objectAtIndex:row]; + record = eventsContents[row]; value = [record valueForKey:[col identifier]]; return value; break; case 4: if(row < 0 || row > [memoryMapContents count]) return nil; - record = [memoryMapContents objectAtIndex:row]; + record = memoryMapContents[row]; value = [record valueForKey:[col identifier]]; return value; break; Modified: trunk/fuse/fusepb/controllers/FuseController.m =================================================================== --- trunk/fuse/fusepb/controllers/FuseController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/FuseController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -201,8 +201,7 @@ [super init]; singleton = self; - NSArray *compressedFileTypes = [NSArray arrayWithObjects:@"gz", @"GZ", - @"bz2", @"BZ2", nil]; + NSArray *compressedFileTypes = @[@"gz", @"GZ", @"bz2", @"BZ2"]; snapFileTypes = [NSMutableArray arrayWithObjects:@"mgtsnp", @"MGTSNP", @"slt", @"SLT", @"sna", @"SNA", @"sp", @"SP", @"szx", @@ -678,7 +677,7 @@ [[DisplayOpenGLView instance] pause]; - recording = cocoaui_savepanel_get_filename( @"Start Recording", [NSArray arrayWithObjects:@"rzx", nil] ); + recording = cocoaui_savepanel_get_filename( @"Start Recording", @[@"rzx"] ); if( !recording ) { [[DisplayOpenGLView instance] unpause]; return; } [[DisplayOpenGLView instance] rzxStartRecording:recording embedSnapshot:1]; @@ -701,7 +700,7 @@ snap = cocoaui_openpanel_get_filename( @"Load Snapshot", snapFileTypes ); if( !snap ) { [[DisplayOpenGLView instance] unpause]; return; } - recording = cocoaui_savepanel_get_filename( @"Start Recording", [NSArray arrayWithObjects:@"rzx", nil] ); + recording = cocoaui_savepanel_get_filename( @"Start Recording", @[@"rzx"] ); if( !recording ) { free( snap ); [[DisplayOpenGLView instance] unpause]; return; } if( snapshot_read( snap ) ) { @@ -735,7 +734,7 @@ [[DisplayOpenGLView instance] pause]; - psgfile = cocoaui_savepanel_get_filename( @"Start AY Sound Recording", [NSArray arrayWithObjects:@"psg", nil] ); + psgfile = cocoaui_savepanel_get_filename( @"Start AY Sound Recording", @[@"psg"] ); if( !psgfile ) { [[DisplayOpenGLView instance] unpause]; return; } [[DisplayOpenGLView instance] psgStart:psgfile]; @@ -764,7 +763,7 @@ if( !settings_current.full_screen ) { [[DisplayOpenGLView instance] pause]; - filename = cocoaui_savepanel_get_filename( @"Save Snapshot As", [NSArray arrayWithObjects:@"szx", @"z80", @"sna", nil] ); + filename = cocoaui_savepanel_get_filename( @"Save Snapshot As", @[@"szx", @"z80", @"sna"] ); if( !filename ) goto save_as_exit; @@ -837,7 +836,7 @@ [[DisplayOpenGLView instance] pause]; - filename = cocoaui_savepanel_get_filename( @"Save Profile Data As", [NSArray arrayWithObjects:@"profile", nil] ); + filename = cocoaui_savepanel_get_filename( @"Save Profile Data As", @[@"profile"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return; } [[DisplayOpenGLView instance] profileFinish:filename]; @@ -853,7 +852,7 @@ [[DisplayOpenGLView instance] pause]; - filename = cocoaui_savepanel_get_filename( @"Save Screenshot As", [NSArray arrayWithObjects:@"scr", nil] ); + filename = cocoaui_savepanel_get_filename( @"Save Screenshot As", @[@"scr"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return; } @@ -872,7 +871,7 @@ [[DisplayOpenGLView instance] pause]; - filename = cocoaui_savepanel_get_filename( @"Export Screenshot", [NSArray arrayWithObjects:@"png", @"tiff", @"bmp", @"jpg", @"gif", nil] ); + filename = cocoaui_savepanel_get_filename( @"Export Screenshot", @[@"png", @"tiff", @"bmp", @"jpg", @"gif"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return; } @@ -1058,7 +1057,7 @@ - (IBAction)saveFileTypeClicked:(id)sender; { - [sPanel setAllowedFileTypes:[NSArray arrayWithObject:[saveFileType titleOfSelectedItem]]]; + [sPanel setAllowedFileTypes:@[[saveFileType titleOfSelectedItem]]]; } - savePanelAccessoryView @@ -1798,8 +1797,7 @@ - (void)openRecent:(id)fileMenu { - NSString *file = [settings_current.cocoa->recent_snapshots - objectAtIndex:[recentSnaps indexOfItem:fileMenu]]; + NSString *file = settings_current.cocoa->recent_snapshots[[recentSnaps indexOfItem:fileMenu]]; char *filename = strdup([file UTF8String]); if( filename == NULL ) return; @@ -1822,17 +1820,15 @@ while( (object = [enumerator nextObject]) ) { if( [object isEqualToString:filename] ) { - NSNumber *index = [NSNumber - numberWithInt:[recentSnapFileNames indexOfObjectIdenticalTo:object]]; + NSNumber *index = @([recentSnapFileNames indexOfObjectIdenticalTo:object]); NSString *file = [NSString stringWithString:filename]; - NSArray *match = [NSArray arrayWithObjects:index, file, nil]; + NSArray *match = @[index, file]; [matches addObject:match]; } } NSMutableString *commonPrefix = [NSMutableString - stringWithString:[settings_current.cocoa->recent_snapshots - objectAtIndex:[[[matches lastObject] objectAtIndex:1] intValue]]]; + stringWithString:settings_current.cocoa->recent_snapshots[[[matches lastObject][1] intValue]]]; /* Iterate through matches to find shortest common string as found by commonPrefixWithString */ @@ -1841,14 +1837,12 @@ /* Compare all strings with commonPrefixWithString and find the shortest prefix */ id object2; - NSString *file = [settings_current.cocoa->recent_snapshots - objectAtIndex:[[object objectAtIndex:1] intValue]]; + NSString *file = settings_current.cocoa->recent_snapshots[[object[1] intValue]]; NSEnumerator *enumerator2 = [matches objectEnumerator]; while( (object2 = [enumerator2 nextObject]) ) { if([object isEqual:object2]) continue; - NSString *file2 = [settings_current.cocoa->recent_snapshots - objectAtIndex:[[object2 objectAtIndex:0] intValue]]; + NSString *file2 = settings_current.cocoa->recent_snapshots[[object2[0] intValue]]; NSString *prefix = [file commonPrefixWithString:file2 options:NSLiteralSearch]; if( [prefix length] < [commonPrefix length] ) { @@ -1862,9 +1856,8 @@ the full path with commonPrefix removed, and with snap name - .../ prepended */ for( object in matches ) { - unsigned index = [[object objectAtIndex:0] intValue]; - NSString *file = [settings_current.cocoa->recent_snapshots - objectAtIndex:[[object objectAtIndex:0] intValue]]; + unsigned index = [object[0] intValue]; + NSString *file = settings_current.cocoa->recent_snapshots[[object[0] intValue]]; NSMutableString *label = [NSMutableString stringWithString:file]; @@ -1925,8 +1918,7 @@ - (void)addRecentSnapshot:(const char *)filename { - NSString *file = [NSString stringWithUTF8String:filename]; - [self addRecentSnapshotWithString:file]; + [self addRecentSnapshotWithString:@(filename)]; } - (void)clearRecentSnapshots @@ -2082,7 +2074,7 @@ [[DisplayOpenGLView instance] pause]; - filename = cocoaui_savepanel_get_filename( @"Write Tape As", [NSArray arrayWithObjects:@"tzx", @"tap", @"csw", nil] ); + filename = cocoaui_savepanel_get_filename( @"Write Tape As", @[@"tzx", @"tap", @"csw"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } @@ -2090,7 +2082,7 @@ paused */ tape_write( filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; free( filename ); @@ -2110,7 +2102,7 @@ if( saveas == YES ) { NSString *title = [NSString stringWithFormat:@"Write +3 Disk %c: As", drive]; - filename = cocoaui_savepanel_get_filename( title, [NSArray arrayWithObjects:@"dsk", nil] ); + filename = cocoaui_savepanel_get_filename( title, @[@"dsk"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } } @@ -2118,7 +2110,7 @@ /* We will be calling this from the Emulator thread */ err = specplus3_disk_write( which, filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; if( saveas == YES ) free( filename ); @@ -2145,9 +2137,7 @@ if( saveas == YES ) { NSString *title = [NSString stringWithFormat:@"Write Beta Disk %c: As", drive]; filename = - cocoaui_savepanel_get_filename( title, - [NSArray arrayWithObjects:@"trd", @"scl", - @"udi", @"fdi", nil] ); + cocoaui_savepanel_get_filename( title, @[@"trd", @"scl", @"udi", @"fdi"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } } @@ -2155,7 +2145,7 @@ /* We will be calling this from the main thread with emulator paused */ err = beta_disk_write( which, filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; if( saveas == YES ) free( filename ); @@ -2180,9 +2170,7 @@ if( saveas == YES ) { NSString *title = [NSString stringWithFormat:@"Write Opus Discovery Disk %c: As", drive]; filename = - cocoaui_savepanel_get_filename( title, - [NSArray arrayWithObjects:@"opd", @"opu", - @"dsk", nil] ); + cocoaui_savepanel_get_filename( title, @[@"opd", @"opu", @"dsk"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } } @@ -2190,7 +2178,7 @@ /* We will be calling this from the main thread with emulator paused */ err = opus_disk_write( which, filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; if( saveas == YES ) free( filename ); @@ -2214,10 +2202,7 @@ if( saveas == YES ) { NSString *title = [NSString stringWithFormat:@"Write +D Disk %c: As", drive]; - filename = - cocoaui_savepanel_get_filename( title, - [NSArray arrayWithObjects:@"mgt", @"img", - nil] ); + filename = cocoaui_savepanel_get_filename( title, @[@"mgt", @"img"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } } @@ -2225,7 +2210,7 @@ /* We will be calling this from the main thread with emulator paused */ err = plusd_disk_write( which, filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; free( filename ); @@ -2249,10 +2234,7 @@ if( saveas == YES ) { NSString *title = [NSString stringWithFormat:@"Write DISCiPLE Disk %c: As", drive]; - filename = - cocoaui_savepanel_get_filename( title, - [NSArray arrayWithObjects:@"mgt", @"img", - nil] ); + filename = cocoaui_savepanel_get_filename( title, @[@"mgt", @"img"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } } @@ -2260,7 +2242,7 @@ /* We will be calling this from the main thread with emulator paused */ err = disciple_disk_write( which, filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; free( filename ); @@ -2278,7 +2260,7 @@ if( saveas == YES ) { NSString *title = [NSString stringWithFormat:@"Write Microdrive Cartridge %i As", which]; - filename = cocoaui_savepanel_get_filename( title, [NSArray arrayWithObjects:@"mdr", nil] ); + filename = cocoaui_savepanel_get_filename( title, @[@"mdr"] ); if( !filename ) { [[DisplayOpenGLView instance] unpause]; return 1; } } @@ -2286,7 +2268,7 @@ /* We will be calling this from the main thread with emulator paused */ err = if1_mdr_write( which, filename ); - [self addRecentSnapshotWithString:[NSString stringWithUTF8String:filename]]; + [self addRecentSnapshotWithString:@(filename)]; if( saveas == YES ) free( filename ); @@ -2488,7 +2470,7 @@ result = [oPanel runModal]; if (result == NSOKButton) { NSArray *filesToOpen = [oPanel URLs]; - NSString *aFile = [[filesToOpen objectAtIndex:0] path]; + NSString *aFile = [filesToOpen[0] path]; [aFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; filename = strdup ( buffer ); } @@ -2506,7 +2488,7 @@ sPanel = [NSSavePanel savePanel]; [sPanel setTitle:title]; - [sPanel setAllowedFileTypes:[NSArray arrayWithObject:[fileTypes objectAtIndex:0]]]; + [sPanel setAllowedFileTypes:@[fileTypes[0]]]; [sPanel setCanSelectHiddenExtension:YES]; if( [fileTypes count] > 1 ) { @@ -2641,7 +2623,8 @@ int ui_menu_activate( ui_menu_item item, int active ) { - NSNumber* activeBool = [NSNumber numberWithBool:active ? YES : NO]; + BOOL value = active ? YES : NO; + NSNumber* activeBool = @(value); SEL method = nil; switch( item ) { @@ -3038,8 +3021,7 @@ [[DisplayOpenGLView instance] pause]; - NSString *m = [NSString stringWithUTF8String:message]; - result = NSRunAlertPanel(@"Confirm", m, @"OK", @"Cancel", nil); + result = NSRunAlertPanel(@"Confirm", @(message), @"OK", @"Cancel", nil); if( result == NSAlertDefaultReturn ) confirm = 1; Modified: trunk/fuse/fusepb/controllers/JoystickConfigurationController.m =================================================================== --- trunk/fuse/fusepb/controllers/JoystickConfigurationController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/JoystickConfigurationController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -109,32 +109,32 @@ switch(joyNum) { case 1: - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire1 selectedItem] tag]] forKey:@"joystick1fire1"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire2 selectedItem] tag]] forKey:@"joystick1fire2"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire3 selectedItem] tag]] forKey:@"joystick1fire3"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire4 selectedItem] tag]] forKey:@"joystick1fire4"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire5 selectedItem] tag]] forKey:@"joystick1fire5"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire6 selectedItem] tag]] forKey:@"joystick1fire6"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire7 selectedItem] tag]] forKey:@"joystick1fire7"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire8 selectedItem] tag]] forKey:@"joystick1fire8"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire9 selectedItem] tag]] forKey:@"joystick1fire9"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire10 selectedItem] tag]] forKey:@"joystick1fire10"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyXAxis selectedItem] tag]] forKey:@"joy1x"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyYAxis selectedItem] tag]] forKey:@"joy1y"]; + [currentValues setObject:@([[joyFire1 selectedItem] tag]) forKey:@"joystick1fire1"]; + [currentValues setObject:@([[joyFire2 selectedItem] tag]) forKey:@"joystick1fire2"]; + [currentValues setObject:@([[joyFire3 selectedItem] tag]) forKey:@"joystick1fire3"]; + [currentValues setObject:@([[joyFire4 selectedItem] tag]) forKey:@"joystick1fire4"]; + [currentValues setObject:@([[joyFire5 selectedItem] tag]) forKey:@"joystick1fire5"]; + [currentValues setObject:@([[joyFire6 selectedItem] tag]) forKey:@"joystick1fire6"]; + [currentValues setObject:@([[joyFire7 selectedItem] tag]) forKey:@"joystick1fire7"]; + [currentValues setObject:@([[joyFire8 selectedItem] tag]) forKey:@"joystick1fire8"]; + [currentValues setObject:@([[joyFire9 selectedItem] tag]) forKey:@"joystick1fire9"]; + [currentValues setObject:@([[joyFire10 selectedItem] tag]) forKey:@"joystick1fire10"]; + [currentValues setObject:@([[joyXAxis selectedItem] tag]) forKey:@"joy1x"]; + [currentValues setObject:@([[joyYAxis selectedItem] tag]) forKey:@"joy1y"]; break; case 2: - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire1 selectedItem] tag]] forKey:@"joystick2fire1"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire2 selectedItem] tag]] forKey:@"joystick2fire2"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire3 selectedItem] tag]] forKey:@"joystick2fire3"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire4 selectedItem] tag]] forKey:@"joystick2fire4"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire5 selectedItem] tag]] forKey:@"joystick2fire5"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire6 selectedItem] tag]] forKey:@"joystick2fire6"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire7 selectedItem] tag]] forKey:@"joystick2fire7"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire8 selectedItem] tag]] forKey:@"joystick2fire8"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire9 selectedItem] tag]] forKey:@"joystick2fire9"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyFire10 selectedItem] tag]] forKey:@"joystick2fire10"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyXAxis selectedItem] tag]] forKey:@"joy2x"]; - [currentValues setObject:[NSNumber numberWithInteger:[[joyYAxis selectedItem] tag]] forKey:@"joy2y"]; + [currentValues setObject:@([[joyFire1 selectedItem] tag]) forKey:@"joystick2fire1"]; + [currentValues setObject:@([[joyFire2 selectedItem] tag]) forKey:@"joystick2fire2"]; + [currentValues setObject:@([[joyFire3 selectedItem] tag]) forKey:@"joystick2fire3"]; + [currentValues setObject:@([[joyFire4 selectedItem] tag]) forKey:@"joystick2fire4"]; + [currentValues setObject:@([[joyFire5 selectedItem] tag]) forKey:@"joystick2fire5"]; + [currentValues setObject:@([[joyFire6 selectedItem] tag]) forKey:@"joystick2fire6"]; + [currentValues setObject:@([[joyFire7 selectedItem] tag]) forKey:@"joystick2fire7"]; + [currentValues setObject:@([[joyFire8 selectedItem] tag]) forKey:@"joystick2fire8"]; + [currentValues setObject:@([[joyFire9 selectedItem] tag]) forKey:@"joystick2fire9"]; + [currentValues setObject:@([[joyFire10 selectedItem] tag]) forKey:@"joystick2fire10"]; + [currentValues setObject:@([[joyXAxis selectedItem] tag]) forKey:@"joy2x"]; + [currentValues setObject:@([[joyYAxis selectedItem] tag]) forKey:@"joy2y"]; break; default: assert(0); @@ -241,35 +241,25 @@ [joyFire10 removeAllItems]; for( i = 0; i < key_menu_count; i++ ) { - [joyFire1 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire1 addItemWithTitle:@(key_menu[i].key)]; [[joyFire1 lastItem] setTag:key_menu[i].value]; - [joyFire2 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire2 addItemWithTitle:@(key_menu[i].key)]; [[joyFire2 lastItem] setTag:key_menu[i].value]; - [joyFire3 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire3 addItemWithTitle:@(key_menu[i].key)]; [[joyFire3 lastItem] setTag:key_menu[i].value]; - [joyFire4 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire4 addItemWithTitle:@(key_menu[i].key)]; [[joyFire4 lastItem] setTag:key_menu[i].value]; - [joyFire5 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire5 addItemWithTitle:@(key_menu[i].key)]; [[joyFire5 lastItem] setTag:key_menu[i].value]; - [joyFire6 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire6 addItemWithTitle:@(key_menu[i].key)]; [[joyFire6 lastItem] setTag:key_menu[i].value]; - [joyFire7 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire7 addItemWithTitle:@(key_menu[i].key)]; [[joyFire7 lastItem] setTag:key_menu[i].value]; - [joyFire8 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire8 addItemWithTitle:@(key_menu[i].key)]; [[joyFire8 lastItem] setTag:key_menu[i].value]; - [joyFire9 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire9 addItemWithTitle:@(key_menu[i].key)]; [[joyFire9 lastItem] setTag:key_menu[i].value]; - [joyFire10 addItemWithTitle:[NSString - stringWithUTF8String:key_menu[i].key]]; + [joyFire10 addItemWithTitle:@(key_menu[i].key)]; [[joyFire10 lastItem] setTag:key_menu[i].value]; } Modified: trunk/fuse/fusepb/controllers/LoadBinaryController.m =================================================================== --- trunk/fuse/fusepb/controllers/LoadBinaryController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/LoadBinaryController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -136,7 +136,7 @@ u_file = new_file; - [file setStringValue:[NSString stringWithUTF8String:buffer]]; + [file setStringValue:@(buffer)]; [start setIntValue:0]; [length setIntValue:new_file.length]; Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -97,11 +97,7 @@ } [tableContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - address, @"address", - data, @"data", - hex, @"hex", - nil] + @{@"address": address, @"data": data, @"hex": hex} ]; } @@ -125,7 +121,7 @@ id record, value; NSParameterAssert(row >= 0 && row < [tableContents count]); - record = [tableContents objectAtIndex:row]; + record = tableContents[row]; value = [record valueForKey:[col identifier]]; return value; } Modified: trunk/fuse/fusepb/controllers/PokeFinderController.m =================================================================== --- trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -80,7 +80,7 @@ if( row < 0 || row >= [tableContents count] ) return; - record = [tableContents objectAtIndex:row]; + record = tableContents[row]; value = [record valueForKey:@"page"]; page = [value unsignedLongValue]; value = [record valueForKey:@"offset_number"]; @@ -169,7 +169,7 @@ id record, value; if( row < 0 || row >= [tableContents count] ) return nil; - record = [tableContents objectAtIndex:row]; + record = tableContents[row]; value = [record valueForKey:[col identifier]]; return value; } @@ -185,16 +185,10 @@ for( page = 0; page < 2 * SPECTRUM_RAM_PAGES; page++ ) for( offset = 0; offset < 0x2000; offset++ ) if( !(pokefinder_impossible[page][offset/8] & 1 << (offset & 7)) ) { - NSNumber *p = [NSNumber numberWithUnsignedLong:page/2]; + NSNumber *p = @(page/2); NSString *o = [NSString stringWithFormat:@"0x%04lX", offset + 8192 * (page & 1)]; - NSNumber *on = [NSNumber numberWithUnsignedLong:offset + 8192 * (page & 1)]; - [tableContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - p, @"page", - o, @"offset", - on, @"offset_number", - nil] - ]; + NSNumber *on = @(offset + 8192 * (page & 1)); + [tableContents addObject: @{@"page": p, @"offset": o, @"offset_number": on}]; } } else { [tableContents release]; Modified: trunk/fuse/fusepb/controllers/PreferencesController.m =================================================================== --- trunk/fuse/fusepb/controllers/PreferencesController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/PreferencesController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -117,7 +117,7 @@ - (void)awakeFromNib { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSToolbarItem *item = [[toolbar items] objectAtIndex:[defaults integerForKey:@"preferencestab"]]; + NSToolbarItem *item = [toolbar items][[defaults integerForKey:@"preferencestab"]]; [toolbar setSelectedItemIdentifier:[item itemIdentifier]]; [self selectPrefPanel:item]; } @@ -190,10 +190,10 @@ switch( [sender tag] ) { case 0: /* graphic */ - [sPanel setAllowedFileTypes:[NSArray arrayWithObject:@"pbm"]]; + [sPanel setAllowedFileTypes:@[@"pbm"]]; break; case 1: /* text */ - [sPanel setAllowedFileTypes:[NSArray arrayWithObject:@"txt"]]; + [sPanel setAllowedFileTypes:@[@"txt"]]; break; } @@ -204,10 +204,10 @@ switch( [sender tag] ) { case 0: /* graphic */ - [defaults setObject:[NSString stringWithUTF8String:buffer] forKey:@"graphicsfile"]; + [defaults setObject:@(buffer) forKey:@"graphicsfile"]; break; case 1: /* text */ - [defaults setObject:[NSString stringWithUTF8String:buffer] forKey:@"textfile"]; + [defaults setObject:@(buffer) forKey:@"textfile"]; break; } @@ -246,7 +246,7 @@ char buffer[PATH_MAX+1]; int result; NSOpenPanel *oPanel = [NSOpenPanel openPanel]; - NSArray *romFileTypes = [NSArray arrayWithObjects:@"rom", @"ROM", nil]; + NSArray *romFileTypes = @[@"rom", @"ROM"]; NSString *romString; [oPanel setAllowedFileTypes:romFileTypes]; @@ -256,7 +256,7 @@ NSString *oFile = [[oPanel URL] path]; [oFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; - romString = [NSString stringWithUTF8String:buffer]; + romString = @(buffer); switch( [sender tag] ) { case 0: @@ -326,10 +326,16 @@ newMachineRoms = settings_set_rom_array( &settings_current ); for( i=0; i<[newMachineRoms count]; i++ ) { - [self replaceObjectInMachineRomsAtIndex:i withObject:[newMachineRoms objectAtIndex:i]]; + [self replaceObjectInMachineRomsAtIndex:i withObject:newMachineRoms[i]]; } } +- (void)setCurrentValue:(int)value forKey:(NSString *)key inValues:(NSUserDefaults *)currentValues +{ + BOOL val = value ? YES : NO; + [currentValues setObject:@(val) forKey:key]; +} + - (IBAction)massStorageTypeClicked:(id)sender { NSUserDefaults *currentValues = [NSUserDefaults standardUserDefaults]; @@ -379,14 +385,14 @@ break; } - [currentValues setObject:[NSNumber numberWithBool:settings_current.interface1 ? YES : NO] forKey:@"interface1"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.simpleide_active ? YES : NO] forKey:@"simpleide"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.zxatasp_active ? YES : NO] forKey:@"zxatasp"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.zxcf_active ? YES : NO] forKey:@"zxcf"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.divide_enabled ? YES : NO] forKey:@"divide"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.plusd ? YES : NO] forKey:@"plusd"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.beta128 ? YES : NO] forKey:@"beta128"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.opus ? YES : NO] forKey:@"opus"]; + [self setCurrentValue:settings_current.interface1 forKey:@"interface1" inValues:currentValues]; + [self setCurrentValue:settings_current.simpleide_active forKey:@"simpleide" inValues:currentValues]; + [self setCurrentValue:settings_current.zxatasp_active forKey:@"zxatasp" inValues:currentValues]; + [self setCurrentValue:settings_current.zxcf_active forKey:@"zxcf" inValues:currentValues]; + [self setCurrentValue:settings_current.divide_enabled forKey:@"divide" inValues:currentValues]; + [self setCurrentValue:settings_current.plusd forKey:@"plusd" inValues:currentValues]; + [self setCurrentValue:settings_current.beta128 forKey:@"beta128" inValues:currentValues]; + [self setCurrentValue:settings_current.opus forKey:@"opus" inValues:currentValues]; [currentValues synchronize]; } @@ -416,9 +422,9 @@ break; } - [currentValues setObject:[NSNumber numberWithBool:settings_current.fuller ? YES : NO] forKey:@"fuller"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.melodik ? YES : NO] forKey:@"melodik"]; - [currentValues setObject:[NSNumber numberWithBool:settings_current.specdrum ? YES : NO] forKey:@"specdrum"]; + [self setCurrentValue:settings_current.fuller forKey:@"fuller" inValues:currentValues]; + [self setCurrentValue:settings_current.melodik forKey:@"melodik" inValues:currentValues]; + [self setCurrentValue:settings_current.specdrum forKey:@"specdrum" inValues:currentValues]; [currentValues synchronize]; } @@ -477,7 +483,7 @@ [window setContentView:prefsView]; [[NSUserDefaults standardUserDefaults] - setObject:[NSNumber numberWithInteger:[item tag]] forKey:@"preferencestab"]; + setObject:@([item tag]) forKey:@"preferencestab"]; } // NSToolbar delegate method @@ -534,7 +540,7 @@ - (id)objectInMachineRomsAtIndex:(unsigned int)index { - return [machineRoms objectAtIndex:index]; + return machineRoms[index]; } - (void)insertObject:(id)anObject inMachineRomsAtIndex:(unsigned int)index @@ -549,7 +555,7 @@ - (void)replaceObjectInMachineRomsAtIndex:(unsigned int)index withObject:(id)anObject { - [machineRoms replaceObjectAtIndex:index withObject:anObject]; + machineRoms[index] = anObject; } @end Modified: trunk/fuse/fusepb/controllers/RollbackController.m =================================================================== --- trunk/fuse/fusepb/controllers/RollbackController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/RollbackController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -121,7 +121,7 @@ id record, value; NSParameterAssert(row >= 0 && row < [tableContents count]); - record = [tableContents objectAtIndex:row]; + record = tableContents[row]; value = [record valueForKey:[col identifier]]; return value; } @@ -176,9 +176,6 @@ seconds = [NSString stringWithFormat:@"%.2f", GPOINTER_TO_INT( point ) / 50.0 ]; - [tableContents addObject: - [NSDictionary dictionaryWithObjectsAndKeys: - seconds, @"seconds", - nil] + [tableContents addObject:@{@"seconds": seconds} ]; } Modified: trunk/fuse/fusepb/controllers/TapeBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/TapeBrowserController.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/controllers/TapeBrowserController.m 2012-11-02 12:03:41 UTC (rev 702) @@ -139,14 +139,14 @@ TapeBrowserController *tapeBrowserController = (TapeBrowserController*)user_data; NSString *type, *data; char buffer[256]; - NSArray *keys = [NSArray arrayWithObjects: @"type", @"data", nil]; + NSArray *keys = @[@"type", @"data"]; NSArray *values; libspectrum_tape_block_description( buffer, 256, block ); - type = [NSString stringWithUTF8String:buffer]; + type = @(buffer); tape_block_details( buffer, 256, block ); - data = [NSString stringWithUTF8String:buffer]; - values = [NSArray arrayWithObjects: type, data, nil]; + data = @(buffer); + values = @[type, data]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToTapeContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -160,12 +160,12 @@ switch( libspectrum_tape_block_ids( block, i ) ) { case 0: - values = [NSArray arrayWithObjects: @"Title", + values = @[@"Title", [NSString stringWithCString:(const char *)libspectrum_tape_block_texts( block, i ) #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 encoding:NSWindowsCP1252StringEncoding #endif - ], nil]; + ]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -179,8 +179,8 @@ encoding:NSWindowsCP1252StringEncoding #endif ]; - values = [NSArray arrayWithObjects: @"Publishers", - [[info componentsSeparatedByString:@"\n"] componentsJoinedByString:@", "], nil]; + values = @[@"Publishers", + [[info componentsSeparatedByString:@"\n"] componentsJoinedByString:@", "]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -194,8 +194,8 @@ encoding:NSWindowsCP1252StringEncoding #endif ]; - values = [NSArray arrayWithObjects: @"Authors", - [[info componentsSeparatedByString:@"\n"] componentsJoinedByString:@", "], nil]; + values = @[@"Authors", + [[info componentsSeparatedByString:@"\n"] componentsJoinedByString:@", "]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -203,14 +203,13 @@ ]; break; case 3: - values = [NSArray arrayWithObjects: @"Year", - [NSNumber numberWithInt: - [[NSString stringWithCString: + values = @[@"Year", + @([[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 encoding:NSWindowsCP1252StringEncoding #endif - ] intValue]], nil]; + ] intValue])]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -224,8 +223,8 @@ encoding:NSWindowsCP1252StringEncoding #endif ]; - values = [NSArray arrayWithObjects: @"Languages", - [[info componentsSeparatedByString:@"\n"] componentsJoinedByString:@", "], nil]; + values = @[@"Languages", + [[info componentsSeparatedByString:@"\n"] componentsJoinedByString:@", "]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -233,12 +232,12 @@ ]; break; case 5: - values = [NSArray arrayWithObjects: @"Category", + values = @[@"Category", [NSString stringWithCString:(const char *)libspectrum_tape_block_texts( block, i ) #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 encoding:NSWindowsCP1252StringEncoding #endif - ], nil]; + ]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -267,7 +266,7 @@ withString:@"€" options:NSCaseInsensitiveSearch range:NSMakeRange(0, [priceString length])]; - values = [NSArray arrayWithObjects: @"Price", priceString, nil]; + values = @[@"Price", priceString]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -276,12 +275,12 @@ } break; case 7: - values = [NSArray arrayWithObjects: @"Loader", + values = @[@"Loader", [NSString stringWithCString:(const char *)libspectrum_tape_block_texts( block, i ) #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 encoding:NSWindowsCP1252StringEncoding #endif - ], nil]; + ]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -289,12 +288,12 @@ ]; break; case 8: - values = [NSArray arrayWithObjects: @"Origin", + values = @[@"Origin", [NSString stringWithCString:(const char *)libspectrum_tape_block_texts( block, i ) #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 encoding:NSWindowsCP1252StringEncoding #endif - ], nil]; + ]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -302,12 +301,12 @@ ]; break; case 255: - values = [NSArray arrayWithObjects: @"Comment", + values = @[@"Comment", [NSString stringWithCString:(const char *)libspectrum_tape_block_texts( block, i ) #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 encoding:NSWindowsCP1252StringEncoding #endif - ], nil]; + ]]; [tapeBrowserController performSelectorOnMainThread:@selector(addObjectToInfoContents:) withObject:[NSDictionary dictionaryWithObjects:values forKeys:keys] @@ -344,13 +343,13 @@ [tapeBrowserController performSelectorOnMainThread:@selector(setInitialising:) - withObject:[NSNumber numberWithBool:YES] + withObject:@YES waitUntilDone:NO ]; error = tape_foreach( add_block_details, tapeBrowserController ); [tapeBrowserController performSelectorOnMainThread:@selector(setInitialising:) - withObject:[NSNumber numberWithBool:NO] + withObject:@NO waitUntilDone:NO ]; if( error ) return error; @@ -362,7 +361,7 @@ if(current_block >= 0) { [tapeBrowserController performSelectorOnMainThread:@selector(setTapeIndex:) - withObject:[NSNumber numberWithUnsignedInt:current_block] + withObject:@((unsigned int)current_block) waitUntilDone:NO ]; } Modified: trunk/fuse/fusepb/models/Emulator.m =================================================================== --- trunk/fuse/fusepb/models/Emulator.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/models/Emulator.m 2012-11-02 12:03:41 UTC (rev 702) @@ -76,8 +76,8 @@ pool = [[NSAutoreleasePool alloc] init]; serverConnection = [NSConnection - connectionWithReceivePort:[portArray objectAtIndex:0] - sendPort:[portArray objectAtIndex:1]]; + connectionWithReceivePort:portArray[0] + sendPort:portArray[1]]; [serverConnection setRootObject:self]; proxy_view = (id)[serverConnection rootProxy]; [proxy_view setServer:self]; Modified: trunk/fuse/fusepb/transformers/MachineNameToIdTransformer.m =================================================================== --- trunk/fuse/fusepb/transformers/MachineNameToIdTransformer.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/transformers/MachineNameToIdTransformer.m 2012-11-02 12:03:41 UTC (rev 702) @@ -77,7 +77,7 @@ [value class]]; } - return [NSString stringWithUTF8String:machine_types[machineInputValue]->id]; + return @(machine_types[machineInputValue]->id); } @end Modified: trunk/fuse/fusepb/transformers/MachineScalerIsEnabled.m =================================================================== --- trunk/fuse/fusepb/transformers/MachineScalerIsEnabled.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/transformers/MachineScalerIsEnabled.m 2012-11-02 12:03:41 UTC (rev 702) @@ -60,10 +60,11 @@ machine_get_machine_info([[defaults stringForKey:@"machine"] UTF8String]); if( fmi ) { - return [NSNumber numberWithBool:fmi->timex == timex ? YES : NO]; + BOOL retval = fmi->timex == timex ? YES : NO; + return @(retval); } - return NO; + return @NO; } @end Modified: trunk/fuse/fusepb/transformers/ScalerNameToIdTransformer.m =================================================================== --- trunk/fuse/fusepb/transformers/ScalerNameToIdTransformer.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/transformers/ScalerNameToIdTransformer.m 2012-11-02 12:03:41 UTC (rev 702) @@ -77,7 +77,7 @@ [value class]]; } - return [NSString stringWithUTF8String:scaler_id(scalerInputValue)]; + return @(scaler_id(scalerInputValue)); } @end Modified: trunk/fuse/fusepb/transformers/VolumeSliderToPrefTransformer.m =================================================================== --- trunk/fuse/fusepb/transformers/VolumeSliderToPrefTransformer.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/transformers/VolumeSliderToPrefTransformer.m 2012-11-02 12:03:41 UTC (rev 702) @@ -55,7 +55,7 @@ [value class]]; } - return [NSNumber numberWithInt:8-volumeInputValue]; + return @(8-volumeInputValue); } - (id)reverseTransformedValue:(id)value @@ -75,7 +75,7 @@ [value class]]; } - return [NSNumber numberWithInt:8-volumeInputValue]; + return @(8-volumeInputValue); } @end Modified: trunk/fuse/fusepb/views/DisplayOpenGLView.m =================================================================== --- trunk/fuse/fusepb/views/DisplayOpenGLView.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/fusepb/views/DisplayOpenGLView.m 2012-11-02 12:03:41 UTC (rev 702) @@ -248,7 +248,7 @@ [kitConnection enableMultipleThreads]; /* Ports switched here */ - portArray = [NSArray arrayWithObjects:port2, port1, nil]; + portArray = @[port2, port1]; [NSThread detachNewThreadSelector:@selector(connectWithPorts:) toTarget:real_emulator withObject:portArray]; @@ -1412,8 +1412,8 @@ -(void) windowChangedScreen:(NSNotification*)inNotification { NSWindow *window = [self window]; - CGDirectDisplayID displayID = (CGDirectDisplayID)[[[[window screen] - deviceDescription] objectForKey:@"NSScreenNumber"] intValue]; + CGDirectDisplayID displayID = (CGDirectDisplayID)[[[window screen] + deviceDescription][@"NSScreenNumber"] intValue]; if((displayID != 0) && (mainViewDisplayID != displayID)) { CVDisplayLinkSetCurrentCGDisplay(displayLink, displayID); Modified: trunk/fuse/settings.pl =================================================================== --- trunk/fuse/settings.pl 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/settings.pl 2012-11-02 12:03:41 UTC (rev 702) @@ -144,6 +144,7 @@ int settings_defaults( settings_info *settings ) { int retval; + BOOL value; NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary]; @@ -159,25 +160,26 @@ if( $type eq 'boolean' ) { print << "CODE"; - [defaultValues setObject:[NSNumber numberWithBool:settings->$name ? YES : NO] forKey:@"$options{$name}->{configfile}"]; + value = settings->$name ? YES : NO; + defaultValues[@"$options{$name}->{configfile}"] = @(value); CODE } elsif( $type eq 'string' ) { print << "CODE"; if( settings->$name ) - [defaultValues setObject:[NSString stringWithUTF8String:settings->$name] forKey:@"$options{$name}->{configfile}"]; + defaultValues[@"$options{$name}->{configfile}"] = @(settings->$name); else - [defaultValues setObject:@"" forKey:@"$options{$name}->{configfile}"]; + defaultValues[@"$options{$name}->{configfile}"] = @""; CODE } elsif( $type eq 'numeric' ) { print << "CODE"; - [defaultValues setObject:[NSNumber numberWithInt:settings->$name] forKey:@"$options{$name}->{configfile}"]; + defaultValues[@"$options{$name}->{configfile}"] = @(settings->$name); CODE } elsif( $type eq 'nsarray' ) { print << "CODE"; if( settings->cocoa && settings->cocoa->$name ) - [defaultValues setObject:settings->cocoa->$name forKey:@"$options{$name}->{configfile}"]; + defaultValues[@"$options{$name}->{configfile}"] = settings->cocoa->$name; else - [defaultValues setObject:[NSArray array] forKey:@"$options{$name}->{configfile}"]; + defaultValues[@"$options{$name}->{configfile}"] = @[]; CODE } elsif( $type eq 'nsdictionary' ) { # Do nothing @@ -284,6 +286,7 @@ settings_write_config( settings_info *settings ) { NSUserDefaults *currentValues = [NSUserDefaults standardUserDefaults]; + BOOL value; CODE @@ -293,20 +296,21 @@ if( $type eq 'boolean' ) { print << "CODE"; - [currentValues setObject:[NSNumber numberWithBool:settings->$name ? YES : NO] forKey:@"$options{$name}->{configfile}"]; + value = settings->$name ? YES : NO; + [currentValues setObject:@(value) forKey:@"$options{$name}->{configfile}"]; CODE } elsif( $type eq 'string' ) { if( !defined $fileAssoc{$name} ) { print << "CODE"; if( settings->$name ) - [currentValues setObject:[NSString stringWithUTF8String:settings->$name] forKey:@"$options{$name}->{configfile}"]; + [currentValues setObject:@(settings->$name) forKey:@"$options{$name}->{configfile}"]; else [currentValues setObject:@"" forKey:@"$options{$name}->{configfile}"]; CODE } } elsif( $type eq 'numeric' ) { print << "CODE"; - [currentValues setObject:[NSNumber numberWithInt:settings->$name] forKey:@"$options{$name}->{configfile}"]; + [currentValues setObject:@(settings->$name) forKey:@"$options{$name}->{configfile}"]; CODE } elsif( $type eq 'nsarray' ) { print << "CODE"; @@ -669,8 +673,8 @@ print " roms = [NSMutableDictionary dictionaryWithObjectsAndKeys:\n"; print ' [Machine machineForType:machine_get_type("'.$machine.'")], @"machine",'."\n"; for( my $i = 0; $i <= $#{ $machineRoms{$machine} }; $i++ ) { - print ' [NSString stringWithUTF8String:settings->rom_'.$machine."_".$i.'], @"rom'.$i."\",\n"; - print ' [NSString stringWithUTF8String:settings_default.rom_'.$machine."_".$i.'], @"default_rom'.$i."\",\n"; + print ' @(settings->rom_'.$machine."_".$i.'), @"rom'.$i."\",\n"; + print ' @(settings_default.rom_'.$machine."_".$i.'), @"default_rom'.$i."\",\n"; } print " NULL];\n"; print " [machineroms addObject:roms];\n"; Modified: trunk/fuse/ui/cocoa/cocoaerror.m =================================================================== --- trunk/fuse/ui/cocoa/cocoaerror.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/ui/cocoa/cocoaerror.m 2012-11-02 12:03:41 UTC (rev 702) @@ -42,7 +42,7 @@ int aqua_verror( ui_error_level severity, const char *message ) { - NSString *alertString = [NSString stringWithUTF8String:message]; + NSString *alertString = @(message); switch( severity ) { case UI_ERROR_INFO: Modified: trunk/fuse/ui/cocoa/cocoascreenshot.m =================================================================== --- trunk/fuse/ui/cocoa/cocoascreenshot.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/ui/cocoa/cocoascreenshot.m 2012-11-02 12:03:41 UTC (rev 702) @@ -156,7 +156,7 @@ if( error ) goto freePool; NSData *data = [ bits representationUsingType:type properties:nil ]; - [ data writeToFile:[NSString stringWithUTF8String:filename] atomically:NO ]; + [ data writeToFile:@(filename) atomically:NO ]; freePool: Modified: trunk/fuse/ui/cocoa/cocoaui.m =================================================================== --- trunk/fuse/ui/cocoa/cocoaui.m 2012-11-02 10:27:50 UTC (rev 701) +++ trunk/fuse/ui/cocoa/cocoaui.m 2012-11-02 12:03:41 UTC (rev 702) @@ -112,15 +112,13 @@ ui_confirm_save_t ui_confirm_save_specific( const char *message ) { - return [[Emulator instance] - confirmSave:[NSString stringWithUTF8String:message]]; + return [[Emulator instance] confirmSave:@(message)]; } int ui_query( const char *message ) { - return [[Emulator instance] - confirm:[NSString stringWithUTF8String:message]]; + return [[Emulator instance] confirm:@(message)]; } int This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-02 10:27:56
|
Revision: 701 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=701&view=rev Author: fredm Date: 2012-11-02 10:27:50 +0000 (Fri, 02 Nov 2012) Log Message: ----------- Modernise Objective-C syntax. Modified Paths: -------------- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m trunk/FuseGenerator/LibspectrumSCRExtractor.m Modified: trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m =================================================================== --- trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2012-11-02 10:22:35 UTC (rev 700) +++ trunk/FuseGenerator/JWSpectrumScreen/JWSpectrumScreen.m 2012-11-02 10:27:50 UTC (rev 701) @@ -342,19 +342,19 @@ NSUInteger length = [zxScreen length]; if(length) { screen0 = [[[NSData alloc] initWithBytes:[zxScreen bytes] length:SCREEN_BITMAP_SIZE] autorelease]; - [dictionary setObject:screen0 forKey:@"Screen0"]; + dictionary[@"Screen0"] = screen0; if(mode == ScreenModeSinclair || mode == ScreenModeTimexHiCol) { assert((mode == ScreenModeSinclair && length == SCREEN_STANDARD_BYTES) || (mode == ScreenModeTimexHiCol && length == SCREEN_TIMEX_HI_COL_BYTES)); attributes = [[[NSData alloc] initWithBytes:[zxScreen bytes] + SCREEN_BITMAP_SIZE length:length - SCREEN_BITMAP_SIZE] autorelease]; - [dictionary setObject:attributes forKey:@"Attributes"]; + dictionary[@"Attributes"] = attributes; } else if( mode == ScreenModeTimexHiRes) { assert(length == SCREEN_TIMEX_HI_RES_BYTES); screen1 = [[[NSData alloc] initWithBytes:[zxScreen bytes] + SCREEN_BITMAP_SIZE length:SCREEN_BITMAP_SIZE] autorelease]; out255 = [[[NSData alloc] initWithBytes:[zxScreen bytes] + 2 * SCREEN_BITMAP_SIZE length:1] autorelease]; - [dictionary setObject:screen1 forKey:@"Screen1"]; - [dictionary setObject:out255 forKey:@"Out255"]; + dictionary[@"Screen1"] = screen1; + dictionary[@"Out255"] = out255; } else { // Wtf? assert(0); Modified: trunk/FuseGenerator/LibspectrumSCRExtractor.m =================================================================== --- trunk/FuseGenerator/LibspectrumSCRExtractor.m 2012-11-02 10:22:35 UTC (rev 700) +++ trunk/FuseGenerator/LibspectrumSCRExtractor.m 2012-11-02 10:27:50 UTC (rev 701) @@ -86,7 +86,7 @@ self = [super init]; fileString = [[NSFileManager defaultManager] fileSystemRepresentationWithPath:[aURL path]]; - filename = [NSString stringWithUTF8String:fileString]; + filename = @(fileString); scrData = nil; scrOptions = nil; @@ -279,8 +279,7 @@ } scrOptions = - [NSDictionary dictionaryWithObject:myValue - forKey:(NSString*)kCGImageSourceTypeIdentifierHint]; + @{(NSString*)kCGImageSourceTypeIdentifierHint: myValue}; scrData = [NSData dataWithBytes:data + data[1] + 2 length:picture_length]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-11-02 10:22:42
|
Revision: 700 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=700&view=rev Author: fredm Date: 2012-11-02 10:22:35 +0000 (Fri, 02 Nov 2012) Log Message: ----------- Convert to modern Objective-C syntax. Modified Paths: -------------- trunk/FuseImporter/LibspectrumMetadataImporter.m Modified: trunk/FuseImporter/LibspectrumMetadataImporter.m =================================================================== --- trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-10-29 12:28:20 UTC (rev 699) +++ trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-11-02 10:22:35 UTC (rev 700) @@ -37,6 +37,10 @@ #include <libspectrum.h> +static libspectrum_error +libspectrum_importer_error_function( libspectrum_error error, + const char *format, va_list ap ); + static char fsrep[MAXPATHLEN+1]; static int @@ -87,30 +91,24 @@ case 0: switch( id ) { case 0: - [machines addObject:[NSString stringWithUTF8String: - libspectrum_machine_name(LIBSPECTRUM_MACHINE_16)]]; + [machines addObject:@(libspectrum_machine_name(LIBSPECTRUM_MACHINE_16))]; return; case 1: - [machines addObject:[NSString stringWithUTF8String: - libspectrum_machine_name(LIBSPECTRUM_MACHINE_48)]]; + [machines addObject:@(libspectrum_machine_name(LIBSPECTRUM_MACHINE_48))]; return; case 2: [machines addObject:[NSString stringWithFormat:@"%s (Issue 1)", libspectrum_machine_name(LIBSPECTRUM_MACHINE_48)]]; return; case 3: - [machines addObject:[NSString stringWithUTF8String: - libspectrum_machine_name(LIBSPECTRUM_MACHINE_128)]]; + [machines addObject:@(libspectrum_machine_name(LIBSPECTRUM_MACHINE_128))]; return; case 4: - [machines addObject:[NSString stringWithUTF8String: - libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS2)]]; + [machines addObject:@(libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS2))]; return; case 5: - [machines addObject:[NSString stringWithUTF8String: - libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS2A)]]; - [machines addObject:[NSString stringWithUTF8String: - libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS3)]]; + [machines addObject:@(libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS2A))]; + [machines addObject:@(libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS3))]; return; default: [machines addObject:@"Unknown machine"]; @@ -154,7 +152,7 @@ } } -libspectrum_error +static libspectrum_error libspectrum_importer_error_function( libspectrum_error error, const char *format, va_list ap ) { @@ -190,8 +188,7 @@ return NO; } - [attributes setObject:[NSNumber numberWithInt:1] - forKey:(NSString *)kMDItemAudioChannelCount]; + attributes[(NSString *)kMDItemAudioChannelCount] = @1; block = libspectrum_tape_iterator_init( &iterator, tape ); @@ -259,44 +256,37 @@ switch( libspectrum_tape_block_ids( block, i ) ) { case 0: - [attributes setObject:[NSString stringWithCString: + attributes[(NSString *)kMDItemTitle] = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] - forKey:(NSString *)kMDItemTitle]; + encoding:NSWindowsCP1252StringEncoding]; break; case 1: info = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) encoding:NSWindowsCP1252StringEncoding]; - [attributes setObject:[info componentsSeparatedByString:@"\n"] - forKey:(NSString *)kMDItemPublishers]; + attributes[(NSString *)kMDItemPublishers] = [info componentsSeparatedByString:@"\n"]; break; case 2: info = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) encoding:NSWindowsCP1252StringEncoding]; - [attributes setObject:[info componentsSeparatedByString:@"\n"] - forKey:(NSString *)kMDItemAuthors]; + attributes[(NSString *)kMDItemAuthors] = [info componentsSeparatedByString:@"\n"]; break; case 3: - [attributes setObject:[NSNumber numberWithInt: - [[NSString stringWithCString: + attributes[(NSString *)kMDItemRecordingYear] = @([[NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] intValue]] - forKey:(NSString *)kMDItemRecordingYear]; + encoding:NSWindowsCP1252StringEncoding] intValue]); break; case 4: // We will want to translate from "English" etc. info = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) encoding:NSWindowsCP1252StringEncoding]; - [attributes setObject:[info componentsSeparatedByString:@"\n"] - forKey:(NSString *)kMDItemLanguages]; + attributes[(NSString *)kMDItemLanguages] = [info componentsSeparatedByString:@"\n"]; break; case 5: - [attributes setObject:[NSString stringWithCString: + attributes[@"net_sourceforge_projects_fuse_emulator_Category"] = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] - forKey:@"net_sourceforge_projects_fuse_emulator_Category"]; + encoding:NSWindowsCP1252StringEncoding]; break; case 6: { @@ -318,27 +308,23 @@ options:NSCaseInsensitiveSearch range:NSMakeRange(0, [priceString length])]; // Also should consider UKP from some TZX Vault info blocks? - [attributes setObject:priceString - forKey:@"net_sourceforge_projects_fuse_emulator_Price"]; + attributes[@"net_sourceforge_projects_fuse_emulator_Price"] = priceString; } break; case 7: - [attributes setObject:[NSString stringWithCString: + attributes[@"net_sourceforge_projects_fuse_emulator_Loader"] = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] - forKey:@"net_sourceforge_projects_fuse_emulator_Loader"]; + encoding:NSWindowsCP1252StringEncoding]; break; case 8: - [attributes setObject:[NSString stringWithCString: + attributes[@"net_sourceforge_projects_fuse_emulator_Origin"] = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] - forKey:@"net_sourceforge_projects_fuse_emulator_Origin"]; + encoding:NSWindowsCP1252StringEncoding]; break; case 255: - [attributes setObject:[NSString stringWithCString: + attributes[(NSString *)kMDItemComment] = [NSString stringWithCString: (const char *)libspectrum_tape_block_texts( block, i ) - encoding:NSWindowsCP1252StringEncoding] - forKey:(NSString *)kMDItemComment]; + encoding:NSWindowsCP1252StringEncoding]; break; default: NSLog(@"(Unknown string): %s", (const char *)libspectrum_tape_block_texts( block, i )); @@ -364,12 +350,10 @@ } } if( [machines count] ) { - [attributes setObject:machines - forKey:@"net_sourceforge_projects_fuse_emulator_Machines"]; + attributes[@"net_sourceforge_projects_fuse_emulator_Machines"] = machines; } if( [peripherals count] ) { - [attributes setObject:peripherals - forKey:@"net_sourceforge_projects_fuse_emulator_Peripherals"]; + attributes[@"net_sourceforge_projects_fuse_emulator_Peripherals"] = peripherals; } break; @@ -395,8 +379,7 @@ float duration = tstates_total/3500000.0; - [attributes setObject:[NSNumber numberWithFloat:duration] - forKey:(NSString *)kMDItemDurationSeconds]; + attributes[(NSString *)kMDItemDurationSeconds] = @(duration); error = libspectrum_tape_free( tape ); if( error != LIBSPECTRUM_ERROR_NONE ) { @@ -416,15 +399,10 @@ if( !libspectrum_snap_issue2(snap) && (libspectrum_snap_machine(snap) == LIBSPECTRUM_MACHINE_48 || libspectrum_snap_machine(snap) == LIBSPECTRUM_MACHINE_16) ) { - [attributes setObject:[NSArray arrayWithObject: - [NSString stringWithFormat:@"%s (Issue 1)", - libspectrum_machine_name(libspectrum_snap_machine(snap))]] - forKey:@"net_sourceforge_projects_fuse_emulator_Machines"]; + attributes[@"net_sourceforge_projects_fuse_emulator_Machines"] = @[[NSString stringWithFormat:@"%s (Issue 1)", + libspectrum_machine_name(libspectrum_snap_machine(snap))]]; } else { - [attributes setObject:[NSArray arrayWithObject: - [NSString stringWithUTF8String: - libspectrum_machine_name(libspectrum_snap_machine(snap))]] - forKey:@"net_sourceforge_projects_fuse_emulator_Machines"]; + attributes[@"net_sourceforge_projects_fuse_emulator_Machines"] = @[@(libspectrum_machine_name(libspectrum_snap_machine(snap)))]; } if( libspectrum_snap_joystick_active_count( snap ) ) { @@ -463,8 +441,7 @@ } if( [peripherals count] ) { - [attributes setObject:peripherals - forKey:@"net_sourceforge_projects_fuse_emulator_Peripherals"]; + attributes[@"net_sourceforge_projects_fuse_emulator_Peripherals"] = peripherals; } return error ? NO : YES; @@ -560,16 +537,12 @@ return NO; } - [attributes setObject:[NSNumber numberWithInt:width] - forKey:(NSString *)kMDItemPixelWidth]; - [attributes setObject:[NSNumber numberWithInt:192] - forKey:(NSString *)kMDItemPixelHeight]; - [attributes setObject:[NSNumber numberWithInt:0] - forKey:(NSString *)kMDItemOrientation]; - [attributes setObject:@"RGB" forKey:(NSString *)kMDItemColorSpace]; + attributes[(NSString *)kMDItemPixelWidth] = @(width); + attributes[(NSString *)kMDItemPixelHeight] = @192; + attributes[(NSString *)kMDItemOrientation] = @0; + attributes[(NSString *)kMDItemColorSpace] = @"RGB"; - [attributes setObject:mode - forKey:@"net_sourceforge_projects_fuse_emulator_GraphicsMode"]; + attributes[@"net_sourceforge_projects_fuse_emulator_GraphicsMode"] = mode; return YES; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:28:27
|
Revision: 699 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=699&view=rev Author: fredm Date: 2012-10-29 12:28:20 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Migrate to XCode 4.5.1 and 10.8 SDK for now. Modified Paths: -------------- trunk/FuseGenerator/FuseGenerator.xcodeproj/project.pbxproj trunk/FuseImporter/FuseImporter.xcodeproj/project.pbxproj trunk/audiofile/audiofile.xcodeproj/project.pbxproj trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj Property Changed: ---------------- trunk/FuseGenerator/FuseGenerator.xcodeproj/ trunk/FuseImporter/FuseImporter.xcodeproj/ trunk/audiofile/audiofile.xcodeproj/ trunk/fuse/fusepb/Fuse.xcodeproj/ trunk/libspectrum/libspectrum.xcodeproj/ Property changes on: trunk/FuseGenerator/FuseGenerator.xcodeproj ___________________________________________________________________ Modified: svn:ignore - *.pbxuser *.mode1v3 *.perspectivev3 + *.pbxuser *.mode1v3 *.perspectivev3 project.xcworkspace xcuserdata Modified: trunk/FuseGenerator/FuseGenerator.xcodeproj/project.pbxproj =================================================================== --- trunk/FuseGenerator/FuseGenerator.xcodeproj/project.pbxproj 2012-10-29 12:13:52 UTC (rev 698) +++ trunk/FuseGenerator/FuseGenerator.xcodeproj/project.pbxproj 2012-10-29 12:28:20 UTC (rev 699) @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -362,8 +362,11 @@ /* Begin PBXProject section */ 089C1669FE841209C02AAC07 /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0450; + }; buildConfigurationList = 2CA326220896AD4900168862 /* Build configuration list for PBXProject "FuseGenerator" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -474,9 +477,9 @@ 2CA3261F0896AD4900168862 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = NO; @@ -496,6 +499,7 @@ 2CA326200896AD4900168862 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_MODEL_TUNING = G5; GCC_PRECOMPILE_PREFIX_HEADER = NO; @@ -531,8 +535,7 @@ GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - PREBINDING = NO; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Debug; }; @@ -545,8 +548,7 @@ GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - PREBINDING = NO; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Release; }; Property changes on: trunk/FuseImporter/FuseImporter.xcodeproj ___________________________________________________________________ Modified: svn:ignore - *.mode1* *.pbxuser *.perspectivev3 + *.mode1* *.pbxuser *.perspectivev3 project.xcworkspace xcuserdata Modified: trunk/FuseImporter/FuseImporter.xcodeproj/project.pbxproj =================================================================== --- trunk/FuseImporter/FuseImporter.xcodeproj/project.pbxproj 2012-10-29 12:13:52 UTC (rev 698) +++ trunk/FuseImporter/FuseImporter.xcodeproj/project.pbxproj 2012-10-29 12:28:20 UTC (rev 699) @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -337,8 +337,11 @@ /* Begin PBXProject section */ 089C1669FE841209C02AAC07 /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0450; + }; buildConfigurationList = B6B0E30008CC65D5001D8411 /* Build configuration list for PBXProject "FuseImporter" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -451,11 +454,11 @@ B6B0E2FD08CC65D5001D8411 /* Development */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; DEBUGGING_SYMBOLS = YES; FRAMEWORK_SEARCH_PATHS = ""; GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = NO; @@ -478,7 +481,6 @@ "-lz", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; PRODUCT_NAME = FuseImporter; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( @@ -494,9 +496,9 @@ B6B0E2FE08CC65D5001D8411 /* Deployment */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = YES; FRAMEWORK_SEARCH_PATHS = ""; - GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_PRECOMPILE_PREFIX_HEADER = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; @@ -512,7 +514,6 @@ "-lz", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; PRODUCT_NAME = FuseImporter; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( @@ -528,6 +529,7 @@ B6B0E2FF08CC65D5001D8411 /* Default */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; FRAMEWORK_SEARCH_PATHS = ""; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_PRECOMPILE_PREFIX_HEADER = NO; @@ -544,7 +546,6 @@ "-lz", ); OTHER_REZFLAGS = ""; - PREBINDING = NO; PRODUCT_NAME = FuseImporter; SECTORDER_FLAGS = ""; WARNING_CFLAGS = ( @@ -563,7 +564,7 @@ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; DEBUG_INFORMATION_FORMAT = dwarf; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Development; }; @@ -574,7 +575,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; DEPLOYMENT_POSTPROCESSING = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Deployment; }; @@ -584,7 +585,7 @@ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; DEBUG_INFORMATION_FORMAT = dwarf; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Default; }; Property changes on: trunk/audiofile/audiofile.xcodeproj ___________________________________________________________________ Modified: svn:ignore - *.mode1 *.pbxuser *.perspectivev3 + *.mode1 *.pbxuser *.perspectivev3 project.xcworkspace xcuserdata Modified: trunk/audiofile/audiofile.xcodeproj/project.pbxproj =================================================================== --- trunk/audiofile/audiofile.xcodeproj/project.pbxproj 2012-10-29 12:13:52 UTC (rev 698) +++ trunk/audiofile/audiofile.xcodeproj/project.pbxproj 2012-10-29 12:28:20 UTC (rev 699) @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -302,8 +302,11 @@ /* Begin PBXProject section */ 000000000000000016601A90 /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0450; + }; buildConfigurationList = B62395470C1CF4F8003B8E87 /* Build configuration list for PBXProject "audiofile" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -405,7 +408,7 @@ FRAMEWORK_VERSION = 0.2.6; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; MACOSX_DEPLOYMENT_TARGET = 10.5; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Development; }; @@ -418,7 +421,7 @@ FRAMEWORK_VERSION = 0.2.6; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; MACOSX_DEPLOYMENT_TARGET = 10.5; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Deployment; }; @@ -431,19 +434,19 @@ FRAMEWORK_VERSION = 0.2.6; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; MACOSX_DEPLOYMENT_TARGET = 10.5; - SDKROOT = macosx10.5; + SDKROOT = macosx; }; name = Default; }; B62395BD0C1CF586003B8E87 /* Development */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1.2; FRAMEWORK_VERSION = 0.2.6; GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -465,7 +468,6 @@ ); OTHER_LIBTOOL_FLAGS = ""; OTHER_REZFLAGS = ""; - PREBINDING = NO; PRINCIPAL_CLASS = ""; PRODUCT_NAME = audiofile; SECTORDER_FLAGS = ""; @@ -478,11 +480,11 @@ B62395BE0C1CF586003B8E87 /* Deployment */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1.2; FRAMEWORK_VERSION = 0.2.6; - GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( @@ -504,7 +506,6 @@ ); OTHER_LIBTOOL_FLAGS = ""; OTHER_REZFLAGS = ""; - PREBINDING = NO; PRINCIPAL_CLASS = ""; PRODUCT_NAME = audiofile; SECTORDER_FLAGS = ""; @@ -517,6 +518,7 @@ B62395BF0C1CF586003B8E87 /* Default */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1.2; FRAMEWORK_VERSION = 0.2.6; @@ -541,7 +543,6 @@ ); OTHER_LIBTOOL_FLAGS = ""; OTHER_REZFLAGS = ""; - PREBINDING = NO; PRINCIPAL_CLASS = ""; PRODUCT_NAME = audiofile; SECTORDER_FLAGS = ""; Property changes on: trunk/fuse/fusepb/Fuse.xcodeproj ___________________________________________________________________ Modified: svn:ignore - fred.* + fred.* project.xcworkspace xcuserdata Modified: trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj =================================================================== --- trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj 2012-10-29 12:13:52 UTC (rev 698) +++ trunk/fuse/fusepb/Fuse.xcodeproj/project.pbxproj 2012-10-29 12:28:20 UTC (rev 699) @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -756,7 +756,7 @@ F5F291060396932B01730B00 /* Credits.html */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.html; path = Credits.html; sourceTree = "<group>"; }; F5F4333103903ED801E7A043 /* Fuse.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Fuse.icns; sourceTree = "<group>"; }; F5F876370399540D011FA3A4 /* FuseController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FuseController.h; path = controllers/FuseController.h; sourceTree = SOURCE_ROOT; }; - F5F876380399540D011FA3A4 /* FuseController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FuseController.m; path = controllers/FuseController.m; sourceTree = SOURCE_ROOT; }; + F5F876380399540D011FA3A4 /* FuseController.m */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 2; lastKnownFileType = sourcecode.c.objc; name = FuseController.m; path = controllers/FuseController.m; sourceTree = SOURCE_ROOT; tabWidth = 2; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -839,8 +839,10 @@ 19C28FACFE9D520D11CA2CBB /* Products */, B61F46A909121DF100C8096C /* Info-Fuse.plist */, ); + indentWidth = 2; name = Fuse; sourceTree = "<group>"; + tabWidth = 2; }; 29B97315FDCFA39411CA2CEA /* Other Sources */ = { isa = PBXGroup; @@ -1488,8 +1490,11 @@ /* Begin PBXProject section */ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; + attributes = { + LastUpgradeCheck = 0450; + }; buildConfigurationList = B63319B3086803BA00732AA3 /* Build configuration list for PBXProject "Fuse" */; - compatibilityVersion = "Xcode 3.1"; + compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( @@ -1794,6 +1799,7 @@ B61F46A609121DF100C8096C /* Development */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; FRAMEWORK_SEARCH_PATHS = ( @@ -1802,14 +1808,15 @@ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)", ); FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../../audiofile/build/Deployment\""; - GCC_DYNAMIC_NO_PIC = YES; + GCC_C_LANGUAGE_STANDARD = gnu89; + GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_ENABLE_OBJC_EXCEPTIONS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_MODEL_CPU = G3; + GCC_MODEL_CPU = ""; GCC_OPTIMIZATION_LEVEL = 0; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; HEADER_SEARCH_PATHS = ( "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)/audiofile.framework/Headers", .., @@ -1817,7 +1824,7 @@ INFOPLIST_FILE = "Info-Fuse.plist"; INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = .; - OTHER_CFLAGS_ppc = "-mmultiple -mpowerpc-gfxopt -falign-loops=16"; + OTHER_CFLAGS = ""; OTHER_LDFLAGS = ( "-lbz2", "-lz", @@ -1825,7 +1832,6 @@ PRODUCT_NAME = Fuse; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; SECTORDER_FLAGS = ""; - USE_ALTIVEC = 1; WARNING_CFLAGS = "-Wall"; WRAPPER_EXTENSION = app; YACC = /usr/bin/bison; @@ -1836,6 +1842,7 @@ B61F46A709121DF100C8096C /* Deployment */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; FRAMEWORK_SEARCH_PATHS = ( @@ -1844,13 +1851,13 @@ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)", ); FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../../audiofile/build/Deployment\""; - GCC_DYNAMIC_NO_PIC = YES; + GCC_C_LANGUAGE_STANDARD = gnu89; + GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; - GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_ENABLE_OBJC_EXCEPTIONS = NO; - GCC_MODEL_CPU = G3; GCC_OPTIMIZATION_LEVEL = 2; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; HEADER_SEARCH_PATHS = ( "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)/audiofile.framework/Headers", .., @@ -1858,12 +1865,11 @@ INFOPLIST_FILE = "Info-Fuse.plist"; INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = .; - OTHER_CFLAGS_ppc = "-mmultiple -mpowerpc-gfxopt -falign-loops=16"; + OTHER_CFLAGS = ""; OTHER_LDFLAGS = ( "-lbz2", "-lz", ); - PREBINDING = NO; PRODUCT_NAME = Fuse; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; SECTORDER_FLAGS = ""; @@ -1877,6 +1883,7 @@ B61F46A809121DF100C8096C /* Default */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; FRAMEWORK_SEARCH_PATHS = ( "$(HOME)/Library/Frameworks", @@ -1884,10 +1891,13 @@ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)", ); FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../../audiofile/build/Deployment\""; + GCC_C_LANGUAGE_STANDARD = gnu89; + GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_OBJC_EXCEPTIONS = NO; GCC_OPTIMIZATION_LEVEL = 2; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; HEADER_SEARCH_PATHS = ( "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)/audiofile.framework/Headers", .., @@ -1895,7 +1905,7 @@ INFOPLIST_FILE = "Info-Fuse.plist"; INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = .; - OTHER_CFLAGS_ppc = "-mmultiple -mpowerpc-gfxopt -falign-loops=16"; + OTHER_CFLAGS = ""; OTHER_LDFLAGS = ( "-lbz2", "-lz", @@ -1914,12 +1924,13 @@ buildSettings = { ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = dwarf; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_AUTO_VECTORIZATION = NO; + GCC_C_LANGUAGE_STANDARD = c89; GCC_DYNAMIC_NO_PIC = YES; - GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_VERSION = ""; GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO; - SDKROOT = macosx10.5; + SDKROOT = macosx; YACCFLAGS = "-d"; YACC_GENERATED_FILE_STEM = InputFileStem; ZERO_LINK = YES; @@ -1931,13 +1942,14 @@ buildSettings = { ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = dwarf; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEPLOYMENT_POSTPROCESSING = YES; GCC_AUTO_VECTORIZATION = NO; + GCC_C_LANGUAGE_STANDARD = c89; GCC_DYNAMIC_NO_PIC = YES; - GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_VERSION = ""; GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO; - SDKROOT = macosx10.5; + SDKROOT = macosx; YACCFLAGS = "-d"; YACC_GENERATED_FILE_STEM = InputFileStem; ZERO_LINK = NO; @@ -1949,12 +1961,13 @@ buildSettings = { ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = dwarf; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_AUTO_VECTORIZATION = NO; + GCC_C_LANGUAGE_STANDARD = c89; GCC_DYNAMIC_NO_PIC = YES; - GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_VERSION = ""; GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO; - SDKROOT = macosx10.5; + SDKROOT = macosx; YACCFLAGS = "-d"; YACC_GENERATED_FILE_STEM = InputFileStem; ZERO_LINK = NO; Property changes on: trunk/libspectrum/libspectrum.xcodeproj ___________________________________________________________________ Modified: svn:ignore - fred.* + fred.* project.xcworkspace xcuserdata This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:14:01
|
Revision: 698 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=698&view=rev Author: fredm Date: 2012-10-29 12:13:52 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Fix some format strings. Modified Paths: -------------- trunk/fuse/fusepb/controllers/JoystickConfigurationController.m trunk/fuse/fusepb/controllers/MemoryBrowserController.m trunk/fuse/fusepb/controllers/PokeFinderController.m Modified: trunk/fuse/fusepb/controllers/JoystickConfigurationController.m =================================================================== --- trunk/fuse/fusepb/controllers/JoystickConfigurationController.m 2012-10-29 12:12:40 UTC (rev 697) +++ trunk/fuse/fusepb/controllers/JoystickConfigurationController.m 2012-10-29 12:13:52 UTC (rev 698) @@ -215,9 +215,9 @@ } for( i=0; i<10; i++ ) { - [joyXAxis addItemWithTitle:[NSString stringWithFormat:@"%d", i]]; + [joyXAxis addItemWithTitle:[NSString stringWithFormat:@"%ld", i]]; [[joyXAxis lastItem] setTag:i]; - [joyYAxis addItemWithTitle:[NSString stringWithFormat:@"%d", i]]; + [joyYAxis addItemWithTitle:[NSString stringWithFormat:@"%ld", i]]; [[joyYAxis lastItem] setTag:i]; if( i == x_axis ) { Modified: trunk/fuse/fusepb/controllers/MemoryBrowserController.m =================================================================== --- trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-10-29 12:12:40 UTC (rev 697) +++ trunk/fuse/fusepb/controllers/MemoryBrowserController.m 2012-10-29 12:13:52 UTC (rev 698) @@ -84,7 +84,7 @@ [tableContents retain]; for( i = 0; i<= 0xfff; i++ ) { - address = [NSString stringWithFormat:@"%04X", i * 0x10]; + address = [NSString stringWithFormat:@"%04lX", i * 0x10]; hex = [NSMutableString stringWithCapacity:64]; data = [NSMutableString stringWithCapacity:20]; Modified: trunk/fuse/fusepb/controllers/PokeFinderController.m =================================================================== --- trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-10-29 12:12:40 UTC (rev 697) +++ trunk/fuse/fusepb/controllers/PokeFinderController.m 2012-10-29 12:13:52 UTC (rev 698) @@ -186,7 +186,7 @@ for( offset = 0; offset < 0x2000; offset++ ) if( !(pokefinder_impossible[page][offset/8] & 1 << (offset & 7)) ) { NSNumber *p = [NSNumber numberWithUnsignedLong:page/2]; - NSString *o = [NSString stringWithFormat:@"0x%04X", offset + 8192 * (page & 1)]; + NSString *o = [NSString stringWithFormat:@"0x%04lX", offset + 8192 * (page & 1)]; NSNumber *on = [NSNumber numberWithUnsignedLong:offset + 8192 * (page & 1)]; [tableContents addObject: [NSDictionary dictionaryWithObjectsAndKeys: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:12:48
|
Revision: 697 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=697&view=rev Author: fredm Date: 2012-10-29 12:12:40 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Update calls to deprecated load and save panel APIs. Modified Paths: -------------- trunk/fuse/fusepb/controllers/FuseController.m trunk/fuse/fusepb/controllers/LoadBinaryController.m trunk/fuse/fusepb/controllers/PreferencesController.m trunk/fuse/fusepb/controllers/SaveBinaryController.m Modified: trunk/fuse/fusepb/controllers/FuseController.m =================================================================== --- trunk/fuse/fusepb/controllers/FuseController.m 2012-10-29 12:08:37 UTC (rev 696) +++ trunk/fuse/fusepb/controllers/FuseController.m 2012-10-29 12:12:40 UTC (rev 697) @@ -1058,7 +1058,7 @@ - (IBAction)saveFileTypeClicked:(id)sender; { - [sPanel setRequiredFileType:[saveFileType titleOfSelectedItem]]; + [sPanel setAllowedFileTypes:[NSArray arrayWithObject:[saveFileType titleOfSelectedItem]]]; } - savePanelAccessoryView @@ -2484,10 +2484,11 @@ [oPanel setTitle:title]; - result = [oPanel runModalForTypes:fileTypes]; + [oPanel setAllowedFileTypes:fileTypes]; + result = [oPanel runModal]; if (result == NSOKButton) { - NSArray *filesToOpen = [oPanel filenames]; - NSString *aFile = [filesToOpen objectAtIndex:0]; + NSArray *filesToOpen = [oPanel URLs]; + NSString *aFile = [[filesToOpen objectAtIndex:0] path]; [aFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; filename = strdup ( buffer ); } @@ -2505,7 +2506,7 @@ sPanel = [NSSavePanel savePanel]; [sPanel setTitle:title]; - [sPanel setRequiredFileType:[fileTypes objectAtIndex:0]]; + [sPanel setAllowedFileTypes:[NSArray arrayWithObject:[fileTypes objectAtIndex:0]]]; [sPanel setCanSelectHiddenExtension:YES]; if( [fileTypes count] > 1 ) { @@ -2518,7 +2519,7 @@ result = [sPanel runModal]; if (result == NSOKButton) { - NSString *oFile = [sPanel filename]; + NSString *oFile = [[sPanel URL] path]; [oFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; filename = strdup ( buffer ); } Modified: trunk/fuse/fusepb/controllers/LoadBinaryController.m =================================================================== --- trunk/fuse/fusepb/controllers/LoadBinaryController.m 2012-10-29 12:08:37 UTC (rev 696) +++ trunk/fuse/fusepb/controllers/LoadBinaryController.m 2012-10-29 12:12:40 UTC (rev 697) @@ -116,13 +116,13 @@ int result; NSOpenPanel *oPanel = [NSOpenPanel openPanel]; - [oPanel setRequiredFileType:@""]; + [oPanel setAllowedFileTypes:nil]; result = [oPanel runModal]; if (result == NSOKButton) { char buffer[PATH_MAX+1]; int error; - NSString *oFile = [oPanel filename]; + NSString *oFile = [[oPanel URL] path]; utils_file new_file; Modified: trunk/fuse/fusepb/controllers/PreferencesController.m =================================================================== --- trunk/fuse/fusepb/controllers/PreferencesController.m 2012-10-29 12:08:37 UTC (rev 696) +++ trunk/fuse/fusepb/controllers/PreferencesController.m 2012-10-29 12:12:40 UTC (rev 697) @@ -190,16 +190,16 @@ switch( [sender tag] ) { case 0: /* graphic */ - [sPanel setRequiredFileType:@"pbm"]; + [sPanel setAllowedFileTypes:[NSArray arrayWithObject:@"pbm"]]; break; case 1: /* text */ - [sPanel setRequiredFileType:@"txt"]; + [sPanel setAllowedFileTypes:[NSArray arrayWithObject:@"txt"]]; break; } result = [sPanel runModal]; if (result == NSOKButton) { - NSString *oFile = [sPanel filename]; + NSString *oFile = [[sPanel URL] path]; [oFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; switch( [sender tag] ) { @@ -249,10 +249,11 @@ NSArray *romFileTypes = [NSArray arrayWithObjects:@"rom", @"ROM", nil]; NSString *romString; - result = [oPanel runModalForTypes:romFileTypes]; + [oPanel setAllowedFileTypes:romFileTypes]; + result = [oPanel runModal]; if (result == NSOKButton) { NSString *key = NULL; - NSString *oFile = [oPanel filename]; + NSString *oFile = [[oPanel URL] path]; [oFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; romString = [NSString stringWithUTF8String:buffer]; Modified: trunk/fuse/fusepb/controllers/SaveBinaryController.m =================================================================== --- trunk/fuse/fusepb/controllers/SaveBinaryController.m 2012-10-29 12:08:37 UTC (rev 696) +++ trunk/fuse/fusepb/controllers/SaveBinaryController.m 2012-10-29 12:12:40 UTC (rev 697) @@ -120,12 +120,12 @@ int result; NSSavePanel *sPanel = [NSSavePanel savePanel]; - [sPanel setRequiredFileType:@""]; + [sPanel setAllowedFileTypes:nil]; result = [sPanel runModal]; if (result == NSOKButton) { char buffer[PATH_MAX+1]; - NSString *sFile = [sPanel filename]; + NSString *sFile = [[sPanel URL] path]; [sFile getFileSystemRepresentation:buffer maxLength:PATH_MAX]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:08:43
|
Revision: 696 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=696&view=rev Author: fredm Date: 2012-10-29 12:08:37 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Remove some redundant NSString creation. Modified Paths: -------------- trunk/FuseImporter/LibspectrumMetadataImporter.m Modified: trunk/FuseImporter/LibspectrumMetadataImporter.m =================================================================== --- trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-10-29 12:07:19 UTC (rev 695) +++ trunk/FuseImporter/LibspectrumMetadataImporter.m 2012-10-29 12:08:37 UTC (rev 696) @@ -113,15 +113,15 @@ libspectrum_machine_name(LIBSPECTRUM_MACHINE_PLUS3)]]; return; default: - [machines addObject:[NSString stringWithString:@"Unknown machine"]]; + [machines addObject:@"Unknown machine"]; return; } case 3: switch( id ) { case 0: - [peripherals addObject:[NSString stringWithString:@"AY-3-8192"]]; return; + [peripherals addObject:@"AY-3-8192"]; return; default: - [peripherals addObject:[NSString stringWithString:@"Unknown sound device"]]; + [peripherals addObject:@"Unknown sound device"]; return; } case 4: @@ -147,7 +147,7 @@ libspectrum_joystick_name(LIBSPECTRUM_JOYSTICK_FULLER)]]; return; default: - [peripherals addObject:[NSString stringWithString:@"Unknown joystick"]]; + [peripherals addObject:@"Unknown joystick"]; return; } default: NSLog(@"Unknown type"); return; @@ -440,28 +440,26 @@ /* FIXME: Other connected hardware? */ if( libspectrum_snap_zxatasp_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"ZXATASP"]]; + [peripherals addObject:@"ZXATASP"]; } if( libspectrum_snap_zxcf_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"ZXCF"]]; + [peripherals addObject:@"ZXCF"]; } if( libspectrum_snap_interface1_active( snap ) ) { - [peripherals addObject: - [NSString stringWithString:@"Interface I"]]; + [peripherals addObject:@"Interface I"]; } if( libspectrum_snap_interface2_active( snap ) ) { - [peripherals addObject: - [NSString stringWithString:@"Interface II Cartridge"]]; + [peripherals addObject:@"Interface II Cartridge"]; } if( libspectrum_snap_dock_active( snap ) && libspectrum_snap_machine(snap) != LIBSPECTRUM_MACHINE_SE ) { - [peripherals addObject:[NSString stringWithString:@"Timex Dock Cartidge"]]; + [peripherals addObject:@"Timex Dock Cartidge"]; } if( libspectrum_snap_beta_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"Beta Disk"]]; + [peripherals addObject:@"Beta Disk"]; } if( libspectrum_snap_plusd_active( snap ) ) { - [peripherals addObject:[NSString stringWithString:@"+D Disk"]]; + [peripherals addObject:@"+D Disk"]; } if( [peripherals count] ) { @@ -546,15 +544,15 @@ switch( length ) { case HICOLOUR_SCR_SIZE: - mode = [NSString stringWithString:@"HiColour"]; + mode = @"HiColour"; width = 256; break; case STANDARD_SCR_SIZE: - mode = [NSString stringWithString:@"Standard"]; + mode = @"Standard"; width = 256; break; case HIRES_SCR_SIZE: - mode = [NSString stringWithString:@"HiRes"]; + mode = @"HiRes"; width = 512; break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:07:25
|
Revision: 695 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=695&view=rev Author: fredm Date: 2012-10-29 12:07:19 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Correct setter definition for name. Modified Paths: -------------- trunk/fuse/fusepb/content_arrays/CAMachines.h Modified: trunk/fuse/fusepb/content_arrays/CAMachines.h =================================================================== --- trunk/fuse/fusepb/content_arrays/CAMachines.h 2012-10-29 12:06:11 UTC (rev 694) +++ trunk/fuse/fusepb/content_arrays/CAMachines.h 2012-10-29 12:07:19 UTC (rev 695) @@ -36,7 +36,7 @@ + (id)machineWithName:(NSString *)aTitle andType:(int)aValue; + (Machine *)machineForName:(NSString *)theName; + (Machine *)machineForType:(int)theType; -@property (copy,getter=machineName,setter=setMachineName) NSString *name; +@property (copy,getter=machineName,setter=setMachineName:) NSString *name; @property (getter=machineType,setter=setMachineType:) int type; - (id)copyWithZone:(NSZone *)zone; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:06:17
|
Revision: 694 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=694&view=rev Author: fredm Date: 2012-10-29 12:06:11 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Add regenerated libspectrum.h. Modified Paths: -------------- trunk/fuse/fusepb/libspectrum.h Modified: trunk/fuse/fusepb/libspectrum.h =================================================================== --- trunk/fuse/fusepb/libspectrum.h 2012-10-29 12:03:43 UTC (rev 693) +++ trunk/fuse/fusepb/libspectrum.h 2012-10-29 12:06:11 UTC (rev 694) @@ -212,7 +212,7 @@ WIN32_DLL gchar* g_array_free( GArray *array, gboolean free_segment ); #include <TargetConditionals.h> - + #ifdef TARGET_RT_64_BIT #define GINT_TO_POINTER(i) ((gpointer) (glong)(i)) #define GPOINTER_TO_INT(p) ((gint) (glong)(p)) @@ -264,11 +264,11 @@ /* we support files compressed with bz2 */ -#define LIBSPECTRUM_SUPPORTS_BZ2_COMPRESSION (1) +#define LIBSPECTRUM_SUPPORTS_BZ2_COMPRESSION (1) /* we support files wav files */ -#define LIBSPECTRUM_SUPPORTS_AUDIOFILE (1) +#define LIBSPECTRUM_SUPPORTS_AUDIOFILE (1) /* Initialisation */ @@ -903,34 +903,6 @@ WIN32_DLL void libspectrum_snap_set_specdrum_active( libspectrum_snap *snap, int specdrum_active ); WIN32_DLL libspectrum_signed_byte libspectrum_snap_specdrum_dac( libspectrum_snap *snap ); WIN32_DLL void libspectrum_snap_set_specdrum_dac( libspectrum_snap *snap, libspectrum_signed_byte specdrum_dac ); -WIN32_DLL int libspectrum_snap_spectranet_active( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_active( libspectrum_snap *snap, int spectranet_active ); -WIN32_DLL int libspectrum_snap_spectranet_paged( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_paged( libspectrum_snap *snap, int spectranet_paged ); -WIN32_DLL int libspectrum_snap_spectranet_paged_via_io( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_paged_via_io( libspectrum_snap *snap, int spectranet_paged_via_io ); -WIN32_DLL int libspectrum_snap_spectranet_programmable_trap_active( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_programmable_trap_active( libspectrum_snap *snap, int spectranet_programmable_trap_active ); -WIN32_DLL int libspectrum_snap_spectranet_programmable_trap_msb( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_programmable_trap_msb( libspectrum_snap *snap, int spectranet_programmable_trap_msb ); -WIN32_DLL int libspectrum_snap_spectranet_all_traps_disabled( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_all_traps_disabled( libspectrum_snap *snap, int spectranet_all_traps_disabled ); -WIN32_DLL int libspectrum_snap_spectranet_rst8_trap_disabled( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_rst8_trap_disabled( libspectrum_snap *snap, int spectranet_rst8_trap_disabled ); -WIN32_DLL int libspectrum_snap_spectranet_deny_downstream_a15( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_deny_downstream_a15( libspectrum_snap *snap, int spectranet_deny_downstream_a15 ); -WIN32_DLL int libspectrum_snap_spectranet_page_a( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_page_a( libspectrum_snap *snap, int spectranet_page_a ); -WIN32_DLL int libspectrum_snap_spectranet_page_b( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_page_b( libspectrum_snap *snap, int spectranet_page_b ); -WIN32_DLL libspectrum_word libspectrum_snap_spectranet_programmable_trap( libspectrum_snap *snap ); -WIN32_DLL void libspectrum_snap_set_spectranet_programmable_trap( libspectrum_snap *snap, libspectrum_word spectranet_programmable_trap ); -WIN32_DLL libspectrum_byte * libspectrum_snap_spectranet_w5100( libspectrum_snap *snap, int idx ); -WIN32_DLL void libspectrum_snap_set_spectranet_w5100( libspectrum_snap *snap, int idx, libspectrum_byte* spectranet_w5100 ); -WIN32_DLL libspectrum_byte * libspectrum_snap_spectranet_flash( libspectrum_snap *snap, int idx ); -WIN32_DLL void libspectrum_snap_set_spectranet_flash( libspectrum_snap *snap, int idx, libspectrum_byte* spectranet_flash ); -WIN32_DLL libspectrum_byte * libspectrum_snap_spectranet_ram( libspectrum_snap *snap, int idx ); -WIN32_DLL void libspectrum_snap_set_spectranet_ram( libspectrum_snap *snap, int idx, libspectrum_byte* spectranet_ram ); /* * Tape handling routines This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:03:54
|
Revision: 693 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=693&view=rev Author: fredm Date: 2012-10-29 12:03:43 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Remove some redundant comparisons. Modified Paths: -------------- trunk/fuse/fusepb/keystate.c Modified: trunk/fuse/fusepb/keystate.c =================================================================== --- trunk/fuse/fusepb/keystate.c 2012-10-29 12:02:52 UTC (rev 692) +++ trunk/fuse/fusepb/keystate.c 2012-10-29 12:03:43 UTC (rev 693) @@ -151,8 +151,7 @@ void process_keyevent( enum events event, input_key keysym ) { - if(((event >=0) && (event < MAX_EVENTS)) && - ((current_state >= 0) && (current_state < MAX_STATES))) { + if(event < MAX_EVENTS && current_state < MAX_STATES) { state_table[current_state][event]( keysym ); /* call the action procedure */ } else { /* invalid event/state - shouldn't happen, just ignore for now */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:03:03
|
Revision: 692 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=692&view=rev Author: fredm Date: 2012-10-29 12:02:52 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Add defines for libbz2 and audiofile to config.h for proper support when building libspectrum files. Modified Paths: -------------- trunk/fuse/fusepb/config.h Modified: trunk/fuse/fusepb/config.h =================================================================== --- trunk/fuse/fusepb/config.h 2012-10-29 12:01:33 UTC (rev 691) +++ trunk/fuse/fusepb/config.h 2012-10-29 12:02:52 UTC (rev 692) @@ -31,6 +31,12 @@ /* Define to 1 if you have the <libspectrum.h> header file. */ #define HAVE_LIBSPECTRUM_H 1 +/* Define to 1 if you have the `bz2' library (-lbz2). */ +#define HAVE_LIBBZ2 1 + +/* Defined if we've got audiofile */ +#define HAVE_LIB_AUDIOFILE 1 + /* Defined if we've got glib */ /* #undef HAVE_LIB_GLIB */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-29 12:01:43
|
Revision: 691 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=691&view=rev Author: fredm Date: 2012-10-29 12:01:33 +0000 (Mon, 29 Oct 2012) Log Message: ----------- Bring the libspectrum.h generator scripts up to date. Modified Paths: -------------- trunk/FuseGenerator/generate.pl trunk/FuseImporter/generate.pl trunk/fuse/fusepb/generate.pl trunk/libspectrum/generate.pl Modified: trunk/FuseGenerator/generate.pl =================================================================== --- trunk/FuseGenerator/generate.pl 2012-10-07 11:05:44 UTC (rev 690) +++ trunk/FuseGenerator/generate.pl 2012-10-29 12:01:33 UTC (rev 691) @@ -25,11 +25,12 @@ #define TRUE (!FALSE) #endif -typedef char gchar; +typedef char gchar; typedef int gint; typedef long glong; typedef gint gboolean; typedef unsigned int guint; +typedef unsigned long gulong; typedef const void * gconstpointer; typedef void * gpointer; @@ -47,80 +48,89 @@ gconstpointer b); -GSList WIN32_DLL *g_slist_insert_sorted (GSList *list, +WIN32_DLL GSList *g_slist_insert_sorted (GSList *list, gpointer data, GCompareFunc func); -GSList WIN32_DLL *g_slist_insert (GSList *list, +WIN32_DLL GSList *g_slist_insert (GSList *list, gpointer data, gint position); -GSList WIN32_DLL *g_slist_append (GSList *list, +WIN32_DLL GSList *g_slist_append (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_prepend (GSList *list, +WIN32_DLL GSList *g_slist_prepend (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_remove (GSList *list, +WIN32_DLL GSList *g_slist_remove (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_delete_link (GSList *list, +WIN32_DLL GSList *g_slist_last (GSList *list); + +WIN32_DLL GSList *g_slist_reverse (GSList *list); + +WIN32_DLL GSList *g_slist_delete_link (GSList *list, GSList *link); -guint WIN32_DLL g_slist_length (GSList *list); +WIN32_DLL guint g_slist_length (GSList *list); -void WIN32_DLL g_slist_foreach (GSList *list, +WIN32_DLL void g_slist_foreach (GSList *list, GFunc func, gpointer user_data); -void WIN32_DLL g_slist_free (GSList *list); +WIN32_DLL void g_slist_free (GSList *list); -GSList WIN32_DLL *g_slist_last (GSList *list); - -GSList WIN32_DLL *g_slist_reverse (GSList *list); - -GSList WIN32_DLL *g_slist_nth (GSList *list, +WIN32_DLL GSList *g_slist_nth (GSList *list, guint n); -GSList WIN32_DLL * g_slist_find_custom (GSList *list, +WIN32_DLL GSList *g_slist_find_custom (GSList *list, gpointer data, GCompareFunc func ); -gint WIN32_DLL g_slist_position (GSList *list, +WIN32_DLL gint g_slist_position (GSList *list, GSList *llink); typedef struct _GHashTable GHashTable; typedef guint (*GHashFunc) (gconstpointer key); +typedef void (*GHFunc) (gpointer key, + gpointer value, + gpointer user_data); + typedef gboolean (*GHRFunc) (gpointer key, gpointer value, gpointer user_data); -gint WIN32_DLL g_int_equal (gconstpointer v, +WIN32_DLL gint g_int_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_int_hash (gconstpointer v); -gint WIN32_DLL g_str_equal (gconstpointer v, +WIN32_DLL guint g_int_hash (gconstpointer v); + +WIN32_DLL gint g_str_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_str_hash (gconstpointer v); +WIN32_DLL guint g_str_hash (gconstpointer v); -GHashTable WIN32_DLL *g_hash_table_new (GHashFunc hash_func, +WIN32_DLL GHashTable *g_hash_table_new (GHashFunc hash_func, GCompareFunc key_compare_func); -void WIN32_DLL g_hash_table_destroy (GHashTable *hash_table); +WIN32_DLL void g_hash_table_destroy (GHashTable *hash_table); -void WIN32_DLL g_hash_table_insert (GHashTable *hash_table, +WIN32_DLL void g_hash_table_insert (GHashTable *hash_table, gpointer key, gpointer value); -gpointer WIN32_DLL g_hash_table_lookup (GHashTable *hash_table, +WIN32_DLL gpointer g_hash_table_lookup (GHashTable *hash_table, gconstpointer key); -guint WIN32_DLL g_hash_table_foreach_remove (GHashTable *hash_table, +WIN32_DLL void g_hash_table_foreach (GHashTable *hash_table, + GHFunc func, + gpointer user_data); + +WIN32_DLL guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -guint WIN32_DLL g_hash_table_size (GHashTable *hash_table); +WIN32_DLL guint g_hash_table_size (GHashTable *hash_table); typedef struct _GArray GArray; @@ -134,21 +144,24 @@ size_t allocated; }; -GArray* WIN32_DLL g_array_new( gboolean zero_terminated, gboolean clear, - guint element_size ); +WIN32_DLL GArray* g_array_new( gboolean zero_terminated, gboolean clear, + guint element_size ); #define g_array_append_val(a,v) g_array_append_vals( a, &(v), 1 ); -GArray* WIN32_DLL g_array_append_vals( GArray *array, gconstpointer data, guint len ); +WIN32_DLL GArray* g_array_append_vals( GArray *array, gconstpointer data, guint len ); #define g_array_index(a,t,i) (*(((t*)a->data)+i)) -GArray* WIN32_DLL g_array_set_size( GArray *array, guint length ); +WIN32_DLL GArray* g_array_set_size( GArray *array, guint length ); +WIN32_DLL gchar* g_array_free( GArray *array, gboolean free_segment ); #include <TargetConditionals.h> - + #ifdef TARGET_RT_64_BIT #define GINT_TO_POINTER(i) ((gpointer) (glong)(i)) #define GPOINTER_TO_INT(p) ((gint) (glong)(p)) +#define GPOINTER_TO_UINT(p) ((guint) (gulong)(p)) #else #define GINT_TO_POINTER(i) ((gpointer) (i)) #define GPOINTER_TO_INT(p) ((gint) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (p)) #endif CODE } @@ -177,18 +190,18 @@ WIN32_DLL libspectrum_error libspectrum_zlib_inflate( const libspectrum_byte *gzptr, size_t gzlength, - libspectrum_byte **outptr, size_t *outlength ); + libspectrum_byte **outptr, size_t *outlength ); WIN32_DLL libspectrum_error libspectrum_zlib_compress( const libspectrum_byte *data, size_t length, - libspectrum_byte **gzptr, size_t *gzlength ); + libspectrum_byte **gzptr, size_t *gzlength ); CODE } if( /LIBSPECTRUM_SNAP_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; $_ = ''; while( <DATAFILE> ) { @@ -199,23 +212,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap, int idx ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); CODE } else { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); CODE } @@ -224,7 +237,7 @@ if( /LIBSPECTRUM_TAPE_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/tape_accessors.txt': $!"; $_ = ''; @@ -241,23 +254,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block, size_t idx ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); CODE } else { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); CODE } Modified: trunk/FuseImporter/generate.pl =================================================================== --- trunk/FuseImporter/generate.pl 2012-10-07 11:05:44 UTC (rev 690) +++ trunk/FuseImporter/generate.pl 2012-10-29 12:01:33 UTC (rev 691) @@ -25,11 +25,12 @@ #define TRUE (!FALSE) #endif -typedef char gchar; +typedef char gchar; typedef int gint; typedef long glong; typedef gint gboolean; typedef unsigned int guint; +typedef unsigned long gulong; typedef const void * gconstpointer; typedef void * gpointer; @@ -47,80 +48,89 @@ gconstpointer b); -GSList WIN32_DLL *g_slist_insert_sorted (GSList *list, +WIN32_DLL GSList *g_slist_insert_sorted (GSList *list, gpointer data, GCompareFunc func); -GSList WIN32_DLL *g_slist_insert (GSList *list, +WIN32_DLL GSList *g_slist_insert (GSList *list, gpointer data, gint position); -GSList WIN32_DLL *g_slist_append (GSList *list, +WIN32_DLL GSList *g_slist_append (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_prepend (GSList *list, +WIN32_DLL GSList *g_slist_prepend (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_remove (GSList *list, +WIN32_DLL GSList *g_slist_remove (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_delete_link (GSList *list, +WIN32_DLL GSList *g_slist_last (GSList *list); + +WIN32_DLL GSList *g_slist_reverse (GSList *list); + +WIN32_DLL GSList *g_slist_delete_link (GSList *list, GSList *link); -guint WIN32_DLL g_slist_length (GSList *list); +WIN32_DLL guint g_slist_length (GSList *list); -void WIN32_DLL g_slist_foreach (GSList *list, +WIN32_DLL void g_slist_foreach (GSList *list, GFunc func, gpointer user_data); -void WIN32_DLL g_slist_free (GSList *list); +WIN32_DLL void g_slist_free (GSList *list); -GSList WIN32_DLL *g_slist_last (GSList *list); - -GSList WIN32_DLL *g_slist_reverse (GSList *list); - -GSList WIN32_DLL *g_slist_nth (GSList *list, +WIN32_DLL GSList *g_slist_nth (GSList *list, guint n); -GSList WIN32_DLL * g_slist_find_custom (GSList *list, +WIN32_DLL GSList *g_slist_find_custom (GSList *list, gpointer data, GCompareFunc func ); -gint WIN32_DLL g_slist_position (GSList *list, +WIN32_DLL gint g_slist_position (GSList *list, GSList *llink); typedef struct _GHashTable GHashTable; typedef guint (*GHashFunc) (gconstpointer key); +typedef void (*GHFunc) (gpointer key, + gpointer value, + gpointer user_data); + typedef gboolean (*GHRFunc) (gpointer key, gpointer value, gpointer user_data); -gint WIN32_DLL g_int_equal (gconstpointer v, +WIN32_DLL gint g_int_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_int_hash (gconstpointer v); -gint WIN32_DLL g_str_equal (gconstpointer v, +WIN32_DLL guint g_int_hash (gconstpointer v); + +WIN32_DLL gint g_str_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_str_hash (gconstpointer v); +WIN32_DLL guint g_str_hash (gconstpointer v); -GHashTable WIN32_DLL *g_hash_table_new (GHashFunc hash_func, +WIN32_DLL GHashTable *g_hash_table_new (GHashFunc hash_func, GCompareFunc key_compare_func); -void WIN32_DLL g_hash_table_destroy (GHashTable *hash_table); +WIN32_DLL void g_hash_table_destroy (GHashTable *hash_table); -void WIN32_DLL g_hash_table_insert (GHashTable *hash_table, +WIN32_DLL void g_hash_table_insert (GHashTable *hash_table, gpointer key, gpointer value); -gpointer WIN32_DLL g_hash_table_lookup (GHashTable *hash_table, +WIN32_DLL gpointer g_hash_table_lookup (GHashTable *hash_table, gconstpointer key); -guint WIN32_DLL g_hash_table_foreach_remove (GHashTable *hash_table, +WIN32_DLL void g_hash_table_foreach (GHashTable *hash_table, + GHFunc func, + gpointer user_data); + +WIN32_DLL guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -guint WIN32_DLL g_hash_table_size (GHashTable *hash_table); +WIN32_DLL guint g_hash_table_size (GHashTable *hash_table); typedef struct _GArray GArray; @@ -134,21 +144,24 @@ size_t allocated; }; -GArray* WIN32_DLL g_array_new( gboolean zero_terminated, gboolean clear, - guint element_size ); +WIN32_DLL GArray* g_array_new( gboolean zero_terminated, gboolean clear, + guint element_size ); #define g_array_append_val(a,v) g_array_append_vals( a, &(v), 1 ); -GArray* WIN32_DLL g_array_append_vals( GArray *array, gconstpointer data, guint len ); +WIN32_DLL GArray* g_array_append_vals( GArray *array, gconstpointer data, guint len ); #define g_array_index(a,t,i) (*(((t*)a->data)+i)) -GArray* WIN32_DLL g_array_set_size( GArray *array, guint length ); +WIN32_DLL GArray* g_array_set_size( GArray *array, guint length ); +WIN32_DLL gchar* g_array_free( GArray *array, gboolean free_segment ); #include <TargetConditionals.h> - + #ifdef TARGET_RT_64_BIT #define GINT_TO_POINTER(i) ((gpointer) (glong)(i)) #define GPOINTER_TO_INT(p) ((gint) (glong)(p)) +#define GPOINTER_TO_UINT(p) ((guint) (gulong)(p)) #else #define GINT_TO_POINTER(i) ((gpointer) (i)) #define GPOINTER_TO_INT(p) ((gint) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (p)) #endif CODE } @@ -177,18 +190,18 @@ WIN32_DLL libspectrum_error libspectrum_zlib_inflate( const libspectrum_byte *gzptr, size_t gzlength, - libspectrum_byte **outptr, size_t *outlength ); + libspectrum_byte **outptr, size_t *outlength ); WIN32_DLL libspectrum_error libspectrum_zlib_compress( const libspectrum_byte *data, size_t length, - libspectrum_byte **gzptr, size_t *gzlength ); + libspectrum_byte **gzptr, size_t *gzlength ); CODE } if( /LIBSPECTRUM_SNAP_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; $_ = ''; while( <DATAFILE> ) { @@ -199,23 +212,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap, int idx ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); CODE } else { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); CODE } @@ -224,7 +237,7 @@ if( /LIBSPECTRUM_TAPE_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/tape_accessors.txt': $!"; $_ = ''; @@ -241,23 +254,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block, size_t idx ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); CODE } else { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); CODE } Modified: trunk/fuse/fusepb/generate.pl =================================================================== --- trunk/fuse/fusepb/generate.pl 2012-10-07 11:05:44 UTC (rev 690) +++ trunk/fuse/fusepb/generate.pl 2012-10-29 12:01:33 UTC (rev 691) @@ -25,11 +25,12 @@ #define TRUE (!FALSE) #endif -typedef char gchar; +typedef char gchar; typedef int gint; typedef long glong; typedef gint gboolean; typedef unsigned int guint; +typedef unsigned long gulong; typedef const void * gconstpointer; typedef void * gpointer; @@ -47,80 +48,89 @@ gconstpointer b); -GSList WIN32_DLL *g_slist_insert_sorted (GSList *list, +WIN32_DLL GSList *g_slist_insert_sorted (GSList *list, gpointer data, GCompareFunc func); -GSList WIN32_DLL *g_slist_insert (GSList *list, +WIN32_DLL GSList *g_slist_insert (GSList *list, gpointer data, gint position); -GSList WIN32_DLL *g_slist_append (GSList *list, +WIN32_DLL GSList *g_slist_append (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_prepend (GSList *list, +WIN32_DLL GSList *g_slist_prepend (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_remove (GSList *list, +WIN32_DLL GSList *g_slist_remove (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_delete_link (GSList *list, +WIN32_DLL GSList *g_slist_last (GSList *list); + +WIN32_DLL GSList *g_slist_reverse (GSList *list); + +WIN32_DLL GSList *g_slist_delete_link (GSList *list, GSList *link); -guint WIN32_DLL g_slist_length (GSList *list); +WIN32_DLL guint g_slist_length (GSList *list); -void WIN32_DLL g_slist_foreach (GSList *list, +WIN32_DLL void g_slist_foreach (GSList *list, GFunc func, gpointer user_data); -void WIN32_DLL g_slist_free (GSList *list); +WIN32_DLL void g_slist_free (GSList *list); -GSList WIN32_DLL *g_slist_last (GSList *list); - -GSList WIN32_DLL *g_slist_reverse (GSList *list); - -GSList WIN32_DLL *g_slist_nth (GSList *list, +WIN32_DLL GSList *g_slist_nth (GSList *list, guint n); -GSList WIN32_DLL * g_slist_find_custom (GSList *list, +WIN32_DLL GSList *g_slist_find_custom (GSList *list, gpointer data, GCompareFunc func ); -gint WIN32_DLL g_slist_position (GSList *list, +WIN32_DLL gint g_slist_position (GSList *list, GSList *llink); typedef struct _GHashTable GHashTable; typedef guint (*GHashFunc) (gconstpointer key); +typedef void (*GHFunc) (gpointer key, + gpointer value, + gpointer user_data); + typedef gboolean (*GHRFunc) (gpointer key, gpointer value, gpointer user_data); -gint WIN32_DLL g_int_equal (gconstpointer v, +WIN32_DLL gint g_int_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_int_hash (gconstpointer v); -gint WIN32_DLL g_str_equal (gconstpointer v, +WIN32_DLL guint g_int_hash (gconstpointer v); + +WIN32_DLL gint g_str_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_str_hash (gconstpointer v); +WIN32_DLL guint g_str_hash (gconstpointer v); -GHashTable WIN32_DLL *g_hash_table_new (GHashFunc hash_func, +WIN32_DLL GHashTable *g_hash_table_new (GHashFunc hash_func, GCompareFunc key_compare_func); -void WIN32_DLL g_hash_table_destroy (GHashTable *hash_table); +WIN32_DLL void g_hash_table_destroy (GHashTable *hash_table); -void WIN32_DLL g_hash_table_insert (GHashTable *hash_table, +WIN32_DLL void g_hash_table_insert (GHashTable *hash_table, gpointer key, gpointer value); -gpointer WIN32_DLL g_hash_table_lookup (GHashTable *hash_table, +WIN32_DLL gpointer g_hash_table_lookup (GHashTable *hash_table, gconstpointer key); -guint WIN32_DLL g_hash_table_foreach_remove (GHashTable *hash_table, +WIN32_DLL void g_hash_table_foreach (GHashTable *hash_table, + GHFunc func, + gpointer user_data); + +WIN32_DLL guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -guint WIN32_DLL g_hash_table_size (GHashTable *hash_table); +WIN32_DLL guint g_hash_table_size (GHashTable *hash_table); typedef struct _GArray GArray; @@ -134,21 +144,24 @@ size_t allocated; }; -GArray* WIN32_DLL g_array_new( gboolean zero_terminated, gboolean clear, - guint element_size ); +WIN32_DLL GArray* g_array_new( gboolean zero_terminated, gboolean clear, + guint element_size ); #define g_array_append_val(a,v) g_array_append_vals( a, &(v), 1 ); -GArray* WIN32_DLL g_array_append_vals( GArray *array, gconstpointer data, guint len ); +WIN32_DLL GArray* g_array_append_vals( GArray *array, gconstpointer data, guint len ); #define g_array_index(a,t,i) (*(((t*)a->data)+i)) -GArray* WIN32_DLL g_array_set_size( GArray *array, guint length ); +WIN32_DLL GArray* g_array_set_size( GArray *array, guint length ); +WIN32_DLL gchar* g_array_free( GArray *array, gboolean free_segment ); #include <TargetConditionals.h> - + #ifdef TARGET_RT_64_BIT #define GINT_TO_POINTER(i) ((gpointer) (glong)(i)) #define GPOINTER_TO_INT(p) ((gint) (glong)(p)) +#define GPOINTER_TO_UINT(p) ((guint) (gulong)(p)) #else #define GINT_TO_POINTER(i) ((gpointer) (i)) #define GPOINTER_TO_INT(p) ((gint) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (p)) #endif CODE } @@ -177,18 +190,26 @@ WIN32_DLL libspectrum_error libspectrum_zlib_inflate( const libspectrum_byte *gzptr, size_t gzlength, - libspectrum_byte **outptr, size_t *outlength ); + libspectrum_byte **outptr, size_t *outlength ); WIN32_DLL libspectrum_error libspectrum_zlib_compress( const libspectrum_byte *data, size_t length, - libspectrum_byte **gzptr, size_t *gzlength ); + libspectrum_byte **gzptr, size_t *gzlength ); + +/* we support files compressed with bz2 */ +#define LIBSPECTRUM_SUPPORTS_BZ2_COMPRESSION (1) + + +/* we support files wav files */ +#define LIBSPECTRUM_SUPPORTS_AUDIOFILE (1) + CODE } if( /LIBSPECTRUM_SNAP_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; $_ = ''; while( <DATAFILE> ) { @@ -199,23 +220,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap, int idx ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); CODE } else { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); CODE } @@ -224,7 +245,7 @@ if( /LIBSPECTRUM_TAPE_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/tape_accessors.txt': $!"; $_ = ''; @@ -241,23 +262,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block, size_t idx ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); CODE } else { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); CODE } Modified: trunk/libspectrum/generate.pl =================================================================== --- trunk/libspectrum/generate.pl 2012-10-07 11:05:44 UTC (rev 690) +++ trunk/libspectrum/generate.pl 2012-10-29 12:01:33 UTC (rev 691) @@ -25,11 +25,12 @@ #define TRUE (!FALSE) #endif -typedef char gchar; +typedef char gchar; typedef int gint; typedef long glong; typedef gint gboolean; typedef unsigned int guint; +typedef unsigned long gulong; typedef const void * gconstpointer; typedef void * gpointer; @@ -47,80 +48,89 @@ gconstpointer b); -GSList WIN32_DLL *g_slist_insert_sorted (GSList *list, +WIN32_DLL GSList *g_slist_insert_sorted (GSList *list, gpointer data, GCompareFunc func); -GSList WIN32_DLL *g_slist_insert (GSList *list, +WIN32_DLL GSList *g_slist_insert (GSList *list, gpointer data, gint position); -GSList WIN32_DLL *g_slist_append (GSList *list, +WIN32_DLL GSList *g_slist_append (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_prepend (GSList *list, +WIN32_DLL GSList *g_slist_prepend (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_remove (GSList *list, +WIN32_DLL GSList *g_slist_remove (GSList *list, gpointer data); -GSList WIN32_DLL *g_slist_delete_link (GSList *list, +WIN32_DLL GSList *g_slist_last (GSList *list); + +WIN32_DLL GSList *g_slist_reverse (GSList *list); + +WIN32_DLL GSList *g_slist_delete_link (GSList *list, GSList *link); -guint WIN32_DLL g_slist_length (GSList *list); +WIN32_DLL guint g_slist_length (GSList *list); -void WIN32_DLL g_slist_foreach (GSList *list, +WIN32_DLL void g_slist_foreach (GSList *list, GFunc func, gpointer user_data); -void WIN32_DLL g_slist_free (GSList *list); +WIN32_DLL void g_slist_free (GSList *list); -GSList WIN32_DLL *g_slist_last (GSList *list); - -GSList WIN32_DLL *g_slist_reverse (GSList *list); - -GSList WIN32_DLL *g_slist_nth (GSList *list, +WIN32_DLL GSList *g_slist_nth (GSList *list, guint n); -GSList WIN32_DLL * g_slist_find_custom (GSList *list, +WIN32_DLL GSList *g_slist_find_custom (GSList *list, gpointer data, GCompareFunc func ); -gint WIN32_DLL g_slist_position (GSList *list, +WIN32_DLL gint g_slist_position (GSList *list, GSList *llink); typedef struct _GHashTable GHashTable; typedef guint (*GHashFunc) (gconstpointer key); +typedef void (*GHFunc) (gpointer key, + gpointer value, + gpointer user_data); + typedef gboolean (*GHRFunc) (gpointer key, gpointer value, gpointer user_data); -gint WIN32_DLL g_int_equal (gconstpointer v, +WIN32_DLL gint g_int_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_int_hash (gconstpointer v); -gint WIN32_DLL g_str_equal (gconstpointer v, +WIN32_DLL guint g_int_hash (gconstpointer v); + +WIN32_DLL gint g_str_equal (gconstpointer v, gconstpointer v2); -guint WIN32_DLL g_str_hash (gconstpointer v); +WIN32_DLL guint g_str_hash (gconstpointer v); -GHashTable WIN32_DLL *g_hash_table_new (GHashFunc hash_func, +WIN32_DLL GHashTable *g_hash_table_new (GHashFunc hash_func, GCompareFunc key_compare_func); -void WIN32_DLL g_hash_table_destroy (GHashTable *hash_table); +WIN32_DLL void g_hash_table_destroy (GHashTable *hash_table); -void WIN32_DLL g_hash_table_insert (GHashTable *hash_table, +WIN32_DLL void g_hash_table_insert (GHashTable *hash_table, gpointer key, gpointer value); -gpointer WIN32_DLL g_hash_table_lookup (GHashTable *hash_table, +WIN32_DLL gpointer g_hash_table_lookup (GHashTable *hash_table, gconstpointer key); -guint WIN32_DLL g_hash_table_foreach_remove (GHashTable *hash_table, +WIN32_DLL void g_hash_table_foreach (GHashTable *hash_table, + GHFunc func, + gpointer user_data); + +WIN32_DLL guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -guint WIN32_DLL g_hash_table_size (GHashTable *hash_table); +WIN32_DLL guint g_hash_table_size (GHashTable *hash_table); typedef struct _GArray GArray; @@ -134,21 +144,24 @@ size_t allocated; }; -GArray* WIN32_DLL g_array_new( gboolean zero_terminated, gboolean clear, - guint element_size ); +WIN32_DLL GArray* g_array_new( gboolean zero_terminated, gboolean clear, + guint element_size ); #define g_array_append_val(a,v) g_array_append_vals( a, &(v), 1 ); -GArray* WIN32_DLL g_array_append_vals( GArray *array, gconstpointer data, guint len ); +WIN32_DLL GArray* g_array_append_vals( GArray *array, gconstpointer data, guint len ); #define g_array_index(a,t,i) (*(((t*)a->data)+i)) -GArray* WIN32_DLL g_array_set_size( GArray *array, guint length ); +WIN32_DLL GArray* g_array_set_size( GArray *array, guint length ); +WIN32_DLL gchar* g_array_free( GArray *array, gboolean free_segment ); #include <TargetConditionals.h> - + #ifdef TARGET_RT_64_BIT #define GINT_TO_POINTER(i) ((gpointer) (glong)(i)) #define GPOINTER_TO_INT(p) ((gint) (glong)(p)) +#define GPOINTER_TO_UINT(p) ((guint) (gulong)(p)) #else #define GINT_TO_POINTER(i) ((gpointer) (i)) #define GPOINTER_TO_INT(p) ((gint) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (p)) #endif CODE } @@ -161,7 +174,8 @@ if( /LIBSPECTRUM_SIGNATURE_PARAMETERS/ ) { - $_ = "/* Signature parameters not stored as libgcrypt is not present */\n"; + $_ = "/* Signature parameters not stored as libgcrypt is not present */ +"; } @@ -176,18 +190,26 @@ WIN32_DLL libspectrum_error libspectrum_zlib_inflate( const libspectrum_byte *gzptr, size_t gzlength, - libspectrum_byte **outptr, size_t *outlength ); + libspectrum_byte **outptr, size_t *outlength ); WIN32_DLL libspectrum_error libspectrum_zlib_compress( const libspectrum_byte *data, size_t length, - libspectrum_byte **gzptr, size_t *gzlength ); + libspectrum_byte **gzptr, size_t *gzlength ); + +/* we support files compressed with bz2 */ +#define LIBSPECTRUM_SUPPORTS_BZ2_COMPRESSION (1) + + +/* we support files wav files */ +#define LIBSPECTRUM_SUPPORTS_AUDIOFILE (1) + CODE } if( /LIBSPECTRUM_SNAP_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/snap_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/snap_accessors.txt': $!"; $_ = ''; while( <DATAFILE> ) { @@ -198,23 +220,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap, int idx ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, int idx, $type $name ); CODE } else { print << "CODE"; $return_type libspectrum_snap_$name( libspectrum_snap *snap ); -void WIN32_DLL libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); +WIN32_DLL void libspectrum_snap_set_$name( libspectrum_snap *snap, $type $name ); CODE } @@ -223,7 +245,7 @@ if( /LIBSPECTRUM_TAPE_ACCESSORS/ ) { - open( DATAFILE, "< $ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) + open( DATAFILE, '<' . "$ENV{SRCROOT}/libspectrum/tape_accessors.txt" ) or die "Couldn't open `$ENV{SRCROOT}/libspectrum/tape_accessors.txt': $!"; $_ = ''; @@ -240,23 +262,23 @@ my $return_type; if( $type =~ /^(.*)\*/ ) { - $return_type = "$1 WIN32_DLL *"; + $return_type = "WIN32_DLL $1 *"; } else { - $return_type = "$type WIN32_DLL"; + $return_type = "WIN32_DLL $type"; } if( $indexed ) { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block, size_t idx ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type \*$name ); CODE } else { print << "CODE"; $return_type libspectrum_tape_block_$name( libspectrum_tape_block *block ); -libspectrum_error WIN32_DLL libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); +WIN32_DLL libspectrum_error libspectrum_tape_block_set_$name( libspectrum_tape_block *block, $type $name ); CODE } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-10-07 11:05:51
|
Revision: 690 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=690&view=rev Author: fredm Date: 2012-10-07 11:05:44 +0000 (Sun, 07 Oct 2012) Log Message: ----------- Remove OK button, enable close control and prevent selection of memory browser entries. Modified Paths: -------------- trunk/fuse/fusepb/xibs/MemoryBrowser.xib Modified: trunk/fuse/fusepb/xibs/MemoryBrowser.xib =================================================================== --- trunk/fuse/fusepb/xibs/MemoryBrowser.xib 2012-06-19 13:23:03 UTC (rev 689) +++ trunk/fuse/fusepb/xibs/MemoryBrowser.xib 2012-10-07 11:05:44 UTC (rev 690) @@ -2,21 +2,32 @@ <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00"> <data> <int key="IBDocument.SystemTarget">1060</int> - <string key="IBDocument.SystemVersion">10A432</string> - <string key="IBDocument.InterfaceBuilderVersion">732</string> - <string key="IBDocument.AppKitVersion">1038</string> - <string key="IBDocument.HIToolboxVersion">437.00</string> + <string key="IBDocument.SystemVersion">12C54</string> + <string key="IBDocument.InterfaceBuilderVersion">2843</string> + <string key="IBDocument.AppKitVersion">1187.34</string> + <string key="IBDocument.HIToolboxVersion">625.00</string> <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> - <string key="NS.object.0">732</string> + <string key="NS.object.0">2843</string> </object> - <array class="NSMutableArray" key="IBDocument.EditedObjectIDs"> - <integer value="6"/> + <array key="IBDocument.IntegratedClassDependencies"> + <string>NSCustomObject</string> + <string>NSScrollView</string> + <string>NSScroller</string> + <string>NSTableColumn</string> + <string>NSTableHeaderView</string> + <string>NSTableView</string> + <string>NSTextFieldCell</string> + <string>NSView</string> + <string>NSWindowTemplate</string> </array> <array key="IBDocument.PluginDependencies"> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> </array> - <dictionary class="NSMutableDictionary" key="IBDocument.Metadata"/> + <object class="NSMutableDictionary" key="IBDocument.Metadata"> + <string key="NS.key.0">PluginDependencyRecalculationVersion</string> + <integer value="1" key="NS.object.0"/> + </object> <array class="NSMutableArray" key="IBDocument.RootObjects" id="832838629"> <object class="NSCustomObject" id="77605815"> <string key="NSClassName">MemoryBrowserController</string> @@ -28,50 +39,21 @@ <string key="NSClassName">NSApplication</string> </object> <object class="NSWindowTemplate" id="53132852"> - <int key="NSWindowStyleMask">9</int> + <int key="NSWindowStyleMask">11</int> <int key="NSWindowBacking">2</int> - <string key="NSWindowRect">{{107, 166}, {654, 331}}</string> + <string key="NSWindowRect">{{107, 166}, {654, 291}}</string> <int key="NSWTFlags">1886912512</int> <string key="NSWindowTitle">Memory Browser</string> <string key="NSWindowClass">NSPanel</string> <object class="NSMutableString" key="NSViewClass"> <characters key="NS.bytes">View</characters> </object> - <string key="NSWindowContentMaxSize">{1.79769e+308, 1.79769e+308}</string> + <nil key="NSUserInterfaceItemIdentifier"/> <string key="NSWindowContentMinSize">{213, 107}</string> <object class="NSView" key="NSWindowView" id="18192490"> <reference key="NSNextResponder"/> <int key="NSvFlags">256</int> <array class="NSMutableArray" key="NSSubviews"> - <object class="NSButton" id="841649969"> - <reference key="NSNextResponder" ref="18192490"/> - <int key="NSvFlags">289</int> - <string key="NSFrame">{{556, 12}, {84, 32}}</string> - <reference key="NSSuperview" ref="18192490"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="749321574"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">137887744</int> - <string key="NSContents">OK</string> - <object class="NSFont" key="NSSupport"> - <string key="NSName">LucidaGrande</string> - <double key="NSSize">13</double> - <int key="NSfFlags">1044</int> - </object> - <reference key="NSControlView" ref="841649969"/> - <int key="NSButtonFlags">-2038284033</int> - <int key="NSButtonFlags2">1</int> - <object class="NSFont" key="NSAlternateImage"> - <string key="NSName">Helvetica</string> - <double key="NSSize">13</double> - <int key="NSfFlags">16</int> - </object> - <string key="NSAlternateContents"/> - <string type="base64-UTF8" key="NSKeyEquivalent">DQ</string> - <int key="NSPeriodicDelay">200</int> - <int key="NSPeriodicInterval">25</int> - </object> - </object> <object class="NSScrollView" id="542946903"> <reference key="NSNextResponder" ref="18192490"/> <int key="NSvFlags">274</int> @@ -83,30 +65,36 @@ <object class="NSTableView" id="859908691"> <reference key="NSNextResponder" ref="870857346"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{484, 218}</string> + <string key="NSFrameSize">{498, 233}</string> <reference key="NSSuperview" ref="870857346"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="705160308"/> <bool key="NSEnabled">YES</bool> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + <bool key="NSControlAllowsExpansionToolTips">YES</bool> <object class="NSTableHeaderView" key="NSHeaderView" id="652326324"> <reference key="NSNextResponder" ref="696189721"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{484, 17}</string> + <string key="NSFrameSize">{498, 17}</string> <reference key="NSSuperview" ref="696189721"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="310824406"/> <reference key="NSTableView" ref="859908691"/> </object> <object class="_NSCornerView" key="NSCornerView" id="310824406"> - <reference key="NSNextResponder" ref="542946903"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">256</int> <string key="NSFrame">{{484, 0}, {16, 17}}</string> - <reference key="NSSuperview" ref="542946903"/> + <reference key="NSNextKeyView" ref="870857346"/> </object> <array class="NSMutableArray" key="NSTableColumns"> <object class="NSTableColumn" id="619005495"> <string key="NSIdentifier">type</string> - <double key="NSWidth">167</double> + <double key="NSWidth">172</double> <double key="NSMinWidth">40</double> <double key="NSMaxWidth">1000</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> + <int key="NSCellFlags">75497536</int> <int key="NSCellFlags2">2048</int> <string key="NSContents">Address</string> <object class="NSFont" key="NSSupport" id="737095483"> @@ -129,7 +117,7 @@ </object> </object> <object class="NSTextFieldCell" key="NSDataCell" id="1008334756"> - <int key="NSCellFlags">338820672</int> + <int key="NSCellFlags">338690112</int> <int key="NSCellFlags2">1024</int> <object class="NSFont" key="NSSupport" id="355333690"> <string key="NSName">Monaco</string> @@ -154,11 +142,11 @@ </object> <object class="NSTableColumn" id="532096921"> <string key="NSIdentifier">hex</string> - <double key="NSWidth">153.9580078125</double> + <double key="NSWidth">158.9580078125</double> <double key="NSMinWidth">28.958000183105469</double> <double key="NSMaxWidth">1000</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> + <int key="NSCellFlags">75497536</int> <int key="NSCellFlags2">2048</int> <string key="NSContents">Hex</string> <reference key="NSSupport" ref="737095483"/> @@ -166,7 +154,7 @@ <reference key="NSTextColor" ref="856098434"/> </object> <object class="NSTextFieldCell" key="NSDataCell" id="314451532"> - <int key="NSCellFlags">338820672</int> + <int key="NSCellFlags">338690112</int> <int key="NSCellFlags2">1024</int> <reference key="NSSupport" ref="355333690"/> <reference key="NSControlView" ref="859908691"/> @@ -179,11 +167,11 @@ </object> <object class="NSTableColumn" id="412675232"> <string key="NSIdentifier">data</string> - <double key="NSWidth">153.50199890136719</double> + <double key="NSWidth">157.50199890136719</double> <double key="NSMinWidth">28.50200080871582</double> <double key="NSMaxWidth">1000</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> + <int key="NSCellFlags">75497536</int> <int key="NSCellFlags2">2048</int> <string key="NSContents">Data</string> <object class="NSFont" key="NSSupport" id="26"> @@ -200,7 +188,7 @@ <reference key="NSTextColor" ref="856098434"/> </object> <object class="NSTextFieldCell" key="NSDataCell" id="768007922"> - <int key="NSCellFlags">338820672</int> + <int key="NSCellFlags">338690112</int> <int key="NSCellFlags2">1024</int> <reference key="NSSupport" ref="355333690"/> <reference key="NSControlView" ref="859908691"/> @@ -241,10 +229,12 @@ <int key="NSDraggingSourceMaskForNonLocal">0</int> <bool key="NSAllowsTypeSelect">YES</bool> <int key="NSTableViewDraggingDestinationStyle">0</int> + <int key="NSTableViewGroupRowStyle">1</int> </object> </array> - <string key="NSFrame">{{1, 17}, {483, 218}}</string> + <string key="NSFrame">{{1, 17}, {498, 233}}</string> <reference key="NSSuperview" ref="542946903"/> + <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="859908691"/> <reference key="NSDocView" ref="859908691"/> <reference key="NSBGColor" ref="158820069"/> @@ -253,8 +243,11 @@ <object class="NSScroller" id="705160308"> <reference key="NSNextResponder" ref="542946903"/> <int key="NSvFlags">256</int> - <string key="NSFrame">{{484, 17}, {15, 218}}</string> + <string key="NSFrame">{{483, 17}, {16, 233}}</string> <reference key="NSSuperview" ref="542946903"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="926983026"/> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> <reference key="NSTarget" ref="542946903"/> <string key="NSAction">_doScroller:</string> <double key="NSPercent">0.83157896995544434</double> @@ -262,9 +255,11 @@ <object class="NSScroller" id="926983026"> <reference key="NSNextResponder" ref="542946903"/> <int key="NSvFlags">256</int> - <string key="NSFrame">{{1, 235}, {483, 15}}</string> + <string key="NSFrame">{{1, 234}, {498, 16}}</string> <reference key="NSSuperview" ref="542946903"/> - <bool key="NSEnabled">YES</bool> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="635160192"/> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> <int key="NSsFlags">1</int> <reference key="NSTarget" ref="542946903"/> <string key="NSAction">_doScroller:</string> @@ -276,25 +271,28 @@ <array class="NSMutableArray" key="NSSubviews"> <reference ref="652326324"/> </array> - <string key="NSFrame">{{1, 0}, {483, 17}}</string> + <string key="NSFrame">{{1, 0}, {498, 17}}</string> <reference key="NSSuperview" ref="542946903"/> + <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="652326324"/> <reference key="NSDocView" ref="652326324"/> <reference key="NSBGColor" ref="158820069"/> <int key="NScvFlags">4</int> </object> - <reference ref="310824406"/> </array> - <string key="NSFrame">{{20, 60}, {500, 251}}</string> + <string key="NSFrame">{{20, 20}, {500, 251}}</string> <reference key="NSSuperview" ref="18192490"/> - <reference key="NSNextKeyView" ref="870857346"/> - <int key="NSsFlags">178</int> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="696189721"/> + <int key="NSsFlags">133170</int> <reference key="NSVScroller" ref="705160308"/> <reference key="NSHScroller" ref="926983026"/> <reference key="NSContentView" ref="870857346"/> <reference key="NSHeaderClipView" ref="696189721"/> - <reference key="NSCornerView" ref="310824406"/> <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes> + <double key="NSMinMagnification">0.25</double> + <double key="NSMaxMagnification">4</double> + <double key="NSMagnification">1</double> </object> <object class="NSScrollView" id="635160192"> <reference key="NSNextResponder" ref="18192490"/> @@ -307,21 +305,27 @@ <object class="NSTableView" id="506138753"> <reference key="NSNextResponder" ref="968243887"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{598, 218}</string> + <string key="NSFrameSize">{612, 233}</string> <reference key="NSSuperview" ref="968243887"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="59414325"/> <bool key="NSEnabled">YES</bool> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> + <bool key="NSControlAllowsExpansionToolTips">YES</bool> <object class="NSTableHeaderView" key="NSHeaderView" id="571802641"> <reference key="NSNextResponder" ref="5901472"/> <int key="NSvFlags">256</int> - <string key="NSFrameSize">{598, 17}</string> + <string key="NSFrameSize">{612, 17}</string> <reference key="NSSuperview" ref="5901472"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="372610263"/> <reference key="NSTableView" ref="506138753"/> </object> <object class="_NSCornerView" key="NSCornerView" id="372610263"> - <reference key="NSNextResponder" ref="635160192"/> + <nil key="NSNextResponder"/> <int key="NSvFlags">256</int> <string key="NSFrame">{{598, 0}, {16, 17}}</string> - <reference key="NSSuperview" ref="635160192"/> + <reference key="NSNextKeyView" ref="968243887"/> </object> <array class="NSMutableArray" key="NSTableColumns"> <object class="NSTableColumn" id="509357520"> @@ -330,7 +334,7 @@ <double key="NSMinWidth">40</double> <double key="NSMaxWidth">1000</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> + <int key="NSCellFlags">75497536</int> <int key="NSCellFlags2">2048</int> <string key="NSContents">Address</string> <reference key="NSSupport" ref="737095483"/> @@ -341,7 +345,7 @@ <reference key="NSTextColor" ref="856098434"/> </object> <object class="NSTextFieldCell" key="NSDataCell" id="87940021"> - <int key="NSCellFlags">338820672</int> + <int key="NSCellFlags">338690112</int> <int key="NSCellFlags2">1024</int> <reference key="NSSupport" ref="355333690"/> <reference key="NSControlView" ref="506138753"/> @@ -358,7 +362,7 @@ <double key="NSMinWidth">28.958000183105469</double> <double key="NSMaxWidth">1000</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> + <int key="NSCellFlags">75497536</int> <int key="NSCellFlags2">2048</int> <string key="NSContents">Hex</string> <reference key="NSSupport" ref="737095483"/> @@ -366,7 +370,7 @@ <reference key="NSTextColor" ref="856098434"/> </object> <object class="NSTextFieldCell" key="NSDataCell" id="437124708"> - <int key="NSCellFlags">338820672</int> + <int key="NSCellFlags">338690112</int> <int key="NSCellFlags2">1024</int> <reference key="NSSupport" ref="355333690"/> <reference key="NSControlView" ref="506138753"/> @@ -379,11 +383,11 @@ </object> <object class="NSTableColumn" id="988794380"> <string key="NSIdentifier">data</string> - <double key="NSWidth">148.50201416015625</double> + <double key="NSWidth">162.50201416015625</double> <double key="NSMinWidth">28.50200080871582</double> <double key="NSMaxWidth">1000</double> <object class="NSTableHeaderCell" key="NSHeaderCell"> - <int key="NSCellFlags">75628096</int> + <int key="NSCellFlags">75497536</int> <int key="NSCellFlags2">2048</int> <string key="NSContents">Data</string> <reference key="NSSupport" ref="26"/> @@ -391,7 +395,7 @@ <reference key="NSTextColor" ref="856098434"/> </object> <object class="NSTextFieldCell" key="NSDataCell" id="225874964"> - <int key="NSCellFlags">338820672</int> + <int key="NSCellFlags">338690112</int> <int key="NSCellFlags2">1024</int> <reference key="NSSupport" ref="355333690"/> <reference key="NSControlView" ref="506138753"/> @@ -416,10 +420,12 @@ <int key="NSDraggingSourceMaskForNonLocal">0</int> <bool key="NSAllowsTypeSelect">YES</bool> <int key="NSTableViewDraggingDestinationStyle">0</int> + <int key="NSTableViewGroupRowStyle">1</int> </object> </array> - <string key="NSFrame">{{1, 17}, {597, 218}}</string> + <string key="NSFrame">{{1, 17}, {612, 233}}</string> <reference key="NSSuperview" ref="635160192"/> + <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="506138753"/> <reference key="NSDocView" ref="506138753"/> <reference key="NSBGColor" ref="158820069"/> @@ -428,8 +434,11 @@ <object class="NSScroller" id="59414325"> <reference key="NSNextResponder" ref="635160192"/> <int key="NSvFlags">256</int> - <string key="NSFrame">{{598, 17}, {15, 218}}</string> + <string key="NSFrame">{{597, 17}, {16, 233}}</string> <reference key="NSSuperview" ref="635160192"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="285226706"/> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> <reference key="NSTarget" ref="635160192"/> <string key="NSAction">_doScroller:</string> <double key="NSPercent">0.83157896995544434</double> @@ -437,9 +446,11 @@ <object class="NSScroller" id="285226706"> <reference key="NSNextResponder" ref="635160192"/> <int key="NSvFlags">256</int> - <string key="NSFrame">{{1, 235}, {597, 15}}</string> + <string key="NSFrame">{{1, 234}, {612, 16}}</string> <reference key="NSSuperview" ref="635160192"/> - <bool key="NSEnabled">YES</bool> + <reference key="NSWindow"/> + <reference key="NSNextKeyView"/> + <bool key="NSAllowsLogicalLayoutDirection">NO</bool> <int key="NSsFlags">1</int> <reference key="NSTarget" ref="635160192"/> <string key="NSAction">_doScroller:</string> @@ -451,33 +462,39 @@ <array class="NSMutableArray" key="NSSubviews"> <reference ref="571802641"/> </array> - <string key="NSFrame">{{1, 0}, {597, 17}}</string> + <string key="NSFrame">{{1, 0}, {612, 17}}</string> <reference key="NSSuperview" ref="635160192"/> + <reference key="NSWindow"/> <reference key="NSNextKeyView" ref="571802641"/> <reference key="NSDocView" ref="571802641"/> <reference key="NSBGColor" ref="158820069"/> <int key="NScvFlags">4</int> </object> - <reference ref="372610263"/> </array> - <string key="NSFrame">{{20, 60}, {614, 251}}</string> + <string key="NSFrame">{{20, 20}, {614, 251}}</string> <reference key="NSSuperview" ref="18192490"/> - <reference key="NSNextKeyView" ref="968243887"/> - <int key="NSsFlags">178</int> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="5901472"/> + <int key="NSsFlags">133170</int> <reference key="NSVScroller" ref="59414325"/> <reference key="NSHScroller" ref="285226706"/> <reference key="NSContentView" ref="968243887"/> <reference key="NSHeaderClipView" ref="5901472"/> - <reference key="NSCornerView" ref="372610263"/> <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes> + <double key="NSMinMagnification">0.25</double> + <double key="NSMaxMagnification">4</double> + <double key="NSMagnification">1</double> </object> </array> - <string key="NSFrameSize">{654, 331}</string> + <string key="NSFrameSize">{654, 291}</string> <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView" ref="542946903"/> </object> - <string key="NSScreenRect">{{0, 0}, {1024, 746}}</string> + <string key="NSScreenRect">{{0, 0}, {1920, 1178}}</string> <string key="NSMinSize">{213, 129}</string> - <string key="NSMaxSize">{1.79769e+308, 1.79769e+308}</string> + <string key="NSMaxSize">{10000000000000, 10000000000000}</string> + <bool key="NSWindowIsRestorable">YES</bool> </object> </array> <object class="IBObjectContainer" key="IBDocument.Objects"> @@ -499,12 +516,12 @@ <int key="connectionID">19</int> </object> <object class="IBConnectionRecord"> - <object class="IBActionConnection" key="connection"> - <string key="label">apply:</string> - <reference key="source" ref="77605815"/> - <reference key="destination" ref="841649969"/> + <object class="IBOutletConnection" key="connection"> + <string key="label">delegate</string> + <reference key="source" ref="53132852"/> + <reference key="destination" ref="77605815"/> </object> - <int key="connectionID">20</int> + <int key="connectionID">22</int> </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> @@ -517,10 +534,10 @@ <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">delegate</string> - <reference key="source" ref="53132852"/> + <reference key="source" ref="506138753"/> <reference key="destination" ref="77605815"/> </object> - <int key="connectionID">22</int> + <int key="connectionID">37</int> </object> </array> <object class="IBMutableOrderedSet" key="objectRecords"> @@ -556,21 +573,12 @@ <int key="objectID">5</int> <reference key="object" ref="18192490"/> <array class="NSMutableArray" key="children"> - <reference ref="841649969"/> <reference ref="542946903"/> <reference ref="635160192"/> </array> <reference key="parent" ref="53132852"/> </object> <object class="IBObjectRecord"> - <int key="objectID">7</int> - <reference key="object" ref="841649969"/> - <array class="NSMutableArray" key="children"> - <reference ref="749321574"/> - </array> - <reference key="parent" ref="18192490"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">10</int> <reference key="object" ref="542946903"/> <array class="NSMutableArray" key="children"> @@ -661,11 +669,6 @@ <reference key="parent" ref="506138753"/> </object> <object class="IBObjectRecord"> - <int key="objectID">24</int> - <reference key="object" ref="749321574"/> - <reference key="parent" ref="841649969"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">25</int> <reference key="object" ref="1008334756"/> <reference key="parent" ref="619005495"/> @@ -734,595 +737,97 @@ </array> </object> <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> + <string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <string key="10.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="10.ImportedFromIB2"/> <string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="11.ImportedFromIB2"/> <string key="12.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="12.ImportedFromIB2"/> <string key="13.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="13.ImportedFromIB2"/> <string key="14.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="14.ImportedFromIB2"/> <string key="15.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="15.ImportedFromIB2"/> <string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="16.ImportedFromIB2"/> <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="17.ImportedFromIB2"/> + <string key="25.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="25.IBShouldRemoveOnLegacySave"/> + <string key="26.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="26.IBShouldRemoveOnLegacySave"/> + <string key="27.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="27.IBShouldRemoveOnLegacySave"/> + <string key="28.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="28.IBShouldRemoveOnLegacySave"/> + <string key="29.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="29.IBShouldRemoveOnLegacySave"/> + <string key="30.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="30.IBShouldRemoveOnLegacySave"/> + <string key="31.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="31.IBShouldRemoveOnLegacySave"/> + <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="32.IBShouldRemoveOnLegacySave"/> + <string key="33.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="33.IBShouldRemoveOnLegacySave"/> + <string key="34.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="34.IBShouldRemoveOnLegacySave"/> + <string key="35.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="35.IBShouldRemoveOnLegacySave"/> + <string key="36.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES" key="36.IBShouldRemoveOnLegacySave"/> <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="5.ImportedFromIB2"/> - <string key="6.IBEditorWindowLastContentRect">{{43, 322}, {654, 331}}</string> <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> <string key="6.IBWindowTemplateEditedContentRect">{{43, 322}, {654, 331}}</string> - <boolean value="YES" key="6.ImportedFromIB2"/> - <boolean value="YES" key="6.windowTemplate.hasMinSize"/> - <string key="6.windowTemplate.minSize">{213, 107}</string> - <string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="7.ImportedFromIB2"/> <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="8.ImportedFromIB2"/> <string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string> - <boolean value="YES" key="9.ImportedFromIB2"/> </dictionary> <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> <nil key="activeLocalization"/> <dictionary class="NSMutableDictionary" key="localizations"/> <nil key="sourceID"/> - <int key="maxID">36</int> + <int key="maxID">37</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <array class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="IBPartialClassDescription"> - <string key="className">FirstResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBUserSource</string> - <string key="minorKey"/> - </object> - </object> - <object class="IBPartialClassDescription"> <string key="className">MemoryBrowserController</string> <string key="superclassName">NSWindowController</string> <dictionary class="NSMutableDictionary" key="actions"> <string key="apply:">id</string> <string key="showWindow:">id</string> </dictionary> + <dictionary class="NSMutableDictionary" key="actionInfosByName"> + <object class="IBActionInfo" key="apply:"> + <string key="name">apply:</string> + <string key="candidateClassName">id</string> + </object> + <object class="IBActionInfo" key="showWindow:"> + <string key="name">showWindow:</string> + <string key="candidateClassName">id</string> + </object> + </dictionary> <object class="NSMutableDictionary" key="outlets"> <string key="NS.key.0">memoryBrowser</string> <string key="NS.object.0">NSTableView</string> </object> + <object class="NSMutableDictionary" key="toOneOutletInfosByName"> + <string key="NS.key.0">memoryBrowser</string> + <object class="IBToOneOutletInfo" key="NS.object.0"> + <string key="name">memoryBrowser</string> + <string key="candidateClassName">NSTableView</string> + </object> + </object> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> - <string key="minorKey">controllers/MemoryBrowserController.h</string> + <string key="minorKey">./Classes/MemoryBrowserController.h</string> </object> </object> - <object class="IBPartialClassDescription"> - <string key="className">MemoryBrowserController</string> - <string key="superclassName">NSWindowController</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBUserSource</string> - <string key="minorKey"/> - </object> - </object> </array> - <array class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+"> - <object class="IBPartialClassDescription"> - <string key="className">NSActionCell</string> - <string key="superclassName">NSCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSActionCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSApplication</string> - <string key="superclassName">NSResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1014922047"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSApplication.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSApplication</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="861032158"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSApplicationScripting.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSApplication</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1036784080"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSColorPanel.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSApplication</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSHelpManager.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSApplication</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSPageLayout.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSApplication</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSUserInterfaceItemSearching.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSButton</string> - <string key="superclassName">NSControl</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSButton.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSButtonCell</string> - <string key="superclassName">NSActionCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSButtonCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSCell</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSControl</string> - <string key="superclassName">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1020822520"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSControl.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSFormatter</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSFormatter.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSMenu</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="293429086"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSMenu.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSAccessibility.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <reference key="sourceIdentifier" ref="1014922047"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <reference key="sourceIdentifier" ref="861032158"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <reference key="sourceIdentifier" ref="1036784080"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <reference key="sourceIdentifier" ref="1020822520"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSDictionaryController.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSDragging.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSFontManager.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSFontPanel.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSKeyValueBinding.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <reference key="sourceIdentifier" ref="293429086"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSNibLoading.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSOutlineView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSPasteboard.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSSavePanel.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1035574661"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSTableView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSToolbarItem.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="255301175"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSArchiver.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSClassDescription.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSError.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSObject.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSObjectScripting.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSPortCoder.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSScriptClassDescription.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSScriptKeyValueCoding.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSScriptObjectSpecifiers.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSScriptWhoseTests.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSThread.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSURL.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSURLDownload.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">QuartzCore.framework/Headers/CAAnimation.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">QuartzCore.framework/Headers/CALayer.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">QuartzCore.framework/Headers/CIImageProvider.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSPanel</string> - <string key="superclassName">NSWindow</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSPanel.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSInterfaceStyle.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSResponder</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSResponder.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSScrollView</string> - <string key="superclassName">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSScrollView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSScroller</string> - <string key="superclassName">NSControl</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSScroller.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSTableColumn</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSTableColumn.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSTableHeaderView</string> - <string key="superclassName">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSTableHeaderView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSTableView</string> - <string key="superclassName">NSControl</string> - <reference key="sourceIdentifier" ref="1035574661"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSTextFieldCell</string> - <string key="superclassName">NSActionCell</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSTextFieldCell.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSClipView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSMenuItem.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSRulerView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSView</string> - <string key="superclassName">NSResponder</string> - <reference key="sourceIdentifier" ref="255301175"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSWindow</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSDrawer.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSWindow</string> - <string key="superclassName">NSResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSWindow.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSWindow</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSWindowScripting.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSWindowController</string> - <string key="superclassName">NSResponder</string> - <object class="NSMutableDictionary" key="actions"> - <string key="NS.key.0">showWindow:</string> - <string key="NS.object.0">id</string> - </object> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">AppKit.framework/Headers/NSWindowController.h</string> - </object> - </object> - </array> </object> <int key="IBDocument.localizationMode">0</int> + <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string> <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies"> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string> <integer value="1060" key="NS.object.0"/> </object> - <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults"> - <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string> - <integer value="1050" key="NS.object.0"/> - </object> <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> - <string key="IBDocument.LastKnownRelativeProjectPath">../Fuse.xcodeproj</string> <int key="IBDocument.defaultPropertyAccessControl">3</int> </data> </archive> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2012-06-19 13:23:09
|
Revision: 689 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=689&view=rev Author: fredm Date: 2012-06-19 13:23:03 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Add platform references for PZX files. Modified Paths: -------------- trunk/FuseGenerator/Info.plist trunk/FuseImporter/Info.plist trunk/FuseImporter/schema.xml trunk/fuse/fusepb/Info-Fuse.plist trunk/fuse/fusepb/controllers/FuseController.m Modified: trunk/FuseGenerator/Info.plist =================================================================== --- trunk/FuseGenerator/Info.plist 2012-02-26 12:10:41 UTC (rev 688) +++ trunk/FuseGenerator/Info.plist 2012-06-19 13:23:03 UTC (rev 689) @@ -26,6 +26,7 @@ <string>net.sourceforge.projects.fuse-emulator.mgtsnp</string> <string>net.sourceforge.projects.fuse-emulator.opd</string> <string>net.sourceforge.projects.fuse-emulator.opu</string> + <string>net.sourceforge.projects.fuse-emulator.pzx</string> <string>net.sourceforge.projects.fuse-emulator.raw</string> <string>net.sourceforge.projects.fuse-emulator.rzx</string> <string>net.sourceforge.projects.fuse-emulator.scl</string> Modified: trunk/FuseImporter/Info.plist =================================================================== --- trunk/FuseImporter/Info.plist 2012-02-26 12:10:41 UTC (rev 688) +++ trunk/FuseImporter/Info.plist 2012-06-19 13:23:03 UTC (rev 689) @@ -28,6 +28,7 @@ <string>net.sourceforge.projects.fuse-emulator.mgtsnp</string> <string>net.sourceforge.projects.fuse-emulator.opd</string> <string>net.sourceforge.projects.fuse-emulator.opu</string> + <string>net.sourceforge.projects.fuse-emulator.pzx</string> <string>net.sourceforge.projects.fuse-emulator.raw</string> <string>net.sourceforge.projects.fuse-emulator.rzx</string> <string>net.sourceforge.projects.fuse-emulator.scl</string> @@ -615,6 +616,23 @@ </array> </dict> </dict> + <dict> + <key>UTTypeConformsTo</key> + <array> + <string>net.sourceforge.projects.fuse-emulator.Tape</string> + </array> + <key>UTTypeDescription</key> + <string>ZX Spectrum PZX Tape Image</string> + <key>UTTypeIdentifier</key> + <string>net.sourceforge.projects.fuse-emulator.pzx</string> + <key>UTTypeReferenceURL</key> + <string>http://zxds.raxoft.cz/pzx.html</string> + <key>UTTypeTagSpecification</key> + <dict> + <key>public.filename-extension</key> + <string>pzx</string> + </dict> + </dict> </array> </dict> </plist> Modified: trunk/FuseImporter/schema.xml =================================================================== --- trunk/FuseImporter/schema.xml 2012-02-26 12:10:41 UTC (rev 688) +++ trunk/FuseImporter/schema.xml 2012-06-19 13:23:03 UTC (rev 689) @@ -44,6 +44,32 @@ net_sourceforge_projects_fuse_emulator_Peripherals </previewattrs> </type> + <type name="net.sourceforge.projects.fuse-emulator.pzx"> + <allattrs> + net_sourceforge_projects_fuse_emulator_Category + net_sourceforge_projects_fuse_emulator_Price + net_sourceforge_projects_fuse_emulator_Loader + net_sourceforge_projects_fuse_emulator_Origin + net_sourceforge_projects_fuse_emulator_Machines + net_sourceforge_projects_fuse_emulator_Peripherals + </allattrs> + <displayattrs> + net_sourceforge_projects_fuse_emulator_Category + net_sourceforge_projects_fuse_emulator_Price + net_sourceforge_projects_fuse_emulator_Loader + net_sourceforge_projects_fuse_emulator_Origin + net_sourceforge_projects_fuse_emulator_Machines + net_sourceforge_projects_fuse_emulator_Peripherals + </displayattrs> + <previewattrs> + net_sourceforge_projects_fuse_emulator_Category + net_sourceforge_projects_fuse_emulator_Price + net_sourceforge_projects_fuse_emulator_Loader + net_sourceforge_projects_fuse_emulator_Origin + net_sourceforge_projects_fuse_emulator_Machines + net_sourceforge_projects_fuse_emulator_Peripherals + </previewattrs> + </type> <type name="net.sourceforge.projects.fuse-emulator.Snapshot"> <allattrs> net_sourceforge_projects_fuse_emulator_Machines Modified: trunk/fuse/fusepb/Info-Fuse.plist =================================================================== --- trunk/fuse/fusepb/Info-Fuse.plist 2012-02-26 12:10:41 UTC (rev 688) +++ trunk/fuse/fusepb/Info-Fuse.plist 2012-06-19 13:23:03 UTC (rev 689) @@ -289,6 +289,27 @@ <dict> <key>CFBundleTypeExtensions</key> <array> + <string>pzx</string> + <string>PZX</string> + </array> + <key>CFBundleTypeIconFile</key> + <string>blank</string> + <key>CFBundleTypeName</key> + <string>ZX Spectrum Tape Image</string> + <key>CFBundleTypeRole</key> + <string>Viewer</string> + <key>LSItemContentTypes</key> + <array> + <string>net.sourceforge.projects.fuse-emulator.pzx</string> + </array> + <key>LSTypeIsPackage</key> + <false/> + <key>NSPersistentStoreTypeKey</key> + <string>Binary</string> + </dict> + <dict> + <key>CFBundleTypeExtensions</key> + <array> <string>tzx</string> <string>TZX</string> </array> Modified: trunk/fuse/fusepb/controllers/FuseController.m =================================================================== --- trunk/fuse/fusepb/controllers/FuseController.m 2012-02-26 12:10:41 UTC (rev 688) +++ trunk/fuse/fusepb/controllers/FuseController.m 2012-06-19 13:23:03 UTC (rev 689) @@ -228,9 +228,10 @@ scrFileType = [NSMutableArray arrayWithObjects:@"scr", @"SCR", nil]; [scrFileType retain]; - tapeFileTypes = [NSMutableArray arrayWithObjects:@"csw", @"ltp", @"raw", - @"spc", @"sta", @"tap", @"tzx", @"wav", @"CSW", @"LTP", - @"RAW", @"SPC", @"STA", @"TAP", @"TZX", @"WAV", nil]; + tapeFileTypes = [NSMutableArray arrayWithObjects:@"csw", @"ltp", @"pzx", + @"raw", @"spc", @"sta", @"tap", @"tzx", @"wav", @"CSW", + @"LTP", @"PZX", @"RAW", @"SPC", @"STA", @"TAP", @"TZX", + @"WAV", nil]; [tapeFileTypes retain]; plus3FileTypes = [NSMutableArray arrayWithObjects:@"dsk", @"DSK", nil]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |