Skip to content

Commit

Permalink
Merge pull request #59 from JayFoxRox/xboxpy
Browse files Browse the repository at this point in the history
Remove xbox module and use xboxpy in all scripts
  • Loading branch information
JayFoxRox authored Jul 20, 2018
2 parents d1b034f + b0ba3c6 commit 414abd8
Show file tree
Hide file tree
Showing 32 changed files with 13 additions and 3,425 deletions.
19 changes: 4 additions & 15 deletions python-scripts/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
# Xbox python scripts
# Xbox Python-Scripts

This is a collection of scripts to access various Xbox hardware.


## Usage for updated scripts
## Getting Started

[Install xboxpy](https://github.com/XboxDev/xboxpy) and read its usage documentation.
Once you configured your xboxpy connection, you should be able to run these scripts.


## Usage for legacy scripts
[Install xboxpy](https://github.com/XboxDev/xboxpy#install) and read its usage documentation.

* All stuff is internally imported by the `xbox` module. So: `import xbox`
* You can define the interface you want to use using environment variable 'XBOX_IF':
* 'XBDM' (default)
* 'nxdk-rdt`
* 'gdb' (auto-detected if the `gdb` module exists)
* Some interfaces will also allow you to specify the target Xbox using the 'XBOX' environment variable ('Host:Port')

Not all interfaces support all functionality at this point.
Once you configured your xboxpy connection, you should be able to run these scripts.
2 changes: 1 addition & 1 deletion python-scripts/dsp_homebrew.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Run this from a clean Xbox environment (= not while a game is running)
# NXDK-RDT is a good environment

from xboxpy.xboxpy import *
from xboxpy import *

import sys
import time
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/dvd_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://xboxdevwiki.net/Xbox_Game_Disc


from xbox import *
from xboxpy import *


#FIXME: Move these libc style functions to some helper module?
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/get_av_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://xboxdevwiki.net/AV_Cables#Supported_signals_.2F_AV_cables


from xbox import *
from xboxpy import *


#FIXME: Move these libc style functions to some helper module?
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/get_timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Prints information about some of the Xbox timers

from xboxpy.xboxpy import *
from xboxpy import *



Expand Down
2 changes: 1 addition & 1 deletion python-scripts/inspect_apu_vp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

from xbox import *
from xboxpy import *

#FIXME: Move to fields, however, globals() has another context there >.<
def Field(offset_name, mask_name=None):
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/play_ac97.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A standalone AC97 audio player, based on XAudio from OpenXDK
# The interrupt related code has been removed as it's currently not supported.

from xbox import *
from xboxpy import *

import sys
import time
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Takes a screenshot

from xbox import *
from xboxpy import *

from PIL import Image

Expand Down
2 changes: 1 addition & 1 deletion python-scripts/trace_ac97.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
seconds = 10.0


from xbox import *
from xboxpy import *

# Open outputs
wav = aci.export_wav("pcm_trace.wav")
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/trace_apu_mixbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
bin_index = 0


from xbox import *
from xboxpy import *

from concurrent.futures import *

Expand Down
16 changes: 0 additions & 16 deletions python-scripts/xbox.py

This file was deleted.

16 changes: 0 additions & 16 deletions python-scripts/xbox/__init__.py

This file was deleted.

181 changes: 0 additions & 181 deletions python-scripts/xbox/aci.py

This file was deleted.

Loading

0 comments on commit 414abd8

Please sign in to comment.