Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed writeLogsToFile #161

Merged
merged 4 commits into from
Nov 5, 2023
Merged

Fixed writeLogsToFile #161

merged 4 commits into from
Nov 5, 2023

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.

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

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
2 checks passed
@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.

None yet

3 participants