Skip to content

Add support for AppData log files and update menu entry#257

Merged
ManlyMarco merged 4 commits into
masterfrom
playerlog
Apr 30, 2026
Merged

Add support for AppData log files and update menu entry#257
ManlyMarco merged 4 commits into
masterfrom
playerlog

Conversation

@ManlyMarco

Copy link
Copy Markdown
Collaborator

Refactored and improved log file detection logic for both the "open log" and "gather debug info" menu items.

  • Log files in AppData are now detected.
  • The "Open log file" menu item can now open multiple files at the same time if need be.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves how KKManager locates and opens game log files, expanding detection to include logs written under AppData (LocalLow) and updating the UI text to reflect that multiple log files may be opened/collected.

Changes:

  • Refactors log-file discovery into InstallDirectoryHelper.FindLogFiles(...) and reuses it for both “Open log” and “Collect game debug info”.
  • Adds LocalLow (AppData) log discovery via a new PathTools.GetAppDataLocalLowPath() helper.
  • Updates the “Open game log” menu text/tooltip to reflect multi-log behavior.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/KKManager/Windows/MainWindow.resx Updates menu text/tooltip for opening logs (and resource ordering).
src/KKManager/Windows/MainWindow.Designer.cs Designer reordering for menu items/separators consistent with resx updates.
src/KKManager.Core/Util/PathTools.cs Adds Known Folder lookup for AppData\LocalLow.
src/KKManager.Core/Functions/InstallDirectoryHelper.cs Introduces shared log discovery logic and AppData-relative mappings; updates OpenLog to open multiple files.
src/KKManager.Core/Functions/DebugInfo.cs Switches debug-info log collection to the new shared log discovery method.
Files not reviewed (1)
  • src/KKManager/Windows/MainWindow.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/KKManager.Core/Functions/InstallDirectoryHelper.cs Outdated
Comment thread src/KKManager.Core/Functions/InstallDirectoryHelper.cs
Comment thread src/KKManager.Core/Functions/DebugInfo.cs
Comment thread src/KKManager/Windows/MainWindow.resx Outdated
ManlyMarco and others added 2 commits April 30, 2026 20:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ManlyMarco ManlyMarco merged commit 9d3f192 into master Apr 30, 2026
2 checks passed
@ManlyMarco ManlyMarco deleted the playerlog branch May 1, 2026 01:01
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.

2 participants