-
Notifications
You must be signed in to change notification settings - Fork 137
feat(core): Add path helper utilities for theme/font discovery #1569
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -74,19 +74,29 @@ namespace Util | |||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetSettingsTestPath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Gets the SettingsDefault.json file path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "SettingsDefault.json" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetSettingsDefaultPath(); | ||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Gets the SettingsDefault.json file path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "SettingsDefault.json" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetSettingsDefaultPath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Gets the Overrides directory path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "Overrides" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetOverridesPath(); | ||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Gets the SettingsTheme.json file path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "SettingsTheme.json" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetSettingsThemePath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Gets the Themes directory path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "Themes" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetThemesPath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Gets the Overrides directory path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "Overrides" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetOverridesPath(); /** | ||||||||||||||||||||||||||||||||
|
Comment on lines
+95
to
+99
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix formatting: separate function declaration from comment block. The closing brace of Apply this diff: - std::filesystem::path GetOverridesPath(); /**
+ std::filesystem::path GetOverridesPath();
+
+ /**
* Gets the AppliedOverrides.json file path
* @return CommunityShaderPath / "AppliedOverrides.json"
*/📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||
| * Gets the AppliedOverrides.json file path | ||||||||||||||||||||||||||||||||
| * @return CommunityShaderPath / "AppliedOverrides.json" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
|
|
@@ -136,19 +146,23 @@ namespace Util | |||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetRootRealPath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Returns the real path to the Shaders directory located in the mod's root folder. | ||||||||||||||||||||||||||||||||
| * @return <mod_root> / "Shaders" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetShadersRealPath(); | ||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Returns the real path to the Shaders directory located in the mod's root folder. | ||||||||||||||||||||||||||||||||
| * @return <mod_root> / "Shaders" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetShadersRealPath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Returns the real path to the Features directory containing feature INI files. | ||||||||||||||||||||||||||||||||
| * @return <mod_root> / "Shaders" / "Features" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetFeaturesRealPath(); | ||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Returns the real path to the Themes directory containing theme JSON files. | ||||||||||||||||||||||||||||||||
| * @return <mod_root> / "SKSE" / "Plugins" / "CommunityShaders" / "Themes" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetThemesRealPath(); | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * Returns the real path to the Features directory containing feature INI files. | ||||||||||||||||||||||||||||||||
| * @return <mod_root> / "Shaders" / "Features" | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| std::filesystem::path GetFeaturesRealPath(); } | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||||
| * File system utilities for safe file operations | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
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.
Fix formatting: separate function definitions.
Line 84 has
GetOverridesPath()'s closing brace immediately followed byGetAppliedOverridesPath()on the same line, reducing readability.Apply this diff:
std::filesystem::path GetOverridesPath() { return GetCommunityShaderPath() / "Overrides"; - } std::filesystem::path GetAppliedOverridesPath() + } + + std::filesystem::path GetAppliedOverridesPath() { return GetCommunityShaderPath() / "AppliedOverrides.json"; }📝 Committable suggestion
🤖 Prompt for AI Agents