gibbed
fb0c354b2f
[xboxkrnl] Trim DbgPrint messages.
2021-06-28 20:32:52 -05:00
gibbed
a0ed4ec711
[xboxkrnl] Fix xeRtlNtStatusToDosError logging.
2021-06-28 20:32:52 -05:00
gibbed
997d0555db
Lint/format .inc files.
2021-06-28 20:32:52 -05:00
gibbed
ead4818e25
[xboxkrnl] Optional string formatter logging.
2021-06-28 20:32:52 -05:00
gibbed
e84ef132ae
[xboxkrnl] Log strings for string formatters.
2021-06-28 20:32:52 -05:00
gibbed
8caf8d1c1d
[xboxkrnl] Upgrade DbgPrint logs to info.
2021-06-28 20:32:52 -05:00
gibbed
5826b13899
[XAM] Flag NetDll_WSARecvFrom as high frequency.
2021-06-28 20:32:52 -05:00
Cancerous
afde40ab6c
XAM fixes.
...
Updated PR from Permanulled PR #1150 .
- [XAM] Stub XGI messages.
- [XAM] Stub XLiveBase GetServiceInfo message.
- [XAM] Stub error out of NetDll_WSARecvFrom.
- [XAM] Stub XamSessionRefObjByHandle.
Improves Aegis Wings, Jetpac, Metal Slug 3, and State of Decay.
Co-authored-by: PermaNulled <crich@thedefaced.org >
2021-06-28 09:51:15 -05:00
Gliniak
14eeb94326
[Kernel/IO] IoCompletion: Removed !wait_ticks check
...
- Marked IoCompletion as frequently used functions
- Added correct behaviour to wait_ticks 0
2021-06-28 08:45:41 -05:00
Joel Linn
d87bf995e1
Satisfy linter
...
Apply changes suggested by clang-format-12
2021-06-27 16:33:35 -05:00
Triang3l
fa653cce5d
[Kernel] Fix a comment length lint issue
2021-06-26 16:19:41 +03:00
emoose
89e26d7b2b
[Kernel] XamContentCreate*: pass XCONTENT_DATA size along to main content-creation func
...
This lets funcs like XamContentCreateInternal pass along a different XCONTENT_AGGREGATE_DATA struct, which the main func will know what to do with
2021-06-25 23:48:25 -05:00
emoose
9503c9efaf
[Kernel] Move title_id field in XCONTENT_AGGREGATE_DATA struct
...
XamAppEnumerateContentAggregate seems to store title_id at 0x140, so I've moved title_id to there, now AGGREGATE_DATA seems to match the size of the struct used by XamContentCreateInternal.
Also removed unneeded/useless checks inside XamAppEnumerateContentAggregate.
2021-06-25 23:48:25 -05:00
emoose
716d4c412a
[Kernel] Let XamContentAggregate.. make use of XEX alt-title-ids header
2021-06-25 23:48:25 -05:00
emoose
c889a8af3f
[CPU] Load alt-title-ids XEX header into XexModule::opt_alternate_title_ids_
2021-06-25 23:48:25 -05:00
emoose
fbf9c4630f
[Kernel] Use XCONTENT_AGGREGATE_DATA in all ContentManager funcs
...
Since AGGREGATE_DATA contains extra info about title_id, and can be easily converted to/from XCONTENT_DATA.
2021-06-25 23:48:25 -05:00
emoose
13f30d3492
[Kernel] Merge Content*Data structs into XCONTENT*_DATA
...
Also moved XContentType to xbox.h so code can make use of it without needing to include STFS stuff
2021-06-25 23:48:25 -05:00
Gliniak
e9f1a534df
[Kernel/Thread] Changed default stack location
2021-06-25 23:45:23 -05:00
madmodder123
e8dde519cc
[XAM] XamShowSigninUI: Fix issue with loading profile(s)
2021-06-25 23:42:00 -05:00
Gliniak
4cc2dad005
[Object] Remove object name from name_table on object removal
2021-06-25 23:14:39 -05:00
emoose
052ce3d389
[Kernel] Make KeEnter/LeaveCriticalRegion only affect the caller thread
...
Adds a new X_KTHREAD::apc_disable_count field at 0xB0 into X_KTHREAD based on where 360 kernel seems to store it, and made CriticalRegion funcs act on that, instead of locking things between all threads, and changes DeliverAPCs to check that field before running the APCs.
XThread::LockApc/UnlockApc were also updated too as those previously called into EnterCrit/LeaveCrit to work, but AFAIK the code that uses LockApc/UnlockApc does have an actual need for locking between threads, so changed them to work on XThread::global_critical_region_ directly instead.
2021-06-25 23:11:14 -05:00
Joel Linn
6d548f51b3
[Kernel] net: name anonymous struct
...
- fixes GCC compilation error due to
"member with constructor in anonymous struct"
2021-06-02 22:28:43 -05:00
Joel Linn
c0fb300a05
[Kernel] Remove explicit SHIM calling convention
...
Shim exports are called from GuestToHostThunk which dictates the calling
convention. The default system calling convention is different depending
on OS (Windows vs. everything else) and architecture. PR #1339 addresses
this for x64 Linux.
There is no reason for explicit `__cdecl`. Also, it is not available in
GCC. We could use `__attribute__((ms_abi))` or
`__attribute__((sysv_abi))` but that just adds complexity.
2021-06-02 22:28:43 -05:00
Joel Linn
07a060b002
[Kernel] Solve ambiguity in RegisterExport()
...
- Remove overload for exports with `void` return type
- Use `if constexpr (std::is_void<R>::value)` to differentiate
2021-06-02 22:28:43 -05:00
Joel Linn
a86d7173e1
Refactor FourCC magic uses
...
- Use new fourcc_t type
- Improves compiler compatibility by removing multi chars
2021-06-02 22:28:43 -05:00
Gliniak
fbc31652e0
[XAM/Net] inet_addr: Handle edge cases
2021-05-27 16:16:56 -05:00
Gliniak
29f7987401
[XAM] XamReadTileToTexture: tile_id safety check
2021-05-27 16:16:20 -05:00
Gliniak
29f28b8b60
[Kernel/XAM] CloseContent: Close files related to closed content
2021-05-27 16:16:01 -05:00
Gliniak
f298d7620a
[Kernel/XAM] XamContentGetCreator: Added check for existing content
2021-05-27 16:11:35 -05:00
Triang3l
ea9625fca8
[Kernel] VdSwap virtual/physical address clarification
2021-05-25 21:31:02 +03:00
Triang3l
e49e26e4a0
[Kernel] shim_utils lint fix
2021-05-16 18:34:27 +03:00
Gliniak
a69a058991
[XAM/App] Fixed issue when error code was handled as success
2021-05-13 23:08:02 -05:00
Gliniak
93c97fdbda
[XAM/Content] Provide title ID for aggregate content
2021-05-13 23:08:02 -05:00
gibbed
21c28a07f1
[XAM] Write stub buffer in XamReadTileToTexture.
...
[XAM] Write stub texture buffer (white) in XamReadTileToTexture.
2021-05-08 11:13:30 -05:00
gibbed
8d8bab853d
[XAM] Define unknown args for XamReadTileToTexture.
2021-05-08 11:13:30 -05:00
gibbed
37a733e33a
[XAM] More values for dummy achievement details.
...
[XAM] Provide image ID and flags for dummy achievement details.
2021-05-08 11:13:30 -05:00
gibbed
0f6bfcf0d5
[XAM] Base dummy achievement details at ID 1.
2021-05-08 11:13:30 -05:00
gibbed
5d778cfef6
[XAM] Better text for dummy achievement details.
2021-05-08 11:13:30 -05:00
gibbed
b2011453cc
[XAM] Cap dummy achievement details to 100.
2021-05-08 11:13:30 -05:00
gibbed
b735e3f40d
[XAM] Fix dummy achievement details count.
2021-05-08 11:13:30 -05:00
gibbed
cf2037cdf6
[XAM] Cap the number of dummy achievement details.
2021-05-08 09:10:28 -05:00
gibbed
1c78c9d75d
[XAM] Fix adding dummy achievement details.
...
[XAM] Fix infinite loop in adding dummy achievement details when
count>255.
2021-05-08 09:10:28 -05:00
gibbed
084b8c5dbe
[XAM] Fix missing buffer check on XamEnumerate.
2021-05-08 09:10:28 -05:00
Gliniak
d2ca54d909
[Kernel/XAM] Dummy X_ACHIEVEMENT_DETAILS support
...
Co-authored-by: gibbed <rick@gibbed.us >
2021-05-08 07:47:03 -05:00
emoose
ce19d948f0
[Base] Move XdbfLocale to xbox.h as XLanguage, let STFS headers use it
...
Renamed to XLanguage because AFAIK locale on Xbox is a different concept involving countries, this enum only involves languages though.
2021-05-05 12:35:51 -05:00
Triang3l
40ca4abc0b
[GPU] Small ring buffer setup function cleanup
2021-05-04 23:13:55 +03:00
Gliniak
1f658f9b32
[XAM/Content] Prevent deletion of open packages
2021-05-02 10:46:20 -05:00
gibbed
38c3db1afb
[CPU/Kernel] Transparently byteswap xex2_version.
2021-05-01 17:29:05 -05:00
Gliniak
e5948bb810
[Kernel] Implemented: XeKeysHmacShaUsingKey
2021-05-01 12:31:14 -05:00
gibbed
524efcab7d
[Kernel] Lint fix.
2021-05-01 12:20:14 -05:00