summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2019-03-25 20:56:33 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2019-07-03 21:58:12 +0200
commit40f4d3cf0fea814e23de33db1f1f02ebe05292ab (patch)
tree4c83809ef1ec5ca5fc1ab800535615595c58996d /core/io
parent57b2b275b402d28ea903f5e85d2cb7a470e8200a (diff)
Add embedded PCK option to PC platforms
The basic point is as in 2.1 (appending the PCK into the executable), but this implementation also patches a dedicated section in the ELF/PE executable so that it matches the appended data perfectly. The usage of integer types is simplified in existing code; namely, using plain `int` for small quantities.
Diffstat (limited to 'core/io')
-rw-r--r--core/io/file_access_pack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp
index d38d09c6bb..ca66b34e17 100644
--- a/core/io/file_access_pack.cpp
+++ b/core/io/file_access_pack.cpp
@@ -144,7 +144,7 @@ bool PackedSourcePCK::try_open_pack(const String &p_path) {
uint32_t magic = f->get_32();
if (magic != 0x43504447) {
- //maybe at he end.... self contained exe
+ //maybe at the end.... self contained exe
f->seek_end();
f->seek(f->get_position() - 4);
magic = f->get_32();