Skip to content

feat: introduce SCB_GetGameDir function and add awk as dependency - #49

Merged
HikariKnight merged 2 commits into
mainfrom
getgamedir
Aug 3, 2026
Merged

feat: introduce SCB_GetGameDir function and add awk as dependency#49
HikariKnight merged 2 commits into
mainfrom
getgamedir

Conversation

@HikariKnight

Copy link
Copy Markdown
Member

Used to get the game directory from %command% in configs

usage:

GAMEDIR=$(SCB_GetGameDir "$command")

$GAMEDIR should now contain the path to the game directory that the games binary was in (regardless if it was an exe or not)

Used to get the game directory from %command% in configs
@HikariKnight
HikariKnight requested a review from porkloin August 2, 2026 22:04

@porkloin porkloin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One edge case question but otherwise I think it looks good! I assume there will be a follow-up to wire it into the main function someplace?

Comment thread bin/scopebuddy
@HikariKnight

Copy link
Copy Markdown
Member Author

One edge case question but otherwise I think it looks good! I assume there will be a follow-up to wire it into the main function someplace?

intentionally left out of main as this is meant to be used inside per game configs, telling users to how to get the gamedir for scripts was a bit of a pain, so i spent an evening trying to make grabbing the gamedir dynamic and not requiring knowing the binary name. Then stuffed that in a custom function.

@HikariKnight
HikariKnight merged commit 8c517a4 into main Aug 3, 2026
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