mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 18:56:00 +02:00
Fix FILE_ID.DIZ (and other) display issues when ANSI is stored with specific term width in SAUCE
+ Preserve SAUCE records of desc/long_desc during import (in meta) * Use SAUCE term width for ANSI Prep when displaying desc
This commit is contained in:
parent
046550842b
commit
6b02ddbdae
6 changed files with 59 additions and 22 deletions
|
@ -163,7 +163,7 @@ function parseCharacterSAUCE(sauce) {
|
|||
result.fileType = SAUCE_CHARACTER_FILE_TYPES[sauce.fileType] || 'Unknown';
|
||||
|
||||
if(sauce.fileType === 0 || sauce.fileType === 1 || sauce.fileType === 2) {
|
||||
// convience: create ansiFlags
|
||||
// convenience: create ansiFlags
|
||||
sauce.ansiFlags = sauce.flags;
|
||||
|
||||
let i = 0;
|
||||
|
@ -175,6 +175,16 @@ function parseCharacterSAUCE(sauce) {
|
|||
if(fontName.length > 0) {
|
||||
result.fontName = fontName;
|
||||
}
|
||||
|
||||
const setDimen = (v, field) => {
|
||||
const i = parseInt(v, 10);
|
||||
if(!isNaN(i)) {
|
||||
result[field] = i;
|
||||
}
|
||||
};
|
||||
|
||||
setDimen(sauce.tinfo1, 'characterWidth');
|
||||
setDimen(sauce.tinfo2, 'characterHeight');
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue