|
|
@@ -342,6 +342,7 @@ namespace physics_resource
|
|
|
const uint32_t file_size = file.size();
|
|
|
void* res = a.allocate(file_size);
|
|
|
file.read(res, file_size);
|
|
|
+ CE_ASSERT(*(uint32_t*)res == PHYSICS_VERSION, "Wrong version");
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
@@ -716,6 +717,7 @@ namespace physics_config_resource
|
|
|
const uint32_t file_size = file.size();
|
|
|
void* res = a.allocate(file_size);
|
|
|
file.read(res, file_size);
|
|
|
+ CE_ASSERT(*(uint32_t*)res == PHYSICS_CONFIG_VERSION, "Wrong version");
|
|
|
return res;
|
|
|
}
|
|
|
|