C# Class CSPspEmu.Hle.Loader.ElfPspLoader

Show file Open project: soywiz/cspspemu

Protected Properties

Property Type Description
BaseAddress uint
HleModuleGuest HleModuleGuest

Private Properties

Property Type Description
ElfPspLoader System
_UpdateModuleExports void
_UpdateModuleImports void

Public Methods

Method Description
LoadModule ( Stream FileStream, Stream MemoryStream, MemoryPartition MemoryPartition, HleModuleManager ModuleManager, String GameTitle, string ModuleName, bool IsMainModule ) : HleModuleGuest

Protected Methods

Method Description
LoadModuleInfo ( ) : void
RelocateFromHeaders ( ) : void
RelocateRelocs ( IEnumerable Relocs ) : void

This function relocates all the instructions and pointers of the loading executable.

UpdateModuleExports ( ) : void

UpdateModuleImports ( ) : void

Private Methods

Method Description
ElfPspLoader ( ) : System
_UpdateModuleExports ( ) : void

The export section is organized as as sequence of: - 32-bit NID * functionCount - 32-bit NID * variableCount - 32-bit export address * functionCount - 32-bit variable address * variableCount (each variable address references another structure, depending on its NID)

_UpdateModuleImports ( ) : void

Method Details

LoadModule() public method

public LoadModule ( Stream FileStream, Stream MemoryStream, MemoryPartition MemoryPartition, HleModuleManager ModuleManager, String GameTitle, string ModuleName, bool IsMainModule ) : HleModuleGuest
FileStream Stream
MemoryStream Stream
MemoryPartition MemoryPartition
ModuleManager HleModuleManager
GameTitle String
ModuleName string
IsMainModule bool
return HleModuleGuest

LoadModuleInfo() protected method

protected LoadModuleInfo ( ) : void
return void

RelocateFromHeaders() protected method

protected RelocateFromHeaders ( ) : void
return void

RelocateRelocs() protected method

This function relocates all the instructions and pointers of the loading executable.
protected RelocateRelocs ( IEnumerable Relocs ) : void
Relocs IEnumerable
return void

UpdateModuleExports() protected method

protected UpdateModuleExports ( ) : void
return void

UpdateModuleImports() protected method

protected UpdateModuleImports ( ) : void
return void

Property Details

BaseAddress protected property

protected uint BaseAddress
return uint

HleModuleGuest protected property

protected HleModuleGuest HleModuleGuest
return HleModuleGuest