From 76bc54a41446aa7b52a62c329322874820696a27 Mon Sep 17 00:00:00 2001 From: George Talusan Date: Mon, 1 Aug 2022 00:12:41 -0400 Subject: [PATCH] use core.search_file when searching for amiibo resources --- client/luascripts/hf_mfu_amiibo_restore.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/luascripts/hf_mfu_amiibo_restore.lua b/client/luascripts/hf_mfu_amiibo_restore.lua index 5996b9fa6..b83f3feb1 100644 --- a/client/luascripts/hf_mfu_amiibo_restore.lua +++ b/client/luascripts/hf_mfu_amiibo_restore.lua @@ -133,7 +133,7 @@ local function main(args) print('generating new Amiibo binary for NTAG215 '..ansicolors.green..uid) core.clearCommandBuffer() - core.console(('script run amiibo_change_uid %s %s %s %sresources/key_retail.bin'):format(uid, tmp, tmp2, core.ewd())) + core.console(('script run amiibo_change_uid %s %s %s %s'):format(uid, tmp, tmp2, core.search_file('resources/key_retail', '.bin'))) -- let's sanity check the output hex, err = utils.ReadDumpFile(tmp2)