Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Logging system pt1
Browse files Browse the repository at this point in the history
  • Loading branch information
brian8544 committed Jun 8, 2023
1 parent 2446ce0 commit a703c61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Main.cpp
Expand Up @@ -62,6 +62,10 @@ void readSettings()
{
IMAGE_DIR = line.substr(line.find_first_of('"') + 1, line.find_last_of('"') - line.find_first_of('"') - 1);
}
else if (line.find("LOGGING_DIR") != std::string::npos)
{
IMAGE_DIR = line.substr(line.find_first_of('"') + 1, line.find_last_of('"') - line.find_first_of('"') - 1);
}
}
settingsFile.close();
}
Expand Down
1 change: 1 addition & 0 deletions src/settings-dev.conf
@@ -1,2 +1,3 @@
CASCADE_FILE_MAIN = "contrib/cascades/haarcascade_frontalface_alt2.xml"
IMAGE_DIR = "contrib/images"
LOGGING_DIR = "contrib/logs"
1 change: 1 addition & 0 deletions src/settings.conf
@@ -1,2 +1,3 @@
CASCADE_FILE_MAIN = "cascades/haarcascade_frontalface_alt2.xml"
IMAGE_DIR = "images"
LOGGING_DIR = "logs"

0 comments on commit a703c61

Please sign in to comment.