Commit Graph

870 Commits

Author SHA1 Message Date
Luke Usher 33bccd66de Remove hack that skips privilages instructions
These need to be properly emulated eventually, so it's better for them to notify us with a crash than to go unnoticed
2016-10-03 18:31:45 +01:00
Luke Usher b7d73ccda3 Fix a typo preventing compilation 2016-10-02 20:23:22 +01:00
Luke Usher 8c7a5dd9dc Removed a hack added to D3D8 HLE Database 2016-10-02 19:45:11 +01:00
Luke Usher a550f89a8b Prevent interpreting 0xFFFFFFFE and 0xFFFFFFFF as EmuHandle.
0xFFFFFFFF = HANDLE_INVALID_VALUE
0xFFFFFFFE = Special HANDLE representing the current thread
2016-10-02 10:09:21 +01:00
Luke Usher 480152ce11 Update README.md 2016-09-30 08:33:33 +01:00
Luke Usher a160db2c72 XApiVerifyMediaInDrive now passes validation without patches 2016-09-30 06:45:47 +01:00
Luke Usher cedc176eb6 We don't need to intercept XApiBootDash 2016-09-30 06:45:11 +01:00
Luke Usher 08efaf9e53 Implement Partition0 support
Adding some kernel functions in preparing to remove more XAPI patches
2016-09-29 12:24:23 +01:00
Luke Usher 45482840ba Fix a bug in IsEmuHandle
Crash Bandicoot boots again, many more titles should get further than they did before
2016-09-29 06:56:56 +01:00
Luke Usher 8223e5154c Show a warning when a title reboots to dashboard 2016-09-29 06:56:11 +01:00
Luke Usher bc868a4b48 Save LaunchData to the directory of the title to launch, this ensures it will be picked up by the launched title 2016-09-28 20:58:52 +01:00
Luke Usher 0704b81fda XLaunchNewImage can now be used to reboot to dashboard (if present) 2016-09-28 20:54:48 +01:00
Luke Usher d142b3ae0e Dashboard works again 2016-09-28 20:47:09 +01:00
Luke Usher 1d89b04573 Implement proper support for titles using multiple XBEs 2016-09-28 19:22:17 +01:00
Luke Usher 6d30ab5778 XBE Loader removed the need to intercept XAPI Section functions, they just work now 2016-09-28 18:20:19 +01:00
Luke Usher 9b741690b0 Fix a couple of minor issues with Xbe Loading 2016-09-28 18:19:05 +01:00
Luke Usher a042125b38 XbeLoader: Fixed a few issues, Turok runs again 2016-09-28 16:32:37 +01:00
Luke Usher 0c14e89161 Direct Xbe Loading is present within the Kernel (Prevented CreateThread from failing after XBE Loading thanks to PatrickvL & Dxbx)
Launching from the UI is not working yet
There are still some bugs to iron out (Turok boots into the Dirty Disc message)
2016-09-28 13:43:21 +01:00
Luke Usher c1cb6d6248 Xbe Loader stuff 2016-09-27 22:31:10 +01:00
Luke Usher 72d9fecd12 Begin implementing Xbe Loader 2016-09-27 22:30:59 +01:00
Luke Usher 517d411452 Merge branch 'master' of https://github.com/LukeUsher/Cxbx-Reloaded 2016-09-27 15:23:33 +01:00
Luke Usher 031dd92f24 Removed XbeLoader.exe
This was part of an experiment and should not have been included.
2016-09-27 15:23:19 +01:00
Luke Usher 3e6bea96e5 Update README.md 2016-09-26 22:18:37 +01:00
Luke Usher aa2167ccb9 Oops 2016-09-26 22:02:10 +01:00
Luke Usher cd9caa4574 Implemented dummy NtProtectVirtualMemory
Allows MechAssault to progess further. Still crashes before showing anything
2016-09-26 22:01:56 +01:00
Luke Usher 74a2b3ef0e Silent Hill 4 now boots
Crashes after Konami splash
2016-09-26 21:36:05 +01:00
Luke Usher f44475c96c Add X_D3DFMT_LIN_A8 conversion.
ToeJam & Earl 3 no longer crashes Cxbx, but hangs on a black screen callng EmuDirectSoundDoWork & KeDelayExecutionThread in what seems to be an infinite loop
2016-09-26 21:00:11 +01:00
Luke Usher a45e8c6439 Throw warnings instead of ceasing execution when creating vertex buffers fail. 2016-09-26 20:31:32 +01:00
Luke Usher 04548ad4b6 Remove a ton of game-specific hacks.
I'd like to get away from requiring hacks.
If they are ever needed again, they can be restored from version control anyway.
2016-09-26 20:04:18 +01:00
Luke Usher f5110ac081 Cleanup some EmuFS related comments
Find/Replace didn't catch these when removing the EmuFS calls
2016-09-26 13:36:53 +01:00
Luke Usher 4c40dd67aa Clean up uses of EmuSwapFS()
It is no longer required
2016-09-26 13:33:33 +01:00
Luke Usher a5e350b0d1 prevent HANDLE_INVALID_VALUE being handled as an EmuHandle 2016-09-15 08:46:01 +01:00
Luke Usher ce3ab7e945 Document XapiBootDash 2016-09-15 08:45:34 +01:00
Luke Usher 98859d9422 Fix EmuInitFS crash (Thanks x1nixmzeng) 2016-09-13 06:03:44 +01:00
Luke Usher 671c27d407 Update README.md 2016-09-09 21:44:08 +01:00
Luke Usher c4dbe95578 Implement Dxbx's version of EnumAdapterModes 2016-09-09 21:19:02 +01:00
Luke Usher b7b5dd1c9e Add support for more D3D Texture Stage States 2016-09-09 09:46:34 +01:00
Luke Usher b18d52c06d Add some missing XApi functions to 4134 and 4432 2016-09-09 09:31:55 +01:00
Luke Usher cfdcba92ec Added Section functions for 4034 & 4432
Buffy The Vampire Slayer boots now
2016-09-08 21:08:09 +01:00
Luke Usher 51a01049f5 We don't need to intercept XAPI Fibre functions, the kernel functions they call should be enough 2016-09-03 23:13:49 +01:00
Luke Usher 89433556b9 Use case insensitive compare for matching Symbolic Links 2016-08-28 00:54:43 +01:00
Luke Usher ceb196d663 Fxed up section functions in HLE database in most common XDKs
These functions have barely changed since 3911, so it is possible to have a catch all signature.
2016-08-27 19:24:22 +01:00
Luke Usher bebf8be3fd Make sure xbox code runs on one core
VBlank callbacks still run on other cores, this will be addressed later
2016-08-26 20:23:41 +01:00
Luke Usher 0aae6c5f67 Finally solved the Symbolic Link corruption bug using the Dxbx implementation of EmuFile 2016-08-26 08:37:07 +01:00
Luke Usher 0a51fdf535 Update README.md 2016-08-24 21:10:43 +01:00
Luke Usher a9ea3b63b5 Create README.md 2016-08-24 20:55:47 +01:00
Luke Usher f2c20e6e07 Temporarily disable NtClose for EmuHandle instances.
It was causing symbolic link entries to corrupt, there are issues with EmuFile, EmuNtOpenSymbolicLinkObject and other related areas that need to be addressed before this can be re-enabled
2016-08-24 20:47:39 +01:00
Luke Usher 5f3a8c4c44 Disabled LargeAddressAware flag, seems to have stabilised things a little bit.
Thought it was required to be able to VirtualAlloc at 0x8000000 but it turns out that it's not the case
2016-08-23 22:33:59 +01:00
Luke Usher 10ab9b2800 Cleanup some things that we either don't use, or are no longer needed. 2016-08-22 18:31:39 +01:00
Luke Usher 51a3f5b2dc Remuve LDT code, it has not been required since we started patching FS register accesses 2016-08-22 18:28:29 +01:00