From df7edc16a32056d04e1ab38e589cfd6338c69a89 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 10 Jan 2018 22:18:00 +0000
Subject: [PATCH] Re-ordered the property creation to put the more important
 fields first (e.g. when JSON.stringifying). Removed obj.fontname. We don't
 use it and it's just a copy of tinfos.

---
 exec/load/sauce_lib.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/exec/load/sauce_lib.js b/exec/load/sauce_lib.js
index 37dc269144..b01115d8f1 100644
--- a/exec/load/sauce_lib.js
+++ b/exec/load/sauce_lib.js
@@ -67,7 +67,7 @@ function read(fname)
 	if(file.read(defs.id_length + defs.version_length) != 'SAUCE00')
 		return false;
 
-	var obj = { comment:[], cols:0, rows:0, ice_color:false };
+	var obj = {};
 	obj.title = truncsp(file.read(35));
 	obj.author = truncsp(file.read(20));
 	obj.group = truncsp(file.read(20));
@@ -82,6 +82,12 @@ function read(fname)
 	var comments = file.readBin(1);
 	obj.tflags = file.readBin(1);
 	obj.tinfos = truncsp(file.read(22));
+	obj.comment = [];
+
+	// Convenience fields
+	obj.cols =  0;
+	obj.rows = 0
+	obj.ice_color = false;
 
 	// Do some convenience field parsing/conversions here
 	obj.date = new Date(obj.date.substr(0, 4), parseInt(obj.date.substr(4,2))-1, obj.date.substr(6,2));
@@ -97,7 +103,6 @@ function read(fname)
 			obj.cols = obj.tinfo1;
 			obj.rows = obj.tinfo2;
 		}
-		obj.fontname = obj.tinfos;
 	}
 
 	// Read the Comment Block here
-- 
GitLab