TextureAtlasEditor - Add error checking when getting color table

This commit is contained in:
miku-666
2024-07-03 12:45:29 +02:00
parent 926515c977
commit 91be60e10a

View File

@@ -105,7 +105,11 @@ namespace PckStudio.Forms.Editor
{
InitializeComponent();
AcquireColorTable(pckFile);
if (!AcquireColorTable(pckFile))
{
MessageBox.Show("Failed to acquire color information", "Acquire failure", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
return;
}
_atlasTexture = atlas;
_tileAreaSize = resourceLocation.GetTileArea(atlas.Size);