Skip to content

Commit

Permalink
fix(olv): Allow RPLs with null names
Browse files Browse the repository at this point in the history
CafeGLSL is an offender here
  • Loading branch information
ashquarky committed Sep 11, 2024
1 parent aedd02b commit b162374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patches/olv_urls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit b162374

Please sign in to comment.