Skip to content

Conversation

@peace-maker
Copy link
Member

This adds support for platform specific custom key values in the Keys section in game config files. Now you can have different values for the same key per platform.

Previously you could only add general key values in gamedata files that were the same on all platforms like

"Keys"
{
	"key"	"value"
}

This patch allows you to set the value per platform in a subsection like

"Keys"
{
	"key"
	{
		"windows"	"value1"
		"linux"	"value2"
		"mac"	"value3"
	}
}

Looking up the key will return the value matching the host platform.

This adds support for platform specific custom key values in the `Keys` section in game config files. Now you can have different values for the same key per platform.

Previously you could only add general key values in gamedata files that were the same on all platforms like
```
"Keys"
{
	"key"	"value"
}
```

This patch allows you to set the value per platform in a subsection like
```
"Keys"
{
	"key"
	{
		"windows"	"value1"
		"linux"	"value2"
		"mac"	"value3"
	}
}
```

Looking up the `key` will return the value matching the host platform.
@asherkin asherkin merged commit f9faf9e into alliedmodders:master Feb 6, 2018
@peace-maker peace-maker deleted the keys_per_platform branch February 6, 2018 14:55
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