aboutsummaryrefslogtreecommitdiff
path: root/editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp')
-rw-r--r--editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp b/editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp
index b378eac067a9..571fabd78504 100644
--- a/editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp
+++ b/editors/imhex/files/patch-lib_external_pattern__language_lib_source_helpers_file.cpp
@@ -1,22 +1,22 @@
---- lib/external/pattern_language/lib/source/helpers/file.cpp.orig 2022-05-04 11:27:58 UTC
+--- lib/external/pattern_language/lib/source/helpers/file.cpp.orig 2022-07-05 14:00:57 UTC
+++ lib/external/pattern_language/lib/source/helpers/file.cpp
-@@ -7,12 +7,12 @@ namespace pl::fs {
-
- File::File(const std::fs::path &path, Mode mode) noexcept : m_path(path) {
- if (mode == File::Mode::Read)
-- this->m_file = fopen64(path.string().c_str(), "rb");
-+ this->m_file = fopen(path.string().c_str(), "rb");
- else if (mode == File::Mode::Write)
-- this->m_file = fopen64(path.string().c_str(), "r+b");
-+ this->m_file = fopen(path.string().c_str(), "r+b");
-
- if (mode == File::Mode::Create || (mode == File::Mode::Write && this->m_file == nullptr))
-- this->m_file = fopen64(path.string().c_str(), "w+b");
-+ this->m_file = fopen(path.string().c_str(), "w+b");
+@@ -20,12 +20,12 @@ namespace pl::fs {
+ this->m_file = _wfopen(path.c_str(), L"w+b");
+ #else
+ if (mode == File::Mode::Read)
+- this->m_file = fopen64(path.string().c_str(), "rb");
++ this->m_file = fopen(path.string().c_str(), "rb");
+ else if (mode == File::Mode::Write)
+- this->m_file = fopen64(path.string().c_str(), "r+b");
++ this->m_file = fopen(path.string().c_str(), "r+b");
+
+ if (mode == File::Mode::Create || (mode == File::Mode::Write && this->m_file == nullptr))
+- this->m_file = fopen64(path.string().c_str(), "w+b");
++ this->m_file = fopen(path.string().c_str(), "w+b");
+ #endif
}
- File::File() noexcept {
-@@ -39,7 +39,7 @@ namespace pl::fs {
+@@ -53,7 +53,7 @@ namespace pl::fs {
void File::seek(u64 offset) {
@@ -25,7 +25,7 @@
}
void File::close() {
-@@ -103,10 +103,10 @@ namespace pl::fs {
+@@ -138,10 +138,10 @@ namespace pl::fs {
size_t File::getSize() const {
if (!isValid()) return 0;
@@ -40,7 +40,7 @@
if (size < 0)
return 0;
-@@ -117,7 +117,7 @@ namespace pl::fs {
+@@ -152,7 +152,7 @@ namespace pl::fs {
void File::setSize(u64 size) {
if (!isValid()) return;