Commit graph

24 commits

Author SHA1 Message Date
Gleb Mazovetskiy
7e1fea6f76 clang-format all files in {Source,test}/
Also includes a few manual tweaks to comments and newlines for better results.

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-11-24 23:44:12 +01:00
qndel
8b0808bd4a fix error spam 2021-10-25 01:02:17 +02:00
Vladimir Olteanu
b853559573 Make CreateFileStream return optional, rather than unique_ptr 2021-09-13 11:40:06 +02:00
Anders Jenbo
0475aed939 [android] Allow FileExists to work on assets 2021-08-01 12:35:24 +02:00
ephphatha
08ae390643 Add explicit casts for some implicit conversions
Some of these were triggering multiple warnings due to casts applied at times which forced potentially truncating operations.
2021-07-05 08:52:05 -07:00
Trihedraf
38cf99a423 Add IsWriteable to file_util.cpp 2021-05-15 14:34:43 +02:00
Gleb Mazovetskiy
6a27b37d62 Windows: Handle Unicode paths in language.cpp 2021-05-10 12:35:37 +02:00
Gleb Mazovetskiy
a3423cbc92 🧹 Move Storm code out of file_util 2021-05-10 12:35:37 +02:00
obligaron
58becefada Define UNICODE/_UNICODE for StormLib and use SFileOpenArchive with wchar_t (TCHAR) on Windows 2021-05-10 08:34:12 +02:00
obligaron
2932da8950 CreateFileStream - Use ToWideChar on Windows 2021-05-10 08:34:12 +02:00
obligaron
60bfd5db34 Move SFileOpenArchive calls to new helper SFileOpenArchiveDiablo 2021-05-10 08:34:12 +02:00
obligaron
a64f94d580 Move creation of file stream to new helper CreateFileStream 2021-05-10 08:34:12 +02:00
obligaron
cfd72b68a0 Revert "remove windows specific code because stat works for this on windows"
This reverts commit 0987f8b479.
2021-05-10 08:34:12 +02:00
Trihedraf
0987f8b479 remove windows specific code because stat works for this on windows 2021-05-09 15:16:13 +02:00
Gleb Mazovetskiy
f8a2552ac8 RemoveFile: Use DeleteFileW on Windows 2021-05-09 15:15:38 +02:00
Gleb Mazovetskiy
46742824ad FileExists: Use PathFileExistsW on Windows 2021-05-09 15:15:38 +02:00
Gleb Mazovetskiy
adb5fa49da 🐞 Fix Windows UTF-8-to-16 conversion
Follow-up to #1905
2021-05-09 15:15:38 +02:00
Gleb Mazovetskiy
7ed08077f6 ♻️ file_util: Cleanup Windows UTF-8-to-16 conversion 2021-05-09 05:41:08 +02:00
Jmgr
1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo
cc164985a3 🎨 Correct type checks in src sub-folder 2021-04-22 20:33:24 +02:00
Anders Jenbo
2969b80163 🎨 Run readability-identifier-naming on all src sub-folders 2021-04-22 03:53:35 +02:00
Anders Jenbo
b978d80119 🎨 llvm-include-order 2021-04-19 20:11:20 +02:00
Anders Jenbo
bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Gleb Mazovetskiy
86afa95d2a Move file_util.h implementations to file_util.cpp
There is no reason for these functions to be in the header (inlining
won't benefit them one bit).

I put them in the header originally only because of the weird state
SourceS was in back then.
2021-04-17 03:49:24 +02:00