Skip to content

Call SHGetFolderPathA directly - #744

Merged
timangus merged 1 commit into
ioquake:mainfrom
GirianSeed:shfolder-work
Jul 29, 2025
Merged

Call SHGetFolderPathA directly#744
timangus merged 1 commit into
ioquake:mainfrom
GirianSeed:shfolder-work

Conversation

@GirianSeed

Copy link
Copy Markdown

Removing shfolder.h satisfies MSVC, and calling the function directly makes PFNSHGETFOLDERPATHA unnecessary. Adding this include was my mistake in #731.

This adds -lshell32 to the LDFLAGS for Windows, similar to #743.

Removing shfolder.h satisfies MSVC, and calling the function directly makes PFNSHGETFOLDERPATHA unnecessary.
@GirianSeed

Copy link
Copy Markdown
Author

According to the commit that introduced the dynamic shfolder.dll load, this was to ensure Windows 9X could gracefully fail if the DLL wasn't installed. Since XP is now the minimum supported OS version, keeping it around seems redundant.

@timangus
timangus merged commit 934e7b9 into ioquake:main Jul 29, 2025
4 checks passed
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