mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
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:
1 parent
11c91d356e
commit
4ae3c519e2
5 files changed
+29
-8
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user