mirror of
https://github.com/rwengine/openrw.git
synced 2025-04-28 21:08:05 +03:00
rwcore/LoaderIMG: Add warning to loadToMemory()
that it is thread-unsafe.
This commit is contained in:
parent
77b348f1f4
commit
ece3d09e29
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,7 @@ public:
|
|||
/**
|
||||
\class LoaderIMG
|
||||
\brief Parses the structure of GTA .IMG archives and loads the files in it
|
||||
Warning: loadToMemory() is thread-unsafe, refer to its description.
|
||||
*/
|
||||
class LoaderIMG {
|
||||
public:
|
||||
|
@ -43,6 +44,10 @@ public:
|
|||
|
||||
/// Load a file from the archive to memory and pass a pointer to it
|
||||
/// Warning: Returns nullptr if by any reason it can't load the file
|
||||
//
|
||||
/// Warning: CURRENTLY NOT THREADSAFE!
|
||||
// This method access/modifies m_archive_stream unconditionally,
|
||||
// be aware of that.
|
||||
std::unique_ptr<char[]> loadToMemory(const std::string& assetname);
|
||||
|
||||
/// Writes the contents of assetname to filename
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue