GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
__module__.cpp
Go to the documentation of this file.
1using namespace System;
2using namespace Adhoc;
3
4
6namespace pdistd
7{
9 public class __module__ : public Module
10 {
11 public:
12
14 static void DelayThread(Int milliseconds = 1000);
15
17 static void BusyWait();
18
20 static string GetArgs();
21
22 /* PFGMemSetPrefix PFGMemGetRedist PFGMemSetRedist PFGMemGetExpand PFGMemSetExpand */
24
25 /* PFGMemSetPrefix PFGMemGetRedist PFGMemSetRedist PFGMemGetExpand PFGMemSetExpand */
27
28 static Int SetTsmOptionInt32(String param, Long value);
29
30 static Int SetTsmOptionInt64(String param, Long value);
31
34
36
41
42 static Int SetFileSystemOptionInt32(String path, String option, Int value);
43
44 static Int SetFileSystemOptionInt64(String path, String option, Long value);
45
46 static Int SetFileSystemOptionString(String path, String option, Long value);
47
56 static Map GetFileStatus(String path);
57
59 static String ConvertSystemPath(String path = nil);
60
62 static Int Exist(String path);
63
72 static Map ReadFile(String path);
73
75 static Int WriteFile(hString path, ByteData buffer);
76
78 static Int WriteFile(hString path, ByteData buffer, Int size);
79
81 static Int RemoveFile(String path);
82
84 static Int RenameFile(String src_name, String target_name);
85
87 static Int CopyFile(String src, String dst);
88
90 static Int TruncateFile(String path, Int offset);
91
96 static Int MakeDirectory(String path, Bool recursive = false);
97
99 static Int MakeDirectoryForFile(String path_to_file);
100
105 static Int RemoveDirectory(String path, Bool recursive = false);
106
108 static MBlob Deflate(Object obj);
109
112
114 static MBlob Inflate(Blob blob);
115
117 static MBlob DecryptInflateAsync(String path, String unkPathS, Bool unk);
118
119
128
131
134
137
140
142 static Int CheckRights();
143
145 static Int CRC32(Object obj);
146
148 static void assert(String message);
149
151 static void crash(String message = nil);
152
154 static void exit(Int exitCode);
155
158
161
166
167
168 static void DumpMemoryBlock();
169 .
172
174 static void SetLanguage(Language language);
175
178
181
184
187
190
193
194
195
196
197 static Float atan2(Float y, Float x);
198
200
202
204
206
208
210
212 static String MD5(String arg);
213
216
219
221
223
225 static String TextConv(String str);
226
227 };
228};
Stores a collection of items.
Definition: Array.cpp:5
Built-in boolean object which represents true or false.
Definition: Bool.cpp:5
Built-in type that represents an array of bytes or a buffer.
Definition: ByteData.cpp:5
Built-in type that represents a single-precision 32-bit number.
Definition: Float.cpp:5
Built-in type that represents a signed 32-bit number.
Definition: Int.cpp:5
Built-in type that represents a signed 64-bit number.
Definition: Long.cpp:5
Built-in dictionary/key-value pair object based on std::map.
Definition: Map.cpp:6
Built-in type that represents a module (or namespace in C++).
Definition: Module.cpp:5
This is the base object for every type.
Definition: Object.cpp:5
Built-in type that string - an array of characters - text.
Definition: String.cpp:5
Built-in type that represents an unsigned 32-bit number.
Definition: UInt.cpp:5
Built-in type that represents an unsigned 64-bit number.
Definition: ULong.cpp:5
Functions for this module.
Definition: __module__.cpp:10
static UInt GetHeapFreeSize()
static Array GetFileSystemOptionInt32(String path, String option)
static Int SysParamParentalLevel()
Gets the current PS3 Parental Level.
static Int MakeDirectory(String path, Bool recursive=false)
Creates a directory.
static Map GetFileStatus(String path)
Returns info a about a file or directory.
static Int MakeDirectoryForFile(String path_to_file)
Creates directories for a specified file.
static Array GetFileSystemOptionInt64(String path, String option)
static ByteData Salsa20Encrypt(String key, Object data)
static Int GetHeapTotalSize()
static Int SetFileSystemOptionString(String path, String option, Long value)
static Long GetSystemTimeMillisecond()
Gets the system time in milliseconds (calls sys_time_get_system_time / 1000).
static void DelayThread(Int milliseconds=1000)
Delays the threads by the specified amount of milliseconds.
static UInt GetAvailableUserMemorySize()
Returns ram left in bytes - Might be stubbed.
static void SetLanguage(Language language)
Refer to pdistd::Language.
static Int RemoveFile(String path)
Deletes a file.
static MBlob Deflate(Object obj)
Deflates (compress) object buffer (calls toString to it if applicable)
static Array TraceRankList()
Unk (3 args) (self.base_rank_list, racers_list, racer_count)
static void BusyWait()
Stripped as release.
static Int SetFileSystemOptionInt32(String path, String option, Int value)
static Long GetHeapMeter() static void DumpMemoryBlock()
Stripped as release.
static Unknown multiplyMatrix()
static ULong AsciiStringHash(String str)
Hashes a string.
static MBlob DeflateEncryptAsync(String path, Bool unk)
Deflates (compress) and encrypts object buffer (calls toString to it if applicable) asynchronously.
static Int GetGameBootAttribute()
Returns the count of game boot attributes.
static Map ReadFile(String path)
Returns file info and its buffer.
static Long GetTsmOptionInt32()
static Long GetTsmOptionInt64()
static Unknown GetTsmOptionSize()
static Int TruncateFile(String path, Int offset)
Truncates a file.
static Unknown SetTsmOptionSize()
static Int CheckRights()
Unknown.
static ByteData Salsa20Decrypt(String key, Object data)
static UInt GetTotalUserMemorySize()
Gets the total of memory usable in bytes - Might be stubbed.
static void exit(Int exitCode)
Exits the game.
static Int RenameFile(String src_name, String target_name)
Renames a file.
static Int CopyFile(String src, String dst)
Copies a file.
static MBlob DecodeBase64(Object obj)
Decodes data from Base64.
static String TextConv(String str)
Converts text. Warning: not providing the arg crashes the game.
static String SysParamCurrentUserName()
Gets the current PS3 Profile Name.
static Long GetSystemTimeMicroSecond()
Gets the system time in microseconds (calls sys_time_get_system_time).
static UInt GetHeapAllocateMax()
static Unknown inverseMatrix()
static MBlob DecryptInflateAsync(String path, String unkPathS, Bool unk)
Decrypts and Inflates (decompresses) and encrypts object buffer (calls toString to it if applicable) ...
static String getPlayerName()
Gets the current PS3 Profile Name.
static Int Exist(String path)
Returns whether a path exists.
static Int GetOnDemandInstallingFiles()
Returns the amount of files being installed.
static Int RemoveDirectory(String path, Bool recursive=false)
Removes a directory.
static MBlob Inflate(Blob blob)
Inflates (decompresses) object buffer (calls toString to it if applicable) asynchronously.
static String ConvertSystemPath(String path=nil)
Converts a path into a PS3 friendly one. nil returns current directory.
static Int SetTsmOptionInt32(String param, Long value)
static Int SetTsmOptionInt64(String param, Long value)
static string GetArgs()
Returns command line arguments.
static Long GetDiskFreeSize(String path)
Gets disk free size for specified mount point (i.e /APP_DATA)
static String MD5(String arg)
MD5 Checksum.
static Int WriteFile(hString path, ByteData buffer)
Writes a file.
static Int IsDebugVersion()
Returns whether the game is a debug version (compile time value on engine)
static Float atan2(Float y, Float x)
static Int SetFileSystemOptionInt64(String path, String option, Long value)
static Int CRC32(Object obj)
Performs CRC32 for object buffer.
static void crash(String message=nil)
Initiates a crash.
static Int WriteFile(hString path, ByteData buffer, Int size)
Writes a file.
static Array< Map > GetFileEntries(String path)
Returns the list of files for a provided path.
static Long GetFileSystemVersion()
Returns the VOL Version. 0 for FSRoot.
static void assert(String message)
Stripped as release.
static Unknown applyMatrixVector4()
static Unknown DeviceRescan()
static String EncodeBase64(Object obj)
Encodes an object buffer to Base64.
Blob Object (Based on ByteData)
Definition: MBlob.cpp:7
Built-in adhoc system classes and functions.
Definition: __module__.cpp:6
Standard Library for Adhoc.
Definition: TopologyType.cpp:2
Language
Definition: Language.cpp:4