I have a driver that I haven't made and I manual map it. Say the function is ManualMap(); as an example.
That function gets called everytime I run my program. It's basically in main();
Now what I want to do is to make that function only be called once every session. So if PC was restarted, that function will be called, if u run the program again during the same pc session, it won't run the function. Now if you restart PC, the function will be called when you run the program.
bool main(){
if (has_run_before_during_this_session()){
return;
}
ManualMap();
Save_Something_To_Run_Check_Next_Time();
}