Skip to content

Fails to parse gameinfo.txt files #49

Description

@InevitablyDivinity

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/*" }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions