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
NetworkCaptureLogger: Move SSL logging #5978
Conversation
9eaa694
to
82a472c
Compare
a00d4cf
to
4a24d35
Compare
|
@dolphin-emu-bot rebuild |
|
Rebased on latest master. Still ready to be reviewed & merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I guess. Took me a moment to realize IOFile::Write does nothing if the file isn't open, but relying on that keeps the code simple though.
|
Rebased on latest master. |
0fb8656
to
0144250
Compare
|
Rebased on #8812. I slightly changed the logger interface and moved the logger to |
|
Rebased on latest master, I deleted the copy/move constructors and assignment operators as suggested #6075 (comment). I also addressed the following comments: #6075 (comment) & #6075 (comment). Still ready to be reviewed & merged. |
|
Rebased on latest master. Still ready to be reviewed & merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (untested)
| @@ -534,6 +534,7 @@ static void EmuThread(std::unique_ptr<BootParameters> boot, WindowSystemInfo wsi | |||
|
|
|||
| PatchEngine::Shutdown(); | |||
| HLE::Clear(); | |||
| PowerPC::debug_interface.Clear(); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right after I hit the approve button, I realized I glossed over this. What's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It clears the debug_interface after a full shutdown (i.e. breakpoints, patches, watches, memcheck) and it also releases the network logger and its file.
I have the feeling it's an artifact that wasn't migrated when switching to Qt, I might be wrong but I don't recall adding such line when I originally created the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, looks like this might also resolve #9325 and the issue that was mentioned there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my wording was poorly chosen. By "full shutdown" I meant the game/Wii shutdown not the actual game so it won't.
After a closer look at the current code, I'll probably add a 2nd commit that removes the GUI code that takes care of the breakpoints/memchecks clearing as it's using Qt signals and Dolphin state rather than removing them on shutdown in core.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary GUI code removed in the 2nd commit.
PPCDebugInterface.Clear() is called by Core on shutdown instead
This PR moves the SSL logging part to its own logger class.
Not sure, if putting it inside SConfig is a good idea soI'm open to suggestions regarding where it should belong.Ready to be reviewed & merged.