Add support for loading charset and remove dirt.{h,s}

This commit is contained in:
2017-04-14 04:08:13 -05:00
parent 552838c323
commit 63f7daa810
9 changed files with 51 additions and 223 deletions

View File

@@ -59,6 +59,7 @@ int pointToIdx(int w, int x, int y) {
int run(ClArgs args) {
Error err = 0;
int argInode = args.getInt("inode");
QString argInPath = args.getString("img").c_str();
QString argFsPath = args.getString("fs").c_str();
auto argCompact = args.getBool("c");
@@ -100,7 +101,7 @@ int run(ClArgs args) {
if (fs) {
fs = expandCopyCleanup(fs, fs->size() + fs->spaceNeeded(imgDataBuffSize));
fsBuff = fs->buff(); // update fsBuff pointer in case there is a new buff
err |= fs->write(1, imgDataBuff, imgDataBuffSize);
err |= fs->write(argInode, imgDataBuff, imgDataBuffSize);
if (argCompact) {
fs->resize();