feat: add DumpOfferingIcons

This commit is contained in:
2026-06-18 18:16:47 -03:00
parent 9ca0956aae
commit b94994d9f9
+16
View File
@@ -301,6 +301,22 @@ class Dumper
WriteJson("offerings", _offeringMap.Values); WriteJson("offerings", _offeringMap.Values);
_log.Info("Dumped {0} offerings", _offeringMap.Count); _log.Info("Dumped {0} offerings", _offeringMap.Count);
} }
public void DumpOfferingIcons()
{
if (_provider == null)
throw new InvalidOperationException("Attempted to call dump function without dumper initialization/state");
_log.Info("Dumping offering icons");
foreach (OfferingInfo info in _offeringMap.Values)
ExportIcon(info.iconFilePath, "/offering-icons/");
_log.Info("Dumped all offering icons");
return;
}
/* /*
* internal helper functions * internal helper functions
*/ */