--------------------------------- FileUtil::GetCompiledResource Retrieves data stored within the executable through resource compilation
| 61 | // Retrieves data stored within the executable through resource compilation |
| 62 | // |
| 63 | bool FileUtil::GetCompiledResource(std::string const& path, std::vector<uint8>& data) |
| 64 | { |
| 65 | //Glib::RefPtr<Glib::Bytes const> glibBytes = Gio::Resource::lookup_data_global(path, Gio::ResourceLookupFlags::RESOURCE_LOOKUP_FLAGS_NONE); |
| 66 | |
| 67 | //gsize dataSize = glibBytes->get_size(); |
| 68 | //if (dataSize == 0u) |
| 69 | //{ |
| 70 | // LOG("FileUtil::GetCompiledResource > data retrieved from resource '" + path + std::string("' has size 0!"), LogLevel::Warning); |
| 71 | // return false; |
| 72 | //} |
| 73 | |
| 74 | //uint8 const* dataArray = static_cast<uint8 const*>(glibBytes->get_data(dataSize)); |
| 75 | |
| 76 | //data.clear(); |
| 77 | //for (size_t i = 0; i < dataSize; ++i) |
| 78 | //{ |
| 79 | // data.emplace_back(dataArray[i]); |
| 80 | //} |
| 81 | |
| 82 | //return true; |
| 83 | |
| 84 | LOG("FileUtil::GetCompiledResource > Not implemented!", LogLevel::Warning); |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | //--------------------------------- |
| 89 | // FileUtil::ParseLine |
nothing calls this directly
no outgoing calls
no test coverage detected