mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Convert grtext to use new logging facility
This commit is contained in:
parent
a16420789d
commit
e627dfc546
@ -12,6 +12,7 @@ target_link_libraries(grtext PRIVATE
|
||||
ddio
|
||||
mem
|
||||
misc
|
||||
plog::plog
|
||||
)
|
||||
target_include_directories(grtext PUBLIC
|
||||
$<BUILD_INTERFACE:
|
||||
|
@ -116,6 +116,7 @@
|
||||
#include "cfile.h"
|
||||
#include "ddio.h"
|
||||
#include "grtextlib.h"
|
||||
#include "log.h"
|
||||
#include "mem.h"
|
||||
#include "pserror.h"
|
||||
#include "renderer.h"
|
||||
@ -296,7 +297,7 @@ int grfont_Load(const char *fname) {
|
||||
if (!ff) {
|
||||
return false;
|
||||
} else if (ff == (FONTFILE)0xffffffff) {
|
||||
mprintf(0, "Illegal font file: %s.\n", fname);
|
||||
LOG_ERROR.printf("Illegal font file: %s.\n", fname);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -552,7 +553,7 @@ bool grfont_SetTemplate(const char *pathname, const tFontTemplate *ft) {
|
||||
if (!ffin) {
|
||||
return false;
|
||||
} else if (ffin == (FONTFILE)0xffffffff) {
|
||||
mprintf(0, "Illegal font file %s\n", pathname);
|
||||
LOG_ERROR.printf("Illegal font file %s\n", pathname);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user