EDID Parser: Fix a warning and move the whole thing to utils/.

This commit is contained in:
OBattler
2025-09-01 13:11:30 +02:00
parent e130f65f9c
commit 3d7ffdcde0
3 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,6 @@ add_executable(86Box
nvr_at.c nvr_at.c
nvr_ps2.c nvr_ps2.c
machine_status.c machine_status.c
edid_parse.cpp
) )
if(CMAKE_SYSTEM_NAME MATCHES "Linux") if(CMAKE_SYSTEM_NAME MATCHES "Linux")

View File

@@ -19,6 +19,7 @@ add_library(utils OBJECT
cJSON.c cJSON.c
crc.c crc.c
crc32.c crc32.c
edid_parse.cpp
fifo.c fifo.c
fifo8.c fifo8.c
ini.c ini.c

View File

@@ -29,7 +29,7 @@ extern "C"
bool parse_edid_decode_file(const char* path, uint8_t* out, ssize_t* size_out) 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); std::regex regexLib("^([a-f0-9]{32}|[a-f0-9 ]{47})$", std::regex_constants::egrep);
FILE* file; FILE* file = NULL;
try { try {
bool bom = ini_detect_bom(path); bool bom = ini_detect_bom(path);
{ {