Increase page length for ANSI, and minor updates

This commit is contained in:
Deon George
2019-01-02 20:56:03 +11:00
parent 390f52a460
commit f2e6a250cc
8 changed files with 51 additions and 38 deletions

View File

@@ -76,16 +76,21 @@ class FrameImport extends Command
$o->frame = $this->argument('frame');
$o->index = $this->argument('index');
$o->mode_id = $mo->id;
$o->access = $this->option('access');
$o->public = $this->option('public');
$o->cost = $this->option('cost');
$o->type = $this->option('type');
}
// We need to escape any back slashes.
$o->content = str_replace('\\','\\\\',($this->option('trim'))
? substr(file_get_contents($this->argument('file')),40)
: file_get_contents($this->argument('file')));
$o->access = $this->option('access');
$o->public = $this->option('public');
$o->cost = $this->option('cost');
$o->type = $this->option('type');
// If we have 0x1aSAUCE, we'll discard the sauce.
if ($x = strpos($o->content,chr(0x1a).'SAUCE')) {
$o->content = substr($o->content,0,$x-1).chr(0x0a);
}
$o->save();
}