|
Blender V2.27
|
This file handles the loading if .blend files. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <errno.h>#include <unistd.h>#include "BLO_readfile.h"#include "BLO_readblenfile.h"#include "BKE_blender.h"#include "BKE_report.h"#include "BLI_blenlib.h"Go to the source code of this file.
Defines | |
| #define | O_BINARY 0 |
Functions | |
| void | BLO_setversionnumber (char array[4], int version) |
| Set the version number into the array. | |
| void | BLO_setcurrentversionnumber (char array[4]) |
| static int | handle_read_msb_int (int handle) |
| int | blo_is_a_runtime (char *path) |
| BlendFileData * | blo_read_runtime (char *path, ReportList *reports) |
Variables | |
| const char * | headerMagic = "BLENDFI" |
This file handles the loading if .blend files.
Definition in file BLO_readblenfile.c.
| void BLO_setcurrentversionnumber | ( | char | array[4] | ) |
Sets version number using BLENDER_VERSION Function that calls the setversionnumber(char[],int) with the BLENDER_VERSION constant and sets the resultant array with the version parts. see BLO_setversionnumber(char[],int).
Definition at line 82 of file BLO_readblenfile.c.
References BLO_setversionnumber().
| void BLO_setversionnumber | ( | char | array[4], |
| int | version | ||
| ) |
Set the version number into the array.
version contains the integer number of the version i.e. 227 array[1] gets set to the div of the number by 100 i.e. 2 array[2] gets the remainder i.e. 27
Definition at line 67 of file BLO_readblenfile.c.
Referenced by BLO_setcurrentversionnumber().
| const char* headerMagic = "BLENDFI" |
Magic number for the file header
Definition at line 57 of file BLO_readblenfile.c.
1.7.3