* added DefScript macros @clock (ms since process start), @time (unix time)
* time to release a new version! [A13.4 now done]
This commit is contained in:
parent
79eec7c55e
commit
0a9f8f41ed
@ -943,6 +943,18 @@ DefXChgResult DefScriptPackage::ReplaceVars(std::string str, CmdSet *pSet, unsig
|
||||
str=pSet->caller;
|
||||
else if(subs=="n")
|
||||
str="\n";
|
||||
else if(subs=="clock")
|
||||
{
|
||||
std::stringstream clock_s;
|
||||
clock_s << clock();
|
||||
str = clock_s.str();
|
||||
}
|
||||
else if(subs=="time")
|
||||
{
|
||||
std::stringstream time_s;
|
||||
time_s << time(NULL);
|
||||
str = time_s.str();
|
||||
}
|
||||
else if(variables.Exists(vname))
|
||||
str=variables.Get(vname);
|
||||
else
|
||||
|
||||
@ -46,8 +46,8 @@ void PseuInstanceRunnable::sleep(uint32 msecs)
|
||||
PseuInstance::PseuInstance(PseuInstanceRunnable *run)
|
||||
{
|
||||
_runnable=run;
|
||||
_ver="PseuWoW Alpha Build 13.31" DEBUG_APPENDIX;
|
||||
_ver_short="A13.31" DEBUG_APPENDIX;
|
||||
_ver="PseuWoW Alpha Build 13.4" DEBUG_APPENDIX;
|
||||
_ver_short="A13.4" DEBUG_APPENDIX;
|
||||
_wsession=NULL;
|
||||
_rsession=NULL;
|
||||
_scp=NULL;
|
||||
@ -158,7 +158,7 @@ bool PseuInstance::Init(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
log("Init complete.\n");
|
||||
log("Init complete.");
|
||||
_initialized=true;
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user