melonDS
melonDS copied to clipboard
Add a custom logging function - allows logging to file
trafficstars
This PR creates a custom logging function and gives an option to either log to console, or to log to file.
Changes
- All
printfcalls are nowPlatform::LogMessage - A new settings dialog has been created: Log Settings
- Two new variables are added to the config file:
LogToFileandLogFileLocation - The new
Platform::LogMessagefunction uses eithervprintforvfprintfdepending on the user's setting
If we're doing a custom logging thing, we really should also have log levels I think?
We could, but currently this is just a wrapper around printf and fprintf. That would require modifying all of the printf statements we have.