C# Class YeloDebug.Xbox

Xbox debug connection.
Inheritance: IDisposable
Afficher le fichier Open project: troymac1ure/Entity Class Usage Examples

Méthodes publiques

Méthode Description
AllocateDebugMemory ( uint size ) : uint

Allocates debug memory on the xbox. Address space of 0xB0000000 to 0xC0000000.

AllocateMemory ( AllocationType type, uint size ) : uint

Allocates memory of specified type on the xbox.

AllocateMemory ( uint size ) : uint

Allocates memory on the xbox.

AllocatePhysicalMemory ( uint size ) : uint

Allocates physical memory on the xbox. Address space of 0x80000000 to 0x84000000. Extends to 0x88000000 on a developer kit.

AllocatePhysicalMemoryEx ( uint size, AddressRange range ) : uint

Allocates physical memory on the xbox. Input range of 0x0 - 0x4000000. Xbox address space of 0x80000000 to 0x84000000. Extends to 0x88000000 on a developer kit.

AllocateSystemMemory ( uint size ) : uint

Allocates system memory on the xbox. Address space of 0xD0000000 to 0xFFFFFFFC.

AllocateVirtualMemory ( uint size ) : uint

Allocates virtual memory on the xbox. Address space of 0x00000000 to 0x80000000.

AllocateVirtualMemoryEx ( uint size, uint address ) : uint

Allocates virtual memory on the xbox. Address space of 0x00000000 to 0x80000000.

CallAddress ( uint address, bool returnValue ) : uint

Simple function call with optional return value. Average execution time of 1.3 ms without return or 1.75ms with return.

0x10000 is reserved for function use.

CallAddressEx ( uint address, CPUContext context, bool returnValue ) : uint

Extended function call with optional context, arguments, and return value. Average execution time of 1.3ms without return or 1.75ms with return.

ChangeScriptBufferSize ( uint size ) : void

Changes the script buffer size.

ClearAllBreakpoints ( ) : void

Removes all breakpoints in an xbox title.

Connect ( ) : void

Connects to an xbox on the network. If multiple consoles are detected this method will attempt to connect to the last connection used. If that connection or information is unavailable this method will fail.

Connect ( string xbox ) : void

Connects to a specified xbox using the box name.

ConnectToIP ( string ip ) : void

Connects to an xbox using the IP address

ConnectionCheck ( ) : void

Checks the connection status between xbox and pc. This function only checks what YeloDebug believes to be the current connection status. For a true status check you will need to ping the xbox regularly.

Continue ( ) : void

Resumes all xbox title threads.

ContinueAllThreads ( ) : void

Resumes the execution of all xbox threads that have been stopped.

ContinueThread ( uint thread ) : void

Resumes the execution of an xbox thread that has been stopped.

CreateDirectory ( string name ) : void

Creates a directory on the xbox.

CreateFile ( string fileName, FileMode createDisposition ) : void

Creates a file on the xbox.

CyclePower ( ) : void

Shuts down the xbox console and then turns it on again.

DeleteDirectory ( string name ) : void

Deletes a directory on the xbox.

DeleteFile ( string fileName ) : void

Deletes a file on the xbox.

DisableDVDEjectReset ( ) : void

Disables reset on DVD tray eject.

Disconnect ( ) : void

Disconnects from the xbox.

DumpMemory ( ) : byte[]

A complete dump of xbox memory.

EjectTray ( ) : void

Ejects xbox tray.

EnableDVDEjectReset ( ) : void

Enables reset on DVD tray eject.

FileExists ( string fileName ) : bool

Determines if the given file exists.

FlushSocketBuffer ( ) : void

Clear everything from the receive buffer. Call this before you send anything to the xbox to help keep the channel in sync.

FlushSocketBuffer ( int size ) : void

Clear a specified amount from the receive buffer. If amount in buffer is less than requested size, everything will be cleared.

FreeAllMemory ( ) : uint

Frees all memory associated with the current allocation table.

FreeDebugMemory ( uint address ) : uint

Frees debug memory on the xbox.

FreeMemory ( uint address ) : uint

Frees xbox memory.

FreePhysicalMemory ( uint address ) : uint

Frees physical memory on the xbox.

FreeSystemMemory ( uint address ) : uint

Frees system memory on the xbox.

FreeVirtualMemory ( uint address ) : uint

Frees virtual memory on the xbox.

GetASCIIString ( uint address ) : string

Retrieves a null-terminated ascii string from xbox memory. Maximum length of 512 characters.

GetByte ( uint address ) : byte

Retrieves byte from xbox memory.

GetDirectoryList ( string name ) : List

Retrieves files that belong to a given directory.

GetDouble ( uint address ) : Double

Retrieves Double from xbox memory.

GetDriveFreeSpace ( Drive drive ) : ulong

Retrieves xbox drive freespace.

GetDriveSize ( Drive drive ) : ulong

Retrieves xbox drive size.

GetFileAccessCount ( ) : int

Gets the current file access count.

GetFileAttributes ( string fileName ) : FileAttributes

Retrieves file attributes.

GetFileCacheSize ( ) : uint

Retrieves the file cache size associated with the current title.

GetFileInformation ( string fileName ) : FileInformation

Retrieves file information.

GetFileSize ( string fileName ) : uint

Retrieves file size.

GetInt16 ( uint address ) : Int16

Retrieves Int16 from xbox memory.

GetInt32 ( uint address ) : Int32

Retrieves Int32 from xbox memory.

GetInt64 ( uint address ) : System.Int64

Retrieves Int64 from xbox memory.

GetMemory ( uint address, uint length ) : byte[]

Retrieves data from xbox memory.

GetMemory ( uint address, TypeCode dataType ) : object

Retrieves an object from xbox memory.

GetMemoryChecksum ( int address, int length ) : uint

Calculates the checksum of a block of memory on the xbox.

GetPartitions ( ) : List

Gets a list of partitions on the xbox hard drive.

GetSingle ( uint address ) : System.Single

Retrieves Single from xbox memory.

GetString ( uint address ) : string

Retrieves a string from xbox memory. Will automatically detect ascii or unicode strings of size greater than 1 char and retrieve as ascii. Maximum string size of 512 characters.

GetString ( uint address, uint length ) : string

Retrieves a string of specified length from xbox memory.

GetThreadStopInfo ( uint thread ) : string

If the specified thread is stopped this will return information about the circumstances that forced the thread to stop.

GetTrayState ( ) : TrayState
GetUInt16 ( uint address ) : UInt16

Retrieves UInt16 from xbox memory.

GetUInt32 ( uint address ) : UInt32

Retrieves UInt32 from xbox memory.

GetUInt64 ( uint address ) : System.UInt64

Retrieves UInt64 from xbox memory.

GetUnicodeString ( uint address ) : string

Retrieves a null-terminated unicode string from xbox memory. Maximum length of 512 characters.

GetVideoFlags ( ) : VideoFlags

Gets the xbox video flags.

GetVideoStandard ( ) : VideoStandard

Gets the xbox video standard.

HaltThread ( uint thread ) : void

Sends a request to the xbox that the specified thread break as soon as possible.

InitializeControllerHook ( ) : void

Hooks into the XInputGetState procedure on your xbox, and hijacks controller input.

IsGamepadHooked ( ) : bool

Detects whether or not we have already hooked into XInputGetState().

IsThreadStopped ( uint thread ) : bool

Determines whether the specified thread is stopped.

IsValidAddress ( uint address ) : bool

Determines whether or not the specified address exists in xbox memory.

IsValidAddressRange ( uint address, int size ) : bool

Checks for a valid address range.

LaunchTitle ( string path ) : void

Launches the specified xbox title and attempts to establish a new connection with that title.

LoadTray ( ) : void

Loads xbox tray.

ManuallyInitializeControllerHook ( uint xinputAddress ) : void

This is to be used if YeloDebug cannot automatically detect the XInputGetState function address. Then you will need to specify your own if you wish to hook into the controllers. This function has not been tested since I have not found a game which doesn't use the standard XInputGetState function.

MountDevice ( Device device, Drive drive ) : void

Mounts the specified device to the specified drive letter.

OverrideControllers ( bool enabled ) : void

Specifies if the xbox should override controller input and start listening for pc input.

Pause ( ) : void

Suspends all xbox title threads.

Ping ( ) : bool

Retrieves xbox connection status. Average execution time of 2200 executions per second, or one every half millisecond.

Ping ( int waitTime ) : bool

Retrieves xbox connection status. Average execution time of 2200 executions per second, or one every half millisecond.

QueryXboxConnections ( ) : List

Returns a list containing all consoles detected on the network.

RawFramebufferDump ( int width, int height, int pixelSizeInBytes ) : byte[]

Use this if the Screenshot function doesnt dump properly and you wish to add a new format. Framebuffer will be in a swizzled format.

ReadEEPROM ( ) : byte[]

Reads the xbox EEPROM.

Reboot ( ) : void

Performs a warm reboot on the xbox.

Reboot ( BootFlag flag ) : void

Reboots the xbox with the specified BootFlag.

ReceiveBinaryData ( ) : byte[]

Receives all available binary data sent from the xbox.

ReceiveBinaryData ( int size ) : byte[]

Receives binary data of specified size sent from the xbox.

ReceiveBinaryData ( byte &data ) : void

Receives binary data of specified size sent from the xbox.

ReceiveFile ( string localName, string remoteName ) : void

Receives a file from the xbox.

ReceiveMultilineResponse ( ) : string

Receives multiple lines of text from the xbox.

ReceiveNotification ( ) : bool

Receives a notification if one is present.

ReceiveNotifications ( ) : void

Receives any notifications that may be present.

ReceiveSocketLine ( ) : string

Receives a line of text from the xbox.

ReceiveStatusResponse ( ) : StatusResponse

Waits for a status response to be received from the xbox.

Reconnect ( ) : void

Re-establishes a connection with the currently selected xbox console.

Reconnect ( int timeout ) : void

Attempts to re-establish a connection with the currently selected xbox console.

RegisterNotificationSession ( int port ) : void

Registers a notification session on the specified port.

RemoveBreakPoint ( uint address ) : void

Removes a breakpoint in an xbox title.

RenameFile ( string oldFileName, string newFileName ) : void

Renames or moves a file on the xbox.

Reset ( ) : void

Resets the xbox console.

RestoreDefaultLEDState ( ) : void

Restores the xbox LED to its default state.

ResumeThread ( uint thread ) : void

Resumes a given xbox thread.

Screenshot ( ) : System.Image

Takes a screenshot of the xbox display.

SendBinaryData ( byte data ) : void

Sends binary data to the xbox.

SendBinaryData ( byte data, int length ) : void

Sends binary data of specified length to the xbox.

SendCommand ( string command ) : StatusResponse

Sends a command to the xbox.

SendFile ( string localName, string remoteName ) : void

Sends a file to the xbox.

SetBreakPoint ( uint address ) : void

Sets a breakpoint in an xbox title.

SetBreakPoint ( uint address, uint size, BreakpointType type ) : void

Sets a hardware breakpoint that suspends title execution when a particular section of memory is referenced.

SetFileAttributes ( string fileName, FileAttributes attributes ) : void

Sets file attributes.

SetFileCacheSize ( uint size ) : bool

Allows us to borrow extra memory from the file cache :)

SetFileInformation ( string fileName, FileInformation info ) : void

Modifies file creation information. If you wish to specify a new file size, use SetFileSize instead.

SetFileSize ( string fileName, int size ) : void

Sets the size of a specified file on the xbox. This method will not zero out any extra bytes that may have been created.

SetGamepadState ( uint port, InputState input ) : void

Sends gamepad input to a specified controller port. A controller must be plugged into the port for this to work. You are also responsible for the polling frequency.

SetLEDState ( LEDState state1, LEDState state2, LEDState state3, LEDState state4 ) : void

Sets the xbox LED state.

SetMemory ( uint address ) : void

Writes object(s) to a specified xbox memory location.

Shutdown ( ) : void

Shuts down the xbox console.

StopOn ( StopOnFlags flags ) : void

Some debugging events require title execution to be suspended. But there are some debugging events where thread suspension is an option. For these events, you can elect to have the debugging subsystem suspend title execution by calling this function.

StreamTest ( ) : string

Benchmark utility function best when ran with xdk dash. Lower memory situations will yeild lower speeds.

SuspendThread ( uint thread ) : void

Suspends a given xbox thread.

SynchronizeTime ( ) : void

Synchronizes the xbox system time with the computer's current time.

UnMountDevice ( Drive drive ) : void

Unmounts the specified drive.

Wait ( WaitType type ) : void

Waits for data to be received. During execution this method will enter a spin-wait loop and appear to use 100% cpu when in fact it is just a suspended thread. This is much more efficient than waiting a millisecond since most commands take fractions of a millisecond. It will either resume after the condition is met or throw a timeout exception.

Wait ( int targetLength ) : void

Waits for a specified amount of data to be received. Use with file IO.

Xbox ( ) : System

Xbox connection.

getTitleInformation ( ) : void

Private Methods

Méthode Description
AlignmentCheck ( uint size ) : uint

Makes sure size is aligned to specs. Unaligned sizes will be rounded up to the next 4kb page boundary.

AllocateHistoryPages ( uint size ) : uint

Use in beginning when setting up our history page, since calladdressex will depend on that memory

AssertAllocationExists ( uint address ) : int

Makes sure the given allocation exists.

AssertAllocationNonexistant ( uint address ) : void

Makes sure the given allocation does not exist.

Deswizzle ( Byte swizzled ) : Byte[]
GetAllocationType ( uint address ) : AllocationType

Determines a given allocations type.

GetDriveInformation ( Drive drive, ulong &freeBytes, ulong &driveSize, ulong &totalFreeBytes ) : void

Dont use this, higher-level methods are available. Use GetDriveFreeSpace or GetDriveSize instead.

GetXboxInformation ( ) : void

Reads all static xbox information that will remain constant throughout a session.

Getmem ( uint address, int length, byte &buffer, int offset, int &read ) : void

Dont use this, higher-level methods are available. Use MemoryReader instead.

InitializeHistory ( ) : void

Initializes the history page.

IsEnoughMemory ( uint requestedSize ) : bool

Determines if the requested size of memory can be allocated. This function will also borrow from the file cache to meet the requested size if needed.

IsHistoryPresent ( ) : bool
LoadAllocationTable ( ) : List

Reads the allocation table from the xbox.

QueryVirtualMemory ( uint ptr ) : MEMORY_BASIC_INFORMATION
RawToBMP ( Byte raw ) : MemoryStream
ReadFilePartial ( string name, int offset, byte &buffer, int length, int &read ) : void

Dont use this, higher-level methods are available. Use FileStream instead.

RemoveAllocationEntry ( uint address ) : uint

Removes an entry from the allocation table.

SendATACommand ( ) : void
Setmem ( int address, int length, byte &buffer, int offset ) : void

Dont use this, higher-level methods are available. Use MemoryWriter instead. Writes to xbox memory. Performance of ~10MB/s due to a simple xbdm.dll modification.

StateChanged ( InputState oldState, InputState newState ) : bool

Compares the differences between two states and determines if they have changed.

SyncAllocationTable ( ) : void

Syncs the allocation table with the xbox.

VirtualProtect ( uint address, uint size, uint newProtect, uint &oldProtect ) : void
WriteFilePartial ( string name, int offset, byte &buffer, int length ) : void

Dont use this, higher-level methods are available. Use FileStream instead.

XInputGetStateAddress ( ) : uint

Searches xbox memory for XInputGetState(). Average execution time of 15ms.

_connect ( ) : void

Shared connection function

Method Details

AllocateDebugMemory() public méthode

Allocates debug memory on the xbox. Address space of 0xB0000000 to 0xC0000000.
public AllocateDebugMemory ( uint size ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
Résultat uint

AllocateMemory() public méthode

Allocates memory of specified type on the xbox.
public AllocateMemory ( AllocationType type, uint size ) : uint
type AllocationType
size uint
Résultat uint

AllocateMemory() public méthode

Allocates memory on the xbox.
public AllocateMemory ( uint size ) : uint
size uint
Résultat uint

AllocatePhysicalMemory() public méthode

Allocates physical memory on the xbox. Address space of 0x80000000 to 0x84000000. Extends to 0x88000000 on a developer kit.
public AllocatePhysicalMemory ( uint size ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
Résultat uint

AllocatePhysicalMemoryEx() public méthode

Allocates physical memory on the xbox. Input range of 0x0 - 0x4000000. Xbox address space of 0x80000000 to 0x84000000. Extends to 0x88000000 on a developer kit.
public AllocatePhysicalMemoryEx ( uint size, AddressRange range ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
range AddressRange Range of memory to place allocation.
Résultat uint

AllocateSystemMemory() public méthode

Allocates system memory on the xbox. Address space of 0xD0000000 to 0xFFFFFFFC.
public AllocateSystemMemory ( uint size ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
Résultat uint

AllocateVirtualMemory() public méthode

Allocates virtual memory on the xbox. Address space of 0x00000000 to 0x80000000.
public AllocateVirtualMemory ( uint size ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
Résultat uint

AllocateVirtualMemoryEx() public méthode

Allocates virtual memory on the xbox. Address space of 0x00000000 to 0x80000000.
public AllocateVirtualMemoryEx ( uint size, uint address ) : uint
size uint Size of memory to be allocated. Note that an unaligned size will be rounded up to the next 4kb page boundary.
address uint Preferred address.
Résultat uint

CallAddress() public méthode

Simple function call with optional return value. Average execution time of 1.3 ms without return or 1.75ms with return.
0x10000 is reserved for function use.
public CallAddress ( uint address, bool returnValue ) : uint
address uint Xbox procedure address.
returnValue bool
Résultat uint

CallAddressEx() public méthode

Extended function call with optional context, arguments, and return value. Average execution time of 1.3ms without return or 1.75ms with return.
public CallAddressEx ( uint address, CPUContext context, bool returnValue ) : uint
address uint Xbox procedure address.
context CPUContext Cpu context. This parameter may be null.
returnValue bool
Résultat uint

ChangeScriptBufferSize() public méthode

Changes the script buffer size.
public ChangeScriptBufferSize ( uint size ) : void
size uint
Résultat void

ClearAllBreakpoints() public méthode

Removes all breakpoints in an xbox title.
public ClearAllBreakpoints ( ) : void
Résultat void

Connect() public méthode

Connects to an xbox on the network. If multiple consoles are detected this method will attempt to connect to the last connection used. If that connection or information is unavailable this method will fail.
public Connect ( ) : void
Résultat void

Connect() public méthode

Connects to a specified xbox using the box name.
public Connect ( string xbox ) : void
xbox string
Résultat void

ConnectToIP() public méthode

Connects to an xbox using the IP address
public ConnectToIP ( string ip ) : void
ip string
Résultat void

ConnectionCheck() public méthode

Checks the connection status between xbox and pc. This function only checks what YeloDebug believes to be the current connection status. For a true status check you will need to ping the xbox regularly.
public ConnectionCheck ( ) : void
Résultat void

Continue() public méthode

Resumes all xbox title threads.
public Continue ( ) : void
Résultat void

ContinueAllThreads() public méthode

Resumes the execution of all xbox threads that have been stopped.
public ContinueAllThreads ( ) : void
Résultat void

ContinueThread() public méthode

Resumes the execution of an xbox thread that has been stopped.
public ContinueThread ( uint thread ) : void
thread uint Thread ID.
Résultat void

CreateDirectory() public méthode

Creates a directory on the xbox.
public CreateDirectory ( string name ) : void
name string Directory name.
Résultat void

CreateFile() public méthode

Creates a file on the xbox.
public CreateFile ( string fileName, FileMode createDisposition ) : void
fileName string File to create.
createDisposition FileMode Creation options.
Résultat void

CyclePower() public méthode

Shuts down the xbox console and then turns it on again.
public CyclePower ( ) : void
Résultat void

DeleteDirectory() public méthode

Deletes a directory on the xbox.
public DeleteDirectory ( string name ) : void
name string Directory name.
Résultat void

DeleteFile() public méthode

Deletes a file on the xbox.
public DeleteFile ( string fileName ) : void
fileName string File to delete.
Résultat void

DisableDVDEjectReset() public méthode

Disables reset on DVD tray eject.
public DisableDVDEjectReset ( ) : void
Résultat void

Disconnect() public méthode

Disconnects from the xbox.
public Disconnect ( ) : void
Résultat void

DumpMemory() public méthode

A complete dump of xbox memory.
public DumpMemory ( ) : byte[]
Résultat byte[]

EjectTray() public méthode

Ejects xbox tray.
public EjectTray ( ) : void
Résultat void

EnableDVDEjectReset() public méthode

Enables reset on DVD tray eject.
public EnableDVDEjectReset ( ) : void
Résultat void

FileExists() public méthode

Determines if the given file exists.
public FileExists ( string fileName ) : bool
fileName string
Résultat bool

FlushSocketBuffer() public méthode

Clear everything from the receive buffer. Call this before you send anything to the xbox to help keep the channel in sync.
public FlushSocketBuffer ( ) : void
Résultat void

FlushSocketBuffer() public méthode

Clear a specified amount from the receive buffer. If amount in buffer is less than requested size, everything will be cleared.
public FlushSocketBuffer ( int size ) : void
size int Size to flush
Résultat void

FreeAllMemory() public méthode

Frees all memory associated with the current allocation table.
public FreeAllMemory ( ) : uint
Résultat uint

FreeDebugMemory() public méthode

Frees debug memory on the xbox.
public FreeDebugMemory ( uint address ) : uint
address uint Memory address.
Résultat uint

FreeMemory() public méthode

Frees xbox memory.
public FreeMemory ( uint address ) : uint
address uint
Résultat uint

FreePhysicalMemory() public méthode

Frees physical memory on the xbox.
public FreePhysicalMemory ( uint address ) : uint
address uint Memory address.
Résultat uint

FreeSystemMemory() public méthode

Frees system memory on the xbox.
public FreeSystemMemory ( uint address ) : uint
address uint Memory address.
Résultat uint

FreeVirtualMemory() public méthode

Frees virtual memory on the xbox.
public FreeVirtualMemory ( uint address ) : uint
address uint Memory address.
Résultat uint

GetASCIIString() public méthode

Retrieves a null-terminated ascii string from xbox memory. Maximum length of 512 characters.
public GetASCIIString ( uint address ) : string
address uint Memory location.
Résultat string

GetByte() public méthode

Retrieves byte from xbox memory.
public GetByte ( uint address ) : byte
address uint Memory location.
Résultat byte

GetDirectoryList() public méthode

Retrieves files that belong to a given directory.
public GetDirectoryList ( string name ) : List
name string Directory name.
Résultat List

GetDouble() public méthode

Retrieves Double from xbox memory.
public GetDouble ( uint address ) : Double
address uint Memory location.
Résultat Double

GetDriveFreeSpace() public méthode

Retrieves xbox drive freespace.
public GetDriveFreeSpace ( Drive drive ) : ulong
drive Drive Drive name.
Résultat ulong

GetDriveSize() public méthode

Retrieves xbox drive size.
public GetDriveSize ( Drive drive ) : ulong
drive Drive Drive name.
Résultat ulong

GetFileAccessCount() public méthode

Gets the current file access count.
public GetFileAccessCount ( ) : int
Résultat int

GetFileAttributes() public méthode

Retrieves file attributes.
public GetFileAttributes ( string fileName ) : FileAttributes
fileName string File name.
Résultat FileAttributes

GetFileCacheSize() public méthode

Retrieves the file cache size associated with the current title.
public GetFileCacheSize ( ) : uint
Résultat uint

GetFileInformation() public méthode

Retrieves file information.
public GetFileInformation ( string fileName ) : FileInformation
fileName string File name.
Résultat FileInformation

GetFileSize() public méthode

Retrieves file size.
public GetFileSize ( string fileName ) : uint
fileName string File name.
Résultat uint

GetInt16() public méthode

Retrieves Int16 from xbox memory.
public GetInt16 ( uint address ) : Int16
address uint Memory location.
Résultat System.Int16

GetInt32() public méthode

Retrieves Int32 from xbox memory.
public GetInt32 ( uint address ) : Int32
address uint Memory location.
Résultat System.Int32

GetInt64() public méthode

Retrieves Int64 from xbox memory.
public GetInt64 ( uint address ) : System.Int64
address uint Memory location.
Résultat System.Int64

GetMemory() public méthode

Retrieves data from xbox memory.
public GetMemory ( uint address, uint length ) : byte[]
address uint Memory location.
length uint Length of data to receive.
Résultat byte[]

GetMemory() public méthode

Retrieves an object from xbox memory.
public GetMemory ( uint address, TypeCode dataType ) : object
address uint Memory location.
dataType TypeCode Object type.
Résultat object

GetMemoryChecksum() public méthode

Calculates the checksum of a block of memory on the xbox.
public GetMemoryChecksum ( int address, int length ) : uint
address int Memory address on the Xbox console of the first byte of memory in the block. This address must be aligned on an 8-byte boundary, and it cannot point to code.
length int Number of bytes on which to perform the checksum. This value must be a multiple of 8.
Résultat uint

GetPartitions() public méthode

Gets a list of partitions on the xbox hard drive.
public GetPartitions ( ) : List
Résultat List

GetSingle() public méthode

Retrieves Single from xbox memory.
public GetSingle ( uint address ) : System.Single
address uint Memory location.
Résultat System.Single

GetString() public méthode

Retrieves a string from xbox memory. Will automatically detect ascii or unicode strings of size greater than 1 char and retrieve as ascii. Maximum string size of 512 characters.
public GetString ( uint address ) : string
address uint
Résultat string

GetString() public méthode

Retrieves a string of specified length from xbox memory.
public GetString ( uint address, uint length ) : string
address uint
length uint
Résultat string

GetThreadStopInfo() public méthode

If the specified thread is stopped this will return information about the circumstances that forced the thread to stop.
public GetThreadStopInfo ( uint thread ) : string
thread uint
Résultat string

GetTrayState() public méthode

public GetTrayState ( ) : TrayState
Résultat TrayState

GetUInt16() public méthode

Retrieves UInt16 from xbox memory.
public GetUInt16 ( uint address ) : UInt16
address uint Memory location.
Résultat System.UInt16

GetUInt32() public méthode

Retrieves UInt32 from xbox memory.
public GetUInt32 ( uint address ) : UInt32
address uint Memory location.
Résultat System.UInt32

GetUInt64() public méthode

Retrieves UInt64 from xbox memory.
public GetUInt64 ( uint address ) : System.UInt64
address uint Memory location.
Résultat System.UInt64

GetUnicodeString() public méthode

Retrieves a null-terminated unicode string from xbox memory. Maximum length of 512 characters.
public GetUnicodeString ( uint address ) : string
address uint Memory location.
Résultat string

GetVideoFlags() public méthode

Gets the xbox video flags.
public GetVideoFlags ( ) : VideoFlags
Résultat VideoFlags

GetVideoStandard() public méthode

Gets the xbox video standard.
public GetVideoStandard ( ) : VideoStandard
Résultat VideoStandard

HaltThread() public méthode

Sends a request to the xbox that the specified thread break as soon as possible.
public HaltThread ( uint thread ) : void
thread uint ID of the thread to be halted. Send 0 as the thread ID to have the debugging subsystem select a thread to break into.
Résultat void

InitializeControllerHook() public méthode

Hooks into the XInputGetState procedure on your xbox, and hijacks controller input.
public InitializeControllerHook ( ) : void
Résultat void

IsGamepadHooked() public méthode

Detects whether or not we have already hooked into XInputGetState().
public IsGamepadHooked ( ) : bool
Résultat bool

IsThreadStopped() public méthode

Determines whether the specified thread is stopped.
public IsThreadStopped ( uint thread ) : bool
thread uint
Résultat bool

IsValidAddress() public méthode

Determines whether or not the specified address exists in xbox memory.
public IsValidAddress ( uint address ) : bool
address uint
Résultat bool

IsValidAddressRange() public méthode

Checks for a valid address range.
public IsValidAddressRange ( uint address, int size ) : bool
address uint
size int
Résultat bool

LaunchTitle() public méthode

Launches the specified xbox title and attempts to establish a new connection with that title.
public LaunchTitle ( string path ) : void
path string
Résultat void

LoadTray() public méthode

Loads xbox tray.
public LoadTray ( ) : void
Résultat void

ManuallyInitializeControllerHook() public méthode

This is to be used if YeloDebug cannot automatically detect the XInputGetState function address. Then you will need to specify your own if you wish to hook into the controllers. This function has not been tested since I have not found a game which doesn't use the standard XInputGetState function.
public ManuallyInitializeControllerHook ( uint xinputAddress ) : void
xinputAddress uint
Résultat void

MountDevice() public méthode

Mounts the specified device to the specified drive letter.
public MountDevice ( Device device, Drive drive ) : void
device Device Device name
drive Drive Drive letter
Résultat void

OverrideControllers() public méthode

Specifies if the xbox should override controller input and start listening for pc input.
public OverrideControllers ( bool enabled ) : void
enabled bool
Résultat void

Pause() public méthode

Suspends all xbox title threads.
public Pause ( ) : void
Résultat void

Ping() public méthode

Retrieves xbox connection status. Average execution time of 2200 executions per second, or one every half millisecond.
public Ping ( ) : bool
Résultat bool

Ping() public méthode

Retrieves xbox connection status. Average execution time of 2200 executions per second, or one every half millisecond.
public Ping ( int waitTime ) : bool
waitTime int Time to wait for a response
Résultat bool

QueryXboxConnections() public méthode

Returns a list containing all consoles detected on the network.
public QueryXboxConnections ( ) : List
Résultat List

RawFramebufferDump() public méthode

Use this if the Screenshot function doesnt dump properly and you wish to add a new format. Framebuffer will be in a swizzled format.
public RawFramebufferDump ( int width, int height, int pixelSizeInBytes ) : byte[]
width int
height int
pixelSizeInBytes int
Résultat byte[]

ReadEEPROM() public méthode

Reads the xbox EEPROM.
public ReadEEPROM ( ) : byte[]
Résultat byte[]

Reboot() public méthode

Performs a warm reboot on the xbox.
public Reboot ( ) : void
Résultat void

Reboot() public méthode

Reboots the xbox with the specified BootFlag.
public Reboot ( BootFlag flag ) : void
flag BootFlag
Résultat void

ReceiveBinaryData() public méthode

Receives all available binary data sent from the xbox.
public ReceiveBinaryData ( ) : byte[]
Résultat byte[]

ReceiveBinaryData() public méthode

Receives binary data of specified size sent from the xbox.
public ReceiveBinaryData ( int size ) : byte[]
size int
Résultat byte[]

ReceiveBinaryData() public méthode

Receives binary data of specified size sent from the xbox.
public ReceiveBinaryData ( byte &data ) : void
data byte
Résultat void

ReceiveFile() public méthode

Receives a file from the xbox.
public ReceiveFile ( string localName, string remoteName ) : void
localName string PC file name.
remoteName string Xbox file name.
Résultat void

ReceiveMultilineResponse() public méthode

Receives multiple lines of text from the xbox.
public ReceiveMultilineResponse ( ) : string
Résultat string

ReceiveNotification() public méthode

Receives a notification if one is present.
public ReceiveNotification ( ) : bool
Résultat bool

ReceiveNotifications() public méthode

Receives any notifications that may be present.
public ReceiveNotifications ( ) : void
Résultat void

ReceiveSocketLine() public méthode

Receives a line of text from the xbox.
public ReceiveSocketLine ( ) : string
Résultat string

ReceiveStatusResponse() public méthode

Waits for a status response to be received from the xbox.
public ReceiveStatusResponse ( ) : StatusResponse
Résultat StatusResponse

Reconnect() public méthode

Re-establishes a connection with the currently selected xbox console.
public Reconnect ( ) : void
Résultat void

Reconnect() public méthode

Attempts to re-establish a connection with the currently selected xbox console.
public Reconnect ( int timeout ) : void
timeout int
Résultat void

RegisterNotificationSession() public méthode

Registers a notification session on the specified port.
public RegisterNotificationSession ( int port ) : void
port int
Résultat void

RemoveBreakPoint() public méthode

Removes a breakpoint in an xbox title.
public RemoveBreakPoint ( uint address ) : void
address uint Address where you would like to remove a breakpoint.
Résultat void

RenameFile() public méthode

Renames or moves a file on the xbox.
public RenameFile ( string oldFileName, string newFileName ) : void
oldFileName string Old file name.
newFileName string New file name.
Résultat void

Reset() public méthode

Resets the xbox console.
public Reset ( ) : void
Résultat void

RestoreDefaultLEDState() public méthode

Restores the xbox LED to its default state.
public RestoreDefaultLEDState ( ) : void
Résultat void

ResumeThread() public méthode

Resumes a given xbox thread.
public ResumeThread ( uint thread ) : void
thread uint ID of the thread to resume.
Résultat void

Screenshot() public méthode

Takes a screenshot of the xbox display.
public Screenshot ( ) : System.Image
Résultat System.Image

SendBinaryData() public méthode

Sends binary data to the xbox.
public SendBinaryData ( byte data ) : void
data byte
Résultat void

SendBinaryData() public méthode

Sends binary data of specified length to the xbox.
public SendBinaryData ( byte data, int length ) : void
data byte
length int
Résultat void

SendCommand() public méthode

Sends a command to the xbox.
public SendCommand ( string command ) : StatusResponse
command string Command to be sent
Résultat StatusResponse

SendFile() public méthode

Sends a file to the xbox.
public SendFile ( string localName, string remoteName ) : void
localName string PC file name.
remoteName string Xbox file name.
Résultat void

SetBreakPoint() public méthode

Sets a breakpoint in an xbox title.
public SetBreakPoint ( uint address ) : void
address uint Address where you would like to set a breakpoint.
Résultat void

SetBreakPoint() public méthode

Sets a hardware breakpoint that suspends title execution when a particular section of memory is referenced.
public SetBreakPoint ( uint address, uint size, BreakpointType type ) : void
address uint Address of the memory to watch.
size uint The size, in bytes, of the memory to be watched. /// The only allowable values for this parameter are 1, 2, and 4.
type BreakpointType Type of access to watch for.
Résultat void

SetFileAttributes() public méthode

Sets file attributes.
public SetFileAttributes ( string fileName, FileAttributes attributes ) : void
fileName string File name.
attributes FileAttributes
Résultat void

SetFileCacheSize() public méthode

Allows us to borrow extra memory from the file cache :)
public SetFileCacheSize ( uint size ) : bool
size uint Page count.
Résultat bool

SetFileInformation() public méthode

Modifies file creation information. If you wish to specify a new file size, use SetFileSize instead.
public SetFileInformation ( string fileName, FileInformation info ) : void
fileName string File name.
info FileInformation File information.
Résultat void

SetFileSize() public méthode

Sets the size of a specified file on the xbox. This method will not zero out any extra bytes that may have been created.
public SetFileSize ( string fileName, int size ) : void
fileName string
size int
Résultat void

SetGamepadState() public méthode

Sends gamepad input to a specified controller port. A controller must be plugged into the port for this to work. You are also responsible for the polling frequency.
public SetGamepadState ( uint port, InputState input ) : void
port uint Controller port. [0-3]
input InputState Gamepad input.
Résultat void

SetLEDState() public méthode

Sets the xbox LED state.
public SetLEDState ( LEDState state1, LEDState state2, LEDState state3, LEDState state4 ) : void
state1 LEDState First LED state.
state2 LEDState Second LED state.
state3 LEDState Third LED state.
state4 LEDState Fourth LED state.
Résultat void

SetMemory() public méthode

Writes object(s) to a specified xbox memory location.
public SetMemory ( uint address ) : void
address uint Xbox memory location.
Résultat void

Shutdown() public méthode

Shuts down the xbox console.
public Shutdown ( ) : void
Résultat void

StopOn() public méthode

Some debugging events require title execution to be suspended. But there are some debugging events where thread suspension is an option. For these events, you can elect to have the debugging subsystem suspend title execution by calling this function.
public StopOn ( StopOnFlags flags ) : void
flags StopOnFlags
Résultat void

StreamTest() public méthode

Benchmark utility function best when ran with xdk dash. Lower memory situations will yeild lower speeds.
public StreamTest ( ) : string
Résultat string

SuspendThread() public méthode

Suspends a given xbox thread.
public SuspendThread ( uint thread ) : void
thread uint ID of the thread to suspend.
Résultat void

SynchronizeTime() public méthode

Synchronizes the xbox system time with the computer's current time.
public SynchronizeTime ( ) : void
Résultat void

UnMountDevice() public méthode

Unmounts the specified drive.
public UnMountDevice ( Drive drive ) : void
drive Drive Drive letter.
Résultat void

Wait() public méthode

Waits for data to be received. During execution this method will enter a spin-wait loop and appear to use 100% cpu when in fact it is just a suspended thread. This is much more efficient than waiting a millisecond since most commands take fractions of a millisecond. It will either resume after the condition is met or throw a timeout exception.
public Wait ( WaitType type ) : void
type WaitType Wait type
Résultat void

Wait() public méthode

Waits for a specified amount of data to be received. Use with file IO.
public Wait ( int targetLength ) : void
targetLength int Amount of data to wait for
Résultat void

Xbox() public méthode

Xbox connection.
public Xbox ( ) : System
Résultat System

getTitleInformation() public méthode

public getTitleInformation ( ) : void
Résultat void