mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-01-10 18:51:49 +00:00
16 lines
357 B
C++
16 lines
357 B
C++
#include "ImageLoaderCommon.h"
|
|
|
|
namespace image
|
|
{
|
|
std::optional<AssetCreationResult> CommonImageLoaderResult::GetResultIfCancelled() const
|
|
{
|
|
if (m_failure)
|
|
return AssetCreationResult::Failure();
|
|
|
|
if (!m_texture)
|
|
return AssetCreationResult::NoAction();
|
|
|
|
return std::nullopt;
|
|
}
|
|
} // namespace image
|