GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
pdistd::__module__ Class Reference

Functions for this module. More...

Inheritance diagram for pdistd::__module__:
System::Module System::Object

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< MapGetFileEntries (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

- Public Member Functions inherited from System::Module
 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)
 
- Public Member Functions inherited from System::Object
 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...
 
- Public Attributes inherited from System::Module
String name
 Returns the module name. More...
 
- Public Attributes inherited from System::Object
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...
 

Detailed Description

Functions for this module.

Definition at line 9 of file __module__.cpp.

Member Function Documentation

◆ applyMatrixVector4()

static Unknown pdistd::__module__::applyMatrixVector4 ( )
static

◆ AsciiStringHash()

static ULong pdistd::__module__::AsciiStringHash ( String  str)
static

Hashes a string.

◆ assert()

static void pdistd::__module__::assert ( String  message)
static

Stripped as release.

◆ atan2()

static Float pdistd::__module__::atan2 ( Float  y,
Float  x 
)
static

◆ BusyWait()

static void pdistd::__module__::BusyWait ( )
static

Stripped as release.

◆ CheckRights()

static Int pdistd::__module__::CheckRights ( )
static

Unknown.

◆ ConvertSystemPath()

static String pdistd::__module__::ConvertSystemPath ( String  path = nil)
static

Converts a path into a PS3 friendly one. nil returns current directory.

◆ CopyFile()

static Int pdistd::__module__::CopyFile ( String  src,
String  dst 
)
static

Copies a file.

◆ crash()

static void pdistd::__module__::crash ( String  message = nil)
static

Initiates a crash.

◆ CRC32()

static Int pdistd::__module__::CRC32 ( Object  obj)
static

Performs CRC32 for object buffer.

◆ DecodeBase64()

static MBlob pdistd::__module__::DecodeBase64 ( Object  obj)
static

Decodes data from Base64.

◆ DecryptInflateAsync()

static MBlob pdistd::__module__::DecryptInflateAsync ( String  path,
String  unkPathS,
Bool  unk 
)
static

Decrypts and Inflates (decompresses) and encrypts object buffer (calls toString to it if applicable) asynchronously.

◆ Deflate()

static MBlob pdistd::__module__::Deflate ( Object  obj)
static

Deflates (compress) object buffer (calls toString to it if applicable)

◆ DeflateEncryptAsync()

static MBlob pdistd::__module__::DeflateEncryptAsync ( String  path,
Bool  unk 
)
static

Deflates (compress) and encrypts object buffer (calls toString to it if applicable) asynchronously.

◆ DelayThread()

static void pdistd::__module__::DelayThread ( Int  milliseconds = 1000)
static

Delays the threads by the specified amount of milliseconds.

◆ DeviceRescan()

static Unknown pdistd::__module__::DeviceRescan ( )
static

◆ EncodeBase64()

static String pdistd::__module__::EncodeBase64 ( Object  obj)
static

Encodes an object buffer to Base64.

◆ Exist()

static Int pdistd::__module__::Exist ( String  path)
static

Returns whether a path exists.

◆ exit()

static void pdistd::__module__::exit ( Int  exitCode)
static

Exits the game.

◆ GetArgs()

static string pdistd::__module__::GetArgs ( )
static

Returns command line arguments.

◆ GetAvailableUserMemorySize()

static UInt pdistd::__module__::GetAvailableUserMemorySize ( )
static

Returns ram left in bytes - Might be stubbed.

◆ GetDiskFreeSize()

static Long pdistd::__module__::GetDiskFreeSize ( String  path)
static

Gets disk free size for specified mount point (i.e /APP_DATA)

◆ GetFileEntries()

static Array< Map > pdistd::__module__::GetFileEntries ( String  path)
static

Returns the list of files for a provided path.

Returns
Returns a map for each file, for which
  • "compressed_size" -> (Long)
  • "name" -> (String)
  • "size" -> (Long)
  • "type" -> (String) (DIRECTORY, COMPRESSED, REGULAR, UNKNOWN)

◆ GetFileStatus()

static Map pdistd::__module__::GetFileStatus ( String  path)
static

Returns info a about a file or directory.

Returns
File object Map
  • "_time" -> (MTime)
  • "compressed" -> (Int)
  • "compressed_size" -> (Int)
  • "name" -> (String)
  • "size" -> (Long)
  • "type" -> (String) (DIRECTORY, COMPRESSED, REGULAR, UNKNOWN)

◆ GetFileSystemOptionInt32()

static Array pdistd::__module__::GetFileSystemOptionInt32 ( String  path,
String  option 
)
static

◆ GetFileSystemOptionInt64()

static Array pdistd::__module__::GetFileSystemOptionInt64 ( String  path,
String  option 
)
static

Options: GetInstalledFileSize

◆ GetFileSystemVersion()

static Long pdistd::__module__::GetFileSystemVersion ( )
static

Returns the VOL Version. 0 for FSRoot.

◆ GetGameBootAttribute()

static Int pdistd::__module__::GetGameBootAttribute ( )
static

Returns the count of game boot attributes.

◆ GetHeapAllocateMax()

static UInt pdistd::__module__::GetHeapAllocateMax ( )
static

◆ GetHeapFreeSize()

static UInt pdistd::__module__::GetHeapFreeSize ( )
static

◆ GetHeapMeter()

static Long pdistd::__module__::GetHeapMeter ( )
static

Stripped as release.

◆ GetHeapTotalSize()

static Int pdistd::__module__::GetHeapTotalSize ( )
static

◆ GetOnDemandInstallingFiles()

static Int pdistd::__module__::GetOnDemandInstallingFiles ( )
static

Returns the amount of files being installed.

◆ getPlayerName()

static String pdistd::__module__::getPlayerName ( )
static

Gets the current PS3 Profile Name.

◆ GetSystemTimeMicroSecond()

static Long pdistd::__module__::GetSystemTimeMicroSecond ( )
static

Gets the system time in microseconds (calls sys_time_get_system_time).

◆ GetSystemTimeMillisecond()

static Long pdistd::__module__::GetSystemTimeMillisecond ( )
static

Gets the system time in milliseconds (calls sys_time_get_system_time / 1000).

◆ GetTotalUserMemorySize()

static UInt pdistd::__module__::GetTotalUserMemorySize ( )
static

Gets the total of memory usable in bytes - Might be stubbed.

◆ GetTsmOptionInt32()

static Long pdistd::__module__::GetTsmOptionInt32 ( )
static

◆ GetTsmOptionInt64()

static Long pdistd::__module__::GetTsmOptionInt64 ( )
static

◆ GetTsmOptionSize()

static Unknown pdistd::__module__::GetTsmOptionSize ( )
static

◆ Inflate()

static MBlob pdistd::__module__::Inflate ( Blob  blob)
static

Inflates (decompresses) object buffer (calls toString to it if applicable) asynchronously.

◆ inverseMatrix()

static Unknown pdistd::__module__::inverseMatrix ( )
static

◆ IsDebugVersion()

static Int pdistd::__module__::IsDebugVersion ( )
static

Returns whether the game is a debug version (compile time value on engine)

◆ MakeDirectory()

static Int pdistd::__module__::MakeDirectory ( String  path,
Bool  recursive = false 
)
static

Creates a directory.

Parameters
pathDirectory.
recursiveWhether to create sub-dirs provided by the paths. If disabled and the path contains subdirs, no directory will be created at all.

◆ MakeDirectoryForFile()

static Int pdistd::__module__::MakeDirectoryForFile ( String  path_to_file)
static

Creates directories for a specified file.

◆ MD5()

static String pdistd::__module__::MD5 ( String  arg)
static

MD5 Checksum.

◆ multiplyMatrix()

static Unknown pdistd::__module__::multiplyMatrix ( )
static

◆ ReadFile()

static Map pdistd::__module__::ReadFile ( String  path)
static

Returns file info and its buffer.

Returns
Returns a map, for which
  • "_time" -> (Int)
  • "buffer" -> (MBlob), nil if not a file
  • "compressed_size" -> (Int)
  • "result" -> (FileError)
  • "type" -> (Int)

◆ RemoveDirectory()

static Int pdistd::__module__::RemoveDirectory ( String  path,
Bool  recursive = false 
)
static

Removes a directory.

Parameters
pathDirectory.
recursiveWhether to remove sub-dirs from the parent path. If disabled and the path contains subdirs, no directory will be removed at all.

◆ RemoveFile()

static Int pdistd::__module__::RemoveFile ( String  path)
static

Deletes a file.

◆ RenameFile()

static Int pdistd::__module__::RenameFile ( String  src_name,
String  target_name 
)
static

Renames a file.

◆ Salsa20Decrypt()

static ByteData pdistd::__module__::Salsa20Decrypt ( String  key,
Object  data 
)
static

◆ Salsa20Encrypt()

static ByteData pdistd::__module__::Salsa20Encrypt ( String  key,
Object  data 
)
static

◆ SetFileSystemOptionInt32()

static Int pdistd::__module__::SetFileSystemOptionInt32 ( String  path,
String  option,
Int  value 
)
static

◆ SetFileSystemOptionInt64()

static Int pdistd::__module__::SetFileSystemOptionInt64 ( String  path,
String  option,
Long  value 
)
static

◆ SetFileSystemOptionString()

static Int pdistd::__module__::SetFileSystemOptionString ( String  path,
String  option,
Long  value 
)
static

◆ SetLanguage()

static void pdistd::__module__::SetLanguage ( Language  language)
static

Refer to pdistd::Language.

◆ SetTsmOptionInt32()

static Int pdistd::__module__::SetTsmOptionInt32 ( String  param,
Long  value 
)
static

◆ SetTsmOptionInt64()

static Int pdistd::__module__::SetTsmOptionInt64 ( String  param,
Long  value 
)
static

◆ SetTsmOptionSize()

static Unknown pdistd::__module__::SetTsmOptionSize ( )
static

◆ SysParamCurrentUserName()

static String pdistd::__module__::SysParamCurrentUserName ( )
static

Gets the current PS3 Profile Name.

◆ SysParamParentalLevel()

static Int pdistd::__module__::SysParamParentalLevel ( )
static

Gets the current PS3 Parental Level.

◆ TextConv()

static String pdistd::__module__::TextConv ( String  str)
static

Converts text. Warning: not providing the arg crashes the game.

◆ TraceRankList()

static Array pdistd::__module__::TraceRankList ( )
static

Unk (3 args) (self.base_rank_list, racers_list, racer_count)

◆ TruncateFile()

static Int pdistd::__module__::TruncateFile ( String  path,
Int  offset 
)
static

Truncates a file.

◆ WriteFile() [1/2]

static Int pdistd::__module__::WriteFile ( hString  path,
ByteData  buffer 
)
static

Writes a file.

◆ WriteFile() [2/2]

static Int pdistd::__module__::WriteFile ( hString  path,
ByteData  buffer,
Int  size 
)
static

Writes a file.


The documentation for this class was generated from the following file: