Load data from a .sasset file.
226 {
228
229 bool isFind = false;
230 std::string filePath;
231 for (auto& it : ResourceSystem::GetSearchFolder())
232 {
235 {
236 isFind = true;
237 break;
238 }
239 }
240 if (!isFind) return false;
241
244
245 uint64_t read = 0;
246
247 char startSign[100];
249
251 {
253 return false;
254 }
255
256
257
258 char overSign[100];
260
262 {
264 return false;
265 }
266
268
269 return true;
270 }
#define SPICES_PROFILE_ZONE
static bool FileLibrary_Read(const FileHandle *handle, uint64_t data_size, void *out_data, uint64_t *out_bytes_read)
Read Specific size of data form the current file handle pointer, and move pointer the same size.
static bool FileLibrary_Open(const char *path, FileModes mode, bool binary, FileHandle *out_handle)
Open the file using given string.
static void FileLibrary_Close(FileHandle *handle)
Close the file by the file handle.
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.
static bool StringsEqual(const char *str0, const char *str1)
Determine if the strings given are equal. Platform Specific.
const std::string defaultBinMaterialPath
Const variable: Bin Material File Path.
constexpr char LoaderSignStart[100]
Const variable: Material File Confirm header start.
constexpr char LoaderSignOver[100]
Const variable: Material File Confirm header over.
@ FILE_MODE_READ
model : read