summaryrefslogtreecommitdiffhomepage
path: root/Magic2/Magic.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-10 13:58:19 +0200
committerAki <please@ignore.pl>2022-04-10 13:58:19 +0200
commitfa8e5233ad5ce10fa1c0a76e235348d57a395539 (patch)
tree39065d9dae1d4914cd861ca762cf04092c5895df /Magic2/Magic.cpp
parent37d4fd61b47137b4f4bc6209c8ecec56981c2007 (diff)
parent06683d2e60da5144e5483c3d0cf88aa28dab1c8a (diff)
downloadstarshatter-fa8e5233ad5ce10fa1c0a76e235348d57a395539.zip
starshatter-fa8e5233ad5ce10fa1c0a76e235348d57a395539.tar.gz
starshatter-fa8e5233ad5ce10fa1c0a76e235348d57a395539.tar.bz2
Merge branch 'magic'
Diffstat (limited to 'Magic2/Magic.cpp')
-rw-r--r--Magic2/Magic.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Magic2/Magic.cpp b/Magic2/Magic.cpp
index 505c353..b034ce0 100644
--- a/Magic2/Magic.cpp
+++ b/Magic2/Magic.cpp
@@ -18,6 +18,7 @@
#include "MainFrm.h"
#include "MagicDoc.h"
#include "MagicView.h"
+#include "Utils.h"
#include "MachineInfo.h"
@@ -44,13 +45,11 @@ END_MESSAGE_MAP()
// +--------------------------------------------------------------------+
-extern FILE* ErrLog;
extern int VD3D_describe_things;
-void Print(const char* msg, ...);
static void PrintLogHeader()
{
- ErrLog = fopen("errlog.txt", "w");
+ AssignErrLog(fopen("errlog.txt", "w"));
Print("+====================================================================+\n");
Print("| Magic 2.0 |\n");
@@ -71,7 +70,7 @@ Magic::~Magic()
Print("+====================================================================+\n");
Print(" END OF LINE.\n");
- fclose(ErrLog);
+ CloseErrLog();
Clock::Close();
}