This is an automated email from the git hooks/post-receive-user script. sbaldovi pushed a commit to branch master in repository fuse. View the commit online: https://sourceforge.net/p/fuse-emulator/fuse/ci/d36545de5631823a86a4e9968698491ea2caf3f5/ The following commit(s) were added to refs/heads/master by this push: new d36545de Added support for loading .S snapshot files (D40's snapshots when extracted from floppy) https://sourceforge.net/u/arki55/tickets/1/ new dbd89b53 Merge request #12: support for loading .S snapshot files d36545de is described below commit d36545de5631823a86a4e9968698491ea2caf3f5 Author: Miroslav Durcik / Arki55 <mir...@gm...> AuthorDate: Wed Nov 9 20:20:48 2022 +0100 Added support for loading .S snapshot files (D40's snapshots when extracted from floppy) https://sourceforge.net/u/arki55/tickets/1/ --- configure.ac | 10 +++++++++- data/fuse.xml.in | 5 +++++ ui/gtk/fileselector.c | 6 ++++-- ui/win32/fileselector.c | 4 ++-- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 30645db3..8b24b015 100644 --- a/configure.ac +++ b/configure.ac @@ -87,7 +87,15 @@ dnl Check for big endianness AC_C_BIGENDIAN dnl Checks for header files. -AC_HEADER_STDC +m4_warn([obsolete], +[The preprocessor macro `STDC_HEADERS' is obsolete. + Except in unusual embedded environments, you can safely include all + ISO C90 headers unconditionally.])dnl +# Autoupdate added the next two lines to ensure that your configure +# script's behavior did not change. They are probably safe to remove. +AC_CHECK_INCLUDES_DEFAULT +AC_PROG_EGREP + AC_CHECK_HEADERS( libgen.h \ siginfo.h \ diff --git a/data/fuse.xml.in b/data/fuse.xml.in index 1d99f916..a5e215c6 100644 --- a/data/fuse.xml.in +++ b/data/fuse.xml.in @@ -135,6 +135,11 @@ <glob pattern="*.sna"/> <glob pattern="*.snapshot"/> </mime-type> + <mime-type type="application/x-spectrum-s"> + <comment>ZX Spectrum snapshot</comment> + <icon name="application-x-spectrum"/> + <glob pattern="*.s"/> + </mime-type> <mime-type type="application/x-spectrum-snp"> <comment>ZX Spectrum snapshot</comment> <icon name="application-x-spectrum"/> diff --git a/ui/gtk/fileselector.c b/ui/gtk/fileselector.c index fc2b2896..1ade639e 100644 --- a/ui/gtk/fileselector.c +++ b/ui/gtk/fileselector.c @@ -319,7 +319,8 @@ add_filter_snapshot_files( GtkFileFilter *filter ) gtk_file_filter_add_pattern( filter, "*.sp" ); gtk_file_filter_add_pattern( filter, "*.szx" ); gtk_file_filter_add_pattern( filter, "*.z80" ); - gtk_file_filter_add_pattern( filter, "*.zx-state" ); + gtk_file_filter_add_pattern( filter, "*.zx-state" ); + gtk_file_filter_add_pattern( filter, "*.s" ); gtk_file_filter_add_pattern( filter, "*.MGTSNP" ); gtk_file_filter_add_pattern( filter, "*.SLT" ); @@ -329,7 +330,8 @@ add_filter_snapshot_files( GtkFileFilter *filter ) gtk_file_filter_add_pattern( filter, "*.SP" ); gtk_file_filter_add_pattern( filter, "*.SZX" ); gtk_file_filter_add_pattern( filter, "*.Z80" ); - gtk_file_filter_add_pattern( filter, "*.ZX-STATE" ); + gtk_file_filter_add_pattern( filter, "*.ZX-STATE" ); + gtk_file_filter_add_pattern( filter, "*.S" ); } static void diff --git a/ui/win32/fileselector.c b/ui/win32/fileselector.c index 995772d1..88692469 100644 --- a/ui/win32/fileselector.c +++ b/ui/win32/fileselector.c @@ -38,7 +38,7 @@ static char *current_folder; between UIs */ static LPCTSTR file_filter = TEXT( "Supported Files\0" -"*.mgtsnp;*.slt;*.sna;*.snapshot;*.snp;*.sp;*.szx;*.z80;*.zx-state;" +"*.mgtsnp;*.slt;*.sna;*.snapshot;*.snp;*.sp;*.szx;*.z80;*.zx-state;*.s;" "*.csw;*.ltp;*.pzx;*.raw;*.spc;*.sta;*.tzx;*.tap;*.wav;" "*.d40;*.d80;*.dsk;*.fdi;*.img;*.mgt;*.opd;*.opu;*.sad;*.scl;*.td0;*.trd;*.udi;" "*.dck;*.rom;*.hdf;*.mdr;*.fmf;*.rzx;" @@ -75,7 +75,7 @@ static LPCTSTR file_filter = TEXT( "Recording Files (*.rzx)\0" "*.rzx\0" "Snapshot Files (*.szx;*.z80;*.sna;...)\0" -"*.mgtsnp;*.slt;*.sna;*.snapshot;*.snp;*.sp;*.szx;*.z80;*.zx-state\0" +"*.mgtsnp;*.slt;*.sna;*.snapshot;*.snp;*.sp;*.szx;*.z80;*.zx-state;*.s\0" "Tape Files (*.tap;*.tzx;*.pzx;*.wav;*.csw;...)\0" "*.csw;*.ltp;*.pzx;*.raw;*.spc;*.sta;*.tzx;*.tap;*.wav\0" "\0" ); |