Skip to content

Commit 9c09ad3

Browse files
committed
Minor changes
- suppressed error in FFileReader::Serialize() when compiled with MAX_DEBUG and opening huge file - updated compatibility table - genmake now using -nologo for rc.exe - test.sh now handles correctly D: Windows paths under linux/vmware - improved VS projects
1 parent 0cdee9d commit 9c09ad3

File tree

6 files changed

+39
-37
lines changed

6 files changed

+39
-37
lines changed

.vs/CppProperties.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
],
1010
"defines": [
1111
"WIN32",
12-
"NDEBUG",
13-
"UNICODE",
14-
"_UNICODE"
12+
"HAS_UI",
13+
"RENDERING"
1514
],
1615
"intelliSenseMode": "windows-msvc-x86",
1716
"environments": [
@@ -29,9 +28,8 @@
2928
],
3029
"defines": [
3130
"WIN32",
32-
"NDEBUG",
33-
"UNICODE",
34-
"_UNICODE",
31+
"HAS_UI",
32+
"RENDERING",
3533
"MAX_DEBUG"
3634
],
3735
"intelliSenseMode": "windows-msvc-x86",
@@ -50,9 +48,8 @@
5048
],
5149
"defines": [
5250
"WIN32",
53-
"NDEBUG",
54-
"UNICODE",
55-
"_UNICODE"
51+
"HAS_UI",
52+
"RENDERING"
5653
],
5754
"intelliSenseMode": "windows-msvc-x64",
5855
"environments": [
@@ -70,9 +67,8 @@
7067
],
7168
"defines": [
7269
"WIN32",
73-
"NDEBUG",
74-
"UNICODE",
75-
"_UNICODE",
70+
"HAS_UI",
71+
"RENDERING",
7672
"MAX_DEBUG"
7773
],
7874
"intelliSenseMode": "windows-msvc-x64",

.vscode/c_cpp_properties.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
{
44
"name": "Win32",
55
"includePath": [
6-
"${workspaceFolder}/**",
6+
"${workspaceFolder}",
77
"${workspaceFolder}/Core",
8-
"${workspaceFolder}/Unreal"
8+
"${workspaceFolder}/Unreal",
9+
"${workspaceFolder}/UmodelTool",
10+
"${workspaceFolder}/libs/includewin32"
911
],
1012
"defines": [
11-
"_DEBUG",
12-
"UNICODE",
13-
"_UNICODE",
14-
"RENDERING",
15-
"HAS_UI"
13+
"MAX_DEBUG",
14+
"RENDERING",
15+
"HAS_UI"
1616
],
17-
"forcedInclude": [
18-
"${workspaceFolder}/Unreal/GameDefines.h"
19-
],
20-
"windowsSdkVersion": "10.0.17134.0",
21-
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe",
17+
"forcedInclude": [
18+
"${workspaceFolder}/Unreal/GameDefines.h"
19+
],
20+
"windowsSdkVersion": "10.0.18362.0",
21+
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe",
2222
"cStandard": "c11",
2323
"cppStandard": "c++17",
2424
"intelliSenseMode": "msvc-x64",

Tools/CompatTable/table.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,12 @@ Y Y Y Y UE4.16
617617
Mata
618618
https://store.steampowered.com/app/893070/The_End_Inaris_Quest/
619619

620+
[The Inpatient (PS4)]
621+
Y Y Y Y UE4.17
622+
Supermassive Games
623+
https://en.wikipedia.org/wiki/The_Inpatient
624+
https://www.gildor.org/smf/index.php/topic,6919.0.html
625+
620626
[The Swordsmen X]
621627
Y Y Y Y UE4.21
622628
?

Tools/genmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ sub EmitCompilerDefs {
559559
} else {
560560
$defs .= " -d _WIN64 -d WIN64";
561561
}
562-
print "RC = rc.exe -dNDEBUG -l 0x409${winxp}${defs}\n"
562+
print "RC = rc.exe -nologo -dNDEBUG -l 0x409${winxp}${defs}\n"
563563
} elsif ($COMPILER eq "GnuC") {
564564
my $platf = "gcc";
565565
# platform override

Unreal/UnCoreSerialize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ void FFileReader::Serialize(void *data, int size)
638638
SeekPos = -1;
639639
}
640640
#if MAX_DEBUG
641-
int tell = ftell(f);
642-
if (tell != FilePos)
641+
int tell = ftell(f); // msvcrt.dll doesn't have ftelli64, ftell() returns -1 when position is larger than 4Gb
642+
if (tell != -1 && tell != FilePos)
643643
appError("Bad FilePos!");
644644
#endif
645645
if (size >= FILE_BUFFER_SIZE / 2)

test.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ EOF
2727
shopt -s extglob
2828

2929
exe=umodel.exe
30-
c_drive=
30+
win_drive=
3131
if [ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == "linux" ]; then
3232
exe="umodel"
33-
# VirtualBox default C: drive mapping
34-
if [ -d "/media/sf_C_DRIVE" ]; then
35-
c_drive="/media/sf_C_DRIVE" # VirtualBox
36-
elif [ -d "/mnt/hgfs/C" ]; then
37-
c_drive="/mnt/hgfs/C" # VMware
33+
# Windows to VM or Linux path conversion
34+
# if [ -d "/media/sf_C_DRIVE" ]; then
35+
# c_drive="/media/sf_C_DRIVE" # VirtualBox - not supported now because it has drive letter in the middle
36+
if [ -d "/mnt/hgfs/C" ]; then
37+
win_drive="/mnt/hgfs/" # VMware
3838
elif [ -d "/media/c" ]; then
39-
c_drive="/media/c"
39+
win_drive="/media/" # linux
4040
fi
4141
fi
4242

@@ -66,8 +66,8 @@ function CheckDir()
6666
dir=$1
6767
DBG "... check $dir"
6868
# support Windows paths on Linux
69-
if [ "$c_drive" ] && [ "${dir:1:1}" == ":" ]; then
70-
dir="${c_drive}${dir:2}"
69+
if [ "$win_drive" ] && [ "${dir:1:1}" == ":" ]; then
70+
dir="${win_drive}${dir:0:1}/${dir:2}"
7171
fi
7272
if [ -z "$checkedDirs" ]; then
7373
checkedDirs=$dir
@@ -179,7 +179,7 @@ function fortnite()
179179
{
180180
read aes < "Docs/fortnite.txt"
181181
CheckDir "${launcher[@]/%/Fortnite/FortniteGame/Content/Paks}"
182-
run -game=ue4.23 -aes=$aes $*
182+
run -game=ue4.24 -aes=$aes $*
183183
}
184184
function ue3()
185185
{

0 commit comments

Comments
 (0)