Skip to content

Allow returning empty path in Steam_Apps::GetAppInstallDir()#233

Merged
Detanup01 merged 2 commits into
Detanup01:devfrom
universal963:patch-appinstalldir
May 18, 2025
Merged

Allow returning empty path in Steam_Apps::GetAppInstallDir()#233
Detanup01 merged 2 commits into
Detanup01:devfrom
universal963:patch-appinstalldir

Conversation

@universal963

Copy link
Copy Markdown
Collaborator

Some games like appid 1113560 request DLC paths by GetAppInstallDir() API but for some reasons real steam returns 0 and fills nothing to the path buffer, and such games actually expect this behavior to properly load DLC content or they will either miss DLC models or simply crash. However, current code indicates other games may instead requiring proper paths to be set to load DLCs. So I end up with this solution that makes emu accept app:paths lines like "1337=" to indicate we deliberately set such DLC path to be empty to resolve both problems.
Related issue: #232 . After testing that game and making sure it works, I will set this PR as ready.

@universal963 universal963 mentioned this pull request May 17, 2025
4 tasks
@GogoVang

Copy link
Copy Markdown
Contributor

Great job!

I've tested the Naruto game mentioned in the issue (AppID 495160), and your solution works perfectly.

@universal963 universal963 marked this pull request as ready for review May 17, 2025 18:20
@Detanup01

Copy link
Copy Markdown
Owner

If u dont mind adding a comment in app:paths saying this behavior would be good

@universal963

Copy link
Copy Markdown
Collaborator Author

Done.

@Detanup01 Detanup01 merged commit a7ec484 into Detanup01:dev May 18, 2025
62 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.

3 participants