mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2026-09-16 16:02:29 +00:00
allow clear to accept either dirty func as pointer
This commit is contained in:
+2
-2
@@ -175,7 +175,7 @@ int main(int argc, char *argv[])
|
||||
log_info("Profile %s loaded", cvalue);
|
||||
set_parameter_string(vmr, "command.load", cvalue);
|
||||
Sleep(300);
|
||||
clear_dirty(vmr);
|
||||
clear(vmr, is_pdirty);
|
||||
}
|
||||
|
||||
if (iflag)
|
||||
@@ -373,7 +373,7 @@ void parse_command(PT_VMR vmr, char *command)
|
||||
*/
|
||||
void get(PT_VMR vmr, char *command, struct result *res)
|
||||
{
|
||||
clear_dirty(vmr);
|
||||
clear(vmr, is_pdirty);
|
||||
if (get_parameter_float(vmr, command, &res->val.f) != 0)
|
||||
{
|
||||
res->type = STRING_T;
|
||||
|
||||
Reference in New Issue
Block a user