Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed writeLogsToFile#161

Merged
h4570 merged 4 commits intoh4570:masterfrom
GDQR:master
Nov 5, 2023
Merged

Fixed writeLogsToFile#161
h4570 merged 4 commits intoh4570:masterfrom
GDQR:master

Conversation

@GDQR
Copy link
Contributor

@GDQR GDQR commented Nov 5, 2023

The log file works on the emulator but it didn't work on real hardware.

I managed to fix it by changing the smart pointer for a file that opens and closes in the same function. Now it works on emulator and on real hardware.

I tried to make the file open only once and that it can be used many times, just like with the smart pointer, but I couldn't get it to work in the emulator and on a real PS2 at the same time.

Additional Information:
Tested on a PCSX2 1.6.0 emulator
edit: PS2 model 90001
Ulaunchelf 4.43x_isr (mod by israpps)
edit: USB 3.2 DataTraveler Exodia 16GB FAT32

Deleted logFile smart pointer and getLogFile function.
logfile created inside of the statics functions.

GDQR added 2 commits November 4, 2023 22:35
Deleted logFile smart pointer and getLogFile function.
logfile created inside of the statics functions.
Debug.cpp can be deleted.
formatted with clang
@GDQR GDQR changed the title Fix writeLogsToFile Fixed writeLogsToFile Nov 5, 2023
@Wolf3s
Copy link
Contributor

Wolf3s commented Nov 5, 2023

Suggestion: put this same code that you write, inside of debug.cpp

@GDQR
Copy link
Contributor Author

GDQR commented Nov 5, 2023

alright now i do it

GDQR added 2 commits November 4, 2023 23:27
created writeInLogFile function

tested in real PS2 and emulator
clang format
@Wolf3s
Copy link
Contributor

Wolf3s commented Nov 5, 2023

alright now i do it

Thanks i aprroved your changes sounds more portable

@h4570 h4570 merged commit 15a2dbb into h4570:master Nov 5, 2023
@h4570
Copy link
Owner

h4570 commented Nov 5, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants