summaryrefslogtreecommitdiffhomepage
path: root/Magic2
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-09 23:14:00 +0200
committerAki <please@ignore.pl>2022-04-09 23:14:00 +0200
commit595140fc96fc48ac6934615d37bd2b4a180d716d (patch)
treec8707ca35ef80c01bdea64fe1229bfc961452e07 /Magic2
parentaebbb4e305483efee3a714c443badd7edc60675b (diff)
downloadstarshatter-595140fc96fc48ac6934615d37bd2b4a180d716d.zip
starshatter-595140fc96fc48ac6934615d37bd2b4a180d716d.tar.gz
starshatter-595140fc96fc48ac6934615d37bd2b4a180d716d.tar.bz2
Magic now uses updated Print from Utils
Diffstat (limited to 'Magic2')
-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();
}