diff options
| author | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-06-07 10:35:59 +0000 |
|---|---|---|
| committer | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-06-07 10:35:59 +0000 |
| commit | f16c114458aaad3b0885a072d703b742c32c1add (patch) | |
| tree | a493b28eb12e7ad469ecafd2fe172ed9f745c3b6 /gui | |
| parent | c6fe359a590ef732d9450fde99964aa70f859803 (diff) | |
| download | pcsxr-f16c114458aaad3b0885a072d703b742c32c1add.tar.gz | |
PSXCPU_LOG for dynarec64 (dumped only compile). Dump log only if PSXCPU_LOG defined and Config.PsxOut option is used. Minor code polishments.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85183 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui')
| -rwxr-xr-x | gui/LnxMain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/LnxMain.c b/gui/LnxMain.c index 0a553bad..ad973005 100755 --- a/gui/LnxMain.c +++ b/gui/LnxMain.c @@ -469,12 +469,12 @@ int SysInit() { emuLog = stdout; #endif #ifdef PSXCPU_LOG - if (Config.Cpu == CPU_INTERPRETER) { - const int BUFSZ = 1 * 512*512*512; + if (Config.PsxOut) { //PSXCPU_LOG generates so much stuff that buffer is necessary + const int BUFSZ = 20 * 1024*1024; void* buf = malloc(BUFSZ); setvbuf(emuLog, buf, _IOFBF, BUFSZ); } else { - setvbuf(emuLog, NULL, _IONBF, NULL); + setvbuf(emuLog, NULL, _IONBF, 0u); } #else setvbuf(emuLog, NULL, _IONBF, NULL); |
