Commit Graph

162 Commits

Author SHA1 Message Date
Ben Vanik
cc08e9019a Move NtCreateFile/NtOpenFile to VFS, implement (mostly) for real.
Progress on #305.
2015-06-29 10:33:36 -07:00
Ben Vanik
b663b615bf Fix XamContent return (!) and vfs use.
Progress on #305.
2015-06-28 17:33:48 -07:00
Ben Vanik
7de9be4ef6 DrChat's fix for xex header values. 2015-06-28 14:53:58 -07:00
Ben Vanik
84e884a07f Moving get_opt_header out of xex2. 2015-06-28 14:01:53 -07:00
Ben Vanik
010b701e05 Iterating on RtImageXexHeaderField. 2015-06-28 13:44:59 -07:00
Ben Vanik
7875a4b0ba Merge pull request #300 from DrChat/hmodule_fix
Swap to using HMODULE instead of handles for xex modules.
2015-06-28 12:01:32 -07:00
Dr. Chat
c47c0b3354 Uhh, lint 2015-06-28 13:29:54 -05:00
Ben Vanik
83872d8e8f Refactoring vfs to remove a lot of duplicated code.
Progress on #294.
2015-06-27 22:37:49 -07:00
Dr. Chat
944b39c51d Apply some lint n' stuff 2015-06-27 22:50:08 -05:00
Dr. Chat
8a6c620fe7 XUserModule::GetOptHeader 2015-06-27 22:42:17 -05:00
Dr. Chat
169cb65d96 Remove unused execution_info_ptr 2015-06-27 22:38:10 -05:00
Dr. Chat
7372dd4d8d Use HMODULE instead of handles for xex modules 2015-06-27 22:00:58 -05:00
Ben Vanik
1ac19f1b08 Replacing vfs memory mapping with base memory mapping.
Progress on #294.
2015-06-27 18:02:20 -07:00
Ben Vanik
23f91b58f3 Moving code out of vfs/ that doesn't need to be there.
Progress on #294.
2015-06-27 17:01:25 -07:00
Ben Vanik
0716cf84c0 Renaming xe::fs to xe::filesystem and xe::kernel::fs to xe::vfs.
Progress on #294.
2015-06-27 13:31:21 -07:00
Ben Vanik
f07d620553 Moving misc stuff out of xbox.h.
Progress on #297.
2015-06-27 11:44:40 -07:00
Ben Vanik
3439641101 Removing cpu.h.
Part of #296.
2015-06-27 08:58:45 -07:00
Ben Vanik
b9c39d1b33 Fixing thread exit. 2015-06-22 22:40:39 -07:00
Ben Vanik
fb1f4906d9 xb format --all (we are now format clean). Buildbot will yell at you. 2015-06-22 22:26:51 -07:00
Dr. Chat
bafd448dd8 Cleanup some XThread code 2015-06-22 21:42:33 -05:00
Ben Vanik
e4c5522c84 Merge pull request #261 from SirCmpwn/fix-std-mem
Add missing includes for cstring
2015-06-16 22:19:19 -07:00
Drew DeVault
a064ba053e Add missing includes for cstring 2015-06-16 23:16:18 -06:00
Ben Vanik
b750370759 Partial thread data plumbing. 2015-06-16 21:53:40 -07:00
gibbed
95afbe2d93 Don't allocate memory for TLS slots, and copy the default TLS data at the start, rather than offset by the TLS slot size, which seems to be more correct. 2015-06-14 03:50:45 -05:00
Dr. Chat
4e74db8e51 Add the dispatch header to X_SEMAPHORE 2015-06-12 22:43:37 -05:00
Dr. Chat
b7aabd7860 XSemaphore now calls CreateNative 2015-06-12 21:31:00 -05:00
Dr. Chat
bdcadeffe5 XObject CreateNative 2015-06-12 21:30:32 -05:00
Dr. Chat
f96657ef7c Fixup DISPATCH_HEADER type_flags to its parts 2015-06-12 19:47:28 -05:00
Dr. Chat
4c9cab4346 Make XThread create a kernel object for itself 2015-06-12 19:02:17 -05:00
Dr. Chat
864e257474 DISPATCH_HEADER -> X_DISPATCH_HEADER 2015-06-12 18:59:08 -05:00
gibbed
dc371009d9 Renamed handle_ to native_handle_ in some places where it makes more sense. 2015-06-10 21:24:54 -05:00
Dr. Chat
41f1023549 Minor fix in XThread - checking the wrong address for NULL 2015-06-09 18:58:45 -05:00
Ben Vanik
573f190a43 Adding modules/functions to the debugger. 2015-06-08 23:22:25 -07:00
gibbed
7f57867f49 Let's fix the strange stack overflows doing the stupid thing. 2015-06-07 18:29:09 -05:00
Ben Vanik
232c35b89e Use the right sizes. Nice catch DrChat. 2015-06-04 20:06:49 -07:00
Ben Vanik
52060af847 Best-guess process info block. 2015-06-04 17:46:00 -07:00
Ben Vanik
21474970b2 Fixing (or at least improving) TLS. 2015-06-04 16:51:53 -07:00
Dr. Chat
4f807a669c Fix TLS copying (size may still be wrong though) 2015-06-04 16:20:52 -05:00
Ben Vanik
36dc6dd864 Logging APC delivery. 2015-06-03 17:59:36 -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
Ben Vanik
f86f6ee79d Always set fake cpu #. 2015-06-01 23:22:25 -07:00
Ben Vanik
19cb13692b Fixing undefined export names. 2015-06-01 22:12:11 -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
d97a6d1929 NtReadFile APC, somewhat. 2015-05-29 21:24:23 -07:00
gibbed
0050b3df83 Assign a CPU number based on the proc affinity mask on thread creation. Fixes audio threads not starting properly on Frogger 2, and possibly other titles. 2015-05-28 12:56:56 -05:00
Ben Vanik
8244409501 Refactoring to enable future time scaling, coordinated clocks, etc. 2015-05-26 22:20:58 -07:00
Ben Vanik
41cee3d337 Switching vsync to custom thread. 2015-05-25 21:12:27 -07:00
Ben Vanik
e3ddcd44e7 Minor fixes and fixing thread names. 2015-05-25 21:10:28 -07:00