mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-30 05:38:59 +01:00
FWnull, USBnull, and dev9null now use SetLogFolder.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3114 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
acc6965f62
commit
5e53c9b2c8
3 files changed
+59
-7
No files matched your search
@@ -44,9 +44,28 @@ void (*DEV9irq)(int);
|
||||
__aligned16 s8 dev9regs[0x10000];
|
||||
|
||||
string s_strIniPath = "inis/";
|
||||
string s_strLogPath="logs/";
|
||||
|
||||
PluginLog Dev9Log;
|
||||
Config conf;
|
||||
|
||||
void LogInit()
|
||||
{
|
||||
const std::string LogFile(s_strLogPath + "/dev9null.log");
|
||||
setLoggingState();
|
||||
Dev9Log.Open(LogFile);
|
||||
}
|
||||
|
||||
EXPORT_C_(void) PADSetLogFolder(const char* dir)
|
||||
{
|
||||
// Get the path to the log directory.
|
||||
s_strLogPath = (dir==NULL) ? "logs/" : dir;
|
||||
|
||||
// Reload the log file after updated the path
|
||||
Dev9Log.Close();
|
||||
LogInit();
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibType()
|
||||
{
|
||||
return PS2E_LT_DEV9;
|
||||
@@ -66,8 +85,7 @@ EXPORT_C_(s32) DEV9init()
|
||||
{
|
||||
LoadConfig();
|
||||
setLoggingState();
|
||||
|
||||
Dev9Log.Open("logs/dev9null.log");
|
||||
LogInit();
|
||||
Dev9Log.WriteLn("dev9null plugin version %d,%d", revision, build);
|
||||
Dev9Log.WriteLn("Initializing dev9null");
|
||||
// Initialize anything that needs to be initialized.
|
||||
|
||||
Reference in new issue
Block a user