Skip to content

Commit fd17f34

Browse files
committed
Use proper enum arguments for FindFile
1 parent ba22107 commit fd17f34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

obse/obse/Commands_Inventory.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ static bool PathFunc_Execute(COMMAND_ARGS, UInt32 whichValue, EMode mode)
26352635
else
26362636
sFilePath = std::string("data\\meshes\\") + std::string(theString->m_data);
26372637

2638-
*result = (*g_FileFinder)->FindFile(sFilePath.c_str(), 0, 0, -1) ? 1 : 0;
2638+
*result = (*g_FileFinder)->FindFile(sFilePath.c_str(), 0, FileFinder::FindFile_ArchiveAndLooseFile, -1) ? 1 : 0;
26392639

26402640
break;
26412641
}
@@ -3678,7 +3678,7 @@ static bool IsBipedPathValid_Execute(COMMAND_ARGS, bool checkIcon)
36783678
else
36793679
sFilePath = std::string("data\\meshes\\") + std::string(filePath->m_data);
36803680

3681-
*result = (*g_FileFinder)->FindFile(sFilePath.c_str(), 0, 0, -1) ? 1 : 0;
3681+
*result = (*g_FileFinder)->FindFile(sFilePath.c_str(), 0, FileFinder::FindFile_ArchiveAndLooseFile, -1) ? 1 : 0;
36823682
}
36833683
}
36843684

@@ -3701,7 +3701,7 @@ static bool Cmd_FileExists_Execute(COMMAND_ARGS)
37013701
*result = 0;
37023702

37033703
if (ExtractArgs(PASS_EXTRACT_ARGS, &filePath))
3704-
*result = (*g_FileFinder)->FindFile(filePath, 0, 0, -1) ? 1 : 0;
3704+
*result = (*g_FileFinder)->FindFile(filePath, 0, FileFinder::FindFile_ArchiveAndLooseFile , -1) ? 1 : 0;
37053705

37063706
return true;
37073707
}

0 commit comments

Comments
 (0)