Fix bit rot in sample

Also, use the "uninitialized data" feature in the amper-fdraw
project.
This commit is contained in:
Andy McFadden 2021-11-14 09:18:12 -08:00
parent 4537f24958
commit 399a54efa7
3 changed files with 1237 additions and 235 deletions

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,11 @@ namespace ExtensionScriptSample {
AppDomain.CurrentDomain.Id + "): prepare()");
}
public void Unprepare() {
mAppRef = null;
mFileData = null;
}
public void UpdateSymbolList(List<PlSymbol> plSyms) {
// reset this every time, in case they remove the symbol
mInlineL1StringAddr = -1;

View File

@ -33,9 +33,15 @@ namespace ExtensionScriptSample {
AppDomain.CurrentDomain.Id + "): prepare()");
}
public void Unprepare() {
mAppRef = null;
mFileData = null;
}
public void UpdateSymbolList(List<PlSymbol> plSyms) {
mNullStringAddrs.Clear();
// Find matching symbols.
foreach (PlSymbol sym in plSyms) {
if (sym.Label.StartsWith(LABEL_PREFIX)) {
mNullStringAddrs.Add(sym.Value, sym);