Avoid using fscanf to detect RGBDS object files

This function is made for text, e.g. accepts spaces, leading zeros, etc. before `%u`.
This way checks that the correct amount of bytes are read instead.
This commit is contained in:
ISSOtm
2022-07-19 18:31:14 +02:00
parent 18e4f132a8
commit ab9945c1ee
3 changed files with 8 additions and 14 deletions

View File

@@ -13,8 +13,7 @@
#include <stdbool.h>
#include <stdint.h>
#define RGBDS_OBJECT_VERSION_STRING "RGB%1u"
#define RGBDS_OBJECT_VERSION_NUMBER 9U
#define RGBDS_OBJECT_VERSION_STRING "RGB9"
#define RGBDS_OBJECT_REV 9U
enum AssertionType {