From 50c546cfb9a4aea5a26ed1ecb18e78d5b01ba6dd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 16 Feb 2015 01:40:31 +0100 Subject: [PATCH] Add hack in patch_content to guard against in correct 'detection' (for want of a better word) of patch file that doesn't even exist on the filesystem - this stuff really needs to be rewritten, this is just a plain mess --- content.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content.c b/content.c index a5c61ca8e5..2aeca6d22a 100644 --- a/content.c +++ b/content.c @@ -104,6 +104,9 @@ static void patch_content(uint8_t **buf, ssize_t *size) return; } + if (!path_file_exists(patch_path)) + return; + RARCH_LOG("Found %s file in \"%s\", attempting to patch ...\n", patch_desc, patch_path);