From b16237417c0c40193d397d170913e252a37d460e Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Wed, 11 Sep 2024 13:07:29 +1000 Subject: [PATCH] fix(olv): Allow RPLs with null names CafeGLSL is an offender here --- src/patches/olv_urls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patches/olv_urls.cpp b/src/patches/olv_urls.cpp index a4e6198..862453d 100644 --- a/src/patches/olv_urls.cpp +++ b/src/patches/olv_urls.cpp @@ -57,7 +57,7 @@ void new_rpl_loaded(OSDynLoad_Module module, void* ctx, OSDynLoad_NotifyReason r // Loaded olv? if (reason != OS_DYNLOAD_NOTIFY_LOADED) return; - if (!path_is_olv(rpl->name)) return; + if (!rpl->name || !path_is_olv(rpl->name)) return; replace(rpl->dataAddr, rpl->dataSize, original_url, sizeof(original_url), new_url, sizeof(new_url)); }