[Symbian Installation File] Adjust parsing so options are parsed first to have their name available when used as conditions.

This commit is contained in:
2023-10-08 15:28:19 +01:00
parent 7079073a77
commit be5c9b5814
4 changed files with 77 additions and 10 deletions

View File

@@ -132,9 +132,19 @@ public sealed partial class Symbian
uint offset = sh.files_ptr;
var conditionLevel = 0;
// Get only the options records
do
{
Parse(br, ref offset, ref currentFile, sh.files, languages, ref conditionLevel);
Parse(br, ref offset, ref currentFile, sh.files, languages, ref conditionLevel, true);
} while(currentFile < sh.files);
// Get all other records
offset = sh.files_ptr;
currentFile = 0;
conditionLevel = 0;
do
{
Parse(br, ref offset, ref currentFile, sh.files, languages, ref conditionLevel, false);
} while(currentFile < sh.files);
// Files appear on .sis in the reverse order they should be processed