-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XAPI: Add Device types Manual Scan #165
Merged
ergo720
merged 11 commits into
Cxbx-Reloaded:master
from
RadWolfie:xapi-add-devicetypes-scan
Sep 28, 2022
Merged
XAPI: Add Device types Manual Scan #165
ergo720
merged 11 commits into
Cxbx-Reloaded:master
from
RadWolfie:xapi-add-devicetypes-scan
Sep 28, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
needs-verification
Require verification before approval
OOVPA
Any OOVPA change relative
XAPI
OOVPA relative topic
labels
Sep 25, 2022
RadWolfie
force-pushed
the
xapi-add-devicetypes-scan
branch
from
September 25, 2022 23:20
45f1ebe
to
daf6e94
Compare
ergo720
reviewed
Sep 26, 2022
…viceType_MU function
…XGetSectionSize function
ergo720
approved these changes
Sep 27, 2022
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migrate Cxbx-Reloaded's
SetupXboxDeviceTypes
function intointernal_xapi_find_device_types
function.With this changes, we are able to scan and label each known global device type variables. The following device types supported are:
With verification for XInputOpen function to find device types. Titles compiled below 4242 build are provided with static device types. Any titles compiled as of 4242 and later build has ability to add/remove any device types on compile time. Plus ability include
g_DeviceTypeInfoTable(Begin|End)
variables to perform your own lookup method.NOTE:
g_DeviceTypeInfoTable(Begin|End)
is only available for titles compiled from 4242+ build.internal_section_VirtToHostAddress
's helper function is made easier to lookup through each loaded sections in order to find a section contain within virtual address range. This is needed for NFL Blitz 2002 title as there are two external sections, aka ".XID" and ".XPP&Dat", contain device table and types.I also made
internal_section_HostToVirtAddress
function can be used as well. Currently, it is not in use.implemented part of #75 task
EDIT: Add
g_XapiAltLett_MU
reference toXUnmountAlternateTitleA
sig and register it if found.EDIT2: Renamed existing
GetTypeInformation
toGetTypeInformation_4
symbol and addedGetTypeInformation_8
symbol signature. Since there are actually two overload functions.