From: <zu...@us...> - 2015-05-06 23:13:00
|
Revision: 5235 http://sourceforge.net/p/fuse-emulator/code/5235 Author: zubzero Date: 2015-05-06 23:12:57 +0000 (Wed, 06 May 2015) Log Message: ----------- Add Didaktik disk class and image format (part of patch #330) (Gergely Szasz) Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/libspectrum.c trunk/libspectrum/libspectrum.h.in Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2015-05-06 22:40:52 UTC (rev 5234) +++ trunk/libspectrum/hacking/ChangeLog 2015-05-06 23:12:57 UTC (rev 5235) @@ -1006,3 +1006,5 @@ tzx_read.c: const and static cleanups (Stuart). 20150418 internals.h: fix compilation on systems without stdint.h (Stuart). 20150506 libspectrum.h.in: add missing compatibility comments (Stuart). +20150507 libspectrum.{c,h.in}: add Didaktik disk class and image format (part of + patch #331) (Gergely Szasz). Modified: trunk/libspectrum/libspectrum.c =================================================================== --- trunk/libspectrum/libspectrum.c 2015-05-06 22:40:52 UTC (rev 5234) +++ trunk/libspectrum/libspectrum.c 2015-05-06 23:12:57 UTC (rev 5235) @@ -566,6 +566,9 @@ { LIBSPECTRUM_ID_DISK_OPD, "opd", 3, NULL, 0, 0, 0 }, { LIBSPECTRUM_ID_DISK_OPD, "opu", 3, NULL, 0, 0, 0 }, + { LIBSPECTRUM_ID_DISK_D80, "d80", 3, NULL, 0, 0, 0 }, + { LIBSPECTRUM_ID_DISK_D80, "d40", 3, NULL, 0, 0, 0 }, + { LIBSPECTRUM_ID_AUX_POK, "pok", 3, NULL, 0, 0, 0 }, { -1, NULL, 0, NULL, 0, 0, 0 }, /* End marker */ @@ -693,6 +696,9 @@ case LIBSPECTRUM_ID_DISK_OPD: *libspectrum_class = LIBSPECTRUM_CLASS_DISK_OPUS; return 0; + case LIBSPECTRUM_ID_DISK_D80: + *libspectrum_class = LIBSPECTRUM_CLASS_DISK_DIDAKTIK; return 0; + case LIBSPECTRUM_ID_DISK_SCL: case LIBSPECTRUM_ID_DISK_TRD: *libspectrum_class = LIBSPECTRUM_CLASS_DISK_TRDOS; return 0; Modified: trunk/libspectrum/libspectrum.h.in =================================================================== --- trunk/libspectrum/libspectrum.h.in 2015-05-06 22:40:52 UTC (rev 5234) +++ trunk/libspectrum/libspectrum.h.in 2015-05-06 23:12:57 UTC (rev 5235) @@ -241,6 +241,10 @@ LIBSPECTRUM_ID_AUX_POK, /* POKE file */ + /* Below here, present only in 1.2.0 and later */ + + LIBSPECTRUM_ID_DISK_D80, /* .d80/.d40 Didaktik disk image */ + } libspectrum_id_t; /* And 'classes' of file */ @@ -281,6 +285,10 @@ LIBSPECTRUM_CLASS_AUXILIARY, /* auxiliary supported file */ + /* Below here, present only in 1.2.0 and later */ + + LIBSPECTRUM_CLASS_DISK_DIDAKTIK, /* Didaktik disk */ + } libspectrum_class_t; WIN32_DLL libspectrum_error This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |