1
0
Fork 0
Commit graph

800 commits

Author SHA1 Message Date
Peter Veenstra
f59ebfd303 Fix creation of devices using FCB_Create. Fixes MS Object linker 1.10 and thus bug #435.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3971
2016-03-18 16:48:25 +00:00
Peter Veenstra
30db525521 Fix compilation on visual studio
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3966
2016-02-12 08:06:04 +00:00
Peter Veenstra
c96a19e3d9 Test using Macro instead of &. Check for failure to open an image. Thanks Malvineous
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3965
2016-02-11 15:47:15 +00:00
Peter Veenstra
59805112d9 Use record size of 128 if it is 0 in the FCB when calling INT 21 AH=23 (fixes bug #433).
Set record size to 128 if it is 0 in the FCB when calling any FCB read/write function (ripsaw).
Fixes for acad 10:
- Add missing reference counting when the file is already open when calling FCB_Open, so that acad which uses FCBs and normal handles on the same file works better.
- Remove FCBs being added to the PSP filetable and rewrite most functions to support this change. This way acad won't run out of temporary (fcb) files when low on memory.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3962
2016-02-09 14:12:05 +00:00
ripsaw8080
dc4aabb403 Correct some offsets in the DTA for FCB-based search results. Fixes DIR listing in COMMAND.COM from MS-DOS and file info in XTree Gold.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3955
2015-12-21 17:14:42 +00:00
ripsaw8080
53a38b773a Improve internal ANSI support to adapt to currently displayed columns and rows. Fixes original Infocom interpreters when using something other than 80x25.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3948
2015-10-19 23:37:06 +00:00
Peter Veenstra
4aaa632bd9 touch up cdrom stuff for mingw64 once again (ny00123)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3946
2015-10-05 08:11:45 +00:00
ripsaw8080
6c0cca1878 Don't write past the terminator in the DTA name field when setting search results. This is what DOS does, and writing junk after the terminator was not good in any case. Fixes file listing in the 16-bit version of Galaxy Player.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3945
2015-10-03 09:21:56 +00:00
ripsaw8080
1eecef3f33 Use full mask; fixes label search on FAT drives.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3944
2015-10-03 08:59:45 +00:00
Peter Veenstra
34cc2d6428 correct AX and BX, they contain information on the existence of the drives specified in the FCBs in the execute block.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3941
2015-10-02 20:16:28 +00:00
Peter Veenstra
cf9f8b2d3e -Add DOS_ToUpper which seems closer than just toupper, we might need to use it at more places than just the driveletter, but it is a big change.
-Rework FCB_ParseName:
-- Remove special code for . and .. as it was wrong
-- Continue reading the input string, when the max length of the field has been reached (123456789.12345 is read and returned as 12345678.123)
-- strip spaces before and after reading the separators.
-- The drive is always parsed (if present), it doesn't depend on the existence of said drive.
-- Fix parsing of .EXE and other extension only names
-- Always clear out current block and record size.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3940
2015-10-02 20:13:57 +00:00
Peter Veenstra
57ff3dfc95 Added commented out log message, to save some work
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3939
2015-10-02 20:02:55 +00:00
Peter Veenstra
39875d92da Add call to clear out some more fields, needed for fcb name parsing.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3938
2015-09-30 14:24:49 +00:00
ripsaw8080
1b7b92ed8a Add alternate font tables and associated loading logic in video BIOS, allowing correct gaps between "wide" characters (e.g. m,w,M,W,T,Z,0) in all VGA machine types.
Update all related BIOS memory values and CRTC registers when loading fonts, fixing quirks in some textmode programs like Inertia Player. Based in part on a patch by h-a-l-9000.

Improve support for MDA emulation in the vgaonly machine type, as it is the only way the video BIOS can make use of the 14-line alternate symbols.

Be compatible by setting the INT 43h vector to the first half of the 8-line font table for standard text modes. Fixes a few obscure games and demos that rely on this BIOS behavior.

Move VESA mode table and OEM string before font tables in the video ROM, which is a more compatible ordering and gives the data low address offsets that work around a bug in some programs such as the Abuse game and Molejo demo.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3932
2015-08-28 14:37:25 +00:00
Peter Veenstra
5c10edabb8 readb returns 8 bit value. (fixes some logging warnings later on)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3918
2015-06-05 13:31:45 +00:00
Peter Veenstra
fefe419a27 Fix (accidental) compare, fix values and removed the whole line as it wasn't used (see comment)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3915
2015-06-05 13:19:09 +00:00
ripsaw8080
937dcdb1ee Use normal teletype function for non-ANSI output so the default attribute 7 applies only to graphics modes and existing attributes are not changed in text modes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3912
2015-05-13 01:24:56 +00:00
Peter Veenstra
5a7b43f704 Introduce mount -pr to mount paths relative to last loaded configuration file.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3911
2015-05-01 12:48:27 +00:00
ripsaw8080
1363f5ed68 Add support for DOS 1.x floppy images. Also a small fix to the FAT drive FindNext so it doesn't require a terminating entry in the root directory.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3906
2015-03-13 13:52:48 +00:00
ripsaw8080
235939e277 Attempting to unlink (delete) an existing device name returns an access denied error. Fixes EMM device driver detection, and thus SoundBlaster sound, in the Striker soccer game. Also add a log message for FindFirst.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3905
2015-03-13 13:47:26 +00:00
ripsaw8080
bd6e01565d Amend previous MSCDEX change to use presence of cdrom device to determine the installed condition, which means unmounting will not revert to the uninstalled condition. Pass unhandled functions back to the multiplex handler, which if nothing else will generate log messages about them being unhandled.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3902
2015-03-13 12:35:30 +00:00
ripsaw8080
f458d07983 No response from MSCDEX when it's not installed/active. Allows install programs from the V for Victory series of games to work provided no cdrom drives are mounted.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3897
2015-02-11 17:46:12 +00:00
ripsaw8080
3c8a5bdc95 Scan for illegal characters in directory and file names after trimming to 8.3 rather than before. Fixes Hexx and maybe others that neglect the Z in ASCIIZ.
Coalesce free memory blocks before resizing a block in case it grows; coalesce after after resizing only if the block shrinks.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3895
2015-01-28 22:19:20 +00:00
ripsaw8080
84bb06ea60 Arrange stack to restore registers when a child PSP is terminated. Fixes crashes in some demos (Blashphemy by Fatal Justice, Dreamwar by Elfsong, Mystic by Xenogenesis, et al).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3892
2015-01-10 13:47:31 +00:00
ripsaw8080
933174fb3e Add support for High Sierra format cdrom images.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3886
2015-01-08 17:23:15 +00:00
ripsaw8080
5fef7164a5 Coalesce free memory blocks after resizing a block rather than before. Fixes some MicroProse games on the Tandy machine type. Also add error exits in case of a corrupt MCB chain instead of hanging in an infinite loop.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3882
2015-01-06 17:48:07 +00:00
ripsaw8080
58a149deec Don't count trailing spaces when checking if path is too long. Enable all write planes in the EGA FillRow function. Fixes crash and glitched graphics in Quest Maker 2 and derived adventure games (House of No Doors, Hot Rod Harry, et al).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3881
2015-01-06 17:33:39 +00:00
ripsaw8080
d2209e10b5 Change the console device to use the DOS default attribute of 7 when ANSI is not active. Fixes glitched text in Space Pilot, and generally improves compatibility of console text output in graphics modes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3880
2015-01-06 17:16:00 +00:00
ripsaw8080
92ca5488b9 The emulated floppy drive does not use DMA, but make it look like it does when booting. Fixes CGA graphics in the Demon's Forge booter.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3879
2015-01-06 16:51:22 +00:00
Peter Veenstra
0f4c92ca32 Year update.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3878
2015-01-06 14:40:32 +00:00
Peter Veenstra
f06067e101 Add missing error message.
Rewrite CDRom to CD-ROM for consistency.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3876
2014-12-12 19:04:40 +00:00
Peter Veenstra
b2a6860032 Reading from NUL changed to report 0 bytes read. Prevents infinite read loops on NUL.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3875
2014-12-12 19:02:37 +00:00
Peter Veenstra
952c48c5cf This seems to make i686-MinGW-w64 happy. Combination of patch 261 on SF.net and input on IRC
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3872
2014-11-06 18:58:14 +00:00
Peter Veenstra
ee0367653b stdprn is now really prn and you can't read from it. Fixes a weird runtime that reads the PRN handle.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3858
2014-01-12 13:43:47 +00:00
ripsaw8080
49875ee505 CD audio status returns zero start and end times when no track is playing. Fixes The Manhole.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3839
2013-10-22 17:40:41 +00:00
Peter Veenstra
8e017c87c3 Workaround for using (windows) directories insides cue files on Linux.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3830
2013-05-21 18:15:15 +00:00
Peter Veenstra
ffd5cf861e Enable interupts after running INT 25 and 26, fixes Eol-ui Moheom installer (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3822
2013-03-18 12:34:13 +00:00
Peter Veenstra
16696af9b6 A cdrom has always 65535 clusters on a drive. Fixes regression with titus CD with mount, fixes usage with an image as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3819
2013-02-26 20:22:15 +00:00
Peter Veenstra
2fea508f7f Year update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3812
2013-01-15 09:03:13 +00:00
Peter Veenstra
613c8fb9d4 Use modification instead of creation date.(rcblanke)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3809
2013-01-01 12:53:00 +00:00
Peter Veenstra
5e5fac479e Last part of multi floppy patch by rcblanke.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3808
2012-12-30 17:47:28 +00:00
Peter Veenstra
0997973e0d Add some way to search for the volume label on a fatDrive. Merged the patch of ripsaw and rcblanke together..
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3807
2012-12-27 21:24:46 +00:00
Peter Veenstra
5eb1217cb4 Move buffer to class for upcomming multiple floppy support (rcblanke). Remove heavy bios_disk dependency from drives.h
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3806
2012-12-26 16:14:19 +00:00
Peter Veenstra
6cdc27910a Fix oversight in r3666. (danoon)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3798
2012-09-25 20:17:26 +00:00
Peter Veenstra
2ea5727f6a undo fix for maagi. it doesn't work correctly afterall
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3797
2012-09-02 14:33:23 +00:00
Peter Veenstra
36f2cb29f4 Fix Maagi (finnish game)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3796
2012-09-02 13:45:31 +00:00
Peter Veenstra
361df4799c Only copy the parts that have actually data to the requesting client for VTOC and friends. Fixes kickOff 98 (thanks ripsaw).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3795
2012-08-23 04:28:34 +00:00
Peter Veenstra
ad12df4c25 CDROMs are handled differently with no label supplied (see findfirst in drive_local.cpp). Improves College Slam. (thanks ripsaw for spotting this)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3794
2012-08-23 04:26:32 +00:00
Peter Veenstra
41729e0ca5 don't go lower than 20 files. Makes little sense and it is incompatible with a clipper program. (thanks ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3790
2012-08-03 07:59:15 +00:00
Peter Veenstra
b216a9835e black gold installer (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3784
2012-06-30 11:44:40 +00:00