mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-23 06:10:22 +01:00
Let's see if we can see an actual file
This commit is contained in:
parent
a3f07d10b7
commit
191596bce5
@ -11,6 +11,12 @@ namespace irr
|
|||||||
namespace scene
|
namespace scene
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//! Remember to remove this function. It's very dumb.
|
||||||
|
void println(const char* data) {
|
||||||
|
printf(data, "\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Class methods.
|
// Class methods.
|
||||||
CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader()
|
CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader()
|
||||||
{
|
{
|
||||||
@ -25,6 +31,15 @@ bool CB3DJSONMeshFileLoader::isALoadableFileExtension(
|
|||||||
}
|
}
|
||||||
|
|
||||||
IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
||||||
|
println("I am loading your cool file, yay");
|
||||||
|
|
||||||
|
printf("the file is called: ");
|
||||||
|
println(file->getFileName().c_str());
|
||||||
|
|
||||||
|
// Less than zero? What is this file a black hole?
|
||||||
|
if (file->getSize() <= 0) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
//! I'm sure this isn't a horrible idea!
|
//! I'm sure this isn't a horrible idea!
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user