mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Use current directory if directory wasn't specified
This commit is contained in:
parent
5635909e20
commit
5f7d04334f
6
main.cpp
6
main.cpp
@ -325,8 +325,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Make sure that directory has trailing slash
|
||||
if (!config.sDirectory.empty())
|
||||
{
|
||||
if (config.sDirectory.at(config.sDirectory.length()-1)!='/')
|
||||
config.sDirectory += "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
config.sDirectory = "./"; // Directory wasn't specified, use current directory
|
||||
}
|
||||
|
||||
if (!unrecognized_options_cfg.empty() && (!config.bSaveConfig || !config.bResetConfig))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user