Skip to content

Commit 7cfbd32

Browse files
committed
fix: Add missing globals and libraries, change to console subsystem for DataChunkConverter
1 parent 682e67b commit 7cfbd32

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

GeneralsMD/Code/Tools/DataChunkConverter/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if (NOT IS_VS6_BUILD)
2-
add_executable(z_datachunkconverter WIN32)
3-
set_target_properties(z_datachunkconverter PROPERTIES OUTPUT_NAME datachunkconverter)
2+
add_executable(z_datachunkconverter)
3+
set_target_properties(z_datachunkconverter PROPERTIES OUTPUT_NAME datachunkconverter WIN32_EXECUTABLE FALSE)
44

55
target_sources(z_datachunkconverter PRIVATE
66
DataChunkConverter.cpp
@@ -22,5 +22,7 @@ if (NOT IS_VS6_BUILD)
2222
z_gameengine
2323
z_gameenginedevice
2424
zi_always
25+
winmm
26+
vfw32
2527
)
2628
endif()

GeneralsMD/Code/Tools/DataChunkConverter/DataChunkConverter.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,16 @@
4949
#include "Win32Device/Common/Win32LocalFileSystem.h"
5050
#include "Win32Device/Common/Win32BIGFileSystem.h"
5151

52+
#include <windows.h>
5253
#include <stdio.h>
5354
#include <string.h>
5455
#include <stdlib.h>
5556

57+
HWND ApplicationHWnd = NULL;
58+
const char *gAppPrefix = "dc_";
59+
const Char *g_strFile = "data\\Generals.str";
60+
const Char *g_csfFile = "data\\%s\\Generals.csf";
61+
5662
static SubsystemInterfaceList TheSubsystemListRecord;
5763

5864
template<class SUBSYSTEM>

0 commit comments

Comments
 (0)