Add assorted null checks for safety

More probably needed. Should at least hopefully fix the leaderboard crash reported in #17631

Will try to do something more systematic later.
This commit is contained in:
Henrik Rydgård committed 2023-07-10 19:27:07 +02:00
1 parent 11c91d356e
commit 4ae3c519e2
5 files changed
+29 -8

No files matched your search

+4
View File
@@ -18,6 +18,10 @@
#include "Common/Net/HTTPClient.h"
#include "Core/Config.h"
static inline const char *DeNull(const char *ptr) {
return ptr ? ptr : "";
}
static const float g_atlasIconSize = 36.0f;
static const float extraTextScale = 0.7f;