Repository navigation
What's Changed
Kudos to our bug reporters
Big thanks for their reports and requests to:
- @xttx: Prince of Persia 3D, Omikron and Actua Soccer 2
- @The-Solutor: Tomb Raider on the PowerVR
- @willow3100: Lands of Lore 2
- @thanatosxax: Screamer 2
- @liPillON: HWiNFO
- JeffGreenTraveled: Memphis Math
- bigdemon2: Leadfoot, Beetle Crazy Cup, Rage Rally and Demolition Racer
- niorhead: Aliens versus Predator, Soldier of Fortune and Project IGI
- SingingCoyote13: Unreal
- TheHalfinStream: Redguard
- data-atreides: Quake
Highlights
Hotkeys you can change, with profiles of other emulators' keys
Every hotkey of the program (save and load state, the state slot, pause, fast forward, rewind, CPU speed, fullscreen, mouse capture, mute, screenshot and the rest) can be bound to the keys you want. A new Hotkeys page in the settings window lists each action with its keys: press Enter on one and then the new key combination, and the change works at once. Profiles give whole sets of keys: rust-dos, the default, keeps the keys the program had, and pcsx2, duckstation, pcsx-redux, epsxe, retroarch, dosbox and 86box take that emulator's keys for the same actions. Your own bindings can be saved as a named profile and loaded again. In the config file, [hotkeys] holds profile= and a line such as save_state=F5 for each key you changed. REFERENCE.md lists every profile's keys.
Added by @kibertoad in #2124 and #2153
One renderer setting for the 3D cards
renderer=auto|opengl|software in [emulator] picks what draws the 3dfx cards and the ToadForce on the host, in place of voodoo_renderer and toadforce_renderer, which are still read. auto keeps each card's own default. A change in the settings window takes effect while the game runs, and the compatibility almanac carries the setting in its reports and recommendations.
Added by @kibertoad in #2081 and #2104
Music in Windows 3.1 games
Windows 3.1 games now play their MIDI music on the built-in Windows, and the multimedia timers many of them pace their music and animation with now work.
Added by @kibertoad in #1765 and #1780
Windows 3.1 installers run to the end
Installers that start another setup and wait for it to finish, such as the Video for Windows 1.1 setup many games of the time bring along, now complete. The built-in Windows also has REGEDIT, so setups that import registry files work.
Added by @kibertoad in #1785 and #1794 and #1797 and #1818 and #1821 and #1819 and #1790 and #1854 and #1826
Animated cursors
Windows games that bring their own mouse cursors show them, and animated cursors move.
Added by @kibertoad in #1811
The OpenGL renderer in RetroArch on Android
The libretro core's OpenGL renderer runs on OpenGL ES 3, which is all RetroArch offers on Android. The 3dfx card's games are now drawn by the OpenGL renderer there; before, the core could use only its software renderer. The README says how to play on Android through RetroArch.
Added by @kibertoad in #1867
Games fixed and optimized
Memphis Math: Treasure of the Tombs
_DebugOutputand DirectedYield (the story plays and the login opens, where both title buttons went back to the DOS prompt) by @kibertoad in #1776- File region locks (Btrieve's locks work: 60 unhandled INT 21h AH=5Ch lines in a run down to none) by @kibertoad in #1777
- String messages to a 16-bit subclassed combo box (Objective Selection shows its first objective instead of ending with a Btrieve "key value ... not found" error) by @kibertoad in #1778
- SINGLEDATA exports patched (MMAP and MINVEN load and register with the game instead of ending with general protection faults) by @kibertoad in #1779
- A started task runs first, WaitEvent's events, shared blocks' owners and freed modules' classes (after Objective Selection the map of Egypt comes up and the first chamber's puzzle plays, where the screen stayed on the grey title) by @kibertoad in #1794
- The 16-bit system modules as files (the Autodesk Animator player finds MMSYSTEM.DLL and times the opening animation with MMSYSTEM's timers) by @kibertoad in #1790
- Per-task directories, classes unregistered with their module, a module loaded again in its own data segment, user counts and REGEDIT (the installer runs the Video for Windows 1.1 setup, which installs, and ends at the DOS prompt, where it stopped over an empty desktop, at "Setup Initialization Error", at a general protection fault, at "Another instance of Setup may already be running" and at "Setup Unexpectedly Failed") by @kibertoad in #1785 and #1797 and #1818 and #1821 and #1819
- Idle skip through GetModuleUsage (the setup's wait for MS Setup is skipped instead of keeping the machine at 0.40 to 0.48 of real time) by @kibertoad in #1826
- Repaint only where an ended program's windows were (MS Setup's blue gradient after "Setup Successful" no longer has a band of other colours) by @kibertoad in #1840
- Each program's own open files (moving on from the first location reaches the rooms, where the game stopped with a fatal Btrieve error 2) by @kibertoad in #1871
- Exports take the caller's data segment (the rooms screen comes up after the first location's path, where the game ended with a general protection fault) by @kibertoad in #1857
- 16-bit messages sent untranslated (answers typed at an artifact are accepted, where every answer read as empty) by @kibertoad in #1888
- Multi-line edits erase in WM_ERASEBKGND (Objective Selection's Sample box shows its picture, where it was empty) by @kibertoad in #1901
- A replying task lets the sender run first (quitting the game ends cleanly, where it stopped with a fatal Btrieve error) by @kibertoad in #1912
- Edit colours for Windows 3.x programs (Objective Selection's Description box and labels are white with black text, and the login name field white, where they were gray) by @kibertoad in #1958
- Window placement (the installer's Accessories group window opens where Windows 98 puts it, beside MS Setup's window) by @kibertoad in #2012
- Background palettes realized as on Windows 95 (the path screen's torches, the problem panel's glyphs and the toolbar buttons show, where they were colour noise) by @kibertoad in #2024
- A palette keeps the entries its first realization gave it, as on Windows 95 (the map screen's toolbar shows, INV and SAY are greyed out when they can't be used, and the cracked floor tiles have no red speckle) by @kibertoad in #2045
- MCI answers a movie's palette handle, as MCIAVI does (the map's boat clip plays in its own colours, where it was banded in the map's teal and green) by @kibertoad in #2065
- CD image track files read 64 KB at a time (the install copy reads the disc with 2,194 host reads where it took 132,191, 7.5 s of wall clock where it took 11 s) by @kibertoad in #2089
Battle Beast
- MMSYSTEM's waveOutGetID and aux functions (the game starts and plays its fights, where it ended as soon as it opened its wave device) by @kibertoad in #1765
- MIDI output and timeSetEvent (the music plays in the maze and the fights, which were silent) by @kibertoad in #1780
Warhammer: Dark Omen
- D3DRM.DLL (the CD release starts and plays its first battle with the Direct3D HAL, where it stopped with "ENGREL.EXE needs d3drm.dll") by @kibertoad in #1791
- ShowCursor's 16-bit count (the software renderer's battle shows within 15 s instead of sitting at "PREPARING FOR BATTLE..." for minutes) by @kibertoad in #1792
- Cursors from .CUR and .ANI files (the menus and 3D battles show the game's cursors, and the move cursor animates, where none showed) by @kibertoad in #1811
- Thread turns at 5 ms ticks (the movies show 4.7 to 7.9 pictures a second of their 15, where main showed 1.7 to 2.9) by @kibertoad in #1872
- Software device draws only what a batch needs (software-rendered battles run at full speed using about 40% of the host processor, where they used 85 to 90% and fell short of full speed) by @kibertoad in #1899
- Just-written files reopened through their handle (the setup copies the game in 37 to 43 s, where it took 110 s) by @kibertoad in #1911
- FreeLibrary during process exit (the setup ends cleanly, where it page-faulted as it quit) by @kibertoad in #1891
- A spinning main thread isn't taken for a waiting one (at
cycles=autothe first campaign movie shows all 15 of its pictures a second, where it showed about 5) by @kibertoad in #1903
Ultimate Domain
- MSCDEX takes the drive from CL (the game starts and plays its intro from the CD instead of quitting with "CD-ROM disk missing or CD-ROM drive not ready.") by @kibertoad in #1805
cycles=autokeeps real-mode frames within a 486's speed (the first map runs on instead of ending with a divide error a few seconds after it opens) by @kibertoad in #1817- MODE (the game's batch file sets the screen back with
mode co80when the game ends, where it printed "Bad command or file name.") by @kibertoad in #1941
Whale's Voyage
- The timer interrupt keeps DS, AX and DX (ENTER THE GAME after the character editor starts the game in 3 of 3 runs, where the music player's ticks overwrote the editor's runtime and the shell reloaded or the editor stopped with an invalid opcode) by @kibertoad in #1834
- A 256-byte buffer for the VESA mode query (the CD edition plays its intro in 640x400, where the title, portraits and text were the blocky 320x200 version) by @kibertoad in #1894
G-Police
- Flips of a system-memory back buffer copied to the screen (the software renderer no longer shows a black screen on every other frame: 12 of 24 shots black before, none now) by @kibertoad in #1836
- Flat alpha blending and fog in the shade caps (Graphics Setup offers Haze and Lensflare on the Voodoo3, where they were "Unavailable") by @kibertoad in #1870
- FreeLibrary during process exit (the setup ends cleanly, where it page-faulted as it quit) by @kibertoad in #1891
Maelstrom
- INT 1, 3 and 4 at an IRET in 0070h (a click where there is no button no longer damages the game's code, so the mines screen opens instead of the game ending with "Internal error") by @kibertoad in #1841
Soldier of Fortune
- glGenTextures' lowest free names (menus, characters' skins, walls, the gun and the cursor are drawn with their own textures, where textures that shared a name replaced each other) by @kibertoad in #1852
- glTexGen (the steel doors of the first level have their shine, where they were one flat tint) by @kibertoad in #1979
Lunicus
- WinExec's search path (the setup installs the game and ends with "Setup Succeeded!", where it showed "Setup Initialization Error: Insufficient memory or disk space.") by @kibertoad in #1854
- Universal Thunks (LUNIRES.DLL loads LUNIFX.DLL and the game goes on, where it ended at once with "Initialization of the dynamic link library C:\LUNICUS\LUNIRES.DLL failed") by @kibertoad in #1865
- GlobalFlags as Win32s has it (the game and the CD's demo player start, where they stopped at once with "FatalAppExit: bad lock use count") by @kibertoad in #1885
- Windows 3.1's GDI heap (the 3D view draws its frames, where it drew none) by @kibertoad in #1898
- Tiled region selectors (the 3D view's last rows show the room, where they were noise) by @kibertoad in #1904
- A viewed bitmap's bits live where the program's BITMAP points, as on Windows 3.1 (GDI drawing into a bitmap whose bits the game moved to its own frame is no longer lost) by @kibertoad in #2007
American McGee's Alice
- Names keep their case (the installer makes
Program Files\EA Games\American McGee's Alice\Baseand the game writesconfig.cfg, where every name came out uppercase) by @kibertoad in #1842 - Long names on FAT disk images (the installer installs onto a disk image C:, where it stopped with "C:\Program Files\ folder is not accessible") by @kibertoad in #1917 and #1922
The Elder Scrolls Adventures: Redguard
- Names cut to 8.3 (the game reaches its menu, where it stopped at its development console with "Unable to open GXA file") by @kibertoad in #1961
- A DOS box gets the DPMI memory its PIF sets, backed beyond the machine's RAM as Windows 98 backs it with the swap file (the software version started from the launcher reaches the game, where it ended at engine start) by @kibertoad in #2047
- The DPMI host stays in a built-in Windows DOS box for Glide's DOS overlay (the 3dfx version gets past the first level change after the ship fight, where it triple-faulted) by @kibertoad in #2071
Encarta 97 Encyclopedia
- Generic thunks (the setup writes the registry entries the encyclopedia needs, where it skipped them and ENC97.EXE stopped at start) by @kibertoad in #1960
- CreateScalableFontResource (the setup gets past its font step, where it ended with nothing installed) by @kibertoad in #1954
- FindFirstFileA's padding (the setup finds SETUP32.EXE and installs, where it opened a folder and quit) by @kibertoad in #1966
- MCI through the program's file I/O procedure (sound clips play, where they were silent) by @kibertoad in #1993
- A window has no size while the CBT hook sees it made (the timeline opens and its events show their cards, where ENC97.EXE ended with a page fault) by @kibertoad in #2021
- Fonts a setup installed load when the built-in Windows starts, from the registry and WIN.INI (Encarta 97 finds its MS Reference fonts, where it showed "Fonts not found" at each start) by @kibertoad in #2036
Dune (CD)
- Spaces before the extension (the CD's launcher DUNE.BAT is found, so the game starts, where it asked "Are you playing DUNE CD-ROM for the first time?" again) by @kibertoad in #1951
Perfect Assassin
- Free space on a folder C: (the CD installer takes the Deluxe install and installs it, where it refused for lack of space) by @kibertoad in #1997
Omikron: The Nomad Soul
- Display bitmaps at the DirectDraw mode's depth (the intro movies show, where they were stripes and colour noise with ToadForce) by @kibertoad in #2044
- Compatibility notes: on an S3 with a Voodoo2, the movies need a 16-bit desktop (
win32_depth=16), as on a real Windows 98 machine with those cards by @kibertoad in #2076 - At
cycles=max, the time a waiting program spends in Win32 calls counts as the frame's work (Escape skips an intro movie on an S3 with a Voodoo2, where the game ended with a page fault in 7 runs of 8) by @kibertoad in #2121
Screamer 2
- Compatibility notes: game profiles for GOG's version, the 3dfx one hiding the Glide file of GOG's DOSBox, which made it exit with "3DFX chip not found!" by @kibertoad in #2053
Aliens versus Predator
- ToadForce: a z-buffer fill runs on the OpenGL host, where the whole depth buffer was read back and uploaded again twice a frame (the main thread does about half the work in the marine levels) by @kibertoad in #2066
Soldier of Fortune II: Double Helix
- ToadForce: OPENGL32 keeps textures in system memory and uses the card's memory as a cache of them (the Prague streets and cut scenes run at full speed, where the textures were copied to the card again every frame) by @kibertoad in #2056
- OpenGL and Glide 3 on a Voodoo3 or Banshee dither 2x2 without the dither subtraction, as 3dfx's Glide 3 does (the car windows show the street through grey glass where it turned pink) by @kibertoad in #2091
Project IGI
- Direct3D: an indexed draw puts only the vertices it uses through the pipeline (the first mission runs at 12.4 frames a second, where it ran at 6.3) by @kibertoad in #2085
- Freed heap blocks give back zeroed pages, as Windows 98's heap does (the mission intro no longer has a green panel over it) by @kibertoad in #2112
Dominus
- A file name that ends in a slash is refused with error 3, as DOS refuses it (the CD installer installs the game, where it ended with "Dominus Installation FAILED" and left its folders as empty files) by @kibertoad in #2108
Lands of Lore 2
- Z: carries the Glide DOS driver of the 3dfx card in the machine (the 3dfx version runs on a Voodoo2, where it page-faulted before the intro) by @kibertoad in #2115
Sub Culture
- The desktop is painted under the window that brings it up (the 1.16 patch's message boxes leave the desktop behind when they close, where they left black rectangles) by @kibertoad in #2111
Ascendancy and Dune (CD)
- At
cycles=auto, a movie played in part of the screen counts its pictures as frames (the intro movies run at the speed they need, where the speed went to the host's maximum while they played) by @kibertoad in #2100
Quake
- x87 sums rounded to the control word's precision, as on a 387 (the timedemos run 3.4% to 7.4% faster, since the game's sums no longer take the 80-bit path) by @kibertoad in #2101
Unreal
- ToadForce OpenGL: framebuffers made once, and only the texture images a game wrote decoded and uploaded again (the Direct3D flyby goes from 53.3 to 54.5 fps on an Intel UHD 770 and from 56.1 to 58.6 on an RTX 4060, one run each) by @kibertoad in #2096
Prince of Persia 3D
- The Voodoo3's setup culls a strip that goes on after a fan by the winding of its vertex slots (the floor, the scabbard and the gate's bars have no holes, where triangles turned black or vanished at some angles) by @kibertoad in #2117
- A Voodoo2 blit goes to the OpenGL renderer a row at a time (the menu runs at full speed with OpenGL, where it showed a new picture every 3 seconds) by @kibertoad in #2122
Bedlam
- A windowed DirectDraw program's palette is realized through GDI (the Windows version's windowed mode on a 256-colour desktop shows its own colours, where it was almost all black) by @kibertoad in #2118
The Tone Rebellion
- The same change shows the title screen in its own colours, where the desktop's 20 static colours were noise by @kibertoad in #2118
Tomb Raider and Unfinished Business (PowerVR)
- The PCX2 reads mip-mapped textures where a real PCX2 has them, and its BILINEAR setting filters as a Matrox m3D does (the PCX2 builds' text is clean and their textures sharper, where the font picked up its neighbours' texels; the PCX1 build draws as before) by @kibertoad in #2128
Actua Soccer 2
- A window's DirectDraw clipper clips to its client area, and ICGetInfo (the game plays its intro and a 3dfx Friendly on the built-in Windows, where it crashed on its first screen) by @kibertoad in #2126
Baku Baku Animal
- DirectDraw takes a surface's caps when the description doesn't flag them, and accepts DirectX 1's smaller DDCAPS, as Windows 98 SE does (the game gets past Intel's RDX mixer to its title and plays, where it crashed at start) by @kibertoad in #2134
- A palette realized in the foreground takes the system palette's entries from 10 up, as Windows 95 and 98 SE do (the title and the game show their colours at 256 colours, where they were green and red outlines on black) by @kibertoad in #2139
Anachronox
- A click while a window holds the mouse capture activates no other window, as on Windows 98 (the setup installs both discs, where it stopped at its disc prompt) by @kibertoad in #2143
Demolition Racer
- The setup brings the DirectX installer to the front (it finishes, where it hung behind its own window) by @kibertoad in #2162
- The Windows Media Audio runtime installs through SETUPX (the game starts, where it needed wmaudsdk.dll) by @kibertoad in #2157
- DirectDraw surfaces over the game's own memory (the cars are painted, where they were black shapes) by @kibertoad in #2152
- MSACM32 loads the installed codecs (ACM drivers) and converts PCM to PCM (the music plays, where the Audio Settings screen said "ERROR - MUSIC NOT FOUND") by @kibertoad in #2178
Rage Rally
- Blits into DXT textures compress the pixels (the game loads its materials and races, where it stopped at once with "Failed to create material") by @kibertoad in #2154
- The disc's own setup installs the game: Windows Installer gets the wide resource functions it needs, and InstallShield's driver gets file monikers and the Running Object Table by @kibertoad in #2160 and #2176
Beetle Crazy Cup
- x87 loads and stores keep denormal doubles (races draw the track, the cars and the car select model, where only the sky and the HUD showed) by @kibertoad in #2170
- DeleteObject of a memory DC deletes it, as on Windows 98 SE (the CD launcher redraws its buttons and its background after the game, where old buttons stayed and the screen went black) by @kibertoad in #2169
Knights of Xentar
- The mouse maps over the rows the screen shows (a click on "Start a new game" starts it, where it landed 20% lower and quit to DOS) by @kibertoad in #2189
Leadfoot
- A file renamed onto a built-in system DLL's name takes its place (the setup copies on, where it stopped with a File Error on MSVCRT.DLL) by @kibertoad in #2184
- A heap block's last bytes are followed by committed memory, as on Windows (the Direct3D quick race runs, where it crashed reading 2 bytes past a block) by @kibertoad in #2191
Hardware emulation
Timing and speed
cycles=autoruns a real-mode program's frames no faster than the configured CPU ran: 52,800 instructions per ms on a 486 (a 486DX2-66), 16,000 on a 386, with no limit for the Pentium and later; a fixed speed ormaxpast that figure keeps its rate and says so once in the log (Ultimate Domain's map ran at 112,965 to 116,602 and ended with a divide error in 10 of 10 tries; it now stays at 52,800 at most and ran on in 16 of 16) by @kibertoad in #1817- Idle skip: Win16 GetModuleHandle and GetModuleUsage only read the module table, and a proof goes through them (Memphis Math's setup waits for MS Setup in a loop of them and ran at 0.40 to 0.48 of real time; in a deterministic 25 s run 459 million of 493 million instructions are now skipped, with PeekMessage calls from 666,632 a second to about 3,200 and the same screens) by @kibertoad in #1826
cycles=auto: a Win32 program whose main thread spins while another thread works is no longer taken for one that waits, so the speed can rise for it once it isn't held by @kibertoad in #1903- Voodoo3 and Banshee: a DirectDraw page flip waits only for the frame it shows (Unreal's Direct3D intro on a software-drawn Voodoo3 runs 2 to 3% faster) by @kibertoad in #2067
- Voodoo3 and Banshee: the 16-bit desktop is converted a row at a time (its share of the emulation thread in Unreal falls from 7.3% to 3.3% with Glide and from 3.2% to 1.9% with Direct3D) by @kibertoad in #2075
- Recompiler: stores into the VESA frame buffer without two calls (Quake's 640x480 timedemo 7.6% faster) by @kibertoad in #2095
cycles=auto: a movie a program draws in a window of the screen, a run of redraws of one part of it, counts as frames, so the speed comes down to what the movie needs instead of rising for what looks like a load by @kibertoad in #2100- x87: FADD, FSUB and their forms round the exact sum once to the precision and rounding the control word sets, as a 387 and a Pentium do, and sums at 24 or 53 bits stay on the fast path in both the interpreter and the recompiler by @kibertoad in #2101
- x87: FLD and FST of a double keep a denormal value instead of making it 0, as a 387 and later do by @kibertoad in #2170
- ToadForce OpenGL: each pair of target and depth buffer keeps its framebuffer, and a texture uploads only the images on the pages a program wrote by @kibertoad in #2096
cycles=max: the host time a waiting Win32 program spends in Win32 calls (movie decoders, blits) counts as the frame's work instead of its few instructions', so the speed no longer falls to a few thousand cycles a millisecond during such movies; other speed settings are unchanged by @kibertoad in #2121- Voodoo2 with the OpenGL renderer: a screen-to-screen blit or fill hands each row to the recording in one call, where it took one command per pixel by @kibertoad in #2122
Improved hardware support
- Mouse: in a mode whose CRTC shows fewer rows than the mode has (640x480 shown as 400 lines), the driver maps its range over the rows shown by @kibertoad in #2189
- VGA: text modes draw with the font in the card's memory, which INT 10h AH=11h loads glyphs into, so a program's own characters show (HWiNFO's frames, shadows, background and logo, where the ROM's line-drawing characters showed) by @kibertoad in #2062
- EMS: the built-in memory manager gives Windows' startup broadcast the switch to real mode EMM386 gives, so HWiNFO starts without the fatal warnings it showed since 1.9.3 with EMS on by @kibertoad in #2055
- libretro: the core asks for an OpenGL ES 3 context after the desktop ones and its 3dfx shaders compile as GLSL ES, so RetroArch on Android draws the card with the GPU instead of in software by @kibertoad in #1867
- BIOS: the timer interrupt keeps DS, AX and DX across INT 1Ch, as the IBM AT's BIOS does, so an INT 1Ch handler that leaves DS or DX changed no longer hands them to the code the tick interrupted (Whale's Voyage) by @kibertoad in #1834
- Direct3D: the HAL says it blends and fogs flat-shaded triangles (D3DPSHADECAPS_ALPHAFLATBLEND and FOGFLAT), with the shade caps 3dfx's Voodoo3 driver reports, which the built-in Direct3D and the ToadForce already draw by @kibertoad in #1870
- 3dfx: Z: carries
GLIDE2X.OVLfor the card in the machine, the Voodoo2's from 3dfx's Voodoo2 driver and the Voodoo Graphics' as before, downloaded from the settings window; it follows a change of card and a state load by @kibertoad in #2115 - Voodoo3 and Banshee setup: a strip that goes on after a fan culls by the winding of the setup's vertex slots by @kibertoad in #2117
- PowerVR PCX2: mip levels laid out as on the PCX1 and a real PCX2, and BILINEAR's four settings filter as the Matrox m3D does: bilinear, adaptive, and two blends of mip levels by @kibertoad in #2128
DOS and Windows
- Built-in Windows 3.1: MMSYSTEM's waveOutGetID, midiOutGetID and aux functions, with WINMM's devices and Windows 3.1's 16-bit structures by @kibertoad in #1765
- Built-in Windows 3.1: MIDI output, timeSetEvent's timers and the waveIn and midiIn functions (see the highlight above) by @kibertoad in #1780
- Built-in Windows: the keyboard's repeat speed and delay are read from the registry (
HKEY_CURRENT_USER\Control Panel\Keyboard) or WIN.INI ([windows] KeyboardSpeed=,KeyboardDelay=), and programs that set them withSPIF_UPDATEINIFILEsave them there, as Windows does by @kibertoad in #1768 - Built-in Windows 3.1: KERNEL's
_DebugOutput, which returns as the retail KERNEL does and writes the program's message to the log, and DirectedYield by @kibertoad in #1776 - DOS: INT 21h AH=5Ch locks and unlocks byte ranges of open files, as SHARE and Windows 95's VSHARE do: a read or write of locked bytes through another open of the file or from another process fails with error 21h, and locks go when their file is closed or their process or Win16 task ends by @kibertoad in #1777
- Built-in Windows 3.1: a list box, combo box or edit control subclassed by a 16-bit window procedure (CTL3D, BWCC) gets 16-bit copies of the strings and buffers of its messages (LB_ADDSTRING, CB_GETLBTEXT, EM_GETLINE and the others), as Windows 95's thunks give them by @kibertoad in #1778
- Built-in Windows 3.1: the loader patches the exported functions of a SINGLEDATA module to load its data segment, so Borland-linked programs whose exports lack the shared-data flag run with their own DS when called through a MakeProcInstance thunk by @kibertoad in #1779
- Built-in Windows: each Win16 task and Win32 process keeps its own current drive and directories, and CreateProcessA's lpCurrentDirectory is the start folder of Win32 and Win16 children; the prompt is back in its own directory when the last Windows program ends by @kibertoad in #1785
- Built-in Windows: the 16-bit system modules as NE files with a version resource in C:\WINDOWS\SYSTEM, which bind the built-in module when loaded by their path by @kibertoad in #1790
- Built-in Windows: D3DRM.DLL, with its math helpers and Direct3DRMCreate by @kibertoad in #1791
- USER32: ShowCursor keeps a 16-bit count that wraps, as Windows 9x's does by @kibertoad in #1792
- Built-in Windows 3.1: a started task runs before WinExec, LoadModule or EXEC returns, WaitEvent counts events in the task database, a GMEM_DDESHARE block belongs to the module that allocated it, and a module's window classes go when it is freed, as on Windows 3.1 by @kibertoad in #1794
- Built-in Windows 3.1: a Win16 module's window classes are unregistered when the module is freed, unless they still have windows, as USER does on Windows 3.1 and 95 by @kibertoad in #1797
- MSCDEX: functions that take a drive read it from CL alone, as MSCDEX 2.25 does; every call clears CF first, and absolute writes (AX=1509h) and unknown functions fail with error 1 by @kibertoad in #1805
- USER32: LoadCursorFromFileA, and animated cursors from .ANI files that animate in emulated time by @kibertoad in #1811
- Built-in Windows 3.1: a program loaded again after its module was freed runs its first instance in the module's own data segment, and lookups of a task by handle skip tasks that have ended by @kibertoad in #1818
- Built-in Windows: REGEDIT.EXE, which imports .reg files in Windows 95's and Windows 3.1's formats and exports the registry by @kibertoad in #1819
- Built-in Windows 3.1: modules are counted by their users, as KERNEL's IncExeUsage and DecExeUsage count them, so DLLs that import each other are freed, a failed load unloads every module it loaded, and GetModuleUsage gives Windows' count by @kibertoad in #1821
- DirectDraw: a flip of the primary surface's chain whose back buffer is in system memory copies that buffer to the screen, instead of pointing the display at a guest RAM address by @kibertoad in #1836
- Built-in Windows: a Win16 task or a process that ends repaints only where its visible windows were, as Windows 3.1 and 95 do, instead of the whole screen by @kibertoad in #1840
- DOS: INT 1, 3 and 4 point at an IRET in segment 0070h, as MS-DOS's IO.SYS sets them, instead of the BIOS's IRET at F000:FF53 by @kibertoad in #1841
- OPENGL32: glGenTextures gives the lowest names no texture has, from 1 up, so they no longer collide with names a program counts itself by @kibertoad in #1852
- Built-in Windows 3.1: WinExec, LoadModule and EXEC look for a program in the current directory, the Windows and system directories, the task's own directory and PATH, as Windows 3.1's LoadModule does by @kibertoad in #1854
- Built-in Windows: files and folders a Windows program makes keep the case it gives them (
Program Files,config.cfg), as Windows 98's VFAT keeps them in the long-name entry, and a program can rename a file to its own name in another case; DOS's own calls still uppercase 8.3 names by @kibertoad in #1842 - Built-in Windows 3.1: GDI's IsDCCurrentPalette (ordinal 412), which Video for Windows 1.1's MSVIDEO.DLL imports, answering as Windows 98's GDI does by @kibertoad in #1863
- Built-in Windows: a window that is hidden, moved or lowered makes the windows around it repaint only the part that comes into view, as Wine does, and when a program ends its windows that keep the screen under them (CS_SAVEBITS) put it back instead of having the windows under them repaint, as Microsoft documents by @kibertoad in #1862
- Built-in Windows 3.1: each program has its own table of open files, as each task has its own PDB in Windows 3.1, so a program that closes its files when it ends no longer closes those of the programs still running by @kibertoad in #1871
- Overlay drives: a file or folder deleted and made again in another case starts empty, as on Windows 9x, where the name could not be made or the old file's contents came back by @kibertoad in #1873
- Built-in Windows 3.1: a program's exported functions take their data segment from the caller, as USER loads it, so a window procedure one program registers for a class runs on the data of the program whose window it is; CallWindowProc and MakeProcInstance(fn, 0) pass the right data segment by @kibertoad in #1857
- Built-in Windows: Win32s's Universal Thunks (UTRegister, UTUnRegister and WIN32S16.DLL), with which a Win32 program calls a 16-bit DLL, as Windows 98 SE has them by @kibertoad in #1865
- Built-in Windows: a thread's turn ends at Windows 98's 5 ms timer ticks instead of the BIOS's 55 ms, so a thread that calls Sleep(0) gets the processor back as soon as on Windows 98, and a loop that polls DirectInput while it waits is skipped as a PeekMessage loop is by @kibertoad in #1872
- Built-in Windows 3.1: a message one 16-bit window procedure sends to another reaches it untranslated, so the buffer it fills comes back as it was written by @kibertoad in #1888
- Overlay drives: a file or folder renamed to its own name in another case is renamed in place by @kibertoad in #1890
- Built-in Windows: a multi-line edit control erases its background in WM_ERASEBKGND, as Windows 98's does, so a program that draws in it keeps its drawing by @kibertoad in #1901
- Built-in Windows 3.1: SendMessage to another task's window runs that task's window procedure while the sender waits, and GetDlgItemInt asks the control as SendMessage does by @kibertoad in #1906
- Built-in Windows 3.1: a task that replies to another task's message lets that task run first, as Windows 95 does by @kibertoad in #1912
- FAT disk images: renames to long names and to another case write long-name entries, as Windows 9x's VFAT does, and files left open follow the rename by @kibertoad in #1917
- FAT disk images: Windows programs create, open, find and list files by their long names, and setups install into folders such as
Program Filesby @kibertoad in #1922 - OPENGL32: names from glGenTextures are reserved until they are first bound, as OpenGL 1.1 says by @kibertoad in #1919
- OPENGL32: the texture object functions are errors between glBegin and glEnd by @kibertoad in #1928
- OPENGL32: glPopAttrib binds the pushed textures again, making a texture of a name deleted since the push, as SGI's and Mesa's OpenGL do by @kibertoad in #1930
- OPENGL32: between glBegin and glEnd, every function OpenGL 1.1 doesn't allow there is an error and does nothing, in display lists too by @kibertoad in #1932
- Built-in Windows: a palette becomes the foreground one only on a 256-colour display, as in Windows 98, so a program that switches to 8-bit DirectDraw keeps the system's colours by @kibertoad in #1926
- DOS: MODE, with its screen forms (
MODE CO80,MODE 40,MODE CON COLS=80 LINES=50) and keyboard form (MODE CON RATE= DELAY=), as MS-DOS 4.0's MODE does them by @kibertoad in #1941 - Batch files: a batch file that starts another without CALL keeps the ECHO setting the first one started with, so the prompt comes back after them by @kibertoad in #1939
- Folder drives: a file a program has just written and closed opens again quickly, without a new open on the host, where a virus scanner made each such open cost milliseconds by @kibertoad in #1911
- Built-in Windows: FreeLibrary does nothing while a process is unloading its DLLs at exit, as on Windows 98 by @kibertoad in #1891
- Direct3D software devices: each batch draws only the pixels inside its triangles and reads the target only when it blends, which halves the host time of software-rendered battles by @kibertoad in #1899
- Built-in Windows, Win32s programs: GlobalFlags hides the lock count as Win32s does, Windows 3.1's GDI heap is there for programs that read it through TOOLHELP, and UTLinearToSelectorOffset gives a memory region's tiled selectors by @kibertoad in #1885 and #1898 and #1904
- Disk images and folder drives: a file opened by its long name and by its 8.3 alias is one file, so a program's sharing modes and a file emptied through one name hold for the other, as on Windows 98 by @kibertoad in #1933
- Disk images and folder drives: a renamed current directory names nothing, as on Windows 98, and a renamed folder on a disk image gets a new 8.3 alias as VFAT gives it by @kibertoad in #1938
- Built-in Windows: on a 256-colour display, the default palette comes back and the other windows hear of it when a window that chose a palette is destroyed or minimized or its program ends, as on Windows 98 by @kibertoad in #1944
- Built-in Windows: a Windows 3.x program's read-only or disabled edit field gets the colours Windows 98 gives it by @kibertoad in #1958
- Built-in Windows 3.1: a 16-bit program waiting in PeekMessage handles the messages other programs send it before the call returns, as Windows 95 does by @kibertoad in #1967
- DOS calls cut a name longer than 8.3 to the 8.3 name on host folders and CD images, as DOS does, after looking for the whole name by @kibertoad in #1961
- Built-in Windows: a second start of a running 16-bit program that has one data segment gives back the running copy, as Windows 98 does by @kibertoad in #1985
- Built-in Windows: the Win16 generic thunks (
CallProc32W,LoadLibraryEx32Wand the rest), GDI.310CreateScalableFontResource, and FindFirstFileA leaving the padding after WIN32_FIND_DATAA's fields by @kibertoad in #1960 and #1954 and #1966 - Built-in OpenGL:
glTexGen(texture coordinates made from the vertex, the eye position or a sphere map) andglClipPlane, on 3dfx cards and ToadForce by @kibertoad in #1979 - DOS calls: spaces before a name's extension are padding of its 8 characters, as DOS packs names, so "dune .bat" and "dune.bat" are one file; long-name calls keep them, as Windows does by @kibertoad in #1951
- Folder hard disks show DOS a 1 GB FAT16 partition with 512 MB to 1 GB free, where they showed 160 to 480 MB, so installers that check free space take large installs by @kibertoad in #1997
- Built-in Windows: LockFile and UnlockFile lock the same byte ranges as DOS's INT 21h AH=5Ch, so a Win32 program and a DOS or Windows 3.1 program see each other's locks, and ReadFile and WriteFile fail on bytes another open of the file locked, as on Windows 98 by @kibertoad in #2003
- Built-in Windows: a FreeLibrary that a DLL's DllMain makes while another FreeLibrary is detaching DLLs leaves the detaching to the outer one, so a DLL that frees itself or another as it detaches no longer ends the program with a page fault by @kibertoad in #2008
- Built-in Windows: windows a program places at the default position cascade as on Windows 98, and the folder windows Program Manager's groups open take Explorer's place and size by @kibertoad in #2012
- Built-in OPENGL32: the raster position, glBitmap, glCopyPixels and wglUseFontBitmaps, so text a program draws from Windows fonts with display lists shows, where the window stayed blank by @kibertoad in #1994
- Batch files: a batch file CALLed from another gives back the ECHO state it began with, as MS-DOS's COMMAND.COM does, where ECHO OFF in the called file stayed off for the caller by @kibertoad in #2019
- Built-in Windows: a palette realized in the background takes exact matches and then free entries as Windows 95 does, and pictures drawn to the screen through it show the nearest colour shown, so 256-colour programs that draw while their palette is in the background show the right colours once it comes to the front by @kibertoad in #2024
- Host folders: files and folders keep their 8.3 names until they are renamed, as on Windows 98, where deleting or renaming one could give its 8.3 name to another by @kibertoad in #1992
- Built-in Windows: a new window has no size yet when a CBT hook sees it made, and takes its place and size from what the hook leaves in CREATESTRUCT, as on Windows by @kibertoad in #2021
- VGA BIOS: INT 10h AH=12h BL=30h selects 200, 350 or 400 scan lines for the text modes, so
MODE CON LINES=43gives 43 rows where it gave 50 by @kibertoad in #2033 - Disk images: a long-name rename of a file to its own 8.3 alias succeeds, and upper-case 8.3 names beside numeric-tail names get long-name entries, as VFAT on Windows 98 writes them by @kibertoad in #2025
- Built-in Windows: bitmaps compatible with the display take the depth of the mode DirectDraw set, so a program that reads the display's format after a mode switch gets the mode's by @kibertoad in #2044
- Settings window: the Emulator page shows the 3dfx renderer rows the machine's 3dfx card uses, so they are there on a Voodoo3 or Banshee machine, where they were hidden by @kibertoad in #2074
- DOS: creates, opens, finds, renames and MKDIR of a name that ends in a slash fail with error 3, and calls on a drive's root or in a missing folder, TRUENAME and get attributes answer as MS-DOS 6.22 does, checked on MS-DOS in 86Box by @kibertoad in #2108 and #2110
- Built-in Windows: freeing a heap block zeroes the whole pages it covered, as Windows 98 does, so a block allocated there later starts with zeros by @kibertoad in #2112
- Built-in Windows: the desktop is painted under the windows that are already visible when the first program's window brings it up, as Windows 98 paints it at start by @kibertoad in #2111
- DirectDraw: a windowed primary surface's palette is realized through GDI in the foreground, each DirectDraw palette keeping its own GDI palette, as on Windows 98 by @kibertoad in #2118
- DirectDraw: a clipper set to a window clips to what GetDC's DC of the window may draw on, its client area less the children of a WS_CLIPCHILDREN window; MSVFW32's ICGetInfo by @kibertoad in #2126
- DirectDraw: CreateSurface and EnumSurfaces read
ddsCapseven without DDSD_CAPS, and GetCaps accepts a DirectX 1 DDCAPS of 172 bytes by @kibertoad in #2134 - DirectDraw: CreateSurface over the program's memory (DDSD_LPSURFACE), with Windows' errors for the shapes it refuses by @kibertoad in #2152
- DirectDraw: Blt and BltFast into DXT1 to DXT5 surfaces compress from RGB and from other DXT formats, with stretching and mirroring by @kibertoad in #2154
- GDI: a palette realized in the foreground takes the entries from 10 up, whichever palette held them; DeleteObject of a memory DC deletes it by @kibertoad in #2139 and #2169
- USER: a click while a window holds the capture activates nothing; a program started by the one that took the last input may come to the front; a SendMessageTimeout that times out takes its message back by @kibertoad in #2143 and #2162 and #2160
- KERNEL32: the wide resource functions (FindResourceW, EnumResourceNamesW and others), with Windows 98's language search by @kibertoad in #2160
- SETUPX: INF files install for IExpress packages (CopyFiles, DelFiles, RenFiles, AddReg, DelReg, UpdateInis, with Windows 98's version check and files in use replaced at the next start) by @kibertoad in #2157
- OLE32: file and item monikers, and a Running Object Table shared by all processes by @kibertoad in #2176
- MSACM32: installable ACM drivers from SYSTEM.INI's [drivers32] load and take the formats the built-in decoders don't; PCM to PCM streams convert channels, sample size and rate by @kibertoad in #2178
- KERNEL32 and MSVCRT: MoveFile and rename onto the name of a built-in system DLL replace it, as they replace the real file on Windows by @kibertoad in #2184
- KERNEL32: a heap block is followed by committed bytes, and a growable heap's range keeps free space past its last block, as Windows 98's heap does by @kibertoad in #2191
Other changes:
- Documentation: the README routes a new reader by what they want to play, TUTORIALS.md has a whole configuration for each common case, REFERENCE.md holds the README's reference sections, docs/building.md the build steps, and the release packages carry the tutorials and the reference by @kibertoad in #1808
- Documentation: what the OpenGL renderer needs and does without OpenGL 3.2, the ToadForce described by the cards its games need, and what to do when a game fix doesn't recognise a game's files by @kibertoad in #1814
- README: how to run the Linux AppImage, with FUSE or without it, and where it keeps its settings by @kibertoad in #1828
- Documentation: every example keeps a game in a folder of its own, with drive C: in
gameand the disc images beside it by @kibertoad in #1832 - Determinism test: the LOCK save-state section, written only while a file has a locked region, is listed as absent from the run by @kibertoad in #1798
- Stub tables: GDI's IsDCCurrentPalette is recorded, so the stub table test passes again by @kibertoad in #1877
- Win16 tests: YIELD and GET_MODULE_USAGE defined once, so
tests/win16builds again by @kibertoad in #1824 - Contributor guide: code reviews run in a fresh agent given the pull request, not in the context that wrote the change by @kibertoad in #1980
- libretro README: Windows games start on the built-in Windows, with an OS image as the fallback by @kibertoad in #2026
- Contributor guide: a pull request is checked for conflicts with main before it is marked ready, and builds share the processors by @kibertoad in #2013
- Contributor guide: a merge that keeps both sides' lines or moves a save-state version is pushed without a local build, and
tools/win32_layout.pyprints the save-state layout hash without building by @kibertoad in #2023 - Contributor guide and game-polish skill: a problem found while working is worked on and queued only once a game or program shows it; the rest wait as low-priority issues by @kibertoad in #2030
- CONFIGURATION.md: a table of the settings most often changed, a video and rendering guide, and the settings reference grouped by subject by @kibertoad in #2064
- CONFIGURATION.md: the renderer choice next to the video card, with a table of which setting picks the renderer for each card by @kibertoad in #2072
- CONFIGURATION.md: the ToadForce's software renderer is much slower than its OpenGL renderer in almost every game by @kibertoad in #2092
- Debugger: the instruction trace shows the right bytes for an instruction that runs past the end of its page by @kibertoad in #2039
- Contributor guide: checks in proportion to what a change can break, with deterministic counts of the work a change removes, one timing run per build to put a number on it, and short exclusive measurements by @kibertoad in #2086
- Built-in Windows: a service trap that crosses a page boundary is read through the page tables (a crash of Omikron's SafeDisc loader that came in during this release's development) by @kibertoad in #2042
- Stub tables: USER32's SendMessage16 and UserYield16 moved to the table's end, so saved states keep their function ids by @kibertoad in #1937
- Tests: a background palette after a mode switch, and a race in the relay listing test fixed by @kibertoad in #2050 and #2083
- Contributor guide: why an exclusive measurement asks with
--wait, and comments on other people's issues need a maintainer's approval by @kibertoad in #2088 and #2116 - Contributor guide: a change to shared code is checked on two to four other programs that reach it, listed in the pull request's "Regression check" section by @kibertoad in #2125
- Debug server:
/api/win32gives each Win32 thread's emulated time and instruction count (thread_times) by @kibertoad in #2130 - Stub tables: MSVFW32's ICGetInfo is recorded, so the stub table test passes again by @kibertoad in #2138
- Debug tests:
/api/win32'sthread_timesexpected, so the debug server's test passes again by @kibertoad in #2144 - Contributor guide: regression checks in three tiers, by whether a program that works on main can take the changed path by @kibertoad in #2180
Full Changelog: v1.9.3...v1.9.4