GL- Removed commentet unnecessary code

This commit is contained in:
Sam Mario Svensson 2014-01-30 13:33:59 +01:00
parent f968adebeb
commit c78bbba3eb
1 changed files with 0 additions and 12 deletions

View File

@ -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;
} }