mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Refactor import flags
This commit is contained in:
@@ -498,7 +498,8 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc)
|
||||
}
|
||||
}
|
||||
|
||||
ImageImportMeta meta = { { xOffset, yOffset }, Palette::OpenRCT2, ImportFlags::RLE, gSpriteMode };
|
||||
uint8_t importFlags = EnumToFlag(ImportFlags::RLE);
|
||||
ImageImportMeta meta = { { xOffset, yOffset }, Palette::OpenRCT2, importFlags, gSpriteMode };
|
||||
auto importResult = SpriteImageImport(imagePath, meta);
|
||||
if (!importResult.has_value())
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user