Make some RGBLINK errors non-fatal

This commit is contained in:
ISSOtm
2020-04-06 00:45:22 +02:00
parent ffb199a26a
commit 82e0e4ffaf
8 changed files with 111 additions and 59 deletions

View File

@@ -14,6 +14,8 @@
#include <stdbool.h>
#include <stdio.h>
#include "helpers.h"
/* Variables related to CLI options */
extern bool isDmgMode;
extern char const *linkerScriptName;
@@ -32,6 +34,10 @@ extern bool isWRA0Mode;
fprintf(stderr, __VA_ARGS__); \
} while (0)
void error(char const *fmt, ...);
noreturn_ void fatal(char const *fmt, ...);
/**
* Opens a file if specified, and aborts on error.
* @param fileName The name of the file to open; if NULL, no file will be opened