Skip to content

Commit 72120b0

Browse files
authored
Windows 64-bit build support (#66)
* correcting x64 configurations to actually use x64 defining NOMINMAX to fix std::max error * more preprocessor definitions for x64 * 64-bit libraries from the last published version of DXSDK with dinput * should define WIN64 as well? unfortunately seem to require retention of WIN32 * added an x64 build of luaperks.lib, this compiles links and runs now * relocate win32 luaperks.lib to src/drivers/win/lua/win32 and leave a note explaining it * luaperks.lib x64 needed to be /MT two more missing x64 libs debug x64 configuration was set to compile C++ as C? * importing the rest of the usable WIN32 preprocessor defines, debugger now functions! * revert unnecessary VS solution version change * 64-bit lua working (fixed the 64-bit build of luaperks.lib) * VSUIENTRY hashes are unsigned, not signed * more hashes that are actually unsigned * fix a few pointer to int casts in lua console * fix a few more pointer truncations in windows dialog stuff a few printf arguments need a cast to int * explicit size_t cast to quiet spurious warnings on an inline function
1 parent 1f5ce9e commit 72120b0

25 files changed

+12810
-163
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/vc/vc10_obj_Debug
99
/vc/vc10_obj_Release
1010
/vc/vc10_obj_PublicRelease
11+
/vc/x64
1112
/vc/*.user
1213
/vc/*.sdf
1314
/vc/*.opensdf

src/drivers/win/debugger.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ INT_PTR CALLBACK AddbpCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
338338
if (lParam)
339339
{
340340
CheckDlgButton(hwndDlg, IDC_ADDBP_MODE_X, BST_CHECKED);
341-
sprintf(str, "%04X", lParam);
341+
sprintf(str, "%04X", (unsigned int)lParam);
342342
SetDlgItemText(hwndDlg,IDC_ADDBP_ADDR_START,str);
343343
// also set the condition to only break at this Bank
344344
sprintf(str, "K==#%02X", getBank(lParam));
@@ -2040,7 +2040,7 @@ INT_PTR CALLBACK DebuggerCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP
20402040
{
20412041
// Handle certain stubborn context menus for nearly incapable controls.
20422042

2043-
if (wParam == (uint32)GetDlgItem(hwndDlg,IDC_DEBUGGER_BP_LIST)) {
2043+
if (wParam == (INT_PTR)GetDlgItem(hwndDlg,IDC_DEBUGGER_BP_LIST)) {
20442044
// Only open the menu if a breakpoint is selected
20452045
if (SendDlgItemMessage(hwndDlg,IDC_DEBUGGER_BP_LIST,LB_GETCURSEL,0,0) >= 0) {
20462046
hDebugcontextsub = GetSubMenu(hDebugcontext,0);

0 commit comments

Comments
 (0)