mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Plugin API: Renamed (Rm)ReadFormula to (Rm)ReadDouble. Changed (Rm)ReadInt to accept formulas.
This commit is contained in:
@ -67,14 +67,12 @@ __inline LPCWSTR RmReadPath(void* rm, LPCWSTR option, LPCWSTR defValue)
|
||||
|
||||
__inline int RmReadInt(void* rm, LPCWSTR option, int defValue)
|
||||
{
|
||||
LPCWSTR value = RmReadString(rm, option, L"", TRUE);
|
||||
return (*value) ? _wtoi(value) : defValue;
|
||||
return (int)RmReadFormula(rm, option, defValue);
|
||||
}
|
||||
|
||||
__inline double RmReadDouble(void* rm, LPCWSTR option, double defValue)
|
||||
{
|
||||
LPCWSTR value = RmReadString(rm, option, L"", TRUE);
|
||||
return (*value) ? wcstod(value, NULL) : defValue;
|
||||
return RmReadFormula(rm, option, defValue);
|
||||
}
|
||||
|
||||
__inline LPCWSTR RmGetMeasureName(void* rm)
|
||||
@ -106,4 +104,6 @@ enum LOGLEVEL
|
||||
};
|
||||
#endif // LIBRARY_EXPORTS
|
||||
|
||||
#define RmReadFormula _ReadFormula
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user