Skip to content

Commit 2dbe3c1

Browse files
committed
Build and keyboard handler fix
Fixed the ResetKeyState not being recognized
1 parent 5a63fd3 commit 2dbe3c1

19 files changed

+16
-17
lines changed

Diff for: .vs/NativeTrainer/v17/.suo

2 KB
Binary file not shown.

Diff for: .vs/NativeTrainer/v17/Browse.VC.db

0 Bytes
Binary file not shown.

Diff for: NativeTrainer/bin/Release/NativeTrainer.asi

424 KB
Binary file not shown.

Diff for: NativeTrainer/keyboard.cpp

+8-7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ bool IsKeyDownLong(DWORD key)
4646
return (GetTickCount64() < keyStates[key].time + MAX_DOWN_LONG) && !keyStates[key].isUpNow;
4747
}
4848

49+
void ResetKeyState(DWORD key)
50+
{
51+
if (key >= 0 && key < KEYS_SIZE)
52+
memset(&keyStates[key], 0, sizeof(KeyState));
53+
}
54+
55+
4956
bool IsKeyJustUp(DWORD key, bool exclusive)
5057
{
5158
if (key < 0 || key >= KEYS_SIZE)
@@ -56,10 +63,4 @@ bool IsKeyJustUp(DWORD key, bool exclusive)
5663
ResetKeyState(key);
5764

5865
return isJustUp;
59-
}
60-
61-
void ResetKeyState(DWORD key)
62-
{
63-
if (key >= 0 && key < KEYS_SIZE)
64-
memset(&keyStates[key], 0, sizeof(KeyState));
65-
}
66+
}

Diff for: NativeTrainer/tmp/Release/NativeTrainer.iobj

44.2 KB
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/NativeTrainer.ipdb

568 KB
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/NativeTrainer.log

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
 script.cpp
2-
C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\scriptmenu.h(246,65): warning C4244: '=': conversion from 'ULONGLONG' to 'DWORD', possible loss of data
3-
(compiling source file 'script.cpp')
4-
5-
C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\script.cpp(1066,35): warning C4244: '=': conversion from 'ULONGLONG' to 'DWORD', possible loss of data
6-
C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\script.cpp(1606,22): warning C4244: 'argument': conversion from 'ULONGLONG' to 'unsigned int', possible loss of data
1+
 keyboard.cpp
2+
C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\keyboard.cpp(24,45): warning C4244: '=': conversion from 'ULONGLONG' to 'DWORD', possible loss of data
73
Generating code
8-
16 of 1046 functions ( 1.5%) were compiled, the rest were copied from previous compilation.
9-
11 functions were new in current compilation
10-
82 functions had inline decision re-evaluated but remain unchanged
4+
Previous IPDB was built with incompatible compiler, fall back to full compilation.
5+
All 1056 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
116
Finished generating code
127
NativeTrainer.vcxproj -> C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\bin\Release\NativeTrainer.asi
138
'pwsh.exe' is not recognized as an internal or external command,
0 Bytes
Binary file not shown.
-56 Bytes
Binary file not shown.
430 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.38.33130:TargetPlatformVersion=10.0.22621.0:VcpkgTriplet=x64-windows:
1+
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.39.33519:TargetPlatformVersion=10.0.22621.0:VcpkgTriplet=x64-windows:
22
Release|x64|C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\|
-468 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
^C:\USERS\CVS0_\DESKTOP\RDR2_MODDING\SCRIPTHOOKRDR2\PROJECTS\CVSTRAINER\NATIVETRAINER\TMP\RELEASE\KEYBOARD.OBJ|C:\USERS\CVS0_\DESKTOP\RDR2_MODDING\SCRIPTHOOKRDR2\PROJECTS\CVSTRAINER\NATIVETRAINER\TMP\RELEASE\MAIN.OBJ|C:\USERS\CVS0_\DESKTOP\RDR2_MODDING\SCRIPTHOOKRDR2\PROJECTS\CVSTRAINER\NATIVETRAINER\TMP\RELEASE\SCRIPT.OBJ|C:\USERS\CVS0_\DESKTOP\RDR2_MODDING\SCRIPTHOOKRDR2\PROJECTS\CVSTRAINER\NATIVETRAINER\TMP\RELEASE\SCRIPTMENU.OBJ
2+
C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\tmp\Release\NativeTrainer.IPDB
3+
C:\Users\cvs0_\Desktop\rdr2_modding\scripthookrdr2\projects\cvsTrainer\NativeTrainer\tmp\Release\NativeTrainer.iobj
-468 Bytes
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/keyboard.obj

116 Bytes
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/main.obj

0 Bytes
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/script.obj

-5.61 KB
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/scriptmenu.obj

30.3 KB
Binary file not shown.

Diff for: NativeTrainer/tmp/Release/vc143.pdb

56 KB
Binary file not shown.

0 commit comments

Comments
 (0)