mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Extern playlists/maplist vec mutex
Reduces initialization overhead.
This commit is contained in:
parent
89b92342d7
commit
615889948b
@ -1367,5 +1367,9 @@ void VKeyValues::Detach() const
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
inline KeyValues** g_pPlaylistKeyValues = nullptr; // Get the KeyValue for the playlist file.
|
||||
|
||||
vector<string> g_vAllPlaylists = { "<<null>>" };
|
||||
vector<string> g_vGameInfoPaths = { "/" };
|
||||
vector<string> g_vGameInfoPaths = { "/" };
|
||||
|
||||
std::mutex g_InstalledMapsMutex;
|
||||
std::mutex g_PlaylistsVecMutex;
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern vector<string> g_vAllPlaylists;
|
||||
extern vector<string> g_vGameInfoPaths;
|
||||
|
||||
inline std::mutex g_InstalledMapsMutex;
|
||||
inline std::mutex g_PlaylistsVecMutex;
|
||||
extern std::mutex g_InstalledMapsMutex;
|
||||
extern std::mutex g_PlaylistsVecMutex;
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
// Purpose: Forward declarations
|
||||
|
Loading…
x
Reference in New Issue
Block a user