bool sgFileManager::GetFileHeader(const char* file_name, SG_FILE_HEADER& file_header)
Returns the file header structure (read more how to save the scene here).
file_name - full path to a file the scene will be saved to
file_header - returned file header structure.
This structure has the following description
unsigned long userBlockSize;
signature - standard file signature (defined through SG_FILE_SIGNATURE)
major_ver - major kernel version the file was created by (more about the version - sgGetVerson)
minor_ver - minor kernel version the file was created by (more about the version - sgGetVerson)
userBlockSize - size of user-defined block of data which is saved right after the header in the file. You can get the user-defined block of data itself using the GetUserData function.
Returns true if the specified file is a file with sgCore objects, otherwise false