mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Use relative to content file path to find strings file
To be used by esmtool when VFS is not used.
This commit is contained in:
parent
a60f657f5a
commit
67e96d48ba
@ -225,8 +225,9 @@ namespace ESM4
|
|||||||
sp.type = stringType;
|
sp.type = stringType;
|
||||||
|
|
||||||
// TODO: possibly check if the resource exists?
|
// TODO: possibly check if the resource exists?
|
||||||
Files::IStreamPtr filestream
|
Files::IStreamPtr filestream = mVFS
|
||||||
= mVFS ? mVFS->get(stringFile.string()) : Files::openConstrainedFileStream(stringFile);
|
? mVFS->get(stringFile.string())
|
||||||
|
: Files::openConstrainedFileStream(mCtx.filename.parent_path() / stringFile);
|
||||||
|
|
||||||
filestream->seekg(0, std::ios::end);
|
filestream->seekg(0, std::ios::end);
|
||||||
std::size_t fileSize = filestream->tellg();
|
std::size_t fileSize = filestream->tellg();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user