Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
ef79550b
Commit
ef79550b
authored
Sep 21, 2018
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding config file path to path list where futher config files are searched
parent
4f58a57d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VACoreImpl.cpp
View file @
ef79550b
...
...
@@ -200,8 +200,14 @@ void VACore::StoreCoreConfigToFile( const CVAStruct& oConfig, const std::string&
CVAStruct
VACore
::
LoadCoreConfigFromFile
(
const
std
::
string
&
sConfigFilePath
)
{
CVAStruct
oFinalCoreConfigStruct
,
oCurrentConfig
;
VistaFileSystemFile
oConfigFile
(
sConfigFilePath
);
std
::
list
<
VistaFileSystemFile
>
voConfigFiles
;
std
::
vector
<
VistaFileSystemDirectory
>
voIncludePaths
;
if
(
oConfigFile
.
Exists
()
&&
oConfigFile
.
GetParentDirectory
().
empty
()
==
false
)
voIncludePaths
.
push_back
(
oConfigFile
.
GetParentDirectory
()
);
voConfigFiles
.
push_back
(
VistaFileSystemFile
(
sConfigFilePath
)
);
VA_INFO
(
"Core"
,
"Working directory: '"
<<
VistaFileSystemDirectory
::
GetCurrentWorkingDirectory
()
<<
"'"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment