changeset 1926:3eb0c4f3d899

Woops, debug stuff.
author Nomad
date Wed, 23 Oct 2013 15:46:05 +0200
parents f4d5082b4a39
children df4e27f2a541
files OSAPI.cpp
diffstat 1 files changed, 1 insertions(+), 43 deletions(-) [+]
line wrap: on
line diff
--- a/OSAPI.cpp	Wed Oct 23 15:37:51 2013 +0200
+++ b/OSAPI.cpp	Wed Oct 23 15:46:05 2013 +0200
@@ -6,53 +6,11 @@
 OSVersion *pVersion = nullptr;
 
 
-#include <stdio.h>
+
 
 //----- (00462C94) --------------------------------------------------------
 int __stdcall wWinMain(HINSTANCE hInstance, HINSTANCE, wchar_t *lpCmdLine, int nShowCmd)
 {
-  auto cvt = [] (const char *filename)
-  {
-    char ico_filename[512];
-    sprintf(ico_filename, "%s.ico", filename);
-
-    char c_filename[512];
-    sprintf(c_filename, "%s.c", filename);
-    auto file = fopen(ico_filename, "rb");
-    {
-      auto o = fopen(c_filename, "w+t");
-      fprintf(o, "unsigned char %s[] =\n{\n\t", filename);
-
-      int position = 0;
-      bool once = true;
-      while (!feof(file))
-      {
-        unsigned char c;
-        fread(&c, 1, 1, file);
-
-        if (position == 7)
-          fprintf(o, ",\t");
-        else if (position != 0)
-          fprintf(o, ", ");
-
-        fprintf(o, "0x%02X", (unsigned int)c);
-        if (++position == 15)
-        {
-          fprintf(o, ",\n\t");
-          position = 0;
-        }
-      }
-
-      fprintf(o, "\n};");
-      fclose(o);
-    }
-    fclose(file);
-  };
-
-  cvt("mm6_icon");
-  cvt("mm7_icon");
-  cvt("mm8_icon");
-
   Log::Initialize();
   
   //if (HWND hMM7Window = FindWindowW(L"MM7", 0))