From 8554faf1d7db52d88ccb6b6c20b54e3beeb4cd10 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 22 Nov 2023 20:54:59 -0300 Subject: [PATCH] AwardAnalyzer: Improve 4.00 string handling --- biostools/analyzers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/biostools/analyzers.py b/biostools/analyzers.py index aaef4ee..07c30b6 100644 --- a/biostools/analyzers.py +++ b/biostools/analyzers.py @@ -865,11 +865,11 @@ class AwardAnalyzer(Analyzer): self.string = util.read_string(file_data[id_block_index + 0xc71:id_block_index + 0xce0]) self.debug_print('Raw string:', repr(self.string)) - # Check if no string was inserted where it should - # have been. (Gateway/Swan Anigma Award v4.28/4.32) + # Check if this version is not too old to have a string. + # (ASUS v4.00, Gateway/Swan Anigma Award v4.28/4.32) if ' Award Software Inc. ' in self.string: - # Extrapolate a string with just the ID a bit further down. - self.string = '??/??/??-??????-' + util.read_string(file_data[id_block_index + 0xce0:id_block_index + 0xcf0]) + # Use the BIOS ID further down. + self.string = util.read_string(file_data[id_block_index + 0xce0:id_block_index + 0xcf0]) else: # bp/rom.by patches may include a new date in the "modul.tmp" # patch code. If one is present, apply it to the string.