mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
NowPlayingPlugin:
- Fixed that PlayerName=, TrackChangeAction=, and DisableLeadingZero= were global (i.e. only usable from the first loaded skin) - Code refactoring and cleanup
This commit is contained in:
@ -21,20 +21,36 @@
|
||||
|
||||
#include "Player.h"
|
||||
|
||||
struct MeasureData
|
||||
struct ParentMeasure
|
||||
{
|
||||
std::wstring iniFile;
|
||||
std::wstring section;
|
||||
MEASURETYPE measure;
|
||||
UINT id;
|
||||
UINT childCount;
|
||||
UINT trackCount;
|
||||
CPlayer* player;
|
||||
HANDLE thread;
|
||||
HWND window;
|
||||
std::wstring name;
|
||||
std::wstring iniFile;
|
||||
std::wstring trackChangeAction;
|
||||
std::wstring playerPath;
|
||||
bool disableLeadingZero;
|
||||
|
||||
MeasureData() :
|
||||
player(NULL)
|
||||
{
|
||||
}
|
||||
ParentMeasure() : player(NULL), thread(NULL) {}
|
||||
};
|
||||
|
||||
typedef std::map<UINT, MeasureData*> MeasureMap;
|
||||
struct ChildMeasure
|
||||
{
|
||||
MEASURETYPE type;
|
||||
ParentMeasure* parent;
|
||||
|
||||
ChildMeasure() : parent(NULL) {}
|
||||
};
|
||||
|
||||
void SecondsToTime(UINT seconds, bool leadingZero, WCHAR* buffer);
|
||||
void ExecuteCommand(std::wstring& command, HWND wnd);
|
||||
bool BelongToSameProcess(HWND wnd);
|
||||
HWND FindMeterWindow(HWND parent);
|
||||
HWND FindMeterWindow(const std::wstring& iniFile);
|
||||
|
||||
/* The exported functions */
|
||||
extern "C"
|
||||
|
Reference in New Issue
Block a user