[keel] Change Nostalgia media and preload headers to Keel
This commit is contained in:
		@@ -95,8 +95,8 @@ ox::Error buildUuidMap(Context*) noexcept {
 | 
			
		||||
ox::Result<char*> loadRom(ox::CRStringView) noexcept {
 | 
			
		||||
	// put the header in the wrong order to prevent mistaking this code for the
 | 
			
		||||
	// media section
 | 
			
		||||
	constexpr auto headerP2 = "HEADER__________";
 | 
			
		||||
	constexpr auto headerP1 = "NOSTALGIA_MEDIA_";
 | 
			
		||||
	constexpr auto headerP2 = "R_______________";
 | 
			
		||||
	constexpr auto headerP1 = "KEEL_MEDIA_HEADE";
 | 
			
		||||
	constexpr auto headerP1Len = ox_strlen(headerP2);
 | 
			
		||||
	constexpr auto headerP2Len = ox_strlen(headerP1);
 | 
			
		||||
	constexpr auto headerLen = headerP1Len + headerP2Len;
 | 
			
		||||
 
 | 
			
		||||
@@ -213,8 +213,8 @@ static ox::Error padbin(ox::BufferWriter *w, unsigned factor) noexcept {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ox::Error appendBinary(ox::Buffer *binBuff, ox::Buffer *fsBuff, GbaPreloader *pl) noexcept {
 | 
			
		||||
	constexpr ox::StringView mediaHdr   = "NOSTALGIA_MEDIA_HEADER__________";
 | 
			
		||||
	constexpr ox::StringView preloadHdr = "NOSTALGIA_PRELOAD_HEADER________";
 | 
			
		||||
	constexpr ox::StringView mediaHdr   = "KEEL_MEDIA_HEADER_______________";
 | 
			
		||||
	constexpr ox::StringView preloadHdr = "KEEL_PRELOAD_HEADER_____________";
 | 
			
		||||
	constexpr auto hdrSize = 32u;
 | 
			
		||||
	static_assert(mediaHdr.bytes() == hdrSize);
 | 
			
		||||
	static_assert(preloadHdr.bytes() == hdrSize);
 | 
			
		||||
 
 | 
			
		||||
@@ -80,6 +80,6 @@ ox::Error appendBinary(ox::Buffer *binBuff, ox::Buffer *fsBuff, GbaPreloader *pl
 | 
			
		||||
 | 
			
		||||
ox::Error pack(keel::Context *ctx, ox::TypeStore *ts, ox::FileSystem *dest) noexcept;
 | 
			
		||||
 | 
			
		||||
ox::Error preload(ox::TypeStore *ts, ox::FileSystem *src, GbaPreloader *ph) noexcept;
 | 
			
		||||
ox::Error preload(ox::TypeStore *ts, ox::FileSystem *src, GbaPreloader *pl) noexcept;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user