From 859bf856b8ba77471622f1d6800861abded040a8 Mon Sep 17 00:00:00 2001 From: AltoXorg <56553686+Alto1772@users.noreply.github.com> Date: Mon, 1 May 2023 07:52:37 +0800 Subject: [PATCH] remove 100 character limit to baseRomPath (#2801) --- soh/soh/Extractor/Extract.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/soh/soh/Extractor/Extract.cpp b/soh/soh/Extractor/Extract.cpp index b8031f017..e0e5e74b3 100644 --- a/soh/soh/Extractor/Extract.cpp +++ b/soh/soh/Extractor/Extract.cpp @@ -429,13 +429,11 @@ extern "C" int zapd_main(int argc, char** argv); bool Extractor::CallZapd() { constexpr int argc = 16; char xmlPath[100]; - char baseromPath[100]; char confPath[100]; std::array argv; const char* version = GetZapdVerStr(); snprintf(xmlPath, 100, "assets/extractor/xmls/%s", version); - snprintf(baseromPath, 100, "%s", mCurrentRomPath.c_str()); snprintf(confPath, 100, "assets/extractor/Config_%s.xml", version); argv[0] = "ZAPD"; @@ -443,7 +441,7 @@ bool Extractor::CallZapd() { argv[2] = "-i"; argv[3] = xmlPath; argv[4] = "-b"; - argv[5] = baseromPath; + argv[5] = mCurrentRomPath.c_str(); argv[6] = "-fl"; argv[7] = "assets/extractor/filelists"; argv[8] = "-gsf";