Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
detect.cpp
Go to the documentation of this file.
1#include <haio_codec.hpp>
2
3namespace Haio::Codecs {
4
5/** a rom holds pattern data, and pattern data is what haio can draw */
6template <> struct DefaultColor<Format::ROM> { static constexpr Color value = Color::CHR_NES; };
7
8/**
9 * @addtogroup detect
10 * @{
11 */
12
13/** the ines header, which every nes rom on the internet starts with */
14template <>
16 return data.size() >= 16 && data[0] == 'N' && data[1] == 'E' && data[2] == 'S' && data[3] == 0x1A;
17}
18
19/** @} */
20
21}
bool Detect< Format::ROM, Color::CHR_NES >(Bytes data)
Definition detect.cpp:15
std::span< const uint8_t > Bytes