File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class LoaderIMGFile {
20
20
/* *
21
21
\class LoaderIMG
22
22
\brief Parses the structure of GTA .IMG archives and loads the files in it
23
+ Warning: loadToMemory() is thread-unsafe, refer to its description.
23
24
*/
24
25
class LoaderIMG {
25
26
public:
@@ -43,6 +44,10 @@ class LoaderIMG {
43
44
44
45
// / Load a file from the archive to memory and pass a pointer to it
45
46
// / Warning: Returns nullptr if by any reason it can't load the file
47
+ //
48
+ // / Warning: CURRENTLY NOT THREADSAFE!
49
+ // This method access/modifies m_archive_stream unconditionally,
50
+ // be aware of that.
46
51
std::unique_ptr<char []> loadToMemory (const std::string& assetname);
47
52
48
53
// / Writes the contents of assetname to filename
You can’t perform that action at this time.
0 commit comments