mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-08-28 04:53:20 +00:00
Partial fix for directory startup location
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user