GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
|
Functions for this module. More...
Static Public Member Functions | |
static void | DelayThread (Int milliseconds=1000) |
Delays the threads by the specified amount of milliseconds. More... | |
static void | BusyWait () |
Stripped as release. More... | |
static string | GetArgs () |
Returns command line arguments. More... | |
static Long | GetTsmOptionInt32 () |
static Long | GetTsmOptionInt64 () |
static Int | SetTsmOptionInt32 (String param, Long value) |
static Int | SetTsmOptionInt64 (String param, Long value) |
static Long | GetFileSystemVersion () |
Returns the VOL Version. 0 for FSRoot. More... | |
static Array | GetFileSystemOptionInt32 (String path, String option) |
static Array | GetFileSystemOptionInt64 (String path, String option) |
static Int | SetFileSystemOptionInt32 (String path, String option, Int value) |
static Int | SetFileSystemOptionInt64 (String path, String option, Long value) |
static Int | SetFileSystemOptionString (String path, String option, Long value) |
static Map | GetFileStatus (String path) |
Returns info a about a file or directory. More... | |
static String | ConvertSystemPath (String path=nil) |
Converts a path into a PS3 friendly one. nil returns current directory. More... | |
static Int | Exist (String path) |
Returns whether a path exists. More... | |
static Map | ReadFile (String path) |
Returns file info and its buffer. More... | |
static Int | WriteFile (hString path, ByteData buffer) |
Writes a file. More... | |
static Int | WriteFile (hString path, ByteData buffer, Int size) |
Writes a file. More... | |
static Int | RemoveFile (String path) |
Deletes a file. More... | |
static Int | RenameFile (String src_name, String target_name) |
Renames a file. More... | |
static Int | CopyFile (String src, String dst) |
Copies a file. More... | |
static Int | TruncateFile (String path, Int offset) |
Truncates a file. More... | |
static Int | MakeDirectory (String path, Bool recursive=false) |
Creates a directory. More... | |
static Int | MakeDirectoryForFile (String path_to_file) |
Creates directories for a specified file. More... | |
static Int | RemoveDirectory (String path, Bool recursive=false) |
Removes a directory. More... | |
static MBlob | Deflate (Object obj) |
Deflates (compress) object buffer (calls toString to it if applicable) More... | |
static MBlob | DeflateEncryptAsync (String path, Bool unk) |
Deflates (compress) and encrypts object buffer (calls toString to it if applicable) asynchronously. More... | |
static MBlob | Inflate (Blob blob) |
Inflates (decompresses) object buffer (calls toString to it if applicable) asynchronously. More... | |
static MBlob | DecryptInflateAsync (String path, String unkPathS, Bool unk) |
Decrypts and Inflates (decompresses) and encrypts object buffer (calls toString to it if applicable) asynchronously. More... | |
static Array< Map > | GetFileEntries (String path) |
Returns the list of files for a provided path. More... | |
static Long | GetDiskFreeSize (String path) |
Gets disk free size for specified mount point (i.e /APP_DATA) More... | |
static Int | GetOnDemandInstallingFiles () |
Returns the amount of files being installed. More... | |
static String | EncodeBase64 (Object obj) |
Encodes an object buffer to Base64. More... | |
static MBlob | DecodeBase64 (Object obj) |
Decodes data from Base64. More... | |
static Int | CheckRights () |
Unknown. More... | |
static Int | CRC32 (Object obj) |
Performs CRC32 for object buffer. More... | |
static void | assert (String message) |
Stripped as release. More... | |
static void | crash (String message=nil) |
Initiates a crash. More... | |
static void | exit (Int exitCode) |
Exits the game. More... | |
static Long | GetSystemTimeMicroSecond () |
Gets the system time in microseconds (calls sys_time_get_system_time). More... | |
static Long | GetSystemTimeMillisecond () |
Gets the system time in milliseconds (calls sys_time_get_system_time / 1000). More... | |
static Int | GetHeapTotalSize () |
static UInt | GetHeapFreeSize () |
static UInt | GetHeapAllocateMax () |
static Long | GetHeapMeter () static void DumpMemoryBlock() |
Stripped as release. More... | |
static Int | IsDebugVersion () |
Returns whether the game is a debug version (compile time value on engine) More... | |
static void | SetLanguage (Language language) |
Refer to pdistd::Language. More... | |
static ULong | AsciiStringHash (String str) |
Hashes a string. More... | |
static String | SysParamCurrentUserName () |
Gets the current PS3 Profile Name. More... | |
static Int | SysParamParentalLevel () |
Gets the current PS3 Parental Level. More... | |
static Int | GetGameBootAttribute () |
Returns the count of game boot attributes. More... | |
static Array | TraceRankList () |
Unk (3 args) (self.base_rank_list, racers_list, racer_count) More... | |
static String | getPlayerName () |
Gets the current PS3 Profile Name. More... | |
static Float | atan2 (Float y, Float x) |
static Unknown | applyMatrixVector4 () |
static Unknown | inverseMatrix () |
static Unknown | multiplyMatrix () |
static Unknown | DeviceRescan () |
static Unknown | GetTsmOptionSize () |
static Unknown | SetTsmOptionSize () |
static String | MD5 (String arg) |
MD5 Checksum. More... | |
static UInt | GetAvailableUserMemorySize () |
Returns ram left in bytes - Might be stubbed. More... | |
static UInt | GetTotalUserMemorySize () |
Gets the total of memory usable in bytes - Might be stubbed. More... | |
static ByteData | Salsa20Encrypt (String key, Object data) |
static ByteData | Salsa20Decrypt (String key, Object data) |
static String | TextConv (String str) |
Converts text. Warning: not providing the arg crashes the game. More... | |
Additional Inherited Members | |
![]() | |
Module () | |
constructor taking no param More... | |
Module (String name) | |
Constructs. More... | |
Bool | load (String scriptName) |
Loads all modules from the specified script. More... | |
void | defineModule (Module module) |
Defines a new module within this module. More... | |
void | defineModule (Object symbol, Module module) |
Defines a new module within this module. More... | |
void | defineClass (Class class) |
Defines a new class within this module. More... | |
void | defineClass (Object symbol, Class class) |
Defines a new class within this module. More... | |
void | defineStatic (String staticName, Object staticValue) |
Defines a new static within this module. More... | |
void | defineAttribute (String attributeName, Object attributeValue) |
Defines a new attribute within this module. More... | |
void | import (Module module, Object symbol) |
Imports a module onto this one. More... | |
void | import (Module module, Object symbol, Object alias) |
Imports a module onto this one with the specified alias. More... | |
void | removeStatic (String staticName) |
Removes a specific static member from the module by name. More... | |
void | clearStatic () |
Clears all static members from the module. More... | |
void | each_attribute (FunctionObject< Array > func) |
Performs a callback on each attribute in the module. More... | |
void | map_attribute (FunctionObject< Array > func) |
Creates a new array populated with the results of calling a provided function on every element in the calling array. More... | |
Array | find_all (FunctionObject func) |
Finds all static members that matches the precondition. More... | |
Object | find_static (FunctionObject precondition) |
Finds a static member that matches the precondition. More... | |
String | getModulePath () |
Gets the module's path name. More... | |
Object | getModuleAttribute (String path) |
void | setModuleAttribute (String path, Object value) |
Object | getScopeAttribute (String path) |
void | setScopeAttribute (String path, Object value) |
![]() | |
Object () | |
constructor taking no param More... | |
Bool | isInstanceOf (Class classType) |
Returns whether an object is of a specific class/type. More... | |
Object | getDeepCopy () |
Gets a deep copy of this object. More... | |
void | setDeepCopy (Object obj) |
Unk. More... | |
String | dump () |
Dumps all info about an object. More... | |
Object | getObjectAttribute (string path) |
void | setObjectAttribute (string path, Object value) |
Bool | hasPrimitiveInterface () |
Returns whether this object has a primitive interface. More... | |
Bool | toBool () |
Casts this object to Bool. More... | |
Byte | toByte () |
Casts this object to Byte. More... | |
Short | toShort () |
Casts this object to Short. More... | |
Int | toInt () |
Casts this object to Int. More... | |
Long | toLong () |
Casts this object to Long. More... | |
UByte | toUByte () |
Casts this object to UByte. More... | |
UShort | toUShort () |
Casts this object to UShort. More... | |
UInt | toUInt () |
Casts this object to UInt. More... | |
ULong | toULong () |
Casts this object to ULong. More... | |
Float | toFloat () |
Casts this object to Float. More... | |
Double | toDouble () |
Casts this object to Double. More... | |
String | toString () |
Casts this object to String. More... | |
Symbol | toSymbol () |
Casts this object to Symbol. More... | |
Bool | hasArrayInterface () |
Returns whether this object has an Array interface. More... | |
Int | getArrayCount () |
Gets the Array item count for this object. More... | |
void | setArrayCount () |
Sets the Array item count for this object. More... | |
Object | getArrayElement (Object arg0) |
Gets an Array item for this object. More... | |
void | setArrayElement (Object arg0, Object arg1) |
Sets the Array item for this object. More... | |
Bool | hasMapInterface () |
Returns whether this object has a Map interface. More... | |
int | getMapCount () |
Returns the count of items in the map. More... | |
void | setMapElement (Object arg0, Object arg1) |
Returns whether the Map has a specific object key. Bool hasMapElement(Object arg0);. More... | |
Object | getMapElement (Object arg0) |
Gets a Map element by key. More... | |
void | hasGeneratorInterface () |
Returns whether this object has a generator interface. More... | |
Iterator | generator () |
Returns generator (?) More... | |
void | hasIteratorInterface () |
Returns whether this object has an iterator. More... | |
Iterator | iterator () |
Gets the iterator for this object. More... | |
void | hasVariableInterface () |
Returns whether this object is a variable. More... | |
void | hasFunctionInterface () |
Returns whether this object has a function interface. More... | |
Object | call () |
Calls this object as a function. More... | |
Bool | hasByteDataInterface () |
Returns whether this object has a byte data interface. More... | |
Int | getByteDataCount () |
Returns the ByteData size for this object. More... | |
void | setByteDataCount (Int count) |
Sets the ByteData size for this object. More... | |
Int | getByteDataCapacity () |
Returns the ByteData capacity for this object. More... | |
void | setByteDataCapacity (Int capacity) |
Sets the ByteData capacity for this object. More... | |
ByteData | getByteData () |
Gets the underlaying ByteData. More... | |
void | setByteData (ByteData bytedata) |
Sets the underlaying ByteData. More... | |
void | hasObjectSelectorInterface () |
Returns whether this object has an object selector interface. More... | |
void | self () |
Gets the get for this object if it has a get interface. More... | |
void | getArchiveTree () |
void | setArchiveTree () |
ByteData | serialize () |
Serializes this object. More... | |
void | deserialize (ByteData serializedData) |
Deserializes this object. More... | |
void | defined (Object obj) |
Returns whether a certain object is defined within this object. More... | |
Array | find_all (FunctionObject func) |
Finds all the elements in this object that matches the predicates. More... | |
void | each_all (FunctionObject func) |
Applies callback to all elements in this object. More... | |
Array | map_all (FunctionObject< Object > func) |
Maps all the elements in this object. More... | |
Bool | operator!= () |
Returns whether this object is not equal to another. More... | |
Bool | operator== () |
Returns whether this object is equal to another. More... | |
![]() | |
String | name |
Returns the module name. More... | |
![]() | |
Int | rc_size |
Getter-only. Reference counter size of this object. More... | |
Object | rc_class |
Getter-only. Type name of the object. More... | |
Int | rc_count |
Getter-only. Reference count of this object. More... | |
Int | weak_count |
Getter-only. Weak reference count of this object. More... | |
Class | class_id |
Class (type) object for this object. More... | |
Functions for this module.
Definition at line 9 of file __module__.cpp.
|
static |
|
static |
Stripped as release.
|
static |
Stripped as release.
|
static |
Unknown.
Converts a path into a PS3 friendly one. nil returns current directory.
|
static |
Initiates a crash.
|
static |
Decrypts and Inflates (decompresses) and encrypts object buffer (calls toString to it if applicable) asynchronously.
Deflates (compress) object buffer (calls toString to it if applicable)
Deflates (compress) and encrypts object buffer (calls toString to it if applicable) asynchronously.
|
static |
Delays the threads by the specified amount of milliseconds.
|
static |
Encodes an object buffer to Base64.
|
static |
Exits the game.
|
static |
Returns command line arguments.
|
static |
Returns ram left in bytes - Might be stubbed.
Gets disk free size for specified mount point (i.e /APP_DATA)
Returns the list of files for a provided path.
Returns info a about a file or directory.
Options: GetInstalledFileSize
|
static |
Returns the VOL Version. 0 for FSRoot.
|
static |
Returns the count of game boot attributes.
|
static |
|
static |
|
static |
Stripped as release.
|
static |
|
static |
Returns the amount of files being installed.
|
static |
Gets the current PS3 Profile Name.
|
static |
Gets the system time in microseconds (calls sys_time_get_system_time).
|
static |
Gets the system time in milliseconds (calls sys_time_get_system_time / 1000).
|
static |
Gets the total of memory usable in bytes - Might be stubbed.
|
static |
|
static |
|
static |
|
static |
Inflates (decompresses) object buffer (calls toString to it if applicable) asynchronously.
|
static |
|
static |
Returns whether the game is a debug version (compile time value on engine)
Creates a directory.
path | Directory. |
recursive | Whether to create sub-dirs provided by the paths. If disabled and the path contains subdirs, no directory will be created at all. |
Creates directories for a specified file.
|
static |
Returns file info and its buffer.
Removes a directory.
path | Directory. |
recursive | Whether to remove sub-dirs from the parent path. If disabled and the path contains subdirs, no directory will be removed at all. |
Renames a file.
|
static |
|
static |
|
static |
|
static |
Refer to pdistd::Language.
|
static |
|
static |
Gets the current PS3 Profile Name.
|
static |
Gets the current PS3 Parental Level.
Converts text. Warning: not providing the arg crashes the game.
|
static |
Unk (3 args) (self.base_rank_list, racers_list, racer_count)
Writes a file.