EOSERV Bug Tracker > Bug #456: Config filename changes if an INCLUDE file is found and Read()

Bug #456: Config filename changes if an INCLUDE file is found and Read()

Config filename changes if an INCLUDE file is found and Read()
ID #456
Submitter insomniac
Product EOSERV
Severity Normal
Status OPEN, NEW
Submitted 29th Sep 2017
Updated 29th Sep 2017
insomniac Submitter 7 years, 13 weeks ago

At this point this does not matter because there is no save/out support.I am currently writing some config save/out functions and noticed the filename changes if an INCLUDE file is found Read() and is set to the last INCLUDE filename in the current file. I think the filename should be checked and set when the config is constructed rather than Read(). Also the INCLUDE data gets added to the current configs data .. I dont know if it would make more sense to create a container vector<Config> include_configs instead of directly adding the data to the current config but it seems like a logical approach. My current Config::SetKey() function https://pastebin.com/zG8RTQbR might save you time if you ever add save support.

Comments

Add Comment

Please don't post unless you have something relevant to the bug to say.
Do not comment to say "thanks" or "fix this please".

Please log in to add comments. EOSERV Bug Tracker > Bug #456: Config filename changes if an INCLUDE file is found and Read()