I've written a plugin to handle updating botbases/plugins/routines from a repo and have reached a state where it's functional. https://github.com/Zimgineering/repoBuddy
Does anyone know how to recompile and reload a single botbase/plugin/routine while rebornbuddy is running? I've messed with the reloadonfilechange flags in the globalsettings but those don't seem to be what I need. (nor do they work in all cases, eg exbuddy because of threading)
At the moment I'm handling the restarts like this:
But that has the obvious caveat of taking more time and writes to the drive as well as essentially making log messages invisible.
Is there a more elegant solution I'm missing, or would I be better off using a preloader?
Does anyone know how to recompile and reload a single botbase/plugin/routine while rebornbuddy is running? I've messed with the reloadonfilechange flags in the globalsettings but those don't seem to be what I need. (nor do they work in all cases, eg exbuddy because of threading)
At the moment I'm handling the restarts like this:
Code:
private void RestartRebornBuddy()
{
AppDomain.CurrentDomain.ProcessExit += new EventHandler(RebornBuddy_Exit);
void RebornBuddy_Exit (object sender, EventArgs e)
{
Process.Start("rebornbuddy", "-a"); //autologin using stored key
}
Process process = Process.GetCurrentProcess();
process.CloseMainWindow();
}
But that has the obvious caveat of taking more time and writes to the drive as well as essentially making log messages invisible.
Is there a more elegant solution I'm missing, or would I be better off using a preloader?