Skip to content

v1.8.0

Choose a tag to compare

@dividebysandwich dividebysandwich released this 29 Oct 08:18
· 4617 commits to main since this release
a842b23

What's Changed

Built-in Windows support

rust-dos now provides out-of-the-box support not only for DOS, but also for Windows 3.1, 95 and 98. You no longer need to provide your own Windows image! See Windows games for how to turn it on and install a game.

This support is currently experimental, many games can be slow or completely broken. Please report any issues you observe when using built-in Windows mode.

This feature was designed and implemented by @kibertoad.

  • Built-in Windows, phase 0: Win32 console programs by @kibertoad in #140
  • Built-in Windows phase 1: KERNEL32, SEH, registry and MSVCRT by @kibertoad in #143
  • Built-in Windows phase 2: USER32 and GDI32 by @kibertoad in #152
  • Built-in Windows phase 3: DirectDraw, DirectSound, DirectInput, WinMM by @kibertoad in #156
  • Built-in Windows phase 4: Glide and Direct3D on the emulated Voodoo by @kibertoad in #160
  • Built-in Windows phase 5: setup programs, installer archives, Windows 98, DirectMusic by @kibertoad in #168
  • Built-in Windows phase 6: Win16 by @kibertoad in #187
  • Run Wine's conformance tests against the built-in Windows by @kibertoad in #141
  • docs: installing Windows games for the built-in Windows by @kibertoad in #179
  • Debugger: show DirectDraw's surfaces and their pixels by @kibertoad in #189
  • Debugger: disassemble a linear address as the running code's size by @kibertoad in #190
  • D3D8.DLL: DirectX 8.1's Direct3D on the Banshee and Voodoo3 HAL by @kibertoad in #200
  • kernel32: match GetVolumeInformationA's serial and FAT32 name to DOS by @kibertoad in #216
  • user32: maximize at the thick frame, menus in MS Sans Serif, Win16 caption and menu heights by @kibertoad in #244
  • Built-in Windows: collapse repeated API calls in the log, keep a full log file rolling by @kibertoad in #248
  • Built-in Windows: the arrow from the start, and WM_SETCURSOR for mouse messages by @kibertoad in #281
  • ddraw: GetFlipStatus and card Flip polls see the pending flip by @kibertoad in #285
  • OPENGL32: take flat colors from OpenGL's provoking vertex by @kibertoad in #283

Online Settings Almanac

image
  • Rust-DOS can now report settings you identify as working to https://almanac.rust-dos.com - this includes the processor, RAM, and any other configuration that is needed to make the game you're playing work.
  • Users can now search for and download settings reported by other users as working. This can be applied to game packages as well as independently, by entering the Emulation settings and searching for the game you want to play.

The Almanac is a user-powered database. Moderators may "bless" certain settings for individual games, otherwise the system will form a consensus across all the reported settings.

Hardware emulation

3dfx games on the OpenGL renderer

These changes speed up every game that runs on the emulated 3dfx card with voodoo_renderer=opengl. The Voodoo3's 2D work (DirectDraw blits and fills, presents, clears) now runs on the GPU, and the software rasterizer no longer draws again what later frames cover.

  • Voodoo3 OpenGL: 2D blits, presents and clears on the GPU by @kibertoad in #276
  • Voodoo OpenGL: prune what later frames draw over, copy texels for held jobs by @kibertoad in #277
  • Voodoo3 OpenGL: keep the compositor under small texture limits and without the blit shader by @kibertoad in #289

Improved hardware support

  • Voodoo3/Banshee: keep scanout in software in libretro too by @kibertoad in #145
  • Voodoo GL: dither to 5-6-5 as the card does (voodoo_dither) by @kibertoad in #157
  • Reduce mode 13h rendering row comparisons by @firestrand in #159
  • video: limit mode 12h rendering to dirty rows by @firestrand in #161
  • string: skip the matching elements of REPE/REPNE CMPS and SCAS at once by @kibertoad in #171
  • Translate RCP/RSQRT, COMISS, the scalar SSE conversions and PREFETCH by @kibertoad in #297
  • video: add xBRZ 2x shader by @firestrand in #215

Games fixed and optimized

Oni

  • Remove per-triangle, per-call and per-scanline allocations in video paths by @kibertoad in #144
  • Voodoo: keyed raster dispatch, and variants for Oni's menu states by @kibertoad in #146
  • Voodoo GL: cache uniform locations and values, reuse texture storage by @kibertoad in #147
  • Voodoo2: queue SGRAM fills of whole buffers behind the drawing by @kibertoad in #149

Magic & Mayhem

  • Translate MMX and SSE stores into device memory by @kibertoad in #136
  • Idle detection: skip a Windows game's GetTickCount frame limiter by @kibertoad in #137

Incoming

  • Store frames as RGBA and carry decoder row bounds to the frontends by @kibertoad in #150
  • Voodoo3/Banshee: draw with the OpenGL renderer by @kibertoad in #151

Blood & Magic

Star Command Revolution

  • DPMI: a stub reached through another handler's chain goes on to the original vector by @kibertoad in #163

Millennia: Altered Destinies

  • EXEC gives an EXE file no more than its MAXALLOC paragraphs by @kibertoad in #164
  • Skip PLAYER.EXE only when DSWAP.EXE is beside it by @kibertoad in #165

Alien Legacy

  • bios: start the tick count at the time of day under the built-in DOS by @kibertoad in #169
  • autospeed: count frames copied as what changed by @kibertoad in #170
  • dynrec: translate LAR and MOV/POP SS in protected mode by @kibertoad in #172
  • Count used clusters on folder hard disks so free space drops as files are written by @kibertoad in #173
  • DIR: /W, /P and /B by @kibertoad in #176

Xenocracy

  • Built-in Windows: give later InstallShield 5 engines the setup's folder and language by @kibertoad in #180
  • win32: give folder hard disks a larger fake size for GetDiskFreeSpace by @kibertoad in #181
  • win32: add GetLogicalDriveStringsA by @kibertoad in #182
  • win32: let an environment variable's name start with "=" by @kibertoad in #183
  • win32: find an unquoted program path with spaces as Windows does by @kibertoad in #184
  • Built-in Windows: read the mouse before taking a message by @kibertoad in #185
  • Built-in Windows: give joysticks the axes and buttons the game port has by @kibertoad in #186
  • Shell: let CD, MD and RD take a quoted path by @kibertoad in #192
  • Built-in Windows: WinExec and WaitForInputIdle wait for the child to be idle by @kibertoad in #193
  • Built-in Windows: add the registry's Setup key with WinDir and SysDir by @kibertoad in #194
  • Built-in Windows: give MS Sans Serif and System Windows 98's character widths by @kibertoad in #195
  • Built-in Windows: show the built-in DLLs as files in C:\WINDOWS\SYSTEM by @kibertoad in #196

Zanzarah

  • PE loader: map raw data past a section's virtual size by @kibertoad in #197
  • USER32: map COMCTL32 into a process that makes a window of its classes by @kibertoad in #198
  • ADVAPI32: make a Shell Folders path's folder when a program reads it by @kibertoad in #199
  • WS2_32 without a network, and IMAGEHLP for crash handlers by @kibertoad in #201

Iron Helix

  • DOS: a missing file in the shown system directory is not found by @kibertoad in #209
  • Built-in Windows: a 256-colour desktop with a system palette by @kibertoad in #210

Glover

  • Voodoo2: a graphics reset turns chroma-ranging off by @kibertoad in #211
  • DirectDraw: let a back buffer attached to the primary flip with it (Glover, #207) by @kibertoad in #214
  • USER32: put a dialog's window where its template says (Glover's CONFIG.EXE) by @kibertoad in #228

Moto Racer

  • Voodoo2: a graphics reset turns chroma-ranging off by @kibertoad in #211
  • kernel32: add GetVolumeInformationA (Moto Racer, #202) by @kibertoad in #213
  • Built-in HAL: leave keyed texels out whatever the stage's alpha by @kibertoad in #227
  • Built-in Windows: MSIMG32.DLL under Windows 98, and global atoms by @kibertoad in #229
  • Voodoo3: report busy while a swap waits for its retrace by @kibertoad in #237

Castle of the Winds

  • Win16: white dialogs for Windows 3.x programs, as Windows 95 gives by @kibertoad in #212
  • comdlg32: the old file dialog's folders as Windows 98 lists them by @kibertoad in #222
  • Win16: 3.x dialog colors for control fallbacks, not for system modules by @kibertoad in #223
  • user32: a built-in WinHelp viewer for .HLP files by @kibertoad in #231

Shadowgate

  • user32: caption text in MS Sans Serif, caption buttons as Windows 98 draws them by @kibertoad in #226
  • user32: a built-in WinHelp viewer for .HLP files by @kibertoad in #231

SimTower (demo)

  • Win16: PeekMessage yields, LZEXPAND expands compressed files by @kibertoad in #230

Lemmings (demo)

  • Win16: PeekMessage yields, LZEXPAND expands compressed files by @kibertoad in #230
  • Built-in Windows: answer Program Manager's raw DDE messages by @kibertoad in #243

The Terminator: SkyNET

  • BIOS: report the math coprocessor in the equipment word by @kibertoad in #246

Enemy Infestation

  • Built-in Windows: the screen's size follows the display mode by @kibertoad in #247
  • ddraw: a thread polling Flip waits for the frame by @kibertoad in #257
  • DPLAYX: DirectPlay objects, with no connection by @kibertoad in #296

Myth: The Fallen Lords

  • Built-in Windows: GDI draws on the screen in DirectDraw's mode by @kibertoad in #250

Sub Culture

  • disk: keep host folders checked and missing names for a second by @kibertoad in #251
  • 3dfx: string moves into the frame buffer as one write of a run by @kibertoad in #263
  • ddraw: blit only the rectangle's columns, keys tested once a blit by @kibertoad in #268
  • Mouse: the host pointer spans Windows' screen and 320-pixel ranges by @kibertoad in #282
  • Built-in Windows: flat thunks between Win32 and 16-bit DLLs by @kibertoad in #284

Wages of War

  • MCI sequencer: take Win32's MIDI_MAPPER as the mapper port by @kibertoad in #252
  • win32: draw the cursor of the built-in Windows by @kibertoad in #255
  • gdi32: blit a few microseconds a call, not 50 to 80 by @kibertoad in #264

Riverworld

  • win32: reserve 64 KB below every thread's stack, as Windows 98 does by @kibertoad in #254
  • Direct3D: flat shading keeps each vertex's fog by @kibertoad in #258

American McGee's Alice

  • Built-in OPENGL32.DLL on the Voodoo3's Direct3D HAL by @kibertoad in #249
  • Direct3D HAL: clip to the band the card's vertices can hold by @kibertoad in #261
  • cycles=auto: a busy Win32 program under the built-in Windows gets the host's speed by @kibertoad in #290

Metal Marines

  • Win16: load segments flagged 32-bit (Metal Marines) by @kibertoad in #286
  • Win16: GetActiveWindow gives the system's active window (Metal Marines setup) by @kibertoad in #287
  • Win16: call 16-bit hooks with Windows 3.1's arguments (MFC, Metal Marines) by @kibertoad in #288
  • Win16 GetDriveType: a CD-ROM drive is remote, as on Windows (Metal Marines finds its disc) by @kibertoad in #291
  • Loader: a path's directory with / as a separator (Metal Marines finds WAVMIX16) by @kibertoad in #292
  • Win16 MMSYSTEM: an MMTIME16 is 8 bytes (Metal Marines' WAVMIX16 faulted) by @kibertoad in #293
  • Win16: MM_WOM_DONE gets the program's header when WINMM posts it by @kibertoad in #295
  • Win16 dialogs: clicks reach check boxes in group boxes, scroll bar ranges through 16-bit subclasses by @kibertoad in #299

MechCommander

  • DPLAYX: DirectPlay objects, with no connection by @kibertoad in #296

Other changes:

  • Benchmark Voodoo triangle pipelines and software/GL backlog frames by @kibertoad in #139
  • Box the machines of the dynrec tests' com_in_lockstep (fix CI in main) by @kibertoad in #153
  • cycles=max and auto: never settle where the host can't be timed by @kibertoad in #148
  • Keep unit tests' temp files in one folder that is deleted by @kibertoad in #155
  • DOS: expand tabs in cooked console output by @kibertoad in #162
  • dos: return 09h from AH=49h and 07h from AH=4Ah without an arena header by @kibertoad in #174
  • ci: audit workflows with zizmor, fix its findings by @kibertoad in #175
  • Docs: cpu_state isn't whether the debugger paused the machine by @kibertoad in #191
  • AGENTS.md: fidelity fixes may change recorded results, not reproducibility by @kibertoad in #188
  • Add a game-polish skill for coding agents by @kibertoad in #177
  • Update dependencies by @kibertoad in #178
  • AGENTS.md: how to get SDL2.lib onto LIB on Windows by @kibertoad in #208
  • Faster tests: optimized test profile, PowerVR tests without a stray render by @kibertoad in #219
  • CI: keep the Windows debug-stack check unoptimized under the test profile by @kibertoad in #220
  • CI: the optimized test profile on Linux only by @kibertoad in #225
  • AGENTS.md: check what you touched, and share a machine with other agents by @kibertoad in #221
  • ci: install apt packages from Ubuntu's archive instead of the Azure mirror by @kibertoad in #235
  • ci: save rust-cache entries only from main by @kibertoad in #236
  • AGENTS.md: reuse a finished task's target directory by @kibertoad in #241
  • ci: one libretro job on pull requests that don't touch the core by @kibertoad in #242
  • --hidden: keep the window hidden, with OpenGL by @kibertoad in #265
  • Built-in DOS: Windows 98 Setup's memory and temporary directory checks by @kibertoad in #298

Full Changelog: v1.7.5...v1.8.0