Azamat H. Hackimov
f44f6a4bbd
CFILE: change signature of cf_FindRealFileNameCaseInsenstive()
...
Moved directory parameter to 3rd position and make it optional.
2024-07-05 01:50:57 +03:00
Azamat H. Hackimov
15ec76dd64
CFILE: Change cf_FindRealFileNameCaseInsenstive() to use std::fs::path
2024-07-05 01:50:57 +03:00
Azamat H. Hackimov
81555afd15
CFILE: convert cf_Diff() to use std::fs::path
...
Convert cf_Diff() and underlying functions to use std::filesystem::path
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
c47210be75
CFILE: convert cf_CopyFile() cf_CopyFileTime() to use std::fs::path
...
Convert cf_CopyFile() cf_CopyFileTime() and underlying functions to use std::filesystem::path
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
8d14ae025c
CFILE: migrate more functions to use std::fs::path
...
Convert cf_IsFileInHog(), cf_OpenFileInLibrary() and cf_GetfileCRC() functions to use std::fs::path.
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
0ea758084f
CFILE: refactor internal paths and extensions
...
Refactor paths and extensions to use std::map. Rewriting related code in manage.cpp.
2024-07-01 12:50:48 +03:00
Azamat H. Hackimov
82084e9176
Convert some of cfile functions to use std::filesystem
...
Make cfopen(), open_file_in_directory() and cfexist() use std::filesystem::path arguments.
2024-07-01 12:50:48 +03:00
GravisZro
f7ae658fe2
Modernize struct/enum/unions type declarations
2024-05-30 03:35:17 -04:00
GravisZro
5e5e0c99c3
Replace "short" with "int16_t" and fix missing headers
2024-05-23 23:49:31 -04:00
GravisZro
26b7776f43
Replace "ubyte" with "uint8_t"
2024-05-23 23:07:26 -04:00
GravisZro
2147cfa68b
Replace "unsigned int" with "uint32_t"
2024-05-23 22:51:16 -04:00
Azamat H. Hackimov
6703b25d34
Minor fixes to cfile
2024-05-16 18:21:30 +03:00
Phil Ashby
24e9b50779
Do not attempt case-sensitive processing on Windows
2024-05-06 19:08:31 +01:00
Phil Ashby
b5ba5f2a91
Support case-insensitive loading of HOG files
2024-05-06 17:52:45 +01:00
Ryan C. Gordon
6c8977caf0
Heavy patching for compiler warnings.
...
The vast majority of this is fixing up `char *` that should be `const char *`
but a handful of other fixes, like potential buffer overflows that GCC
noticed, etc, were applied as well.
This removes `-Wno-write-strings` from CMakeLists.txt, as it is no longer
necessary, as there is no longer a flood of compiler warning spam when
building.
This does not fix all compiler warnings; there are still a handful, and they
are legitimate, but they can be dealt with in a future commit.
2024-04-29 00:18:56 -04:00
Azamat H. Hackimov
63b4284658
Fix float reading in cfile
...
Whoah, big surprise float_t and double_t may have different length. Still waiting float32_t and float64_t types from C++23...
2024-04-24 00:40:41 +03:00
Azamat H. Hackimov
c275d359c7
Reapply "Cfile module update"
...
This reverts commit 066b436fd9
.
2024-04-24 00:40:39 +03:00
Edu Garcia
066b436fd9
Revert "Cfile module update"
2024-04-19 13:57:55 +01:00
Azamat H. Hackimov
7dd6dab98b
Rename names of enums
...
Some of them interferer with WinAPI.
2024-04-19 00:17:15 +03:00
Azamat H. Hackimov
7bfea728b8
Minor fixes to cfile code
...
Formatting, fixes minor warnings.
2024-04-19 00:17:15 +03:00
Azamat H. Hackimov
9b45091633
Rename/move cfile related files
...
Rename to lowercase and move headers to own directory.
2024-04-19 00:17:15 +03:00