EDID Parser: Fix a warning and move the whole thing to utils/.
This commit is contained in:
@@ -48,7 +48,6 @@ add_executable(86Box
|
||||
nvr_at.c
|
||||
nvr_ps2.c
|
||||
machine_status.c
|
||||
edid_parse.cpp
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
|
||||
@@ -19,6 +19,7 @@ add_library(utils OBJECT
|
||||
cJSON.c
|
||||
crc.c
|
||||
crc32.c
|
||||
edid_parse.cpp
|
||||
fifo.c
|
||||
fifo8.c
|
||||
ini.c
|
||||
|
||||
@@ -29,7 +29,7 @@ extern "C"
|
||||
bool parse_edid_decode_file(const char* path, uint8_t* out, ssize_t* size_out)
|
||||
{
|
||||
std::regex regexLib("^([a-f0-9]{32}|[a-f0-9 ]{47})$", std::regex_constants::egrep);
|
||||
FILE* file;
|
||||
FILE* file = NULL;
|
||||
try {
|
||||
bool bom = ini_detect_bom(path);
|
||||
{
|
||||
Reference in New Issue
Block a user