Commit Graph

80 Commits

Author SHA1 Message Date
Allofich
4d7be1c15b Remove redundant #ifndef conditionals for includes 2021-08-22 15:13:27 +09:00
Jonathan Campbell
365b4b4d3c Add imageDisk bitmap to track which partitions are in use. Add code to FAT driver to ignore partitions marked in use so that it is impossible to mount a FAT partition twice across two drive letters (which would cause filesystem corruption) 2021-08-03 15:07:35 -07:00
Jonathan Campbell
7756fbc91f Put partition table log printout into a function. C++ type overloading helps here 2021-08-03 12:41:42 -07:00
Jonathan Campbell
db874773b8 Make partition type identification a function, so the rest of the emulator can use it 2021-08-03 12:24:26 -07:00
Jonathan Campbell
6621f07eca Put partition reading and struct into a place where the rest of the emulator can use it 2021-08-03 12:13:29 -07:00
Jonathan Campbell
75d1ecab6d Move IPL1 partition entry struct into bios_disk 2021-08-03 12:07:29 -07:00
Allofich
c2b17e40ed Localize #include "logging.h" from dosbox.h 2021-06-09 11:11:03 +09:00
Allofich
c2688beafa Localize includes
Localize bios.h include from bios_disk.h and assert.h include from
clockdomain.h
2021-06-06 04:40:00 +09:00
Allofich
67ebe980a7 Remove unneeded includes 2021-06-06 04:39:54 +09:00
Allofich
da6009c540 Remove casts that remove const qualification 2021-05-18 22:28:26 +09:00
Allofich
9294d450ec SVN r4412
Update copyright.
2021-03-06 21:18:08 +09:00
Wengier
9e4a74aa94 more fix 2020-12-22 18:27:20 -05:00
Allofich
d7b46afcd4 SVN r4267 (partial)
Fix Bit8u instead of char weirdness for imageDisk
Give the code that moves the Z drive its own function for readability.
Give size arrays default values again for warning program.
(IMGMOUNT rewrite part of original commit skipped due to code conflict)
2020-10-06 23:15:28 +09:00
Emmanuel Gil Peyrot
d2b0cef2f5 Replace Bit64u with uint64_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
d1802fe5fa Replace Bit32s with int32_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
c0a106535e Replace Bit32u with uint32_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
a431d81213 Replace Bit16u with uint16_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
35f38f3ebe Replace Bit8u with uint8_t 2020-09-28 17:14:35 +02:00
Wengier
0f3a5f0ca1 more 2020-08-19 15:38:59 -04:00
Wengier
fd79d02d6e add auto-mount for other FAT types with save/load state 2020-08-10 16:33:32 -04:00
rderooy
608a657b50 Update copyright year for dosbox and dosbox-x assets and update FSF address 2020-06-25 08:42:32 +02:00
Allofich
b422e115c7 Const cleanup 2020-05-09 01:38:58 +09:00
Allofich
d873bf31d4 Use class initialization and initialization lists 2020-05-09 01:37:48 +09:00
Allofich
0dbb160c28 Fix uninitMemberVar warnings 2019-10-27 23:50:53 +09:00
Allofich
038566362e Fix Cppcheck funcArgNamesDifferent warnings 2019-10-21 22:08:39 +09:00
Allofich
ede9a90942 Fix Cppcheck passedByValue warnings 2019-10-20 22:40:55 +09:00
Allofich
6b0c382458 SVN r4239, SVN r4242
(Changes to drive handling. Some was already in DOSBox-X, some
conflicts. Non-conflicting parts not in DOSBox-X yet are added here)
2019-07-09 22:10:30 +09:00
Jonathan Campbell
13646fc615 Merge pull request #1141 from Allofich/warnings3
Cleanup
2019-06-15 08:53:57 -07:00
Allofich
8598f90386 Remove undefined function declarations 2019-06-15 20:13:21 +09:00
Allofich
62fed560b4 Fix uninitialized variable warnings
Also fix a NULL dereference warning
2019-06-14 22:40:22 +09:00
Allofich
d84a812743 SVN r4183 (second half)
Update year
2019-06-03 23:01:41 +09:00
Allofich
05619dd023 SVN r4183 (first half)
Update address of FSF
2019-06-03 22:54:46 +09:00
Allofich
3da34ada5b SVN r3917
Make variable types used in swapping consistent and use Bit8u for drives.
2019-05-05 01:52:47 +09:00
Cameron Cawley
d5cad733f7 Fix missing includes 2018-12-30 17:55:59 +00:00
Jonathan Campbell
695fccefe7 Floppy disk tracking: Keep track of disk change signal, set it when disks are changed or swapped 2018-11-17 13:23:10 -08:00
Jonathan Campbell
8282f467d5 NFDR1 support, experimental 2018-11-04 19:33:51 -08:00
Jonathan Campbell
f26df42c12 Revert "D88: Report duplicate sectors"
This reverts commit 1429848175.
2018-11-02 15:41:32 -07:00
Jonathan Campbell
1429848175 D88: Report duplicate sectors 2018-11-02 15:37:49 -07:00
Jonathan Campbell
62a365d96c VFD image support: Some disk images (such as Ys II) have fill byte 0xFF but no data offset. Take that to mean the fill byte is 0xFF instead of erroring out. This allows the VFD images from an abandonware site to run 2018-11-01 23:35:18 -07:00
Jonathan Campbell
ec782ea795 Initial NFD disk image support (read only) 2018-10-31 00:14:41 -07:00
Jonathan Campbell
e285b54b36 Update BOOT mode to reject D88 images IF the fd_type field says it is 2D (neither double nor high density) 2018-05-26 21:34:07 -07:00
Jonathan Campbell
9b156f119c Begin, D88 disk image support 2018-05-26 13:25:43 -07:00
Jonathan Campbell
ce8edc9371 BIOS disk: write functions should accept const * pointer. write() does not modify buffer 2018-05-25 20:06:07 -07:00
Jonathan Campbell
33c98bbaf9 VFD image sector lookup 2018-05-23 00:04:40 -07:00
Jonathan Campbell
550e8bce05 Extend image support for varied FDD sectors 2018-05-20 01:24:46 -07:00
Shane Krueger
f0051813ba Cleanup imageDisk inheritance and misc 2018-04-30 00:45:46 -04:00
Shane Krueger
157e816284 Renamed conversion function appropriately and added comment 2018-04-29 20:45:13 -04:00
Shane Krueger
0c7c8af948 Prevent reading/writing past end of mounted VHD files 2018-04-29 15:17:29 -04:00
Shane Krueger
1a68d1e03c Enable differencing VHD disks 2018-04-29 15:00:33 -04:00
Jonathan Campbell
e9e7c41774 Fix VHD support code to compile with pre-C++11 GCC 2018-04-22 17:41:00 -07:00