Partial fix for directory startup location

This commit is contained in:
Anonymous275
2021-02-22 20:09:36 +02:00
parent 263b6c9c0d
commit ba5ba4b8b4
7 changed files with 48 additions and 18 deletions
+2 -2
View File
@@ -44,14 +44,14 @@ std::string getDate() {
}
void InitLog(){
std::ofstream LFS;
LFS.open ("Launcher.log");
LFS.open(GetEP() + "Launcher.log");
if(!LFS.is_open()){
error("logger file init failed!");
}else LFS.close();
}
void addToLog(const std::string& Line){
std::ofstream LFS;
LFS.open("Launcher.log", std::ios_base::app);
LFS.open(GetEP() + "Launcher.log", std::ios_base::app);
LFS << Line.c_str();
LFS.close();
}