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:
@ -77,22 +77,14 @@ namespace Rainmeter
|
||||
return new string(value);
|
||||
}
|
||||
|
||||
public unsafe double ReadFormula(string option, double defValue)
|
||||
public unsafe double ReadDouble(string option, double defValue)
|
||||
{
|
||||
return RmReadFormula((void*)m_Rm, ToUnsafe(option), defValue);
|
||||
}
|
||||
|
||||
public unsafe int ReadInt(string option, int defValue)
|
||||
{
|
||||
string value = ReadString(option, "");
|
||||
try
|
||||
{
|
||||
return Convert.ToInt32(value);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return defValue;
|
||||
}
|
||||
return (int)RmReadFormula((void*)m_Rm, ToUnsafe(option), defValue);
|
||||
}
|
||||
|
||||
public unsafe string GetMeasureName()
|
||||
|
Reference in New Issue
Block a user