Commit Graph

1584 Commits

Author SHA1 Message Date
Ben Vanik c4aeedd0a3 Hacking in PACK 8_IN_16 UUS 2015-02-17 17:23:19 -08:00
x1nixmzeng d091f12c81 Adjustments to wildcard engine
Fixed incorrect logic when checking at the end of the string - some of
the names had an added null character
Removed case sensitivity
2015-02-17 22:42:01 +00:00
Ben Vanik 17bc561045 Implement XMA* methods.
Fixes #156.
2015-02-16 22:22:42 -08:00
Ben Vanik 1204f35f1e --disable_framebuffer_readback 2015-02-16 21:58:24 -08:00
Ben Vanik 50b0746a26 XMA hardware spoofing when using direct register access.
This works for recent games that don't use the XMA* methods.
Upcoming CLs will add the XMA* method shims forthcoming.
2015-02-16 17:18:28 -08:00
x1nixmzeng 97ed221d8b Fixed writing data to the host device
New paths can now be created if they do not exist - this allows content
packages such as savedata to be written to disk
2015-02-16 23:04:10 +00:00
Ben Vanik 20f40a1da4 sprintf. 2015-02-16 10:07:46 -08:00
Ben Vanik 04b30fef99 Fixing warning. 2015-02-13 15:50:37 -08:00
x1nixmzeng 4f7761c5e2 Support for wildcard queries
Provides support for persistent wildcard file requests, as described in
#96
Also moved CanonicalizePath into common code (poly::fs)
2015-02-13 23:41:19 +00:00
Ben Vanik 3d980dd294 No-op FileDispositionInformation for NtSetInformationFile. 2015-02-13 12:00:34 -08:00
Ben Vanik a482d7968b Fixing bad log and warnings. 2015-02-13 11:29:07 -08:00
Ben Vanik a5eacc2972 Fixing polygon mode. 2015-02-13 11:28:06 -08:00
Ben Vanik 6598556446 Implementing RtlCompareString/RtlCompareStringN. Fixes #162. 2015-02-13 10:43:56 -08:00
Ben Vanik de5bad5fb2 Removing weird GPU masking. Fixes a lot of bad shader loads. 2015-02-13 10:14:28 -08:00
Ben Vanik 4915837c35 Fixes #163: scalar dest export regs. No more rainbow sky! 2015-02-13 10:12:19 -08:00
Ben Vanik c26329ece6 RG16 format. 2015-02-12 22:19:00 -08:00
Ben Vanik ea5175cab5 Fixing path issues for host FS. 2015-02-12 21:52:46 -08:00
Ben Vanik f8c7c97d54 Fix null deref. 2015-02-12 18:11:29 -08:00
Ben Vanik d22bfec53c Implementing XamContentGetCreator, always returning self for saves. 2015-02-12 17:31:07 -08:00
Ben Vanik 0ae79bc21a Implementing NtFlushBuffersFile stub. 2015-02-12 17:30:41 -08:00
Ben Vanik d4d88daa94 XamContentCreate. Seems to work! Fixes #152. 2015-02-12 16:57:53 -08:00
Ben Vanik 1ddb8f0c8f Content enumeration. 2015-02-12 16:57:52 -08:00
x1nixmzeng 0d0b406acf Resolving entry names
Some more string manipulation fluff
2015-02-13 00:26:02 +00:00
Ben Vanik dc731f6a31 Most of XamContent* methods, besides enumeration.
Progress on #152.
2015-02-12 14:16:43 -08:00
Ben Vanik 53eaeff690 Switching around entry point to stop VC2015 compiler crashes >_> 2015-02-12 07:50:55 -08:00
x1nixmzeng 9300551e31 Various fixes to resolving relative paths
Rewritten the canonicalization path logic to better handle complex
relative paths
2015-02-12 01:39:22 +00:00
Ben Vanik bde6cf0d85 Stubs for XamSessionCreateHandler+co; enough to make games skip it.
Fixes #150.
2015-02-11 16:41:10 -08:00
Ben Vanik c846ec30c3 Implementing XamGetExecutionId. 2015-02-11 16:26:07 -08:00
Ben Vanik 31bec99cbb Stubs for XLIVEBASE.
Fixes #159.
2015-02-11 15:24:47 -08:00
Ben Vanik 31b09f5aac XUsbcamGetState stub. 2015-02-11 13:40:45 -08:00
Ben Vanik d19519e63c Implementing the vavg instructions (mostly).
Fixes #155.
2015-02-11 12:46:37 -08:00
Ben Vanik 585e0b0e46 XamAlloc/XamFree. Fixes #153. 2015-02-11 10:16:54 -08:00
Ben Vanik dbe9b25a65 Logging for XMPCaptureOutput in #140. 2015-02-11 09:55:13 -08:00
Ben Vanik 90e489527a Enough of ObOpenObjectByName to handle basic usage + asserts for others.
Fixes #143.
2015-02-11 09:42:12 -08:00
Ben Vanik 2c49eec79f XamContentGetDeviceData stub and making XamContent* less schizophrenic.
Fixes #147.
2015-02-11 07:36:15 -08:00
Ben Vanik 211af0b2c6 Fixing mtcr -- needs some tests. 2015-02-11 01:10:30 -08:00
Ben Vanik d1f1fa8951 Fixing NetDll_select. 2015-02-11 00:27:58 -08:00
Ben Vanik fa40308d09 Oh, that's why I did it - these aren't /actually/ HRESULTs. 2015-02-10 23:32:25 -08:00
Ben Vanik c34601469b Fixing overlapped return from XamUserReadProfileSettings. 2015-02-10 23:32:12 -08:00
Ben Vanik 2d08535672 Not sure why I did this. Next time self, leave a damn comment. 2015-02-10 23:01:55 -08:00
Ben Vanik e7dfbd5542 Make XexGetModuleHandle set ptr to 0 on failure. 2015-02-10 23:00:49 -08:00
Ben Vanik 57919b2a11 Seems like games are allowed to set the execute bit.
(it may just be masked away by the system)
2015-02-10 22:31:24 -08:00
Ben Vanik ce08c58610 Fixing 1555 color order. 2015-02-10 22:12:01 -08:00
Ben Vanik 5876196a2c Fixing input to return EMPTY. 2015-02-10 22:11:45 -08:00
Ben Vanik 94b8abd816 Fixing bad assert. 2015-02-10 22:04:16 -08:00
Ben Vanik 486d0beea3 mtcrf (untested). 2015-02-10 22:04:02 -08:00
Ben Vanik 3573840c5f Nasty, but jump over div/0. Value remains undefined, as on 360.
Fixes issue #135.
2015-02-10 17:28:21 -08:00
x1nixmzeng 4351f48c7b Resolve relative file paths
Implemented path normalization so relative paths can be correctly
resolved
2015-02-11 01:11:52 +00:00
Ben Vanik dbfd0b0f7b RG8 texture format. 2015-02-10 13:22:08 -08:00
Ben Vanik 9b7f64f9e6 XNotifyDelayUI stub. 2015-02-10 12:11:17 -08:00
Ben Vanik daac4a2d50 Fixing Rc=1 CR update to be 32-bit. 2015-02-10 12:01:05 -08:00
Ben Vanik 46a59270c4 Tests for nor and neg. 2015-02-10 12:00:47 -08:00
Ben Vanik bd7a970102 Factoring out EA writeback. Thought it may have been wrong. 2015-02-09 17:39:46 -08:00
Ben Vanik c42eb271ac Fixing disasm. 2015-02-09 17:23:41 -08:00
Ben Vanik cc6d03ab2c Removing unneeded fs entry type. 2015-02-09 16:59:28 -08:00
Ben Vanik 78451a4e9e Cleaning up texture info/uploading. Edge cases still likely. 2015-02-09 14:10:24 -08:00
Ben Vanik 1ffd99fe3a Oh for fuck's sake. Fixing vperm128 decoding. 2015-02-09 14:10:24 -08:00
Ben Vanik 29719b8f4d Cleaning up some line ending issues. 2015-02-09 14:10:23 -08:00
x1nixmzeng dc11b88ef2 Minor usage fix
Fixes usage when running with a single unnamed argument
2015-02-09 20:13:09 +00:00
Ben Vanik eae8197025 Fixed XInputGetKeystroke. 2015-02-06 00:11:17 -08:00
Ben Vanik 8176df3ac6 lvebx/lvehx/lvewx. 2015-02-05 23:17:30 -08:00
Ben Vanik 3567cbc2cc ADD/MUL/SUBs. 2015-02-05 22:40:52 -08:00
Ben Vanik 908b95aeaa Probably working select. 2015-02-05 21:52:00 -08:00
Ben Vanik f128bf8670 Enough NetDll for games using sockets as IPC. 2015-02-05 21:26:28 -08:00
Ben Vanik fe3475b88c Fixing texture sizing. Probably. Fixes some DXT issues. 2015-02-03 23:46:12 -08:00
Ben Vanik c33613b2f8 assert_unhandled_case on ObReferenceObjectByHandle. 2015-02-02 23:07:21 -08:00
Ben Vanik 05f008d6ce Several XamContent* methods. 2015-02-02 23:07:20 -08:00
Ben Vanik c75a0337ae Fix XamUserCreateAchievementEnumerator. 2015-02-02 23:07:20 -08:00
Ben Vanik 969ef8f688 Fix XamEnumerate returns. 2015-02-02 23:07:19 -08:00
Ben Vanik 4f92df8918 XexGetModuleHandle(nullptr,) support. 2015-02-02 23:07:19 -08:00
Ben Vanik c06a675794 Fix XOVERLAPPED. 2015-02-02 23:07:19 -08:00
Ben Vanik 2b1dc9fa05 Ignore range check on autodraw. 2015-02-02 23:07:18 -08:00
Ben Vanik 36ba9aa3f3 Fixing rect-list tex coords. 2015-02-02 23:07:18 -08:00
Ben Vanik 5b08feb010 Playing with RTT. 2015-02-02 23:07:17 -08:00
Ben Vanik f9a3f0c48e Fix broken VirtualProtect reset on ClearWriteWatch. 2015-02-02 23:07:17 -08:00
Ben Vanik bba8f6391b Tweaking CriticalSection. 2015-02-02 23:07:16 -08:00
x1nixmzeng bcb507d643 Minor string formatting fix
Log the path names as widestrings
2015-02-02 22:52:57 +00:00
Ben Vanik ea1bdd2a24 Fixing vswprintf and adding vscwprintf. 2015-02-01 22:44:33 -08:00
Ben Vanik 487ce40123 No-op XUserGetContext. 2015-02-01 22:29:36 -08:00
Ben Vanik 59adde4d7f Negative size allocs. Probably. 2015-02-01 21:20:55 -08:00
Ben Vanik 493c3d7656 XMsgSystemProcessCall call. 2015-02-01 20:53:44 -08:00
Ben Vanik 93ded5ef0f Old style mfcr. 2015-02-01 20:49:47 -08:00
Ben Vanik 7b48332782 Reversing XUserSetPropertyEx signature. 2015-02-01 17:40:38 -08:00
Ben Vanik 5b759d387c Starting to reverse XGI app. 2015-02-01 17:25:18 -08:00
Ben Vanik 5f3ab7979f --break_on_debugbreak 2015-02-01 11:38:16 -08:00
Ben Vanik f60677f359 mfocrf + test 2015-02-01 11:22:56 -08:00
Ben Vanik cfcd6118c2 Fixing GetTickCount.
There's likely a better way to do this (on demand), but this works for now.
2015-02-01 09:05:35 -08:00
Ben Vanik 3454d1bdf5 EntryTable needs a rewrite. 2015-01-31 23:51:45 -08:00
Ben Vanik 00e4a4fe1b Fix #include format. 2015-01-31 22:49:47 -08:00
sephiroth99 3f480d24bd libpoly: add missing include for thread_local define in logging.cc
Add a missing include in logging.cc that fixes the missing definition for
thread_local. Similar to issue #122.
2015-01-31 01:24:45 -05:00
Ben Vanik f632895fbb srdi special case and tests for sldi/srdi. 2015-01-24 10:21:54 -08:00
Ben Vanik b8bb338564 Removing IVM. 2015-01-19 12:35:43 -08:00
Ben Vanik 056d4ed9b0 vaddshs/vadduhm/vsubshs/vsubuhm tests. 2015-01-19 12:24:41 -08:00
Ben Vanik b2e03fa628 I don't like it, but fixing permute by int16. 2015-01-19 12:15:10 -08:00
Ben Vanik acc1286b72 Disasm path diffs. 2015-01-19 12:13:43 -08:00
Ben Vanik 88d0c2cfd3 Fixing vupklsh/vupkhsh. 2015-01-19 12:13:26 -08:00
Ben Vanik dd2f799380 Tests for vupklsh/vupkhsh. 2015-01-19 11:52:51 -08:00
Ben Vanik 9099f597fe Test vupkd3d128 and fix short2 unpacking. 2015-01-19 11:46:14 -08:00
Ben Vanik 1d4ee3e6fb vcfsx test 2015-01-14 17:59:14 -08:00
Ben Vanik d76db54fee Tests for vmrg* (broken! woo!) 2015-01-14 17:47:54 -08:00
Ben Vanik 9a66629725 vsel tests. 2015-01-11 21:32:34 -08:00
Ben Vanik e48d9a44c7 vsldoi tests. 2015-01-11 21:21:51 -08:00
Ben Vanik 58107f3499 vpermwi128 tests. 2015-01-11 21:16:04 -08:00
Ben Vanik cd4e877ae1 fsel test. 2015-01-11 21:01:25 -08:00
Ben Vanik 6a44cf9662 vrlimi128 tests. 2015-01-11 16:39:44 -08:00
Ben Vanik 0dfe0602ad stvew tests. 2015-01-11 16:39:36 -08:00
Ben Vanik fc39745634 lvsl/lvsr tests. 2015-01-11 16:00:16 -08:00
Ben Vanik 18e458e99a addic tests. 2015-01-11 15:49:56 -08:00
Ben Vanik d66c6ec3d3 fabs test. 2015-01-11 15:45:17 -08:00
Ben Vanik f6404a0982 vctsxs tests. 2015-01-11 15:38:01 -08:00
Ben Vanik d234f2bc47 vperm test + fix for % byte. 2015-01-11 15:17:16 -08:00
Ben Vanik 229daab25b vspltis[bhw] tests. 2015-01-11 15:02:57 -08:00
Ben Vanik aacb515035 vsplt[bhw] tests. 2015-01-11 14:58:05 -08:00
Ben Vanik 338b5809b4 vsl[bhw] tests. 2015-01-11 14:48:51 -08:00
Ben Vanik f2100a78bc vrfin test. 2015-01-11 13:11:31 -08:00
Ben Vanik ffe9fad685 Minor tweaks while reviewing instructions. 2015-01-11 13:11:13 -08:00
Ben Vanik 5827f5f5d8 Utility to dump instruction translation counts. 2015-01-11 00:44:17 -08:00
Ben Vanik b6b27e621a Enough XMP to play (fake) play media. 2015-01-11 00:28:24 -08:00
Ben Vanik f5e12eba76 Digging into XMP stuff. Wish these were just normal functions. 2015-01-10 21:36:46 -08:00
Ben Vanik cf31969510 Update comment on VGT_MIN/MAX_VTX_INDX. 2015-01-09 00:33:11 -08:00
Ben Vanik e7ee2bf40d XamLoaderLaunchTitle 2015-01-09 00:31:56 -08:00
Ben Vanik 9f765e1291 XMsgStartIORequestEx 2015-01-09 00:26:47 -08:00
Ben Vanik 2bc951cd1e Stub for screen extent write event. 2015-01-09 00:26:40 -08:00
Ben Vanik 6437bbec96 OPCODE_INSERT 2015-01-09 00:12:11 -08:00
Ben Vanik fde3904130 Emulated SHR_V128 implementation. 2015-01-08 23:35:25 -08:00
Ben Vanik dfba5943da Hide invalid interrupt dispatches. 2015-01-07 22:54:50 -08:00
Ben Vanik 9e1c3e1dfc Putting something at 0x40000000. 2015-01-07 22:24:59 -08:00
Ben Vanik 6eb9c3c9e5 Trying to find real register values. 2015-01-07 21:51:03 -08:00
Ben Vanik 662bbb6729 Experimenting with video stuff. 2015-01-07 21:47:46 -08:00
Ben Vanik 3658e710d2 Tweaks; timebase supports TBU. 2015-01-06 00:13:27 -08:00
Ben Vanik 672ecdf252 Some games open readonly paths for writes.. hmm 2015-01-05 23:25:32 -08:00
Ben Vanik 1a70606904 QueryFileSystemAttributes/QueryVolume for STFS/ISO. 2015-01-05 22:32:44 -08:00
Ben Vanik 58e71c7ff3 KeSetDisableBoostThread stub. 2015-01-05 22:32:22 -08:00
Ben Vanik 540740ca41 NtCreateFile/NtOpenFile cleanup. Now opens directories, too. 2015-01-05 22:32:15 -08:00
Ben Vanik 9e65e35a09 Some user profile settings. 2015-01-05 22:11:26 -08:00
Ben Vanik 4aa98ae1e9 fnmadd(s)x 2015-01-05 22:11:02 -08:00
Ben Vanik a82629efd5 Fix dots in path names. 2015-01-04 21:08:47 -08:00
Ben Vanik caad11b30b Support root-relative paths. 2015-01-04 20:57:12 -08:00
Ben Vanik 0b6b6a4189 Fixing buffer flushes. 2015-01-04 16:52:29 -08:00
Ben Vanik 0529fdb84d Basic hacky write watching for texture invalidation. Doesn't scale. 2015-01-04 16:28:42 -08:00
Ben Vanik 55c4488ab2 Fast-pathing MDI's that have only one draw. 2015-01-04 14:23:28 -08:00
Ben Vanik 4fcf9c6229 MultiDrawIndirect draw batching - now down to <20us per draw. 2015-01-04 11:20:42 -08:00
Ben Vanik eda38a7428 Misc tweaks. 2015-01-04 04:59:26 -08:00
Ben Vanik 34fb0e4a8a Optionally track max value seen during copy. 2015-01-04 04:57:40 -08:00
Ben Vanik 56a04592d5 Removing fetch consts from state data. 2015-01-03 13:59:31 -08:00
Ben Vanik 2a082ff242 Tracking bytes used in the scratch buffer. 2015-01-03 13:50:11 -08:00
Ben Vanik 70c0c0fea1 Adding --vendor_gl_extensions flag to disable NV stuff. 2015-01-03 13:40:20 -08:00
Ben Vanik 76c41edfd6 Thread names. 2015-01-03 03:42:27 -08:00
Ben Vanik 3e61cc95cd Tracking whether state changes are compatible for batching. 2015-01-03 03:19:32 -08:00
Ben Vanik 07a82200f9 Shadow state to eliminate most redundant GL calls. 2015-01-03 02:57:58 -08:00