mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor changes
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
#include "PlayerWMP.h"
|
||||
|
||||
static std::vector<ParentMeasure*> g_ParentMeasures;
|
||||
std::wstring g_SettingsFile;
|
||||
bool g_Initialized = false;
|
||||
HINSTANCE g_Instance = NULL;
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
@ -51,10 +51,10 @@ PLUGIN_EXPORT void Initialize(void** data, void* rm)
|
||||
Measure* measure = new Measure;
|
||||
*data = measure;
|
||||
|
||||
if (g_SettingsFile.empty())
|
||||
if (!g_Initialized)
|
||||
{
|
||||
g_SettingsFile = RmGetSettingsFile();
|
||||
CInternet::Initialize();
|
||||
g_Initialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user