mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor fixes
This commit is contained in:
parent
6456b6adb3
commit
6c5cd602bc
Binary file not shown.
@ -1039,7 +1039,10 @@ void CDialogAbout::CTabPlugins::Initialize()
|
||||
};
|
||||
|
||||
findPlugins(Rainmeter->GetPluginPath());
|
||||
if (Rainmeter->HasUserPluginPath())
|
||||
{
|
||||
findPlugins(Rainmeter->GetUserPluginPath());
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -133,11 +133,14 @@ void CMeasurePlugin::ReadOptions(CConfigParser& parser, const WCHAR* section)
|
||||
pluginFile += pluginName;
|
||||
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
|
||||
if (!m_Plugin)
|
||||
{
|
||||
if (Rainmeter->HasUserPluginPath())
|
||||
{
|
||||
// Try from settings path
|
||||
pluginFile = Rainmeter->GetUserPluginPath();
|
||||
pluginFile += pluginName;
|
||||
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
|
||||
}
|
||||
if (!m_Plugin)
|
||||
{
|
||||
LogWithArgs(LOG_ERROR, L"Plugin: \"%s\" not found", pluginName.c_str());
|
||||
|
@ -143,6 +143,8 @@ public:
|
||||
std::wstring GetUserPluginPath() { return m_SettingsPath + L"Plugins\\"; }
|
||||
std::wstring GetAddonPath() { return m_SettingsPath + L"Addons\\"; }
|
||||
|
||||
bool HasUserPluginPath() { return (_wcsicmp(m_Path.c_str(), m_SettingsPath.c_str()) != 0); }
|
||||
|
||||
std::wstring GetDefaultSkinPath() { return m_Path + L"Defaults\\Skins\\"; }
|
||||
std::wstring GetDefaultThemePath() { return m_Path + L"Defaults\\Themes\\"; }
|
||||
std::wstring GetDefaultPluginPath() { return m_Path + L"Defaults\\Plugins\\"; }
|
||||
|
Loading…
Reference in New Issue
Block a user