this must be allowed to fail without throwing.
| 38 | |
| 39 | // this must be allowed to fail without throwing. |
| 40 | static std::vector<uint8_t> LoadDiskFile(const char* name) |
| 41 | { |
| 42 | std::vector<uint8_t> buffer; |
| 43 | FileSys::FileReader lump; |
| 44 | if (lump.OpenFile(name)) |
| 45 | { |
| 46 | buffer.resize(lump.GetLength()); |
| 47 | lump.Read(buffer.data(), buffer.size()); |
| 48 | } |
| 49 | return buffer; |
| 50 | } |
| 51 | |
| 52 | // This interface will later require some significant redesign. |
| 53 | std::vector<SingleFontData> LoadWidgetFontData(const std::string& name) |