1
0
Fork 0
Commit graph

620 commits

Author SHA1 Message Date
Patryk Obara
07fc74cff4 Silence 12 switch warnings
Author's intention was sufficiently explained in the comment
in this case.
2019-12-10 12:40:07 +01:00
Patryk Obara
fe519d0344 Merge branch 'svn/trunk' r4297 2019-12-10 00:07:41 +01:00
ripsaw8080
0987fb6f0c Correct an oversight in INT10_GetDACPage; fixes blank screen in Blue Force on vgaonly machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4297
2019-12-09 18:03:55 +00:00
krcroft
ef2686ac02 Switch from std::vector to std::array 2019-12-09 09:11:16 +01:00
krcroft
c9198b2944 Fix unsafe memory operations and warnings in the fatDrive class
- Move imageDiskList from pointer to vector of unique_ptr
- Replace string operations with size-limited versions
- Initialize members
- Eliminate unecessary casts
- Eliminate memory-leak on pointer assignment
2019-12-09 08:19:26 +01:00
Patryk Obara
f3b8bff3f5 Remove unused private field in device_EMM 2019-11-29 06:27:14 +01:00
Patryk Obara
7afc052550 Silence "unused-const-variable" warning
This register dump looks useful, but it was never used for anything…
2019-11-29 06:27:14 +01:00
Patryk Obara
e831d0b090 Remove pointless switch causing warnings 2019-11-29 06:27:14 +01:00
Patryk Obara
2487242011 Silence compiler warnings introduced in r4277 2019-11-02 19:29:03 +01:00
Patryk Obara
b42a1b31ba Merge branch 'svn/trunk' r4277 2019-10-29 20:22:32 +01:00
ripsaw8080
0622d45e38 Remove cases not needed after r4276
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4277
2019-10-29 14:39:02 +00:00
Patryk Obara
b87966cd11 Merge branch 'svn/trunk' r4276 2019-10-28 05:37:16 +01:00
ripsaw8080
b79f76ad4d Remove defunct code related to the initial display mode of the system BIOS during video mode changes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4276
2019-10-27 19:08:57 +00:00
Patryk Obara
a323e173c2 Merge branch 'svn/trunk' 2019-10-03 23:44:48 +02: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
Patryk Obara
b62a637157 Import svn:ignore props to .gitignore files 2019-09-15 20:34:57 +02: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
ripsaw8080
911cc38865 Add logic in mouse driver to ignore button events that are out of sequence. Fixes International Rugby Challenge when clicking to lock the mouse.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4214
2019-04-20 22:50:31 +00:00
ripsaw8080
8688dc9702 Add IBM signature in EGA video BIOS for compatibility. Fixes EGA detection in 221 B Baker Street. Also include trailing space in signature in case it is checked with word values.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4204
2019-04-08 21:13:00 +00:00
ripsaw8080
45f28b12bd Only standard 3-byte mouse data packets are supported, so return an error for other packet sizes. MS Mouse driver versions 9.X and later use 1-byte packets for some obscure reason, and now they won't load instead of messing up.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4191
2019-02-04 15:27:26 +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
ripsaw8080
014326476f CMOS equipment list startup display mode bits differ from BIOS on EGA/VGA; fixes Sauro.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4186
2019-02-04 15:09:56 +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
ripsaw8080
3a2b3c6d57 Reset write ops after drawing text in EGA graphics modes, consistent with EGA/VGA BIOS. Fixes Fun School 3.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4169
2018-11-12 16:39:49 +00:00
ripsaw8080
dd304cbef1 Return correct error code for verify sectors function when an invalid drive is specified. Fixes Hugo Troll game installers.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4137
2018-08-17 14:28:56 +00:00
ripsaw8080
01e3789c49 Leave attribute controller in index state after a mode change. Some video BIOS do this, some don't, but it works around a flaw in the Kukoo2 demo.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4134
2018-08-05 13:28:29 +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
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
Peter Veenstra
a8633eff6a Slight corrections to r4091, CX and DX should not be changed for floppies. Changing reported floppy type to one without changeline as we don't support that call.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4101
2018-05-09 18:41:47 +00:00
Peter Veenstra
a4373c0995 Add basic support for INT 13 call 15. Used by korean powerdolls to detect harddrive.
SF bug #477

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4091
2018-04-04 11:14:03 +00:00
Peter Veenstra
aa8bf6041e Declare static functions in header file as static inline, as that reduces warnings quite a bit.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4071
2018-01-30 15:58:28 +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
ripsaw8080
29bb526d20 Implement update region in mouse driver; only text modes for now. Fixes mouse pointer problems in Microsoft Programmer's Library.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4062
2017-10-28 19:49:11 +00:00
ripsaw8080
e24b034d20 Add patch #265 to correct parameters and clock rate for some EGA modes. Also apply the yellow->brown fix to EGA text modes as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4061
2017-10-28 19:48:26 +00:00
Peter Veenstra
eca070fce9 silence warning 4018, unsigned char/unsigned char => (signed) int (thanks wjp)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4059
2017-10-10 15:07:25 +00:00
ripsaw8080
4aa821d0e6 Implement waiting for retrace in VBE functions. Remove range checks in protected mode functions, consistent with UniVBE and other VBE implementations. Fixes hang and graphics glitches in Jack Orlando.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4048
2017-09-10 11:29:34 +00:00
ripsaw8080
42a0b61a65 Remove error exit for unknown functions of INT 17h. Fixes a DOS shell program.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4045
2017-09-10 11:20:35 +00:00
Peter Veenstra
6cf39c1fc6 Years update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4021
2017-05-30 11:35:08 +00:00
ripsaw8080
d6e983b08d Handle errant IRQs as a real BIOS does. Fixes Tandy DAC in Chuck Yeager's Air Combat. Also remove r3263 workaround, as it's no longer needed.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4009
2017-05-01 15:32:29 +00:00
ripsaw8080
97bb6e4127 Correct INT 15h function 6 to return error. Prevents Cyrus Chess from erroneously detecting an Amstrad system.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4008
2017-04-14 23:03:07 +00:00
ripsaw8080
7af6c79dbb Fix regression related to row-wrapping in some versions of Sierra Championship Boxing; status line in Bruce Lee remains correct.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4006
2017-01-15 16:33:06 +00:00
Peter Veenstra
a3345eed24 Spaces in LOG_MSG and some at the end of the line.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3999
2016-10-02 14:12:32 +00:00
ripsaw8080
c898d14351 Correct page count/size for CGA graphics modes. Fixes RS-2 on the CGA machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3987
2016-06-22 16:24:16 +00:00
ripsaw8080
64a04b9985 Be more compatible by converting tabs to spaces in the DOS console device rather than in the video BIOS teletype function.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3983
2016-05-23 11:33:09 +00:00
Peter Veenstra
9fc2c31a97 Support writing palette register data to dynamic save area if pointer is non-zero on mode changes. Fixes CV 2.2 (thanks for the help ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3982
2016-05-10 14:38:39 +00:00
ripsaw8080
2b32f2bfa9 Prevent problems related to I/O buffering with disk images.
Return a fake success result for INT 13/05. Helps older games (Sierra On-Line booters, Mickey's Space Adventure, Zyll, et al.) that insist on low-level formatting a floppy disk to be used for saving games.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3980
2016-04-18 13:07:18 +00:00
ripsaw8080
6f0506ec42 Graphics mode text drawing improvements: font source according to machine type, background color in 256-color modes, row wrapping.
Use compatible method of determining fill attribute for textmode screen scrolling in teletype function.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3976
2016-04-05 05:38:52 +00:00
ripsaw8080
77bb9df6a6 Reset CurMode object when detecting that the video mode number in BIOS memory was modified directly instead of through the INT 10h mode set function. Fixes cases where BIOS behavior is influenced with the mode number, such as the status line in Bruce Lee.
Set color modes (to the extent that they can be) on the Hercules machine type if the BIOS equipment list is not set to monochrome. Fixes missing text in Victory Road.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3975
2016-04-05 05:29:05 +00:00
ripsaw8080
3a8712202e Add support for mode 8 row copy/fill. Fixes Tandy GW-BASIC interpreter SCREEN 3 scrolling/clearing.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3973
2016-03-29 21:08:40 +00:00
ripsaw8080
663c86378f Fix screen clearing when setting mode 0xA on PCjr machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3970
2016-03-06 13:04:58 +00:00