From c4dba16740435345d61e3d9716faa48cc15d924d Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Tue, 31 Dec 2019 22:16:44 +0100 Subject: [PATCH] Move drives.h to common include dir Judging by the usage, this header belongs in there instead of being limited to dos module only. This change makes it easier to reuse code for new features related to drives mounting/unmounting. --- include/Makefile.am | 1 + {src/dos => include}/drives.h | 0 src/dos/Makefile.am | 2 +- src/ints/bios_disk.cpp | 2 +- src/shell/shell_cmds.cpp | 2 +- vs/dosbox.vcxproj | 2 +- 6 files changed, 5 insertions(+), 4 deletions(-) rename {src/dos => include}/drives.h (100%) diff --git a/include/Makefile.am b/include/Makefile.am index e76e2e03..cfeb115b 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -11,6 +11,7 @@ dma.h \ dosbox.h \ dos_inc.h \ dos_system.h \ +drives.h \ fpu.h \ hardware.h \ inout.h \ diff --git a/src/dos/drives.h b/include/drives.h similarity index 100% rename from src/dos/drives.h rename to include/drives.h diff --git a/src/dos/Makefile.am b/src/dos/Makefile.am index aec73c4f..15008a66 100644 --- a/src/dos/Makefile.am +++ b/src/dos/Makefile.am @@ -4,7 +4,7 @@ noinst_LIBRARIES = libdos.a EXTRA_DIST = dos_codepages.h dos_keyboard_layout_data.h libdos_a_SOURCES = dos.cpp dos_devices.cpp dos_execute.cpp dos_files.cpp dos_ioctl.cpp dos_memory.cpp \ dos_misc.cpp dos_classes.cpp dos_programs.cpp dos_tables.cpp \ - drives.cpp drives.h drive_virtual.cpp drive_local.cpp drive_cache.cpp drive_fat.cpp \ + drives.cpp drive_virtual.cpp drive_local.cpp drive_cache.cpp drive_fat.cpp \ drive_iso.cpp dev_con.h dos_mscdex.cpp dos_keyboard_layout.cpp \ cdrom.h cdrom.cpp cdrom_image.cpp \ drive_overlay.cpp diff --git a/src/ints/bios_disk.cpp b/src/ints/bios_disk.cpp index 0c434e0e..9a317344 100644 --- a/src/ints/bios_disk.cpp +++ b/src/ints/bios_disk.cpp @@ -27,7 +27,7 @@ #include "regs.h" #include "mem.h" #include "dos_inc.h" /* for Drives[] */ -#include "../dos/drives.h" +#include "drives.h" #include "mapper.h" diskGeo DiskGeometryList[] = { diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index e5f24ed6..ed5e615c 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -30,7 +30,7 @@ #include "callback.h" #include "regs.h" #include "bios.h" -#include "../dos/drives.h" +#include "drives.h" #include "support.h" #include "control.h" diff --git a/vs/dosbox.vcxproj b/vs/dosbox.vcxproj index deb36fa3..d1742677 100644 --- a/vs/dosbox.vcxproj +++ b/vs/dosbox.vcxproj @@ -277,6 +277,7 @@ + @@ -339,7 +340,6 @@ -