Squashed 'deps/nostalgia/' changes from 17f28d43..7233da75
7233da75 [ox/std] Remove dedicated keys array from SmallMap 30797c71 [ox/std] Add small sz option to SmallMap e8041121 [ox/std] Add missing oxExpect to timeMapStrToUuid d054528e [ox/std] Remove empty if from SmallMap 09d840cf [ox/std] Add some functions for comparing HashMap and SmallMap aeb1ef3b [ox/std] Cleanup SmallMap, make it easier to make potential changes b66f61c2 [ox/std] Add hash function for UUID b089bf46 [ox/std] Optimize Array compare cd60c4ab [ox/std] Fix bugs in HashMap and SmallMap d1845448 [ox/std] Add == and != operators to UUID c4f6ee00 [nostalgia,olympic] Make performPackTransforms update type id when needed git-subtree-dir: deps/nostalgia git-subtree-split: 7233da75eaaea055ed0486895fc85606db86d0f4
This commit is contained in:
		@@ -58,23 +58,25 @@ static class: public keel::Module {
 | 
			
		||||
		ox::Vector<keel::PackTransform> packTransforms() const noexcept final {
 | 
			
		||||
			return {
 | 
			
		||||
				// convert tilesheets to CompactTileSheets
 | 
			
		||||
				[](keel::Context &ctx, ox::Buffer &buff, ox::StringView typeId) -> ox::Error {
 | 
			
		||||
				[](keel::Context &ctx, ox::Buffer &buff, ox::StringView typeId) -> ox::Result<bool> {
 | 
			
		||||
					if (typeId == ox::ModelTypeId_v<TileSheetV1> ||
 | 
			
		||||
					    typeId == ox::ModelTypeId_v<TileSheetV2> ||
 | 
			
		||||
					    typeId == ox::ModelTypeId_v<TileSheetV3> ||
 | 
			
		||||
					    typeId == ox::ModelTypeId_v<TileSheetV4>) {
 | 
			
		||||
						return keel::convertBuffToBuff<CompactTileSheet>(
 | 
			
		||||
								ctx, buff, ox::ClawFormat::Metal).moveTo(buff);
 | 
			
		||||
						oxReturnError(keel::convertBuffToBuff<CompactTileSheet>(
 | 
			
		||||
								ctx, buff, ox::ClawFormat::Metal).moveTo(buff));
 | 
			
		||||
						return true;
 | 
			
		||||
					}
 | 
			
		||||
					return {};
 | 
			
		||||
					return false;
 | 
			
		||||
				},
 | 
			
		||||
				[](keel::Context &ctx, ox::Buffer &buff, ox::StringView typeId) -> ox::Error {
 | 
			
		||||
				[](keel::Context &ctx, ox::Buffer &buff, ox::StringView typeId) -> ox::Result<bool> {
 | 
			
		||||
					if (typeId == ox::ModelTypeId_v<NostalgiaPalette> ||
 | 
			
		||||
					    typeId == ox::ModelTypeId_v<PaletteV1>) {
 | 
			
		||||
						return keel::convertBuffToBuff<Palette>(
 | 
			
		||||
								ctx, buff, ox::ClawFormat::Metal).moveTo(buff);
 | 
			
		||||
						oxReturnError(keel::convertBuffToBuff<Palette>(
 | 
			
		||||
								ctx, buff, ox::ClawFormat::Metal).moveTo(buff));
 | 
			
		||||
						return true;
 | 
			
		||||
					}
 | 
			
		||||
					return {};
 | 
			
		||||
					return false;
 | 
			
		||||
				},
 | 
			
		||||
			};
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user