diff options
author | Aki <please@ignore.pl> | 2022-02-15 00:14:59 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-02-15 00:14:59 +0100 |
commit | 2ba78cf22f6f0f7c488d0d4cb606c05a841474f2 (patch) | |
tree | 16fa28469582c2fd5c9b0bde85f619336a2d4076 /Stars45/Main.cpp | |
parent | 0ea71e86d0cf91718d3a9406060d7413f9c5aa01 (diff) | |
download | starshatter-2ba78cf22f6f0f7c488d0d4cb606c05a841474f2.zip starshatter-2ba78cf22f6f0f7c488d0d4cb606c05a841474f2.tar.gz starshatter-2ba78cf22f6f0f7c488d0d4cb606c05a841474f2.tar.bz2 |
Exported infamous Print to FoundationEx
Diffstat (limited to 'Stars45/Main.cpp')
-rw-r--r-- | Stars45/Main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/Main.cpp b/Stars45/Main.cpp index f4f4943..bd79886 100644 --- a/Stars45/Main.cpp +++ b/Stars45/Main.cpp @@ -11,6 +11,7 @@ #include "Starshatter.h" #include "StarServer.h" #include "HUDView.h" +#include "Utils.h" #include "NetHost.h" #include "NetAddr.h" @@ -33,7 +34,6 @@ // WinMain // +--------------------------------------------------------------------+ -extern FILE* ErrLog; extern int VD3D_describe_things; int dump_missions = 0; @@ -57,9 +57,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, int do_server = 0; if (strstr(lpCmdLine, "-server")) - ErrLog = fopen("serverlog.txt", "wb"); + AssignErrLog(fopen("serverlog.txt", "wb")); else - ErrLog = fopen("errlog.txt", "wb"); + AssignErrLog(fopen("errlog.txt", "wb")); PrintLogHeader(); @@ -148,7 +148,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, Print("+====================================================================+\n"); Print(" END OF LINE.\n"); - fclose(ErrLog); + CloseErrLog(); return result; } |