summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/atari_dsk.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
commit7c19aac60e12d6f5ea301bdb34d7826a01e0b06f (patch)
treef310d86aa2c6bfc19d115307dedde4eb0cd52dad /src/lib/formats/atari_dsk.cpp
parenta57b46ae933badd7441ce1644711dbb851e2b504 (diff)
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/lib/formats/atari_dsk.cpp')
-rw-r--r--src/lib/formats/atari_dsk.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/formats/atari_dsk.cpp b/src/lib/formats/atari_dsk.cpp
new file mode 100644
index 00000000000..f5ccd03c952
--- /dev/null
+++ b/src/lib/formats/atari_dsk.cpp
@@ -0,0 +1,37 @@
+// license:BSD-3-Clause
+// copyright-holders:Miodrag Milanovic
+/*********************************************************************
+
+ formats/atari_dsk.c
+
+ Atari disk images
+
+*********************************************************************/
+
+#include <assert.h>
+
+#include "formats/atari_dsk.h"
+
+static FLOPPY_IDENTIFY( atari_dsk_identify )
+{
+ *vote = 100;
+ return FLOPPY_ERROR_SUCCESS;
+}
+
+
+static FLOPPY_CONSTRUCT( atari_dsk_construct )
+{
+ return FLOPPY_ERROR_SUCCESS;
+}
+
+LEGACY_FLOPPY_OPTIONS_START( atari_only )
+ LEGACY_FLOPPY_OPTION(
+ atari_dsk,
+ "atr,dsk,xfd",
+ "Atari floppy disk image",
+ atari_dsk_identify,
+ atari_dsk_construct,
+ NULL,
+ NULL
+ )
+LEGACY_FLOPPY_OPTIONS_END0