add log file writing

This commit is contained in:
tildearrow 2022-12-18 01:55:21 -05:00
parent d897ac32b0
commit 51ea3cec2a
6 changed files with 142 additions and 1 deletions

View file

@ -4221,7 +4221,7 @@ bool DivEngine::deinitAudioBackend(bool dueToSwitchMaster) {
return true;
}
bool DivEngine::init() {
void DivEngine::preInit() {
// register systems
if (!systemsRegistered) registerSystems();
@ -4229,8 +4229,13 @@ bool DivEngine::init() {
initConfDir();
logD("config path: %s",configPath.c_str());
String logPath=configPath+DIR_SEPARATOR_STR+"furnace.log";
startLogFile(logPath.c_str());
loadConf();
}
bool DivEngine::init() {
loadSampleROMs();
// set default system preset