Skip to content
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

Fails to parse gameinfo.txt files #49

Open
InevitablyDivinity opened this issue Sep 11, 2022 · 0 comments · May be fixed by #53
Open

Fails to parse gameinfo.txt files #49

InevitablyDivinity opened this issue Sep 11, 2022 · 0 comments · May be fixed by #53

Comments

@InevitablyDivinity
Copy link

Attempting to parse a Source 2013 gameinfo.txt file will fail due to '+' characters in some of the subkeys in the SearchPaths key. Here's an example from Team Fortress 2's gameinfo.txt:

"SearchPaths"
{

	// First, mount all user customizations.  This will search for VPKs and subfolders
	// and mount them in alphabetical order.  The easiest way to distribute a mod is to
	// pack up the custom content into a VPK.  To "install" a mod, just drop it in this
	// folder.
	//
	// Note that this folder is scanned only when the game is booted.
	"game+mod+custom_mod"	"tf/custom/*"

Here, the parser should at least be capable of registering game+mod+custom_mod as a key, but ideally it should separate it into 3 keys for ease-of-use, like so:
{ "game": "tf/custom/*", "mod": "tf/custom/*", "custom_mod": "tf/custom/*" }

@Kenajcrap Kenajcrap linked a pull request Mar 19, 2023 that will close this issue
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 a pull request may close this issue.

1 participant