add log file writing
This commit is contained in:
parent
d897ac32b0
commit
51ea3cec2a
6 changed files with 142 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#ifdef _WIN32
|
||||
#include "winStuff.h"
|
||||
#define CONFIG_FILE "\\furnace.cfg"
|
||||
#define LOG_FILE "\\furnace.log"
|
||||
#else
|
||||
#ifdef __HAIKU__
|
||||
#include <support/SupportDefs.h>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1012,6 +1012,9 @@ class DivEngine {
|
|||
// quit dispatch
|
||||
void quitDispatch();
|
||||
|
||||
// pre-initialize the engine.
|
||||
void preInit();
|
||||
|
||||
// initialize the engine.
|
||||
bool init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue