From b94994d9f9bad027da13e65d5485aad67b6b86ae Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 18 Jun 2026 18:16:47 -0300 Subject: [PATCH] feat: add DumpOfferingIcons --- src/dumper/dumper.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/dumper/dumper.cs b/src/dumper/dumper.cs index ee84c6a..b154b6b 100644 --- a/src/dumper/dumper.cs +++ b/src/dumper/dumper.cs @@ -301,6 +301,22 @@ class Dumper WriteJson("offerings", _offeringMap.Values); _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 */