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,8 +1039,11 @@ void CDialogAbout::CTabPlugins::Initialize()
|
|||||||
};
|
};
|
||||||
|
|
||||||
findPlugins(Rainmeter->GetPluginPath());
|
findPlugins(Rainmeter->GetPluginPath());
|
||||||
|
if (Rainmeter->HasUserPluginPath())
|
||||||
|
{
|
||||||
findPlugins(Rainmeter->GetUserPluginPath());
|
findPlugins(Rainmeter->GetUserPluginPath());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Resizes window and repositions controls.
|
** Resizes window and repositions controls.
|
||||||
|
@ -133,11 +133,14 @@ void CMeasurePlugin::ReadOptions(CConfigParser& parser, const WCHAR* section)
|
|||||||
pluginFile += pluginName;
|
pluginFile += pluginName;
|
||||||
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
|
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
|
||||||
if (!m_Plugin)
|
if (!m_Plugin)
|
||||||
|
{
|
||||||
|
if (Rainmeter->HasUserPluginPath())
|
||||||
{
|
{
|
||||||
// Try from settings path
|
// Try from settings path
|
||||||
pluginFile = Rainmeter->GetUserPluginPath();
|
pluginFile = Rainmeter->GetUserPluginPath();
|
||||||
pluginFile += pluginName;
|
pluginFile += pluginName;
|
||||||
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
|
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
|
||||||
|
}
|
||||||
if (!m_Plugin)
|
if (!m_Plugin)
|
||||||
{
|
{
|
||||||
LogWithArgs(LOG_ERROR, L"Plugin: \"%s\" not found", pluginName.c_str());
|
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 GetUserPluginPath() { return m_SettingsPath + L"Plugins\\"; }
|
||||||
std::wstring GetAddonPath() { return m_SettingsPath + L"Addons\\"; }
|
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 GetDefaultSkinPath() { return m_Path + L"Defaults\\Skins\\"; }
|
||||||
std::wstring GetDefaultThemePath() { return m_Path + L"Defaults\\Themes\\"; }
|
std::wstring GetDefaultThemePath() { return m_Path + L"Defaults\\Themes\\"; }
|
||||||
std::wstring GetDefaultPluginPath() { return m_Path + L"Defaults\\Plugins\\"; }
|
std::wstring GetDefaultPluginPath() { return m_Path + L"Defaults\\Plugins\\"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user