59 Commits

Author SHA1 Message Date
Jonathan Campbell
3ff38b6bfe DOS drive cache: Fix directory listing performance issues by deferring filename sort until after all entries have been added. [https://github.com/joncampbell123/dosbox-x/issues/5039] 2024-06-16 22:36:06 -07:00
maxpat78
9abdd15e42 Fix reported size issues in builtin DIR command
- mounted a SMB share to a drive letter, the correct free space is shown
- purges the 1919 MB freesize cap limit
- -freesize switch is honored
(tested WIN32 version only)
2024-04-19 16:37:43 +02:00
Jaak Ristioja
39906a9399
Add override keyword, clean up virtual keyword
Also removed virtual and override keywords from destructors which already
override.
2024-03-21 21:45:16 +02:00
Jaak Ristioja
b16b7bac76
Renamed class localFile to LocalFile 2024-03-21 13:55:09 +02:00
Allofich
9970fbb1be Use class initialization and initialization lists 2023-04-05 15:10:00 +09:00
Allofich
5c17a5c208 Static analysis fixes
Fix warnings for:
-member function that doesn't mutate its object not labeled const
-invalid memory access
-include directive not at top of file
-duplicate switch cases
-redundant parentheses
-ambiguous if statement scope due to formatting
-not using in-class initialization when possible
-unused parameter
2023-04-04 23:07:14 +09:00
Allofich
496dfa6267 Fix static analysis warnings
Fix warnings for the following:
-include directive not at top of file
-ambiguous indentation for scope of if statement
-not passing expensive object by const reference
-initializing in constructor when using class initialization or initialization
list possible
-member function that doesn't mutate its object not declared const
2023-04-04 23:06:57 +09:00
nanshiki
8cfa6a7ae0 Fixes related to DOS standard input Raw mode 2023-03-21 18:06:34 +09:00
Wengier
d90e1204eb update 2022-07-04 23:53:10 -04:00
Wengier
e73255c245 support for converting non-image drives to disk images (thanks psyraven) 2022-07-03 22:32:51 -04:00
leecher1337
f26466d917 Support DOS device drivers read/write properly 2022-03-21 01:32:53 +01:00
Wengier
26649b3407 fix 4DOS copy 2021-11-18 05:17:17 -05:00
nanshiki
6dc2d24fef Fixed GET INPUT/OUTPUT STATUS not working for character devices registered at device.com. 2021-10-23 17:54:59 +09:00
Allofich
4d7be1c15b Remove redundant #ifndef conditionals for includes 2021-08-22 15:13:27 +09:00
Jonathan Campbell
a80941baae If drive letter mounted from partition using -bd, then do not auto-detach disk image from BIOS. If the user wants to detach from BIOS they will use MOUNT -u <n> where n is the BIOS disk number 2021-08-03 15:31:12 -07:00
Allofich
0cac7f216e Localize includes 2021-06-19 17:04:43 +09:00
Allofich
67ebe980a7 Remove unneeded includes 2021-06-06 04:39:54 +09:00
Allofich
14cb20b266 Remove unnecessary if statements
Deleting a null pointer has no effect
2021-05-30 11:44:00 +09:00
Wengier
90abe0aa5b support for directories on Z drive 2021-05-06 02:36:42 -04:00
Allofich
9294d450ec SVN r4412
Update copyright.
2021-03-06 21:18:08 +09:00
Wengier
596a9ddb4d more file locking 2020-12-29 20:03:13 -05: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
d373146fda use DOS date/time on local drives 2020-09-25 15:48:45 -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
Wengier
15d12e0054
Update dos_system.h 2020-06-11 22:33:29 -04:00
Wengier
eca0d20346
Update dos_system.h 2020-06-10 22:33:45 -04:00
Wengier
c99472d4b2
Save state includes 2020-06-03 21:35:49 -04:00
Allofich
d99be0f9f1 Fix VS warnings 2020-05-29 01:20:15 +09:00
Jonathan Campbell
a0c2fd3978 DOS and DOS FAT driver: Add to DOS drive API to allow reporting larger volumes than 2GB so FAT32 free/total disk space APIs can work properly. Change Wengier's INT AX=7303h implementation to use it so FAT32 drives can report the full space properly. COMMAND.COM for Windows 98 now report free disk space properly even if FAT32 partition larger than 2GB. 2020-05-14 23:51:06 -07:00
Allofich
68f41d3cea Use class initialization and initialization lists 2020-05-04 18:44:34 +09:00
Jonathan Campbell
2579ab1022 Incorporate ATTRIB and file attribute patch from Wengier [https://github.com/joncampbell123/dosbox-x/issues/1469] 2020-04-07 21:04:32 -07:00
Jonathan Campbell
821cb81306 compiler warning fixup 2020-03-06 23:00:04 -08:00
Jonathan Campbell
e31a0a8165 Incorporate Long Filename Support for DOS version 7 [https://github.com/joncampbell123/dosbox-x/issues/1425] 2020-03-06 22:56:22 -08: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
Jonathan Campbell
d5f0003f80 Drive local: use C libary function fflush to explicitly flush buffers,
when asked to flush file by guest. Add file flush function in INT 21h
and the FAT driver.
2019-08-29 17:31:21 -07:00
Jonathan Campbell
579399bac9 DOS: Extend DOS drive definition to include a function to update the DPB 2019-08-26 16:15:30 -07:00
Jonathan Campbell
75b479ac68 DOS: Add DOS drive methods for raw sector access, and INT 25h code 2019-08-26 15:22:34 -07: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
fc37564a26 SVN r4058
Move definition of LocalFile to header file. Makes sense to make it
available at a larger scope.
2019-05-21 23:25:00 +09:00
Jonathan Campbell
9137c7a3ce DOS_File make Write buffer ptr const 2018-05-26 08:34:57 -07:00
Jonathan Campbell
f5ecd05c4f Unused param cleanup, dos_system.h 2018-05-21 11:57:00 -07:00
Jonathan Campbell
cf142387b7 MOUNT option for local folders, to disable caching (if you would rather not run RESCAN every time the host filesystem changes behind DOSBox-X) 2018-02-08 00:47:27 -08:00
Jonathan Campbell
0d1beebfd1 add mount -ro option, to mount a local folder readonly, update DOS kernel to support returning "write protect" error code 2018-02-08 00:29:25 -08:00
Jonathan Campbell
378ba0ed98 cpm compat option. HMA adjustment if CPM compat enabled, to allow the
call to work even if A20 is enabled. Write mirror of JMP instruction for
CPM calls in HMA if DOS in HMA.
2017-05-28 00:33:47 -07:00
Jonathan Campbell
024369af71 make registering a file blob a common function 2015-10-19 13:35:28 +00:00