This patch allows the user to send the PearPC output to
a log file, rather than the command line. It modifies
tools/snprintf.cc, tools/snprintf.h and main.cc. The main
part is in snprintf.cc, which has a new function to
initialize the log file, and some changes to existing
functions to be able to output to log file.
The changes in main.cc allow for new config file entries.
These specify whether to output to command line or log
file, name of the log file, and mode of the log file
(append or erase).
To use, apply the patch and compile, then add these
lines to your config file:
ppc_logfile_enabled = 1 (set to 0 for command line)
ppc_logfile_location = "ppc.log" (change location of log)
ppc_logfile_mode = "a" (a for append, e for erase)