Commit Graph

4590 Commits

Author SHA1 Message Date
Dr. Chat dda78da4b3 [x64] Swap to using anchor variables instead of dummy function calls 2018-11-23 17:53:26 -06:00
Dr. Chat a8bef91cc4 [x64] Fix improper use of compare_exchange_strong when adjusting code commit mark 2018-11-23 17:53:26 -06:00
Dr. Chat bcfaf530cb [x64] Allow the JIT to use volatile registers 2018-11-23 17:53:26 -06:00
Dr. Chat a349dc0dbf [x64] Change the parameters to host_to_guest_thunk
Shuffle some code around in x64_backend.cc
Add GetNativeParam to avoid hardcoding parameters
2018-11-23 17:53:26 -06:00
Dr. Chat bf6ed475f6 [x64] Template-ize a few vector emulation functions 2018-11-23 17:53:25 -06:00
Dr. Chat 137caf4a9c [x64] Minor cleanups in emitter 2018-11-23 17:53:25 -06:00
Dr. Chat 0093f8180d [x64] Factor out memory handling code 2018-11-23 17:53:25 -06:00
Dr. Chat e664ee3175 [x64] Factor out control code 2018-11-23 17:53:25 -06:00
Dr. Chat f8328553b4 [x64] Factor out vector handling code 2018-11-23 17:53:24 -06:00
Dr. Chat 1bc7a092cf [x64] Factor out a lot of the opcode handling code 2018-11-23 17:53:24 -06:00
Dr. Chat fdc1510b76 [x64] Remove most of RegisterSequences 2018-11-23 17:53:24 -06:00
gibbed 213e688173 [Kernel] Fix some stuff from PR merge. 2018-11-23 17:27:35 -06:00
Rick Gibbed 66c10a4b9f
Merge pull request #1245 from emoose/exports
[Kernel] Add 12 kernel/xam exports used by dash.xex
2018-11-23 16:40:56 -06:00
emoose 933588717e [Kernel] Add XamGetOnlineSchema export, returns dummy data 2018-11-23 16:38:34 -06:00
emoose 8c6e0b86f9 [Kernel] swprintf_s -> swprintf, change how Format*String/Build*ResourceLocator exports copy text
New way of copying the text should make it less likely for any buffer overflows to occur.
2018-11-23 16:38:34 -06:00
emoose 958882a3ea [Kernel] Add ExConsoleGameRegion export variable (set to 0xFFFFFFFF) 2018-11-23 16:38:34 -06:00
emoose 65e8872dc1 [Kernel] Add _vsnwprintf export 2018-11-23 16:38:34 -06:00
emoose 8efbe32867 [Kernel] Add XamBuild*ResourceLocator & XamFormat*String exports
Resource locators are just strings that say where to find a resource, they can either point to a file path or to an XEX resource.
Normally the Gamercard/SharedSystem exports use XamBuildResourceLocator to make a locator for the resources inside xam.xex.
But since our xam won't have those resources I've made it point them to a local file instead (by passing 0 as the module param for XamBuildResourceLocator).
The resources will have to be extracted to the XEX's local path for it to find them though (and XEX will need to have media:\ symlinked too)

The XamFormat*String exports are really windows-only right now, but they'll at least empty the buffer for other platforms.
They'll also always output MM/DD/YYYY no matter what locale the system is, on 360 this is localized properly of course.

I've renamed XamBuildSharedResourceLocator_ to XamBuildLegacySystemResourceLocator too since that seems to be the proper name for it.
In earlier Xams this just pointed to ...SharedSystemResourceLocator (as does this code), but later versions seem to have their own function.
2018-11-23 16:38:34 -06:00
emoose c5056c644f [Kernel] Add XamNotifyCreateListenerInternal export (1 unknown param)
Just changed the existing XamNotifyCreateListener import to ...CreateListenerInternal, and made a new XamNotifyCreateListener that just calls the internal version.
2018-11-23 16:38:34 -06:00
emoose 5e9e226c94 [Kernel] Add XamContentCreateDeviceEnumerator export
Also changed name field of DeviceInfo to be a wchar_t* of known length, makes it match the X360 DeviceInfo struct more closely and it's easier to make sure things reading it won't overflow anything.
2018-11-23 16:37:04 -06:00
gibbed d68c27d78b [CI] Fix mspack linking. 2018-11-23 15:57:21 -06:00
gibbed 7226c9e047 Update mspack, add to premake, and fix missing license. Fixes #1252. 2018-11-23 15:32:55 -06:00
gibbed 021af14a6e Fix 16x16 transparency in icon.ico. 2018-11-23 14:06:52 -06:00
gibbed fa023615f6 Add icon license. 2018-11-23 12:54:14 -06:00
gibbed 13558863d0 Add Patreon link. 2018-11-23 12:21:21 -06:00
gibbed 8ed283747c Update lurker blurb. 2018-11-23 12:21:00 -06:00
gibbed 4c53bc5c9a [x64] Fix Travis whining. 2018-11-23 12:03:09 -06:00
gibbed 5fbcb8991e [JIT] Run the SimplificationPass/ConstantPropagationPass until there are no changes. 2018-11-23 12:01:10 -06:00
gibbed b121f45c7f [JIT] Assert that other is constant in set_from. 2018-11-23 10:46:27 -06:00
gibbed 996093e499 [x64] Support constant src1 for Int32 VECTOR_SHL_V128/VECTOR_SHR_V128. 2018-11-23 09:33:30 -06:00
gibbed b24936d248 [Kernel] Tag XamUserGetSigninState as high frequency. 2018-11-23 09:02:49 -06:00
gibbed 7d07720de1 [JIT] Zero constant propagation for OPCODE_SHL/OPCODE_SHR. 2018-11-23 08:02:09 -06:00
gibbed 4c04a9383a [JIT] Fix constant propagation for OPCODE_SELECT. 2018-11-23 07:52:14 -06:00
gibbed 94284ea9aa [CPU] Fix null termination in HIRBuilder::CommentFormat. 2018-11-23 07:50:42 -06:00
gibbed d04c748773 [App] Log content root. 2018-11-22 17:40:38 -06:00
gibbed 00261b9ca0 [App] Get absolute path of content root in all cases. 2018-11-22 17:40:22 -06:00
gibbed 69463033b1 [Kernel] Don't trust buffer length in XamEnumerate when it matches items per enumerate. 2018-11-22 16:49:01 -06:00
gibbed db234309bf [Kernel] Fix logging of broken XamEnumerate usage. 2018-11-22 16:36:19 -06:00
gibbed 086d7e9da7 [Input] Dynamically link to XInput. 2018-11-22 10:46:48 -06:00
gibbed 86d2c9ae1e Fix Travis whining. 2018-11-22 09:48:04 -06:00
Margen67 896ac4a682 Update documentation.
- Convert http to https, provide archive link when possible.
- Made CPU-JIT.png more readable on dark themes;
Added a white background so there isn't black text on a black
background.
2018-11-22 09:20:09 -06:00
Rick Gibbed 3beb9093ac
Merge pull request #1279 from chris-hawley/master
[Travis] Update Travis to use Xenial and more recent compilers
2018-11-22 09:08:26 -06:00
chris hawley 89218371a2 [Travis] Update Travis to use Xenial and more recent compilers 2018-11-22 10:07:26 -05:00
gibbed 9f895c3f14 [UI] Use DPI APIs when available. 2018-11-22 08:30:30 -06:00
gibbed 5c473a5203 [Base] Fix missing include in filesystem_posix. 2018-11-22 06:41:58 -06:00
gibbed 2c63d7d418 [UI] Update icon. 2018-11-22 06:27:51 -06:00
gibbed 463f21e484 [Kernel] Cleanup XamLoaderSetLaunchData, XamLoaderGetLaunchData. 2018-11-22 04:29:35 -06:00
gibbed 473b9d3c3a [Kernel] Don't trust buffer_length in XamEnumerate. 2018-11-22 04:28:46 -06:00
gibbed 683de76b9b [Kernel] Remove stray logging in NtReleaseMutant. 2018-11-21 18:07:46 -06:00
gibbed 1ba5dd5eb1 Use platform-specific user directory to store content. Create a file named portable.txt next to xenia.exe to restore previous behavior. 2018-11-21 18:07:45 -06:00