Skip to content

1.8.3

Choose a tag to compare

@kibertoad kibertoad released this 09 Nov 08:53
· 2518 commits to main since this release

What's Changed

Kudos to our bug reporters

Big thanks to @willow3100 and @xttx for their detailed reports of game compatibility and performance problems!

Network play on the built-in Windows

Windows games on the built-in Windows can play multiplayer through DirectPlay: every member of a rust-dos LAN room sees the DirectPlay sessions hosted in it. DirectX 3's DPLAY.DLL is there too, for games that import it.

  • DirectPlay sessions over LAN rooms for the built-in Windows by @dividebysandwich in #557
  • Built-in Windows: IMM32 and ICInfo, DirectPlay games tested over the public relay (Age of Empires and Midtown Madness play over it) by @dividebysandwich in #704
  • win32: DPLAY.DLL, DirectX 3's DirectPlay, over DPLAYX by @kibertoad in #574

BlindWrite, Alcohol 120% and CloneCD images, and CD read timing

rust-dos now mounts BlindWrite 5 and 6 images (.B5T/.B6T with their .B5I/.B6I data) directly, with their subchannel, Alcohol 120% images (.mds with its .mdf), and CloneCD images (.ccd with its .img and .sub). A CUE sheet or bare image also picks up a <name>.sub or <name>.subcode file next to it (CloneCD's layout or redumper's), which copy protections such as SecuROM read. CD reads on the emulated ATAPI drive and through WNASPI32 now take the time a 40x drive takes to reach and read their sectors, and the DPM data in BlindWrite and Alcohol 120% images places the sectors where they are on the pressed disc, which SecuROM 4.8's disc read-timing check measures. SafeDisc 1 games pass their disc check from a CloneCD image or a Redump BIN, which keep the disc's unreadable sectors; an ISO doesn't. As with SafeDisc, use full rips of CDs you own.

  • Read BlindWrite 5 and 6 images, with their subchannel by @kibertoad in #592
  • SecuROM 4.84: debug registers in Win32 contexts, subchannel files beside CUE sheets by @kibertoad in #618
  • cdrom: time CD reads by where their sectors are on the disc by @kibertoad in #630
  • cdrom: read Alcohol 120% MDS images and their DPM data by @kibertoad in #647
  • Read CloneCD images (.ccd with .img and .sub) by @kibertoad in #813

SDL3

The rust-dos program now runs on SDL3 (SDL 3.4.20) instead of SDL2. The libretro core, the web build and rust-dos-relay don't use SDL and are unchanged.

Hardware emulation

Voodoo and OpenGL speed

  • voodoo: the picture waits only for the frame a swap shows, and the queue holds a frame by @kibertoad in #563
  • Voodoo OpenGL: alpha planes stay on the GPU when the same buffer reads them by @kibertoad in #566
  • OpenGL: a windowed context swaps no more than once a frame by @kibertoad in #569
  • Voodoo OpenGL: drawing into rows a program reads goes to software at once, on every card by @kibertoad in #571
  • voodoo: skip TMU 1 where TMU 0 ignores it, a raster variant for Myth by @kibertoad in #560
  • dynrec: MMX and dword stores into a Voodoo3's memory go in one call by @kibertoad in #573
  • D3D HAL: look up a heap texture without copying the texture list by @kibertoad in #709
  • ddraw: fill a Voodoo3's z-buffer with the 3D engine on a depth-fill Blt by @kibertoad in #835

Improved hardware support

  • Built-in Windows: GLIDE3X.DLL (Glide 3) by @kibertoad in #554
  • VBE: 640x400 in truecolour as OEM mode 213h on the generic Super VGA by @kibertoad in #556
  • OPL: a timer's mask bit clears its flag by @kibertoad in #625
  • Give a COM program started from the shell all of conventional memory by @kibertoad in #626
  • Mouse: keep the VGA mode's screen under a Voodoo's picture by @kibertoad in #590
  • Built-in Windows: the system's time moves with the machine's clock by @kibertoad in #558
  • win32: a preempted thread goes on with the rest of its turn by @kibertoad in #575
  • MSACM32: decode MS ADPCM and IMA ADPCM by @kibertoad in #570
  • Direct3D HAL: a depth clear makes the buffer the card's depth buffer by @kibertoad in #568
  • d3d: Clear of a missing depth buffer or stencil fails as on Windows by @kibertoad in #620
  • Built-in Windows: the tables carry Windows 98 SE's ordinals (DirectX 6.1's DDRAW and DINPUT ordinals, SHELL32 #179) by @kibertoad in #624
  • Built-in Windows: Petite's unpacker runs to its end by @kibertoad in #581
  • Flat FT thunks and self-loading NE libraries by @kibertoad in #605
  • Built-in Windows: tab pages paint, EnumSurfaces describes a creatable surface by @kibertoad in #584
  • win32: a hardware interrupt in a program's level 0 code returns to it by @kibertoad in #637
  • win16: a module's 32-bit resource image pages its data in as asked by @kibertoad in #639
  • win16: carry out mciSendCommand through WINMM's MCI by @kibertoad in #640
  • win16: a filter hook's return no longer overwrites the modal loop's stack by @kibertoad in #641
  • Win16: USER's comm functions on the UARTs, and GDI.GetAspectRatioFilter by @kibertoad in #650
  • dos: answer INT 21h AX=6300h and AX=6507h with an empty DBCS table by @kibertoad in #654
  • win16: a message between tasks hands the turn to the task it goes to by @kibertoad in #656
  • GDI: a blit to monochrome matches the background colour as stored by @kibertoad in #659
  • mouse: count mickeys by the motion on the picture, alike on both axes by @kibertoad in #662
  • Built-in Windows: TAPI32 of a machine with no modem by @kibertoad in #663
  • AVIVideo: play RLE8 pictures and ADPCM sound by @kibertoad in #670
  • vfw: Cinepak codec (iccvid), for MCIAVI, AVIFile and DrawDib by @kibertoad in #672
  • user32: windows of CS_SAVEBITS classes give back the screen under them by @kibertoad in #674
  • dos: a device name may end in a colon (NUL:) by @kibertoad in #675
  • mci: AVIVideo realizes the movie's palette on a 256-colour desktop by @kibertoad in #676
  • autospeed: a Sound Blaster reset ends the loading boost at once by @kibertoad in #677
  • gdi32: dither solid brushes on a 256-colour desktop as Windows 95 does by @kibertoad in #682
  • win32: no thin frame for a top-level window without WS_BORDER by @kibertoad in #686
  • Built-in Windows: a CD drive's free space and attributes as Windows 98's CDFS gives them by @kibertoad in #692
  • MCI cdaudio: Windows 98's track lengths, and seeks and plays without parameters by @kibertoad in #693
  • Keep the total memory at 40:15h on a Tandy 1000 and a PCjr by @kibertoad in #702
  • disk: keep a host file's position instead of asking the host by @kibertoad in #706
  • D3D HAL: sample where Direct3D puts a pixel's centre, as 3dfx's driver does (Glover's HUD and Xenocracy's line-drawn HUD match it) by @kibertoad in #710
  • Built-in Windows: OLEDLG.DLL and OLEPRO32.DLL by @kibertoad in #712
  • Keep the keyboard controller's IRQ when the shell resets the PIC by @kibertoad in #717
  • Call a real-mode mouse event handler while a DPMI client runs in protected mode by @kibertoad in #718
  • disk: folder hard disks show DOS 160 to 480 MB free in 16 KB clusters by @kibertoad in #724
  • Built-in Windows 98: NTDLL.DLL with RtlUnwind by @kibertoad in #729
  • KERNEL32: FindFirstChangeNotificationA, FindNext and FindClose by @kibertoad in #730
  • GDI32: GetTextMetricsA leaves TEXTMETRICA's padding alone by @kibertoad in #734
  • user32: send WM_WINDOWPOSCHANGED also with SWP_NOSENDCHANGING by @kibertoad in #735
  • Built-in Windows: GLU32.DLL, Microsoft's GLU 1.2 on OPENGL32 by @kibertoad in #736
  • kernel32: SystemTimeToTzSpecificLocalTime as Windows 98 SE's stub by @kibertoad in #740
  • opengl32: GL_EXT_bgra on a Banshee and Voodoo3, as 3dfx's ICD has it by @kibertoad in #743
  • win32: CLI and STI go on, level 0 segments at 28h and 30h as on Windows 98 by @kibertoad in #748
  • Built-in Windows: MSVFW32's ICOpen and ICClose by @kibertoad in #750
  • DirectShow: RenderFile renders through a program's transform filter by @kibertoad in #755
  • DirectDraw: show the hidden window of exclusive mode, as MakeFullscreen does by @kibertoad in #762
  • Direct3D: Execute with D3DEXECUTE_UNCLIPPED doesn't clip by @kibertoad in #765
  • Shell: make a redirection's output file when the command isn't found by @kibertoad in #771
  • Point INT 22h at the return address on EXEC, as DOS does by @kibertoad in #775
  • cycles=auto: count only writes in the picture shown in VESA modes by @kibertoad in #776
  • idle: follow counters with paging on, and calls that change nothing (busy-wait loops of programs on the built-in Windows that count their passes are skipped, which saves host CPU time) by @kibertoad in #796
  • USER32: select an edit control's text when a dialog gives it the focus, as Windows 98 does by @kibertoad in #799
  • USER32: hiding keeps the active window, EndDialog enables and activates the owner by @kibertoad in #805
  • Built-in Windows: Notepad in C:\WINDOWS, for setups' readmes and text files a program opens by @kibertoad in #808
  • user32: move owners and owned windows with SetWindowPos as Windows 98 does (a dialog owned by a full-screen window stays above it) by @kibertoad in #811
  • auto speed: a real-mode program loads at full speed while it moves data on its drives by @kibertoad in #770
  • cycles=auto: a halted real-mode program isn't loading (speech streamed from the CD no longer starts the loading boost) by @kibertoad in #826
  • timer: auto's host estimate falls halfway to a sample the speed outruns by @kibertoad in #731
  • voodoo: a Banshee's 3D registers have no Voodoo2 blitter, as on the real Banshee and Voodoo3 by @kibertoad in #828
  • d3d: cut transformed triangles with their textures in perspective by @kibertoad in #836
  • msvcrt: _ftol as Windows 98 SE's x87 code, translated with the program's by @kibertoad in #840
  • gdi32: blits take the emulated time a period PC took for them by @kibertoad in #680

Games fixed and optimized

Omikron: The Nomad Soul

Reported by @xttx in #280. The CD release of Omikron now installs and runs on the built-in Windows. Its own setup takes the Full install, the autorun menu no longer crashes on its sounds, SafeDisc 1's loader gets through its checks the way it does on a real Windows 98 SE, and the three startup movies play through DirectShow before the game starts.

  • cdrom: a cue sheet's track 1 starts the disc at its INDEX 01 by @kibertoad in #603
  • win32: a folder hard disk has 1.75 to 3.75 GB free by @kibertoad in #608
  • winmm: PlaySoundA and sndPlaySoundA as Windows 98 SE's WINMM has them by @kibertoad in #609
  • win32: GetStartupInfoW, as Windows 98 SE's stub that fails by @kibertoad in #595
  • win32: a program's INT 68h finds no debugger, as on Windows 98 by @kibertoad in #612
  • win32: GetThreadContext writes only the parts its flags name by @kibertoad in #614
  • DirectShow: connect a program's own filters to the graph by @kibertoad in #599
  • win32: a hardware interrupt in a program's level 0 code returns to it (SafeDisc 1's loader no longer ends during its anti-debugging pass) by @kibertoad in #637
  • ddraw: fill a Voodoo3's z-buffer with the 3D engine on a depth-fill Blt (the city, the intro and the dialogues run at about 55 frames a second instead of about 20 with cycles=auto) by @kibertoad in #835
  • d3d: cut transformed triangles with their textures in perspective (floor and wall textures near the camera no longer stretch when it turns) by @kibertoad in #836
  • msvcrt: _ftol as Windows 98 SE's x87 code, translated with the program's (less host CPU time in the city) by @kibertoad in #840

Lands of Lore: Guardians of Destiny

Reported by @willow3100 in #467.

  • game_fixes: give Lands of Lore 2 32 MB of virtual memory (the crash after its launcher) by @kibertoad in #582
  • Mouse: keep the VGA mode's screen under a Voodoo's picture (clicks offset from the pointer in 3dfx mode) by @kibertoad in #590
  • Voodoo OpenGL: alpha planes stay on the GPU when the same buffer reads them by @kibertoad in #566

Oni

  • MSACM32: decode MS ADPCM and IMA ADPCM (music, voices and effects) by @kibertoad in #570
  • Direct3D HAL: a depth clear makes the buffer the card's depth buffer by @kibertoad in #568
  • OpenGL: a windowed context swaps no more than once a frame by @kibertoad in #569

Test Drive 4

  • Voodoo OpenGL: drawing into rows a program reads goes to software at once (the sun's lens-flare check no longer halves the frame rate) by @kibertoad in #571

Bedlam

  • win32: DPLAY.DLL, DirectX 3's DirectPlay, over DPLAYX (Bedlam loads) by @kibertoad in #574
  • win32: a preempted thread goes on with the rest of its turn (no black screen after loading) by @kibertoad in #575

MechCommander

  • dynrec: MMX and dword stores into a Voodoo3's memory go in one call by @kibertoad in #573

Myth: The Fallen Lords

  • voodoo: skip TMU 1 where TMU 0 ignores it, a raster variant for Myth by @kibertoad in #560

Magic & Mayhem

  • Built-in Windows: the system's time moves with the machine's clock by @kibertoad in #558

Moto Racer

Titus the Fox and Moktar

  • OPL: a timer's mask bit clears its flag (both find the AdLib and play FM music instead of PC speaker) by @kibertoad in #625

Prehistorik

  • Give a COM program started from the shell all of conventional memory (the CD loader no longer fails with error 07) by @kibertoad in #626

Zanzarah: The Hidden Portal

  • Gets past its launcher to the title screen. It needs a card with DXTn textures to go further (#615). By @kibertoad in #584

Submarine Titans

  • Built-in Windows 98: NTDLL.DLL with RtlUnwind (its D3DRM.DLL loads) by @kibertoad in #729
  • KERNEL32: FindFirstChangeNotificationA, FindNext and FindClose (gets past the title screen) by @kibertoad in #730
  • GDI32: GetTextMetricsA leaves TEXTMETRICA's padding alone (its text shows) by @kibertoad in #734
  • DirectShow: RenderFile renders through a program's transform filter (no crash in its startup movie) by @kibertoad in #755
  • DirectShow: the decoder uses the allocator a program's input pin gives (its movies play) by @kibertoad in #761
  • win32: a file mapping reads its pages from the file when they are touched (missions start at 128 MB) by @kibertoad in #788

Myth II: Soulblighter

  • Built-in Windows: GLU32.DLL, Microsoft's GLU 1.2 on OPENGL32 (version 1.8.3 needs it to start) by @kibertoad in #736
  • opengl32: GL_EXT_bgra on a Banshee and Voodoo3, as 3dfx's ICD has it (finds its OpenGL device) by @kibertoad in #743
  • user32: send WM_WINDOWPOSCHANGED also with SWP_NOSENDCHANGING (no longer stays on the desktop) by @kibertoad in #735
  • kernel32: SystemTimeToTzSpecificLocalTime as Windows 98 SE's stub (opening its saved games no longer exits) by @kibertoad in #740

Metal Marines

  • win16: a module's 32-bit resource image pages its data in as asked (no longer quits at memsize=32) by @kibertoad in #639
  • win16: carry out mciSendCommand through WINMM's MCI (theme music and readout movies) by @kibertoad in #640
  • vfw: Cinepak codec (iccvid) (the readout movies' pictures) by @kibertoad in #672
  • win16: a filter hook's return no longer overwrites the modal loop's stack (no page fault closing the Connections dialog's message box) by @kibertoad in #641
  • win16: a message between tasks hands the turn to the task it goes to (Video for Windows setup's dialog comes to the front) by @kibertoad in #656
  • Win16: USER's comm functions on the UARTs, and GDI.GetAspectRatioFilter (serial play) by @kibertoad in #650

Chaos Overlords

  • Built-in Windows: TAPI32 of a machine with no modem (starts) by @kibertoad in #663
  • GDI: a blit to monochrome matches the background colour as stored (transparent pictures instead of white boxes) by @kibertoad in #659
  • user32: windows of CS_SAVEBITS classes give back the screen under them (the file dialog from the menu bar shows) by @kibertoad in #674
  • gdi32: blits take the emulated time a period PC took for them (the black screen at startup lasts about a second instead of over 30) by @kibertoad in #680

Wages of War

  • AVIVideo: play RLE8 pictures and ADPCM sound (the intro and credits) by @kibertoad in #670
  • mci: AVIVideo realizes the movie's palette on a 256-colour desktop (the movies are no longer black) by @kibertoad in #676
  • gdi32: dither solid brushes on a 256-colour desktop as Windows 95 does (the setup's gradient) by @kibertoad in #682

Drakan: Order of the Flame

  • Built-in Windows: a CD drive's free space and attributes as Windows 98's CDFS gives them by @kibertoad in #692
  • MCI cdaudio: Windows 98's track lengths, and seeks and plays without parameters by @kibertoad in #693
  • D3D HAL: look up a heap texture without copying the texture list (less work per draw in the first level, #699) by @kibertoad in #709

Railroad Tycoon II

  • win32: no thin frame for a top-level window without WS_BORDER (the picture in place, and edge scrolling at the screen's edge) by @kibertoad in #686
  • disk: keep a host file's position instead of asking the host (the idle map no longer spins) by @kibertoad in #706

WarGames

  • DirectDraw: show the hidden window of exclusive mode, as MakeFullscreen does (mouse clicks reach the game) by @kibertoad in #762
  • Direct3D: Execute with D3DEXECUTE_UNCLIPPED doesn't clip (3D objects are drawn) by @kibertoad in #765
  • Built-in Windows: Notepad in C:\WINDOWS (the setup's "View readme file now" opens the readme) by @kibertoad in #808
  • user32: move owners and owned windows with SetWindowPos as Windows 98 does (the device dialog stays above the full-screen game) by @kibertoad in #811

Birthright: The Gorgon's Alliance

  • dos: answer INT 21h AX=6300h and AX=6507h with an empty DBCS table by @kibertoad in #654
  • mouse: count mickeys by the motion on the picture, alike on both axes (the cursor moves at the same speed down as across) by @kibertoad in #662

Kingdom O' Magic

  • dos: a device name may end in a colon (DIR D: >nul: no longer fails) by @kibertoad in #675
  • autospeed: a Sound Blaster reset ends the loading boost at once (no "Incorrect IRQ" with the Sound Blaster Pro driver) by @kibertoad in #677

ShadowCaster

  • Keep the keyboard controller's IRQ when the shell resets the PIC (the keyboard works after a program ends with a key waiting) by @kibertoad in #717
  • Call a real-mode mouse event handler while a DPMI client runs in protected mode (the mouse works) by @kibertoad in #718
  • Sound Blaster: AC-couple the card's output (its driver probe no longer leaves a DC offset in the mix) by @kibertoad in #793

Civilization

  • Keep the total memory at 40:15h on a Tandy 1000 and a PCjr (starts in Tandy mode without MEM.ERR) by @kibertoad in #702
  • Log a PIT channel 0 rate only when it changes (the log no longer fills) by @kibertoad in #697

Gender Wars

  • cycles=auto: count only writes in the picture shown in VESA modes (missions at 60 fps instead of 20 to 30) by @kibertoad in #776

Rent-A-Hero

  • Built-in Windows: MSVFW32's ICOpen and ICClose (gets past its check for Indeo Video 5) by @kibertoad in #750
  • USER32: select an edit control's text when a dialog gives it the focus (a typed save name replaces "Empty...") by @kibertoad in #799

Discworld Noir

  • Built-in Windows: OLEDLG.DLL and OLEPRO32.DLL (its setup runs) by @kibertoad in #712
  • USER32: hiding keeps the active window, EndDialog enables and activates the owner (the setup's Installing window stays usable after a disc change) by @kibertoad in #805
  • Read CloneCD images (its SafeDisc 1 disc check passes from a CloneCD image) by @kibertoad in #813

Anachronox

  • win32: CLI and STI go on, level 0 segments at 28h and 30h as on Windows 98 (part of SafeDisc 2.30's debugger detection, #747) by @kibertoad in #748
  • win32: VMM_GetVxDLocationList and VXDLDR_GetDeviceList at level 0, as on Windows 98 SE (part of SafeDisc 2.30's checks) by @kibertoad in #819

Shannara

  • disk: folder hard disks show DOS 160 to 480 MB free in 16 KB clusters (the Optimum install is accepted) by @kibertoad in #724
  • timer: auto's host estimate falls halfway to a sample the speed outruns (fewer sound dropouts with cycles=auto) by @kibertoad in #731

Bureau 13

  • Point INT 22h at the return address on EXEC, as DOS does (SETUP no longer says there is not enough memory) by @kibertoad in #775

Wolf

  • Shell: make a redirection's output file when the command isn't found (its POWER.EXE > C:POWERFL check) by @kibertoad in #771
  • auto speed: a real-mode program loads at full speed while it moves data on its drives (its "Loading... Wait, please." screens take seconds instead of about 30) by @kibertoad in #770

Enemy Infestation

  • idle: follow counters with paging on (the wait loop of its intro movie is skipped, and the host's CPU use there falls from about 50 % to 14 %) by @kibertoad in #796

Grom: Terror in Tibet

  • Grom now gets through its own unpacker, SecuROM's thunks and its tracing. With a BlindWrite or Alcohol 120% image that carries a DPM measurement of the original disc, it passes SecuROM's disc read-timing check (#617) and goes on to set up Direct3D; it then stops because the Voodoo3 has no A8R8G8B8 texture format (#645), a card below the game's minimum. In #581, #605, #618, #630 and #647

Other changes:

  • Save states: W32 section version 46, for DirectPlay's sessions, Glide 3, MSACM32's streams, OpenGL swap pacing, preempted threads, DirectShow's program filters and their joints, Win16 self-loading modules, each thread's debug registers, AVIVideo's palette, Win16's open serial ports, the screens kept under CS_SAVEBITS windows, the Win16 task a message handed the turn to, the codecs a process opened with ICOpen, change notification handles, the allocators DirectShow's input pins give, each file view's protection, and the ASPI drive's head and its requests' due times; IDE section version 3, for the ATAPI CD drive's head; serial section version 2; a new section for the queued keys the BIOS never saw. States saved by earlier versions on the built-in Windows, of a booted system with IDE drives, or with a serial port don't load; other older states still load. In #554, #557, #569, #570, #575, #599, #605, #618, #650, #656, #674, #676, #723, #730, #750, #755, #761, #788 and #630
  • version_check=never: off for good, for copies shipped with a game by @kibertoad in #564
  • docs: the built-in Windows has a page for players (docs/builtin-windows.md) and an architecture reference for developers (docs/builtin-windows-architecture.md); game notes are in docs/compatibility.md. By @kibertoad in #608
  • tests: seven test programs instead of one per file, run with cargo-nextest by @kibertoad in #553
  • CI: keep test (linux-x86_64) from filling the runner's disk by @kibertoad in #547
  • Save states: keep which queued keys the BIOS never saw by @kibertoad in #723
  • GLU test: the built-in OpenGL lists GL_EXT_bgra on a Voodoo3 by @kibertoad in #780
  • CI: run push builds on main and tags only by @kibertoad in #781
  • Stop tracking Python bytecode caches by @kibertoad in #820
  • docs: guides to the 3dfx cards (docs/3dfx.md) and to copy-protected discs (docs/copy-protection.md) by @kibertoad in #822

Full Changelog: v1.8.2...v1.8.3