Commit Graph

2119 Commits

Author SHA1 Message Date
gibbed dc371009d9 Renamed handle_ to native_handle_ in some places where it makes more sense. 2015-06-10 21:24:54 -05:00
Ben Vanik cabf9d6261 Adding some GPU docs and creating output directories automatically. 2015-06-10 19:20:14 -07:00
Dr. Chat feba4f03a2 ResolvePath check for fully qualified paths 2015-06-10 19:09:33 -05:00
Dr. Chat bc0fb19005 Swap main device to harddisk0 2015-06-10 19:08:58 -05:00
Ben Vanik 9c58426231 Speeding up source map lookup for x64 disasm. 2015-06-10 00:29:07 -07:00
Ben Vanik 14e1438ec0 Dramatically speeding up HIR comments. 2015-06-10 00:28:02 -07:00
Ben Vanik 56a4620cdf Switching StringBuffer to use a raw pointer. 2015-06-10 00:24:17 -07:00
Ben Vanik 070d34cd02 Fiddling with function data. 2015-06-09 22:01:01 -07:00
Ben Vanik d482885378 Debugger can pause/resume threads. 2015-06-09 20:14:35 -07:00
Ben Vanik 8dc20eb5cd Scaling audio playback frequency with clock time scaling. 2015-06-09 20:14:33 -07:00
gibbed 38c85084ff Tests for vsl. 2015-06-09 19:56:26 -05:00
gibbed e5c4590ecf Few more tests for vsr. 2015-06-09 19:56:12 -05:00
gibbed 6d933c18f7 SHL_V128. 2015-06-09 19:55:54 -05:00
Ben Vanik f0c47e036b Fixing SHR_V128. 2015-06-09 17:42:09 -07:00
gibbed 114409ea2f Test for vsr. 2015-06-09 19:31:44 -05:00
Dr. Chat 60cf80d85c Actually give the game the new handle 2015-06-09 19:04:41 -05:00
Dr. Chat 41f1023549 Minor fix in XThread - checking the wrong address for NULL 2015-06-09 18:58:45 -05:00
Dr. Chat 72a641efac Fix up NtDuplicateObject 2015-06-09 18:58:21 -05:00
Dr. Chat 3627418e0e Object table handle duplication 2015-06-09 18:58:02 -05:00
Ben Vanik dbcdc5b543 Function lookup is slow - replacing with a faster test. 2015-06-08 23:44:38 -07:00
Ben Vanik 1a2b4a38e0 Fixing spurious function declarations. 2015-06-08 23:37:51 -07:00
Ben Vanik 573f190a43 Adding modules/functions to the debugger. 2015-06-08 23:22:25 -07:00
Ben Vanik 9d7d6df476 Bail on invalid heap lookups. 2015-06-08 17:49:54 -07:00
Ben Vanik 52b8f4b54b Removing memory reservation value check for load/store. 2015-06-07 21:57:44 -07:00
Ben Vanik 00b3b0eab9 Adding assertion to RtlImageXexHeaderField + fixing return (maybe). 2015-06-07 21:51:19 -07:00
gibbed 1d37df29cb Untested implementation of MmCreateKernelStack and stub of MmDeleteKernelStack. 2015-06-07 22:28:06 -05:00
Ben Vanik cd62d4e461 PACK to 2101010. 2015-06-07 19:44:19 -07:00
gibbed 98e14fcb1b Hack for KeWaitForSingleObject when games pass in object handles. 2015-06-07 21:08:16 -05:00
gibbed 7f57867f49 Let's fix the strange stack overflows doing the stupid thing. 2015-06-07 18:29:09 -05:00
gibbed b9087e0698 This appears to be better? 2015-06-07 18:17:09 -05:00
Ben Vanik ba88955be4 vsnprintf return is dumb. 2015-06-07 16:13:05 -07:00
Ben Vanik a446d9c64a No need for thread-local shader translator as all reqs come from GPU CP. 2015-06-07 16:13:04 -07:00
gibbed 4a796627f2 Added --break_condition_gpr, --break_condition_value, --break_condition_truncate for use with --break_on_instruction. 2015-06-07 17:50:43 -05:00
Ben Vanik 889f29c18a Fixing CFG to remove unreachable blocks and properly maintain dominators. 2015-06-07 15:14:14 -07:00
Ben Vanik 10e8d0bd9b Fixing constant comparison. 2015-06-07 11:42:20 -07:00
Ben Vanik 338456f7e4 Adding missing test files. 2015-06-07 11:22:42 -07:00
gibbed 0772eec4b1 Fixing branches to the test function in the jumptable constants test. 2015-06-07 13:15:36 -05:00
gibbed 32ca1d1953 @ha @h. 2015-06-07 12:52:16 -05:00
gibbed be7900614b Basic tests for td, tdi, tw, twi. 2015-06-07 12:51:36 -05:00
gibbed 43b0cd6eae Added test reproducing an issue with constants, jumptables and traps. 2015-06-07 06:48:23 -05:00
gibbed 0fb9161a1b Putting the user_index == 255 check back into XamUserReadProfileSettings. 2015-06-07 04:51:50 -05:00
gibbed cbd1210337 Handle a NULL playlist name pointer when creating title playlist. 2015-06-07 01:46:57 -05:00
Ben Vanik f0492dfbb0 Looks like this is used to query rather than read sometimes. 2015-06-06 23:00:17 -07:00
Ben Vanik 58324352ae Stubbed color format. 2015-06-06 22:57:15 -07:00
Ben Vanik 6edf4f898f Gracefully skipping noaccess constant loads. 2015-06-06 22:56:53 -07:00
Dr. Chat 14b14f4309 XnAddrStatus enum and XNADDR struct 2015-06-06 21:20:20 -05:00
Dr. Chat 0c61244e91 Fix XNetGetDebugXnAddr signature 2015-06-06 19:19:13 -05:00
Dr. Chat 6e0732b95b NetDll argument 0 is a caller ID 2015-06-06 19:17:26 -05:00
gibbed cc79934fee Added k_16_16_16_16. 2015-06-06 18:10:17 -05:00
Ben Vanik 429698c2ec Replacing DidCarry with manual calculation and fixing compares. 2015-06-06 15:24:46 -07:00
Ben Vanik 6b52f6715a Adding tests for branch/carry and logging disasm on test failure. 2015-06-06 10:59:43 -07:00
Dr. Chat 4c3297441c Log debugprint traps to the debugger, if attached 2015-06-06 00:50:51 -05:00
Dr. Chat 35ad3c0f1f DebugPrint to debugger util function 2015-06-06 00:48:28 -05:00
gibbed 54e8868160 Some (hopefully correct) constant fixes for MUL_ADD_V128, MUL_SUB_V128, and SWIZZLE V128. Needs extra work on AVX2 side. 2015-06-05 23:29:31 -05:00
Ben Vanik a52fcf0157 Merge pull request #244 from DrChat/sector_info_stub
Sector info stub
2015-06-05 17:36:50 -07:00
gibbed b14ca702d1 Initialize process_type properly. 2015-06-05 19:21:52 -05:00
Dr. Chat 3b913844f0 File sector information stub 2015-06-05 19:06:36 -05:00
Dr. Chat 5250f0ca3e NtQueryInformationFile: Return X_STATUS_UNSUCCESSFUL on default cause 2015-06-05 18:58:39 -05:00
Dr. Chat d9ff65c9a2 Change NtQueryInformationFile to new-style export 2015-06-05 18:54:47 -05:00
gibbed 1d02ce63d3 Cleaned up XamUserReadProfileSettings. Also fixed writing out pointers for
setting data, fixing issues with games trying to read from zero page after
reading profile settings.
2015-06-05 18:53:14 -05:00
gibbed edf8d1a74d Corrected comment. 2015-06-05 16:49:28 -05:00
gibbed c1d3d62e2a Changed the default license mask. 2015-06-05 16:17:09 -05:00
gibbed dae8aa4386 Added --protect_zero command-line argument to protect page zero from read/writes. 2015-06-05 16:13:34 -05:00
sephiroth99 dd30330d18 gl4: fix usage of struct as input/output variables
Apparently, structs cannot be used as in/out variables. This causes
shader compile errors on AMD (nVidia doesn't seem to care I guess?).

Remove the structs and put each struct members as its own variable.
2015-06-05 00:11:23 -04:00
sephiroth99 1139a1b6ac gl4: fix nullptr dereference in GL4Shader::CompileProgram
A nullptr dereference will occur when the disassembly string is not
found, which will obviously happen on AMD. Check for the condition and
if it is not found, put a message indicating so.
2015-06-04 23:52:47 -04:00
sephiroth99 48ed0cb903 gl4: fix glGetInteger of GL_SAMPLER_BINDING
GL_SAMPLER_BINDING returns a single value. On AMD drivers, using the
indexed version of glGetInteger to get that value causes a
GL_INVALID_ENUM error. Use the non-indexed version.
2015-06-04 23:32:37 -04:00
Ben Vanik 232c35b89e Use the right sizes. Nice catch DrChat. 2015-06-04 20:06:49 -07:00
Ben Vanik bc9652e671 Actually fixing the off by one in log buffer size. 2015-06-04 20:04:39 -07:00
Ben Vanik d3ddf0e718 Make the log buffer stupid large. 2015-06-04 19:58:26 -07:00
Ben Vanik 53527bef17 Fixing heap frees. 2015-06-04 19:18:00 -07:00
Ben Vanik 52060af847 Best-guess process info block. 2015-06-04 17:46:00 -07:00
Ben Vanik f9742cc3eb Fixing formatting. 2015-06-04 16:56:42 -07:00
Ben Vanik 21474970b2 Fixing (or at least improving) TLS. 2015-06-04 16:51:53 -07:00
Ben Vanik 319402a11a Re-allow writes to 0. No clue why, but everything does it. 2015-06-04 16:37:17 -07:00
Dr. Chat abacf136a0 Protect page 0 with no access 2015-06-04 16:21:38 -05:00
Dr. Chat 88672eff4f InterlockedFlushSList and rewrote InterlockedPopEntrySList 2015-06-04 16:21:25 -05:00
Dr. Chat 4f807a669c Fix TLS copying (size may still be wrong though) 2015-06-04 16:20:52 -05:00
Ben Vanik 7abed0a033 Merge pull request #241 from DrChat/audio_decoding
Hookup libav logging
2015-06-04 07:58:22 -07:00
Dr. Chat 23ae1b6297 Hookup libav logging 2015-06-04 02:10:56 -05:00
Dr. Chat 0bc08d80ef NtCreateIoCompletion stub 2015-06-04 01:06:39 -05:00
Ben Vanik bba530f628 Pre-sizing export tables. 2015-06-03 22:40:23 -07:00
Ben Vanik b6728ce23e Removing additional varargs trampoline in shader translator. 2015-06-03 22:34:58 -07:00
Ben Vanik a9e2ba16fb Optimizing page allocation (still shit) and adding MmSetAddressProtect. 2015-06-03 21:24:09 -07:00
Ben Vanik 50813d3ffa NetDll_XNetGetDebugXnAddr stub. 2015-06-03 20:45:05 -07:00
Dr. Chat 809c327041 Emulate PACK/UNPACK for non-F16C CPUs 2015-06-03 22:33:45 -05:00
Ben Vanik b8d1d3cf35 Stub for avatar stuff to make it immediately bail. 2015-06-03 18:29:44 -07:00
Ben Vanik 36dc6dd864 Logging APC delivery. 2015-06-03 17:59:36 -07:00
Ben Vanik 1e0c8e223d Merge pull request #238 from DrChat/size_fix
Resize main window after attaching the menu
2015-06-03 11:00:50 -07:00
Dr. Chat 94a075d581 Resize main window after attaching the menu 2015-06-03 12:59:36 -05:00
Ben Vanik 08fc703b73 Merge pull request #237 from DrChat/audio_decoding
Cleanup Audio System Code
2015-06-03 09:16:07 -07:00
Dr. Chat 826609cd60 Cleanup some audio system code. 2015-06-03 11:14:10 -05:00
gibbed 60daa978dd VdSwap has 10 arguments. 2015-06-03 10:37:59 -05:00
gibbed c467024ec8 Packet building helpers. 2015-06-03 10:36:37 -05:00
gibbed 5cfdec7dbf Fix a comment. 2015-06-03 09:50:13 -05:00
Ben Vanik 954b67df78 Adding readback color format. 2015-06-02 22:46:53 -07:00
Ben Vanik 7f62e8a86d Fixing notification dequeing. 2015-06-02 22:13:17 -07:00
Ben Vanik e186fcaf0d Fixing end_of_file and allocation_size, some wildcard stuff, etc. 2015-06-02 22:13:16 -07:00
Dr. Chat b448d794c5 xboxkrnl SHA crypt stubs 2015-06-03 00:06:33 -05:00
Ben Vanik 40a6a12800 Attempting to inline a lot of MMIO operations. Works for GPU stuff mainly. 2015-06-02 20:15:43 -07:00
Dr. Chat 50d8017ac5 Whoops - fix overflowing on output audio samples 2015-06-02 13:17:15 -05:00
Dr. Chat e09ea50c74 .cpp -> .cc and add ring_buffer.cc to the project 2015-06-02 11:23:04 -05:00
gibbed 6d61d0a7b2 Added _snprintf and swprintf. 2015-06-02 10:42:10 -05:00
gibbed 58b1059a23 Reordered the formatting exports in the order of their ordinal. 2015-06-02 10:42:09 -05:00
gibbed b402fb76e1 Oops. 2015-06-02 10:42:08 -05:00
gibbed 065f0417f2 Fixed vsnprintf behavior when count < 0. 2015-06-02 10:42:08 -05:00
Ben Vanik 99718fd3ce Merge pull request #233 from DrChat/audio_decoding
Cleanup Audio System Code
2015-06-02 08:22:10 -07:00
Dr. Chat 8c1e476bab Restylizing. 2015-06-02 10:18:45 -05:00
Dr. Chat e20aa16b59 Cleanup audio system code 2015-06-02 10:12:13 -05:00
Dr. Chat ad8918f326 RingBuffer util class 2015-06-02 10:11:59 -05:00
gibbed 2a40512b74 Made a proper command-line flag out of disabling GL context resetting. --disable_gl_context_reset 2015-06-02 09:09:51 -05:00
Ben Vanik c516447ae1 Misc stubs. 2015-06-02 00:14:24 -07:00
Ben Vanik 7525b840db Making Rick happy ;) 2015-06-01 23:41:17 -07:00
Ben Vanik 862c322cbc Fixing stack args and error typo. 2015-06-01 23:36:05 -07:00
Ben Vanik f86f6ee79d Always set fake cpu #. 2015-06-01 23:22:25 -07:00
Dr. Chat 77e245dc51 Fix audio decoding. 2015-06-02 00:45:00 -05:00
Dr. Chat c780d5528d Remove unused bits_per_frame_ field. 2015-06-02 00:44:59 -05:00
Dr. Chat 93763c166f input_buffer_*_block_count -> input_buffer_*_packet_count 2015-06-02 00:44:59 -05:00
Ben Vanik 493b06a48a NetDll_XNetQosServiceLookup stub. 2015-06-01 22:20:04 -07:00
Ben Vanik 19cb13692b Fixing undefined export names. 2015-06-01 22:12:11 -07:00
Ben Vanik 5c34b0a73e Fixing printfs and fixing exports. link.exe is too good. 2015-06-01 21:40:53 -07:00
Ben Vanik a91a754b24 Converting some exports to the new way. 2015-06-01 20:56:57 -07:00
Ben Vanik f634edb9eb Shrinking type names. 2015-06-01 19:55:43 -07:00
Ben Vanik 169ced8194 Removing kernel_state and ppc_context from kernel export args. 2015-06-01 19:33:13 -07:00
Ben Vanik 23826fa957 Initial experiment with new kernel export format. 2015-06-01 18:19:42 -07:00
gibbed 225bb74316 Oops. Not sure how that got reverted. 2015-06-01 20:05:54 -05:00
gibbed 2a2fe509e6 Rename _vswprintf to vswprintf. 2015-06-01 19:42:23 -05:00
gibbed 5b06b8436e Use std::ostringstream instead of std::stringstream. 2015-06-01 19:32:13 -05:00
gibbed fe8d058b36 Completely reimplemented xboxkrnl formatting related functions (sprintf, etc). No longer relies on CRT-provided sprintf/etc. Floating-point types needs more thorough testing. 2015-06-01 19:29:25 -05:00
gibbed 633d72a98e Corrected NtQueryFullAttributesFile behavior when root_directory is 0. 2015-06-01 19:01:57 -05:00
gibbed 7c5ea52022 Updated functions pulling arguments out of the stack to use the appropriate SHIM_GET_ARG_* macro. 2015-06-01 19:01:56 -05:00
gibbed 8c49281bb5 Improvements to SHIM_GET_ARG_* macros. 2015-06-01 19:01:49 -05:00
Ben Vanik ce3359389b Allow new-style export registration. 2015-05-31 17:54:44 -07:00
Ben Vanik 08770a4ec0 Mass renaming. I love clang-format. 2015-05-31 16:58:12 -07:00
Ben Vanik 9c3d2b54fb Cleanup before kernel export refactor. 2015-05-31 16:31:19 -07:00
Ben Vanik fccab79a7a Adding kernel state pointer to PPCContext. Still needs larger cleanup. 2015-05-31 14:35:56 -07:00
Ben Vanik d816d80190 StringBuffer cleanup. 2015-05-31 14:35:30 -07:00
Ben Vanik 80c2078b9a Merge pull request #231 from DrChat/audio_decoding
Multi-channel decoding fix
2015-05-30 22:23:05 -07:00
Dr. Chat 128bf76205 Fixed up multi-channel audio, works better now. 2015-05-30 22:47:41 -05:00
Dr. Chat dfd689e22b Whoops, we should be converting samples from more than one channel! 2015-05-30 21:27:59 -05:00
Dr. Chat fedf7357a5 Remove variable bits per sample - it's always 16. 2015-05-30 21:01:55 -05:00
Ben Vanik c97b462d8d Fix assert. 2015-05-30 18:04:31 -07:00
Ben Vanik c4ef5d4eb8 Allow AllocFixed of unreserved ranges. 2015-05-29 21:47:19 -07:00
Ben Vanik d97a6d1929 NtReadFile APC, somewhat. 2015-05-29 21:24:23 -07:00
Ben Vanik a4edb7f9e1 Removing 64bit return type and cleaning up some SHIM* stuff pre-refactor. 2015-05-29 17:12:30 -07:00
Ben Vanik 0a83b49744 Speeding up inner loop. 2015-05-29 17:05:43 -07:00
Dr. Chat 40f98f195f Whoops - PCM samples are signed, not unsigned 2015-05-29 18:52:43 -05:00
gibbed 07c0724cf0 Some work on VdSwap. 2015-05-29 15:59:57 -05:00
gibbed 35bea36fc4 Added a magic value to XE_SWAP packets to make it obvious if there's an opcode collision. 2015-05-29 15:59:56 -05:00
Dr. Chat 8c1b36d102 Don't need this. 2015-05-28 22:34:59 -05:00
Dr. Chat d303f4a5ce Fix raw sample clamping 2015-05-28 22:31:55 -05:00