GL- Removed commentet unnecessary code
This commit is contained in:
parent
f968adebeb
commit
c78bbba3eb
|
@ -17,18 +17,6 @@ char* Loader::LoadFile(std::string fileName, int &size)
|
||||||
//convert from wstring to wchar then loads the file
|
//convert from wstring to wchar then loads the file
|
||||||
char* buffer = (char*)OysterResource::LoadResource(temp.c_str(), Oyster::Resource::ResourceType::ResourceType_Byte_Raw, -1 , false);
|
char* buffer = (char*)OysterResource::LoadResource(temp.c_str(), Oyster::Resource::ResourceType::ResourceType_Byte_Raw, -1 , false);
|
||||||
|
|
||||||
//std::ifstream f;
|
|
||||||
//f.open(fileName, std::ios::binary);
|
|
||||||
//if (!f.is_open())
|
|
||||||
// return 0;
|
|
||||||
//f.seekg(0, std::ifstream::end);
|
|
||||||
//size = f.tellg();
|
|
||||||
//f.seekg(0);
|
|
||||||
//char* buffer = new char[size];
|
|
||||||
//f.read(buffer, size);
|
|
||||||
//
|
|
||||||
//f.close();
|
|
||||||
//gets the size of the char buffer.
|
|
||||||
size = OysterResource::GetResourceSize(buffer);
|
size = OysterResource::GetResourceSize(buffer);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
Loading…
Reference in New Issue