Dr. Chat
4301641bdf
XThread Save/Restore
2015-12-29 13:09:16 -08:00
Ben Vanik
194c13f977
REBASE: Fix vector out of range access.
2015-12-29 13:09:16 -08:00
Dr. Chat
5517518d36
XObject savestate setup (Save/Restore, tracks all handles, tracks if host object)
2015-12-29 12:35:59 -08:00
Dr. Chat
712a5da64b
KernelState::Save/Restore (and misc. changes)
2015-12-29 12:35:58 -08:00
Dr. Chat
ed85346f3b
XObject Save/Restore
2015-12-29 12:32:50 -08:00
Dr. Chat
4a13316daa
Track export data on kernel trampolines as well.
2015-12-29 12:32:49 -08:00
Dr. Chat
b8d4f26e46
Fix NtWaitForMultipleObjectsEx definition
2015-12-29 12:32:49 -08:00
Dr. Chat
87cdce1440
Export kBlocking tag
2015-12-29 12:32:48 -08:00
Dr. Chat
666f5543a8
Cleanup ThreadState and XThread
2015-12-29 12:32:46 -08:00
Ben Vanik
990d973c74
New ppc opcode decoder.
...
Seems to work and match up with the old decoder (which may be bad).
Old decoder remains until all functionality is replaced.
2015-12-27 22:53:05 -08:00
Ben Vanik
0a316808a5
Include order fixes.
2015-12-27 10:27:46 -08:00
Ben Vanik
0e58208add
Dropping elemental-forms and swapping out with imgui.
...
Too much code for such little use. This should simplify porting.
2015-12-26 20:25:24 -08:00
sephiroth99
a281f6d70d
ObjectTable: Remove explicit specialization in class scope
...
Function template 'LookupObject' in ObjectTable class has
a specialization in class scope, which is not allowed.
While MSVC seems OK with that, clang complains about it.
Fix this issue by moving the definition of the specialisation
outside the class scope, and moving the declaration in the
'.cc' file.
2015-12-17 01:04:44 -05:00
Ben Vanik
15816327b4
Renaming xe::cpu::frontend to xe::cpu::ppc.
2015-12-14 21:17:55 -08:00
Ben Vanik
bea8870700
Shuffling old-style ucode.h under gl4.
2015-11-28 16:10:27 -08:00
Ben Vanik
1956b8708e
Fixing include orders and whitelisting others.
...
Will be broken until clang SVN 253772 is available on travis/snapshots.
2015-11-21 11:34:46 -08:00
Dr. Chat
4dfe1addaa
Verify that LookupObject actually returns an object of the requested type.
2015-11-12 19:06:15 -06:00
Dr. Chat
7fc22f1987
Add a static kType field to all objects
2015-11-12 19:01:55 -06:00
Dan Weatherford
e178853e46
Partially implement XamUserWriteProfileSettings
...
Handles writing binary blob settings to the user profile which can then be read
by XamUserReadProfileSettings.
2015-11-09 16:53:52 -06:00
Ben Vanik
4af6c41740
Moving profiling.h to base - UI could be separated for cleanliness.
2015-11-07 12:31:07 -08:00
Ben Vanik
440c807936
Fix error state shutdown crash.
2015-11-06 16:27:07 -08:00
Ben Vanik
b9326be93c
Merge pull request #447 from DrChat/excreatethread_ptr_fix
...
Fix ExCreateThread returning a handle when game requests a pointer
2015-11-03 20:01:12 -08:00
Dr. Chat
cd12b3d198
Converted MmCreateKernelStack / Implemented MmDeleteKernelStack
2015-11-01 21:59:27 -06:00
Dr. Chat
b628577855
Implemented KeSetCurrentStackPointers
2015-11-01 21:56:40 -06:00
Dr. Chat
cee0e582c2
Remove workarounds for handles passed into Ke* functions.
2015-10-31 10:31:35 -05:00
Dr. Chat
4d22c21688
ExCreateThread: Flag 0x80 indicates we should return the thread pointer, not handle.
2015-10-31 10:28:53 -05:00
Dr. Chat
3547d31c3d
Generate trampoline functions for GetProcAddressByOrdinal on kernel modules.
2015-10-24 14:14:08 -05:00
Dr. Chat
c33e95981b
Formatting.
2015-09-25 18:46:50 -05:00
Dr. Chat
71818a3129
Convert NtCreateEvent to new format
2015-09-25 18:39:14 -05:00
Dr. Chat
b12480820c
word_t shim parameter
2015-09-25 18:38:33 -05:00
Dr. Chat
f5ee6f4cf5
XEX2 lan key header
2015-09-25 18:38:10 -05:00
Dr. Chat
ba399d52b9
NtAllocateVirtualMemory: Return STATUS_MAPPED_ALIGNMENT if the base address is unaligned
2015-09-25 18:37:49 -05:00
Dr. Chat
d78f43c574
XamContentOpenFile stub
2015-09-25 18:35:57 -05:00
Dr. Chat
9ceab26560
Print the LAN key header
...
Check if the module is a XEX module before calling Unload on XexModule
2015-09-25 18:34:54 -05:00
Dr. Chat
3cbc65ac29
XThread Get/Set Last Error
2015-09-25 18:22:13 -05:00
Ben Vanik
ee92f75a84
Updating to the latest clang-format. Make sure to update yourselves!
2015-09-22 08:26:19 -07:00
sephiroth99
ab2ef82d55
xobject: remove accept method of object_ref class
...
The removed method was causing an error in clang ("call to non-static member
function without an object argument"). As it was not used, simply remove
it.
2015-09-22 07:43:08 -07:00
Ben Vanik
3fc1d02a09
Suspend some host threads that make guest callbacks.
2015-09-21 21:24:26 -07:00
Ben Vanik
5d033f9cb3
A new debugger.
...
Lots of bugs/rough edges/etc - issues will be filed.
Old-style debugging still works (just use --emit_source_annotations to get
the helpful movs back and --break_on_instruction will still fire).
2015-09-20 21:31:05 -07:00
Ben Vanik
a1a996c1e6
Shrinking UI elements in the debugger.
2015-09-06 20:49:20 -07:00
Ben Vanik
e5fbf840d2
Shuffling kernel/.
2015-09-06 18:07:52 -07:00
Ben Vanik
494cba7131
Removing unused XAsyncRequest.
2015-09-06 14:10:34 -07:00
Ben Vanik
8588fbc6cf
Shuffling kernel util types to util/.
2015-09-06 13:45:52 -07:00
Ben Vanik
cb3dbcccbc
Notes.
2015-09-06 11:05:16 -07:00
Ben Vanik
669f5b061f
Moving DPC list into KernelState and removing unused file.
2015-09-06 09:36:39 -07:00
Ben Vanik
3c96b6fa0a
DANGER DANGER. Switching to global critical region.
...
This changes almost all locks held by guest threads to use a single global
critical region. This emulates the behavior on the PPC of disabling
interrupts (by calls like KeRaiseIrqlToDpcLevel or masking interrupts),
and prevents deadlocks from occuring when threads are suspended or
otherwise blocked.
This has performance implications and a pass is needed to ensure the
locking is as granular as possible. It could also break everything
because it's fundamentally unsound. We'll see.
2015-09-06 09:30:54 -07:00
Ben Vanik
6c07eb8e5c
Faster RtlFillMemoryUlong.
2015-09-05 14:38:07 -07:00
Dr. Chat
3d1f079e86
NetDll_inet_addr needs to convert endianness!
2015-09-01 23:47:54 -05:00
Ben Vanik
311b65537d
--log_high_frequency_kernel_calls (defaults to false) to cull some lines.
2015-09-01 18:20:08 -07:00
Ben Vanik
3c1e012098
Lookup thread/event/etc objects by name on create to try to reuse.
2015-09-01 18:09:44 -07:00
Ben Vanik
3f433fe20a
Object table names are case insensitive.
2015-09-01 18:08:00 -07:00
Ben Vanik
f3c75b8d87
Support ObReferenceObjectByHandle for XEvents.
2015-09-01 17:42:07 -07:00
Ben Vanik
b9debbaa63
Fixing section lookup when the name is 8 characters.
2015-09-01 17:03:40 -07:00
Ben Vanik
f5e374f9b5
Changing the way the global lock works. Some things are better, I think.
...
Regressions are likely.
2015-09-01 09:45:32 -07:00
Ben Vanik
1b916ccca2
Log module dump directly.
2015-08-30 21:33:33 -07:00
Ben Vanik
a4ed79695d
WSACreateEvent/CloseEvent/SetEvent.
2015-08-30 21:31:52 -07:00
Ben Vanik
39989a6107
Adding log lines to help find unimplemented NtQueryInformationFile calls.
2015-08-30 16:38:51 -07:00
Ben Vanik
b80a028589
Much better errors on undefined externs.
2015-08-30 15:27:12 -07:00
Ben Vanik
87094b8257
Adding XamUserContentRestriction* functions.
2015-08-30 15:00:04 -07:00
Ben Vanik
7711568af9
Implementing SetTimer and CompleteOverlappedEx APC callbacks.
...
Fixes #410 .
2015-08-29 23:43:26 -07:00
Ben Vanik
7172f7575e
Removing assert in keyboard display on flags.
2015-08-29 22:30:12 -07:00
Ben Vanik
1d7f345960
Fix logging with null varargs.
2015-08-29 22:22:07 -07:00
Ben Vanik
a86b3821f2
Adding thread handle to logging.
2015-08-29 20:49:26 -07:00
Ben Vanik
c486fcfcba
Merge pull request #407 from DrChat/libav
...
Rewrote the Audio Decoder
2015-08-29 20:47:04 -07:00
Dr. Chat
3d684ac304
Fixup the premake files
2015-08-29 22:04:12 -05:00
Ben Vanik
3508cce5b3
Fixing module loading.
2015-08-29 19:35:43 -07:00
Dr. Chat
0f9cd8cfb3
New WIP audio decoder
2015-08-29 21:16:57 -05:00
Dr. Chat
f2b2a22687
Add gflags to projects that need it only
2015-08-29 21:16:57 -05:00
Ben Vanik
b7203c2989
Logging to with a ringbuffer. Much faster.
2015-08-29 18:06:30 -07:00
Ben Vanik
8b0d4fb51c
Linux tweaks.
2015-08-18 14:18:00 -07:00
Ben Vanik
19299fad4b
Removing apu/ deps on Emulator.
2015-08-18 10:54:56 -07:00
Ben Vanik
ad090a40eb
Fixing misuse of std::chrono.
2015-08-18 10:18:30 -07:00
Dr. Chat
3c968f3f1e
Whoops - Fix InterlockedPopEntrySList dereferencing a NULL pointer
2015-08-16 16:54:55 -05:00
Dr. Chat
6cd08384e7
(Experimental) ELF module support
2015-08-16 09:47:39 -05:00
Dr. Chat
3fcc6648d7
Fix (to the best of my knowledge) InterlockedPopEntrySList
...
Couple of other asserts/fixes
2015-08-13 19:06:58 -05:00
Ben Vanik
0686227d23
Style fixes.
2015-08-08 16:40:14 -07:00
Ben Vanik
a92566dfc5
More style.
2015-08-07 21:29:03 -07:00
Ben Vanik
14beb27ebc
xb style.
2015-08-07 07:56:57 -07:00
Ben Vanik
5e08889d93
More style cleanup.
2015-08-06 20:17:01 -07:00
Ben Vanik
e6461f326c
Some xb style cleanup.
2015-08-05 22:06:20 -07:00
Ben Vanik
37ded9acc3
Window->Form.
2015-08-01 10:24:41 -07:00
Ben Vanik
2f1965082c
Dropping dummy drive size down to a reasonable size. Fix #377 .
2015-07-31 14:15:07 -07:00
Ben Vanik
e523ffcd51
Tweaking some thread names.
2015-07-29 23:28:45 -07:00
Ben Vanik
d8be8fdbbb
Never run WSACleanup, it breaks the debugger. Some games do this
...
on startup just because, which decrements our WSA instance to zero.
2015-07-29 21:41:39 -07:00
Ben Vanik
9bea299a16
Massaging xinput arguments. Fixes RCR.
2015-07-29 21:41:09 -07:00
Ben Vanik
122114d1d1
Fixing debugger startup race.
2015-07-29 19:52:53 -07:00
Ben Vanik
e01c2ac98d
Fixing formatting.
2015-07-28 00:32:01 -07:00
Ben Vanik
dffc1f0e14
Merge pull request #371 from DrChat/xam_enumerate_fix
...
Fix XamEnumerate returning a RESULT instead of a HRESULT
2015-07-27 19:59:57 -07:00
Ben Vanik
b1baaa45bc
Merge pull request #369 from DrChat/handle_release_fix
...
Fix releasing the primary handle of an object in RemoveHandle
2015-07-27 19:59:45 -07:00
Dr. Chat
1e0ba0b24c
Fix XamEnumerate returning a RESULT instead of a HRESULT in extended error.
2015-07-27 21:50:26 -05:00
Dr. Chat
fe7a710460
Revert license mask.
2015-07-27 18:32:41 -05:00
Dr. Chat
997de209ec
Reversed engineered X_OBJECT_HEADER a bit better
2015-07-27 18:26:07 -05:00
Dr. Chat
e37479c7b0
Convert strings before returning them
2015-07-27 18:23:11 -05:00
Dr. Chat
6a26fd08cd
Xam keyboard input UI
...
Moved XamShowDeviceSelectorUI here
2015-07-27 18:22:51 -05:00
Dr. Chat
9b722eb602
XamContent change HDD size to 1TB, rewrite XamContentCreateEnumerator
2015-07-27 18:22:10 -05:00
Dr. Chat
df500e162e
Rewrite XamEnumerate to copy one item at a time (for now anyways)
2015-07-27 18:20:50 -05:00
Dr. Chat
ee1565b0e8
XEnumerator write single item
2015-07-27 18:18:05 -05:00
Ben Vanik
987589dcbc
Stop overwriting already-specified thread names.
2015-07-26 23:49:32 -07:00
Ben Vanik
7ecc6362de
Debugger stuff. Lots of wasted work :/
2015-07-26 22:47:16 -07:00
Dr. Chat
30f3994476
Fix accidentally releasing the primary handle of a duplicated object when the duplicated handle is removed.
2015-07-25 20:00:18 -05:00
Ben Vanik
ea4ec28acc
Adding --show_profiler to show profiler by default, changing hotkey to F3.
2015-07-25 12:34:15 -07:00
Dr. Chat
4301806061
Cleanup some Ke* threading APIs (and update the dispatch header when possible)
2015-07-25 11:43:25 -05:00
Dr. Chat
18d8fad098
Couple of fixes for IO (null pointer deref and improper XctdCompressionInformation)
2015-07-24 23:50:02 -05:00
Dr. Chat
270686a0be
Whoops, don't need these
2015-07-24 23:24:23 -05:00
Dr. Chat
b8b134da75
module Retain instead of RetainHandle
2015-07-24 23:09:47 -05:00
Dr. Chat
64089558f1
XThread set exit code on exit
2015-07-24 23:09:33 -05:00
Dr. Chat
c536053dec
Fix improper getting arguments from stack
...
Also fix PrimitivePointerParam conversion error
2015-07-24 23:08:55 -05:00
Dr. Chat
cf37fa7d71
Update a bunch of IO methods
2015-07-24 23:07:22 -05:00
Dr. Chat
eac3243907
Include host ID in XThread name for easier debugging
2015-07-24 18:42:30 -05:00
Dr. Chat
8e41d5a707
The kernel object table now keeps track of handle reference counts.
2015-07-22 19:34:33 -05:00
Ben Vanik
a42ab648ed
Shuffling --debug around and making it work.
2015-07-22 17:26:10 -07:00
Dr. Chat
9a47082c88
Create XThread suspended and resume it when setup is complete. Fixes race condition on thread_ variable.
2015-07-22 11:56:02 -05:00
Dr. Chat
8d0fef1433
Kernel state terminate notification support
2015-07-21 22:11:33 -05:00
Dr. Chat
b6f8985c8c
Shuffle around RTL critical section code and add asserts
...
Get thread ID using new api
2015-07-21 22:09:26 -05:00
Dr. Chat
7ceaf678e0
Minor XObject function changes
2015-07-21 22:07:55 -05:00
Dr. Chat
b646915b77
Make XThread use its guest KTHREAD object in the pcr in r13
...
Shuffle around some code in XThread
2015-07-21 22:07:30 -05:00
Dr. Chat
a4849ca83e
XNetSetSystemLinkPort / respect optional pointers in accept
2015-07-21 22:05:56 -05:00
Ben Vanik
5bd7833e87
More clang fixes. xenia-kernel is clean.
2015-07-19 21:29:06 -07:00
Ben Vanik
bebda48a4f
More clang fixes.
2015-07-19 20:46:14 -07:00
Ben Vanik
12a29371e3
Clang fixes.
2015-07-19 18:32:48 -07:00
Ben Vanik
baa86fcd1b
Migrating xam UI to elemental-forms.
...
Fixes #345 .
2015-07-19 14:43:27 -07:00
Ben Vanik
edfa3f3fc0
Replacing the tick count timer with xplat abstraction (also better rate).
...
Fixes #346 .
2015-07-19 10:11:54 -07:00
Ben Vanik
91d7acf59e
Fixing some particularly bad /W4.
2015-07-18 23:04:21 -07:00
Ben Vanik
e0eb85bbbc
Switching to premake. Probably with disasterous consequences.
2015-07-18 16:00:01 -07:00
Ben Vanik
6c5d230f67
Merge pull request #353 from DrChat/ob_threads
...
Implement ObLookupThreadByThreadId / ObOpenObjectByPointer
2015-07-18 13:27:25 -07:00
Dr. Chat
b92cddc182
Implement SHA-1 in xboxkrnl (correctness not verified though)
...
Stubs for some weird crypto functions
2015-07-18 14:57:43 -05:00
Dr. Chat
55f5b95670
These are implemented (and formatting)
2015-07-17 20:29:39 -05:00
Dr. Chat
c60d30a311
Add a few more xam exports
2015-07-17 19:57:35 -05:00
Dr. Chat
c3189a6837
ObLookupThreadByThreadId / ObOpenObjectByPointer
2015-07-17 19:56:54 -05:00
Dr. Chat
1ea5a4b7b4
XThread initialize the dispatch header
2015-07-17 19:55:09 -05:00
Dr. Chat
e54477d0e4
XObject::StashNative
2015-07-17 19:52:29 -05:00
Ben Vanik
756d414386
Prep for split libraries.
2015-07-16 22:26:34 -07:00
Sinoxan
0cdff21582
Removing unnecessary unsigned checks.
2015-07-16 19:01:11 +01:00
Ben Vanik
ecd4af10c9
Fixing some clang warnings/errors.
2015-07-15 23:26:58 -07:00
Ben Vanik
f520d3a2a4
Run with latest clang-format.
2015-07-15 22:44:30 -07:00
Ben Vanik
c3415e6332
Adding TLS abstraction.
2015-07-15 22:20:33 -07:00
Ben Vanik
48d5d76882
Cleaning up RtlTimeToTimeFields/TimeFieldsToTime. Needs a non-win32 impl.
2015-07-15 22:10:24 -07:00
Ben Vanik
8154d1dad6
Moving xe::Memory and code cache to abstracted APIs.
2015-07-15 22:10:05 -07:00
Ben Vanik
fefaa31cd8
Switching a few types to their platform-agnostic versions.
2015-07-15 22:09:19 -07:00
Ben Vanik
58c3a1ba79
VirtualProtect platform abstraction.
2015-07-15 18:20:05 -07:00
Ben Vanik
99104a25a8
Fixing thread exit.
2015-07-15 18:01:17 -07:00
Ben Vanik
a6012b73f4
Switching audio system to platform-agnostic primitives.
2015-07-14 23:13:56 -07:00
Ben Vanik
345fe60da0
Switching over kernel objects to the platform-agnostic APIs.
...
Possibly some regressions here.
2015-07-14 22:44:45 -07:00
Ben Vanik
bd490d5833
Threading primitives, in prep for removing Win32 from kernel/ and others.
2015-07-13 22:49:29 -07:00
Ben Vanik
d89bad7380
Removing uses of Sleep/SwitchToThread/etc.
2015-07-13 21:54:24 -07:00
Ben Vanik
40621a90bd
Switching to standard mutex for now (but keeping xe::mutex).
2015-07-13 21:49:32 -07:00
Ben Vanik
72ad899e9e
Starting to remove windows.h includes from things.
2015-07-13 20:49:29 -07:00
Ben Vanik
15c17459be
Massive refactoring of xenia::ui and GL swap behavior.
...
This seems to dramatically improve most games (especially with
--vsync=false), though it may cause swap issues with others.
New code should be easier to port, and enables elemental-forms to be
drawn for any emulator UI.
2015-07-12 22:04:17 -07:00
Dr. Chat
5332290573
NetDll_WSAWaitForMultipleEvents
...
NetDll_WSAResetEvent
2015-07-11 19:32:33 -05:00
Dr. Chat
8499da972c
Convert a couple of kernel threading APIs to new style
2015-07-11 18:17:52 -05:00
Dr. Chat
f0060f8335
Allow direct typecasting of Result shim util class
2015-07-11 18:14:33 -05:00
Dr. Chat
90a9a71e55
Lint.
2015-07-10 23:32:05 -05:00
Dr. Chat
ee1696e571
Fix some inconsistencies in the XMA API (and rewrite a lot of functions to the new style)
2015-07-10 23:16:42 -05:00
Dr. Chat
b2241e3fef
Avoid calling OnUnload twice.
2015-07-06 19:19:32 -05:00
Dr. Chat
0388d17a72
Formatting
2015-07-06 10:57:32 -05:00
Dr. Chat
88465de41e
FscGetCacheElementCount stub
2015-07-06 10:41:14 -05:00
Dr. Chat
6ddd0b4700
Rewrite InterlockedPopEntrySList
2015-07-05 21:33:29 -05:00
Dr. Chat
870aa092bb
KernelState::GetKernelModule
2015-07-05 17:27:25 -05:00
Dr. Chat
8adbc2cd0c
Return 0 for success
2015-07-05 17:14:42 -05:00
Dr. Chat
fd136c1f9f
Swap to default initializers.
2015-07-05 17:05:58 -05:00
Dr. Chat
4e6b036b3c
Formatting.
2015-07-05 16:28:11 -05:00
Dr. Chat
82986c6eec
Use TerminateTitle rather than relying on XamLoader* being called from the main thread.
2015-07-05 16:22:45 -05:00
Dr. Chat
ff72a25260
Remove dump on module launch (already dumped on load!)
2015-07-05 15:54:30 -05:00
Dr. Chat
39d6e9a20f
Implement XamLoaderLaunchTitle and other loader functions.
2015-07-05 15:44:46 -05:00
Dr. Chat
d6686fc345
Load default.xex as a regular module and call TerminateTitle when the main thread exits.
2015-07-05 15:44:02 -05:00
Dr. Chat
57e89e72b1
Use the actual thread handle as a wait handle, add bool XThread::running
2015-07-05 15:43:09 -05:00
Dr. Chat
5ccea06e7f
KernelState::TerminateTitle
2015-07-05 15:42:30 -05:00
Dr. Chat
778acac929
XThread Terminate
2015-07-05 14:44:43 -05:00
Dr. Chat
7f53b1d630
Allow unloading of user modules
2015-07-05 14:03:00 -05:00
Dr. Chat
8210ada448
XModule OnUnload
2015-07-05 13:47:53 -05:00
Dr. Chat
4fdebd530f
XThread bool guest thread
2015-07-05 13:37:10 -05:00
Dr. Chat
fbfdfc8914
Don't call DllMain on non-DLLs
...
Gracefully handle the kernel dispatch thread already running
2015-07-05 13:31:13 -05:00
Dr. Chat
8d4582a7a4
Fix a couple of API bugs dealing with modules
2015-07-05 13:27:48 -05:00
Dr. Chat
b57a71e284
Typecast xe::be before sending it into printf
2015-07-03 22:02:58 -05:00
Ben Vanik
4097fe420e
Merge pull request #322 from DrChat/xex2_patch
...
XEX2 Code Refactoring
2015-07-03 19:38:36 -07:00
Dr. Chat
9186d011f0
Bring back some important debug dumps
2015-07-03 21:28:02 -05:00
Dr. Chat
1788ee1589
Linting.
2015-07-03 20:11:08 -05:00
Dr. Chat
8cb8098a6b
Dump import libraries
2015-07-03 19:43:43 -05:00
Dr. Chat
ed3db90666
Dump a few more headers (incl. execution header)
2015-07-03 19:16:36 -05:00
Dr. Chat
74d57cfd0a
Dump exports by name in debug log
2015-07-03 18:45:11 -05:00
Dr. Chat
e58bb5ad9f
ReImplement XexModule::GetProcAddress
2015-07-03 18:29:14 -05:00
Dr. Chat
800f982a4d
XEX2 Security Page Descriptors
2015-07-03 10:58:33 -05:00
Dr. Chat
c32a94599e
Use the guest copy of the xex header for guest code.
2015-07-03 10:51:56 -05:00
Dr. Chat
307feaf893
Formatting.
2015-07-03 10:51:35 -05:00
Dr. Chat
a25090f3ca
Templated XUserModule::GetOptHeader
2015-07-03 10:27:08 -05:00
Dr. Chat
82ec1c345d
Dump all xex2 headers in XUserModule (minus a couple)
2015-07-03 08:17:24 -05:00
Dr. Chat
be5f8d3aa4
Simplify some logic in parsing import libraries
...
Change struct used in export lookups
2015-07-03 08:17:23 -05:00
Dr. Chat
029babaf5d
Drop dependency on old-style xex2 headers
2015-07-03 08:15:53 -05:00
Dr. Chat
fe87c08424
Shuffle some code around.
2015-07-03 08:15:53 -05:00
Dr. Chat
e44ac54eed
Remove kernel dependency on old xex header
2015-07-03 08:15:52 -05:00
Ben Vanik
dec0d12cc9
Replacing includes of windows headers with base/platform.h.
2015-07-01 09:02:04 -07:00
Ben Vanik
9efccc5f4a
Removing dependencies on MainWindow.
2015-07-01 08:02:22 -07:00
Ben Vanik
d7a5c74bf3
Formatting: force pointers to the left side.
2015-06-30 16:16:33 -07:00
Dr. Chat
50e19a2b12
X_DISPLAY_INFO struct
2015-06-29 23:42:58 -05:00
Ben Vanik
5b2f049d4c
Adding deferred xoverlapped completion helper.
2015-06-29 12:02:08 -07:00
Ben Vanik
cc08e9019a
Move NtCreateFile/NtOpenFile to VFS, implement (mostly) for real.
...
Progress on #305 .
2015-06-29 10:33:36 -07:00
Dr. Chat
d809af5902
xbox kernel RTL cleanup
2015-06-28 20:39:45 -05:00
Ben Vanik
b663b615bf
Fix XamContent return (!) and vfs use.
...
Progress on #305 .
2015-06-28 17:33:48 -07:00
Ben Vanik
1106029afc
_wfopen -> xe::filesystem::OpenFile.
...
Progress on #305 .
2015-06-28 17:33:46 -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
996f99bd85
Quick fix for RtlImageXexHeaderField - still some more to do.
2015-06-28 12:17:48 -07:00
Ben Vanik
e772a8cb92
Fixing module export.
2015-06-28 12:07:13 -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
bb900ba9db
XexExecutableModuleHandle export now points to the executing HMODULE
2015-06-27 23:42:46 -05: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
Dr. Chat
c228c0fa73
Add some native xex2 structs and handling functions
2015-06-27 21:32:16 -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
abf47b7973
Removing utilities (that were just adding needless layers).
...
Progress on #294 .
2015-06-27 16:27:38 -07:00
Dr. Chat
1ad144e451
NetDll_WSARecvFrom Stub
2015-06-27 17:08:42 -05:00
Dr. Chat
e94ad84fe9
RtlImageXexHeaderField special case for XEX_HEADER_EXECUTION_INFO
2015-06-27 17:06:27 -05: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
bc75b0ab87
Fixing NtQueryDirectoryFile.
2015-06-27 12:55:30 -07:00
Ben Vanik
c2e2b3380e
Replacing X_ANSI_STRING with new style.
...
Progress on #297 .
2015-06-27 12:16:52 -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
7e0246c381
Moving input structs out of xbox.h.
...
Progress on #297 .
2015-06-27 11:37:12 -07:00
Ben Vanik
8c69a4df09
Cleaning up apu/ and renaming -private files to _flags.
...
Part of #296 .
2015-06-27 11:25:56 -07:00
Ben Vanik
b38bf5c132
Simplifying HID creation.
...
Part of #296 .
2015-06-27 09:42:30 -07:00
Ben Vanik
3439641101
Removing cpu.h.
...
Part of #296 .
2015-06-27 08:58:45 -07:00
Dr. Chat
287a761987
Fix AppendParam dereferencing NULL pointers
2015-06-25 19:29:37 -05: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
gibbed
021b5a3d17
Moved the XMA decoder out of AudioSystem and into its own world (plus minor code cleanup in the process).
2015-06-21 02:25:24 -05:00
Dr. Chat
8eba3a366f
Rename XamLoaderLaunchTitle argument
2015-06-20 11:05:33 -05:00
Ben Vanik
03f2d26afd
Fixing tests with no debugger attached.
2015-06-19 21:53:49 -07:00
gibbed
1a38586d9a
Cleaned up XMASetLoopData.
2015-06-19 21:52:02 -05:00
gibbed
f3547a832f
Removed XMAContextData::kSize constant, moved kXmaContextCount, changes to use newer ringbuffer, cleaned up XMAInitializeContext a bit (with fixes for loop_data handling).
2015-06-19 09:54:21 -05:00
gibbed
1e4d65bcf7
Whoops.
2015-06-19 07:34:51 -05:00
gibbed
d1221a3c5e
Cleaned up VdGetCurrentDisplayInformation a bit.
2015-06-19 06:45:27 -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
75206149ab
KeInitializeEvent.
2015-06-16 20:41:26 -05: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
gibbed
734b1a7be9
Fixed byte_offset in NtReadFile debug log.
2015-06-13 09:00:26 -05:00
gibbed
3a093d4c84
Fixed comment.
2015-06-13 08:59:52 -05:00
Dr. Chat
9376ed3f01
Whoops
2015-06-13 00:33:24 -05:00
Dr. Chat
3e7870fb39
Make SetNativePointer setup the guest pointer
2015-06-12 22:46:19 -05:00
Dr. Chat
4e74db8e51
Add the dispatch header to X_SEMAPHORE
2015-06-12 22:43:37 -05:00
Dr. Chat
3bd5dc011c
Free the object creation info on destruction
2015-06-12 21:35:49 -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