mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-10-25 21:50:02 +00:00
Move console clear to main to avoid clearing logs
This commit is contained in:
1 parent
aca61886d0
commit
06686688fc
2 files changed
+6
-2
No files matched your search
@@ -223,7 +223,6 @@ void LinuxPatch() {
|
|||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
void InitLauncher() {
|
void InitLauncher() {
|
||||||
system("cls");
|
|
||||||
SetConsoleTitleA(("BeamMP Launcher v" + std::string(GetVer()) + GetPatch()).c_str());
|
SetConsoleTitleA(("BeamMP Launcher v" + std::string(GetVer()) + GetPatch()).c_str());
|
||||||
InitLog();
|
InitLog();
|
||||||
CheckName();
|
CheckName();
|
||||||
@@ -235,7 +234,6 @@ void InitLauncher() {
|
|||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
|
|
||||||
void InitLauncher() {
|
void InitLauncher() {
|
||||||
system("clear");
|
|
||||||
InitLog();
|
InitLog();
|
||||||
info("BeamMP Launcher v" + GetVer() + GetPatch());
|
info("BeamMP Launcher v" + GetVer() + GetPatch());
|
||||||
CheckName();
|
CheckName();
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ Options options;
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) try {
|
int main(int argc, char** argv) try {
|
||||||
|
#if defined(_WIN32)
|
||||||
|
system("cls");
|
||||||
|
#elif defined(__linux__)
|
||||||
|
system("clear");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::thread th(flush);
|
std::thread th(flush);
|
||||||
th.detach();
|
th.detach();
|
||||||
|
|||||||
Reference in new issue
Block a user