Peter Veenstra
fab69cb4c7
Stuff written to the console needs a cariage return since 4114. Thanks for spotting this dreamer_.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4284
2019-11-12 13:31:23 +00:00
Peter Veenstra
5b690f936a
fix externals.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4274
2019-10-19 20:08:46 +00:00
Peter Veenstra
e1d8eb67a4
Use fabsf when return value is a float. Small warning fix.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4269
2019-10-09 20:49:21 +00:00
Peter Veenstra
19478d45f5
Fix several logic errors with regards to deleted directories.
...
Should fix that directories with the same length as a deleted directory had some small issues.
Also blocks the creation of files in directories marked as deleted.
Small speed up to MakeDir, so it doesn't rely on mkdir when a directory is created inside a deleted directory.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4268
2019-10-09 20:46:40 +00:00
Peter Veenstra
60204619d0
- Fix url to forum.
...
- Fix Bit8u instead of char weirdness for imageDisk (dreamer_)
- Give device_t a virtual empty destructor so some warning program
doesn't go crazy.
- Give the code that moves the Z drive its own function for readability.
- Give sizes arrays default values again for warning program.
- Rewrite IMGMOUNT in order to exit early for clarity and attempt
to group things together.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4267
2019-10-03 20:03:43 +00:00
Peter Veenstra
a919e33aec
Pick some lowhanging fruit. (some memory leaks and unused variables)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4264
2019-10-01 12:11:09 +00:00
Peter Veenstra
dda3b2a51f
Rename bios tester to biostest and make it debug only to avoid people trying to load real bioses.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4258
2019-09-10 11:16:20 +00:00
Sjoerd van der Berg
766a63ac33
Add simple program that allows you to boot into a bios image for running cpu tester bios
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4257
2019-09-08 12:48:57 +00:00
Peter Veenstra
4ffc75be3c
Add wrapping here as well.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4251
2019-06-27 09:12:41 +00:00
Peter Veenstra
0abb573167
Implement simple access control for reading and writing files that are accessable from within DOSBox. Overlay not yet tested, hence not part of this commit.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4245
2019-06-25 17:53:05 +00:00
Peter Veenstra
551ee5b2fd
drive => i_drive
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4242
2019-06-25 14:51:25 +00:00
Peter Veenstra
ad88f982c0
Add some size checks when accessing Drives[], mostly needed when DOS_DRIVES is not set to 26, make size parsing not go outside the target array.
...
Let's not try to assign a drive in the switchlist to a too high number.
Don't access imagelist for drives >D when unmounting.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4239
2019-06-25 06:12:13 +00:00
Peter Veenstra
e723355b92
Silence a warning
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4225
2019-05-06 10:27:11 +00:00
Peter Veenstra
b326adff06
Remove c++ 11 isms
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4224
2019-05-06 10:23:11 +00:00
Peter Veenstra
dfce234cfb
Fix unitialized access to some isoDrive fields. Pause audio before switching. Use right subunit with multiple CDs on one driveletter. (krcroft, jmarsh and qbix)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4223
2019-05-06 08:37:53 +00:00
ripsaw8080
701663b574
Use a more compatible offset for DOS redirected interrupt vector. Works around a null pointer bug in the notes dropdown list of Jack the Ripper.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4218
2019-04-23 09:50:56 +00:00
Peter Veenstra
1d01c8d151
Add experimental code to have overlay only directories. Add ability to remove directories and create them while in overlay mode.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4217
2019-04-22 14:57:24 +00:00
Peter Veenstra
f8dd3db095
Add functionality to add overlay directories to drive_cache.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4216
2019-04-22 14:21:53 +00:00
Peter Veenstra
eb26b9a58e
Change first_shell to be DOS_Shell instead of Program. Makes future manipulations easier.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4211
2019-04-20 13:48:55 +00:00
Peter Veenstra
ee2d3e73ce
Unify unmounting code. Fix unmounting of complex drives where parts were left and file pointers were kept open. (thanks jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4205
2019-04-11 15:48:04 +00:00
Peter Veenstra
202bfa1155
New Drive type: overlay.
...
When active, this drive redirects new and changed files to a different location.
The files in the overlay and normal drive are merged on startup and kept up to date when the game changes something.
Files in the overlay are priotizedi, if they exists, above the normal files.
The drive will switch to an overlayed version of the file on the first write! (Not when opening the file in write-mode).
The overlay is capable of creating missing directories.
With the help of DBOVERLAY files, the drive keeps track of files that are present in the normal directory but deleted by the game.
All changes are preserved between sessions.
Current design principles/limitations/requirements:
1) All directories that can be used for saving, must exist already in the base before mounting. (they will be created by DOSBox if missing in the overlay)
2) All filenames inside the overlay directories are UPPERCASE and conform to the 8.3 standard except for the special DBOVERLAY files.
3) To keep point 1 valid at all times, support for creating/renaming/removing directories has been disabled.
Thanks for the help GOG.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4196
2019-03-25 13:49:25 +00:00
Peter Veenstra
d137ec5c0d
Fix up DOS_Drive_Cache::GetShortName, used by overlay drive.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4195
2019-03-21 15:56:15 +00:00
ripsaw8080
4d35f0ef27
Correct relative track length in subchannel data for CD-ROM images; fixes speech audio cutting off too soon in Casino Tournament of Champions.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4189
2019-02-04 15:16:55 +00:00
ripsaw8080
64d25c4be4
Acknowledge mouse interrupt before entering user routine; fixes sound stutter during mouse movement in Eye of the Beholder III and Casino Tournament of Champions. Clear button counters in the mouse driver reset function; prevents unintended skipping of intro in MechWarrior and others.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4188
2019-02-04 15:15:58 +00:00
Peter Veenstra
4e88b1eb2c
Do it for both read-only modi
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4184
2019-01-25 14:34:47 +00:00
Peter Veenstra
1fbaff47fc
Update year and address of FSF
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4183
2019-01-25 14:09:58 +00:00
Peter Veenstra
d55c6a03ed
This order works better for when other headers change.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4180
2018-12-28 12:19:13 +00:00
Peter Veenstra
9ffb5627aa
Add ripsaws one line patch to fix bug 488
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4173
2018-11-17 13:29:02 +00:00
ripsaw8080
d0ecdf85b2
Allocation Info works for CD-ROM drives. Fixes Bureau 13 installer.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4172
2018-11-16 22:39:24 +00:00
ripsaw8080
07c2d06ae5
Add Unit Number and Bytes Per Sector fields for DPB entries. Fixes Air Power installer and Windows 3 Virtual Memory dialog.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4168
2018-10-11 15:05:28 +00:00
ripsaw8080
c3aca8dc44
When searching CD-ROM directory entries, strip trailing period of extension-less filenames after stripping file version number and separator. Fixes disc check in Air Power.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4167
2018-10-11 14:58:18 +00:00
ripsaw8080
52d5501842
Disable UMB on PCjr machine type; fixes broken MCB chain. Remove 128k PCjr faking from r2417 that was effectively disabled by r3420.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4164
2018-09-27 20:07:06 +00:00
Peter Veenstra
2f09b52de8
Fix typos reported by lintian and change DosBox to DOSBox.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4161
2018-09-14 19:53:55 +00:00
ripsaw8080
2ec871f0e1
FAT drive fixes and improvements. Identify floppy format, and support filesystems that use only part of the disk. Fixes Make Your Own Murder Party and Music/Pinball Construction Set.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4130
2018-07-10 16:05:17 +00:00
ripsaw8080
be146f5c44
Improve disk image mounting: cycle disks only for the drive being mounted, make B: drive usable for BIOS access, and be insensitive to the order that drive letters are mounted.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4129
2018-07-10 15:51:16 +00:00
ripsaw8080
30ef5aefe9
Fix GetLabel() for the virtual drive.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4128
2018-07-10 15:38:55 +00:00
ripsaw8080
66b813ef9c
Support some installer disk detection methods: block device count, and specific MBR/boot sector contents. Fixes (original) SimCity, Amberstar, and later MicroProse installers.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4120
2018-06-21 17:46:52 +00:00
ripsaw8080
1afaf28921
Make Media ID table relative to DPB table. Fixes Hattrick by Ikarion.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4116
2018-06-12 20:52:08 +00:00
ripsaw8080
ff8d4f287f
More improvements for IOCTL generic block device request
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4115
2018-06-12 20:18:42 +00:00
ripsaw8080
31d7e74eac
It is more compatible with DOS to not insert carriage returns in the console device.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4114
2018-06-12 20:04:10 +00:00
ripsaw8080
cb8bf9f8f6
Return an error for generic block device request on unmounted floppy drives. Fixes bug #481 .
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4112
2018-06-02 18:21:21 +00:00
ripsaw8080
f9ac735c98
Be less specific about the jump instruction when identifying a video BIOS.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4110
2018-05-30 12:52:17 +00:00
Peter Veenstra
5bb10db88b
Time keeps on ticking
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4109
2018-05-29 12:58:58 +00:00
ripsaw8080
ee8103cc23
Lock default label of HDD local drive mounts. Fixes label changing to the host drive label when resetting cache on the Windows platform.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4104
2018-05-22 15:18:00 +00:00
ripsaw8080
cd9e7b3c07
Improve disk serial number DOS functions.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4102
2018-05-22 15:07:38 +00:00
ripsaw8080
630b9befb5
ANSI emulation is activated for the session when an escape sequence is encountered other than those used by internal messages. Fixes LucasArts setup programs (Bug #458 ) provided that ANSI emulation is not activated.
...
Compatible scroll fill for ANSI emulation.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4097
2018-05-03 16:49:48 +00:00
ripsaw8080
c7ced14d56
Support rarely used FCB feature: open file with search mask. Fixes Buckaroo Banzai.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4096
2018-05-03 16:08:53 +00:00
Peter Veenstra
5cb34a071d
Correct small error/warning.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4073
2018-01-31 18:21:54 +00:00
Peter Veenstra
f7ae7a1dbe
Fix narrowing warnings (errors on clang/freebsd) and an unhandled value in switch. (Part of patch #275 from strageqargo)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4072
2018-01-31 10:21:41 +00:00
ripsaw8080
34f99e9261
Remove some unnecessary things from prior commits; oops.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4063
2017-10-28 20:30:41 +00:00