Skip to content

Commit 36f4c08

Browse files
committed
Increase compatibility with multilanguage filenames in ARCs
1 parent 86f56aa commit 36f4c08

File tree

2 files changed

+45
-22
lines changed

2 files changed

+45
-22
lines changed

EPFExplorer/src/FileTypes/arcfile.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ public void ExportAll()
224224
public void SetArchivedFileName(int targetFileIndex, string s_for_filename)
225225
{
226226

227+
//foreach (string lang in form1.langs) {
228+
// string firstTwo = "_"+lang.Substring(0, 2).ToLower();
229+
// if (s_for_filename.ToLower().Contains(firstTwo)) {
230+
// form1.masterListOfSuccessfulMultilangSuffixNames += "\"" + s_for_filename + "\"";
231+
// }
232+
// }
233+
227234
if (targetFileIndex < filecount)
228235
{
229236
if (archivedfiles[targetFileIndex].filename != "FILENAME_NOT_SET")
@@ -243,8 +250,6 @@ public void SetArchivedFileName(int targetFileIndex, string s_for_filename)
243250

244251
public void TryToFindFilename(string s)
245252
{
246-
247-
248253
foundMatch = false;
249254

250255
s = s.Replace("/scripts/", "/chunks/");
@@ -478,6 +483,8 @@ public void ReadArc()
478483
}
479484
}
480485

486+
//Console.WriteLine(form1.masterListOfSuccessfulMultilangSuffixNames);
487+
481488
//if tuxedoDL exists in this arc, read some lua filenames out of it
482489
archivedfile tuxedoDL = GetFileByName("/chunks/tuxedoDL.luc");
483490

EPFExplorer/src/Forms/Form1.cs

Lines changed: 36 additions & 20 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)