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

Make lang folder changeable #65

Open
alexalok opened this issue Mar 15, 2017 · 5 comments
Open

Make lang folder changeable #65

alexalok opened this issue Mar 15, 2017 · 5 comments

Comments

@alexalok
Copy link
Contributor

Ain't nobody likes hardcoded folders :D

FORMAT(path, "cfg/lang/%s.cfg", cvar.g_language);

@Levak
Copy link
Owner

Levak commented Mar 15, 2017

It's the same for server configuration.
You can load a language file separately using -f file.cfg option.

@alexalok
Copy link
Contributor Author

You mean, like, [...] -f <server>.cfg -f <lang>.cfg (i.e. two files at the same time)?

@Levak
Copy link
Owner

Levak commented Mar 15, 2017

Yes.
Previous definitions will be overwritten.
I might simply remove g_language cvar in fact and add the path instead in wb.cfg.

@alexalok
Copy link
Contributor Author

Yup, i guess this is better.

@Levak
Copy link
Owner

Levak commented Mar 15, 2017

After looking around, it seems we cannot import other cfg files from files using -f option (and init script).
We will have to add a separate exec handler in cvar_parse_file to allow that. I keep the issue open but with no ETA on the change.

In the meantime use -f <file>.cfg on bot startup.

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

No branches or pull requests

2 participants