Conversation
JayFoxRox
commented
Aug 9, 2018
python-scripts/restart-xbe.py
Outdated
| #!/usr/bin/env python3 | ||
|
|
||
| # Run this from a clean Xbox environment (= not while a game is running) | ||
| # NXDK-RDT is a good environment |
JayFoxRox
commented
Aug 9, 2018
python-scripts/restart-xbe.py
Outdated
| launch_data_page_addr = read_u32(launch_data_page_addr_addr) | ||
| print("LaunchDataPage: 0x%08X [@ 0x%08X]" % (launch_data_page_addr, launch_data_page_addr_addr)) | ||
|
|
||
| #FIXME: Allocate LaunchDataPage |
JayFoxRox
commented
Aug 9, 2018
python-scripts/restart-xbe.py
Outdated
| xbe_path, sep, xbe_name = filename_str.rpartition('\\') | ||
| xbe_launch_str = xbe_path + ";" + xbe_name | ||
| print(xbe_launch_str) | ||
| #aafoiahfoisahf |
JayFoxRox
commented
Aug 31, 2018
| # uint32_t flags; | ||
| # uint8_t pad[492]; | ||
| # uint32_t launch_data[3072]; | ||
| #}* LaunchDataPage; |
Owner
Author
There was a problem hiding this comment.
Link to xboxdevwiki instead
This file contains hidden or 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
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.
Depends on xboxpy updates: JayFoxRox/xboxpy#4
This adds functions to restart the current running XBE.
While this functionality will eventually be added to xboxpy, it's good to have this implementation for testing / messing around.
It works fine using the nxdk-rdt backend. However it seems to crash using xbdm backend.
The implementation is slightly ugly because the
CALLnever returns. We need anoreturnoption for CALL in xboxpy, nxdk-rdt and xbdm.