mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
Add option for GUI and CLI
This commit is contained in:
@@ -76,9 +76,10 @@ namespace AssetStudioCLI
|
||||
debugLog = "";
|
||||
var type = CLIOptions.o_imageFormat.Value;
|
||||
var alphaMask = SpriteMaskMode.On;
|
||||
var spriteWithCanvas = CLIOptions.f_spriteWithCanvas.Value;
|
||||
if (!TryExportFile(exportPath, item, "." + type.ToString().ToLower(), out var exportFullPath))
|
||||
return false;
|
||||
var image = ((Sprite)item.Asset).GetImage(alphaMask);
|
||||
var image = ((Sprite)item.Asset).GetImage(alphaMask, spriteWithCanvas: spriteWithCanvas);
|
||||
if (image != null)
|
||||
{
|
||||
using (image)
|
||||
|
||||
Reference in New Issue
Block a user