Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pc_vga/cs4031: fix save state support #2127
The pc_vga driver contains a lot of registers for the current state that weren't really being saved. The three original lines are a facsimile of the raw VGA memory that gets updated in lock step with the easier-to-use attribute registers, but it is the registers which track the state and are used for all the logic. Patch makes VGA games survive a save state load.
Also, the CS4031 chipset driver has three registers for tracking the excerable A20 line bodge, and only two were being saved. Software using extended memory would frequently get the whole memory map ripped out from under it. Fixed by tracking the third register.