| 81 | } |
| 82 | |
| 83 | BOOL Surface_Detect(string_path& F, LPSTR N) |
| 84 | { |
| 85 | for (u32 i = 0; i < formats.size(); i++) |
| 86 | { |
| 87 | FS.update_path(F, "$textures$", strconcat(sizeof(F), F, N, ".", formats[i])); |
| 88 | int h = _open(F, O_RDONLY | O_BINARY); |
| 89 | if (h > 0) |
| 90 | { |
| 91 | _close(h); |
| 92 | return TRUE; |
| 93 | } |
| 94 | } |
| 95 | return FALSE; |
| 96 | } |
| 97 | |
| 98 | FIBITMAP* Surface_Load(char* full_name) |
| 99 | { |
no test coverage detected