Skip to content

Commit c356210

Browse files
committed
Fixed Windows packed build failures from scene file corruption
1 parent 26a51b1 commit c356210

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

engine/utils/FileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ String Read(const String& filename)
2626
rewind(file);
2727

2828
// Copy the content
29-
char content[size];
29+
char content[size + 1];
3030
fread(content, sizeof(char), size, file);
3131
content[size] = '\0';
3232

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Geometry
2-
POSITION:2.10,0.00,2.00
3-
ROTATION:0.000000
4-
Z-INDEX:0
5-
DIMENSIONS:2.00,0.10,2.00
6-
MODEL_PATH:assets/models/cube/cube.obj
7-
TEXTURE_PATH:models/cube/cube_1.png
1+
Geometry;
2+
POSITION:2.10,0.00,2.00;
3+
ROTATION:0.000000;
4+
Z-INDEX:0;
5+
DIMENSIONS:2.00,0.10,2.00;
6+
MODEL_PATH:assets/models/cube/cube.obj;
7+
TEXTURE_PATH:models/cube/cube_1.png;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Geometry
2-
POSITION:-10.50,0.00,-7.00
3-
ROTATION:0.000000
4-
Z-INDEX:0
5-
DIMENSIONS:2.00,0.10,2.00
6-
MODEL_PATH:assets/models/cube/cube.obj
7-
TEXTURE_PATH:models/cube/cube_1.png
1+
Geometry;
2+
POSITION:-10.50,0.00,-7.00;
3+
ROTATION:0.000000;
4+
Z-INDEX:0;
5+
DIMENSIONS:2.00,0.10,2.00;
6+
MODEL_PATH:assets/models/cube/cube.obj;
7+
TEXTURE_PATH:models/cube/cube_1.png;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Geometry
2-
POSITION:8.10,0.00,-7.00
3-
ROTATION:0.000000
4-
Z-INDEX:0
5-
DIMENSIONS:2.00,0.10,2.00
6-
MODEL_PATH:assets/models/cube/cube.obj
7-
TEXTURE_PATH:models/cube/cube_1.png
1+
Geometry;
2+
POSITION:8.10,0.00,-7.00;
3+
ROTATION:0.000000;
4+
Z-INDEX:0;
5+
DIMENSIONS:2.00,0.10,2.00;
6+
MODEL_PATH:assets/models/cube/cube.obj;
7+
TEXTURE_PATH:models/cube/cube_1.png;

0 commit comments

Comments
 (0)