mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 06:00:33 -04:00
no loading between levels, many improvements in code
This commit is contained in:
parent
77f1700902
commit
a8a87d514c
55 changed files with 628 additions and 763 deletions
|
@ -61,6 +61,14 @@ char check_file_exists(const char *pathname) {
|
|||
return std::filesystem::exists(path)?1:0;
|
||||
|
||||
}
|
||||
|
||||
const char *file_icase_find(const char *pathname) {
|
||||
static std::string p;
|
||||
std::filesystem::path path = try_to_find_file(convert_pathname_to_path(pathname));
|
||||
p = path;
|
||||
return p.c_str();
|
||||
}
|
||||
|
||||
FILE *fopen_icase(const char *pathname, const char *mode) {
|
||||
std::filesystem::path path = try_to_find_file(convert_pathname_to_path(pathname));
|
||||
return fopen(path.c_str(), mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue