feat: add DumpOfferingIcons
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user