[nostalgia] Switch tools to use Claw

This commit is contained in:
2020-06-15 01:40:21 -05:00
parent 9a49761c01
commit 978dd70770
5 changed files with 28 additions and 16 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ void Project::writeBuff(QString path, uint8_t *buff, size_t buffLen) const {
emit fileUpdated(path);
}
std::vector<uint8_t> Project::loadBuff(QString path) const {
std::vector<uint8_t> buff(stat(path).size);
std::vector<char> Project::loadBuff(QString path) const {
std::vector<char> buff(stat(path).size);
const auto csPath = path.toUtf8();
oxThrowError(m_fs.read(csPath.data(), buff.data(), buff.size()));
return buff;