@ -563,14 +563,14 @@ int comp(const Arguments& info)
ESMDatadataOne;
if(load(fileOne,&dataOne)!=0)
{
std::cout<<"Failed to load "<<info.filename<<", aborting comparison."<<std::endl;
std::cout<<"Failed to load "<<info.filename<<", aborting comparison."<<std::endl;//TODO(Project579): This will probably break in windows with unicode paths
return1;
}
ESMDatadataTwo;
if(load(fileTwo,&dataTwo)!=0)
{
std::cout<<"Failed to load "<<info.outname<<", aborting comparison."<<std::endl;
std::cout<<"Failed to load "<<info.outname<<", aborting comparison."<<std::endl;//TODO(Project579): This will probably break in windows with unicode paths
constautoglobalDataDir=QString(mGameSettings.getGlobalDataDir().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
QDiruserConfigDir=QDir(QString::fromStdString(mCfgMgr.getUserConfigPath().string()));//TODO(Project579): This will probably break in windows with unicode paths, in Qt 6 it's possible to convert directly from std::filesystem::path to QDir and that would solve the issue
QStringuserPath=QString::fromUtf8(mCfgMgr.getUserConfigPath().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
QStringlocalPath=QString::fromUtf8(mCfgMgr.getLocalPath().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
QStringuserPath=QString::fromUtf8(mCfgMgr.getUserConfigPath().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
QStringglobalPath=QString::fromUtf8(mCfgMgr.getGlobalPath().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
QStringuserPath=QString::fromUtf8(mCfgMgr.getUserConfigPath().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
QStringpath(QString::fromUtf8(mCfgMgr.getUserConfigPath().string().c_str()));//TODO(Project579): This will probably break in windows with unicode paths
unsortedFiles.emplace_back(reader.getName().filename().string(),dependencies);//TODO(Project579): This will probably break in windows with unicode paths
std::stringextension=filename.extension().string();//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
QStringextension=QString::fromStdString(mFileToLoad.extension().string()).toLower();//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
throwstd::runtime_error("Can not create project file: "+mProjectPath.string());
throwstd::runtime_error("Can not create project file: "+mProjectPath.string());//TODO(Project579): This will probably break in windows with unicode paths
contentFiles.push_back(iter->filename().string());//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
emitnextStage(document,path.filename().string(),steps);//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
}
elseif(iter->second.mFile==size)// start loading the last (project) file
QString::fromUtf8(("--data=\""+mProjectPath.parent_path().string()+"\"").c_str());//TODO(Project579): This will probably break in windows with unicode paths
<<QString::fromUtf8(("--content="+mProjectPath.filename().string()).c_str());//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
std::stringname=iter->filename().string();//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
mContentFileNames.insert(std::make_pair(path.filename().string(),mReader->getIndex()));//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
std::stringextension=Misc::StringUtils::lowerCase(path.extension().string());//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
setWindowTitle(QString::fromUtf8((std::string("Opening ")+document->getSavePath().filename().string()).c_str()));//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
stream<<mDocument->getSavePath().filename().string();//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
messageBox.setWindowTitle(QString::fromUtf8(document->getSavePath().filename().string().c_str()));//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
messageBox.setText("The document has been modified.");
messageBox.setInformativeText("Do you want to save your changes?");
mFiles->addItem(QString::fromUtf8(iter->filename().string().c_str()));//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
Log(Debug::Error)<<"Error: Failed to read "<<windowIcon<<": "<<result.message()<<" code "<<result.status();
Log(Debug::Error)<<"Error: Failed to read "<<windowIcon<<": "<<result.message()<<" code "<<result.status();//TODO(Project579): This will probably break in windows with unicode paths
it->begin()->mPath.parent_path().filename().string())))//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
SDL_GameControllerAddMappingsFromFile(controllerBindingsFile.string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
SDL_GameControllerAddMappingsFromFile(userControllerBindingsFile.string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
std::stringfileExt=Misc::StringUtils::lowerCase(path.extension().string());//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
const auto absolutePath= mVFS->getAbsoluteFileName(name); //TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
mTechniqueFileMap[absolutePath.stem().string()]=absolutePath;//TODO(Project579): This will probably break in windows with unicode paths
Log(Debug::Info)<<"Reloaded technique : "<<mTechniqueFileMap[technique->getName()].string();//TODO(Project579): This will probably break in windows with unicode paths
Log(Debug::Error)<<"Error: Failed to read "<<file<<", no png readerwriter found";
Log(Debug::Error)<<"Error: Failed to read "<<file<<", no png readerwriter found";//TODO(Project579): This will probably break in windows with unicode paths
Log(Debug::Error)<<"Error: Failed to read "<<file<<": "<<result.message()<<" code "<<result.status();
Log(Debug::Error)<<"Error: Failed to read "<<file<<": "<<result.message()<<" code "<<result.status();//TODO(Project579): This will probably break in windows with unicode paths
runtime.getContext().report("Exporting the entire scene graph will result in a large file. Confirm this action using 'showscenegraph 1' or select an object instead.");
slot->mPath.parent_path().filename().string());//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
character->getPath().filename().string());//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
throwstd::runtime_error("File "+reader->getName()+" asks for parent file "
throwstd::runtime_error("File "+reader->getName().string()+" asks for parent file "//TODO(Project579): This will probably break in windows with unicode paths
+reader->getGameFiles()[i].name
+", but it is not available or has been loaded in the wrong order. "
if(!mMasterFileFormat.has_value()&&(Misc::StringUtils::ciEndsWith(reader->getName().string(), ".esm")//TODO(Project579): This will probably break in windows with unicode paths
||Misc::StringUtils::ciEndsWith(reader->getName().string(), ".omwgame")))//TODO(Project579): This will probably break in windows with unicode paths
constautoit=mLoaders.find(Misc::StringUtils::lowerCase(filepath.extension().string()));//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
conststd::stringfilename=filepath.filename().string();//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
constFiles::MultiDirCollection&col=fileCollections.getCollection(filename.extension().string());//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
std::cout<<"dialogue_merging_test successful, results printed to "<<file<<std::endl;
std::cout<<"dialogue_merging_test successful, results printed to "<<file<<std::endl;//TODO(Project579): This will probably break in windows with unicode paths
}
// Note: here we don't test records that don't use string names (e.g. Land, Pathgrid, Cell)
std::cout<<"diagnostics_test successful, results printed to "<<file<<std::endl;
std::cout<<"diagnostics_test successful, results printed to "<<file<<std::endl;//TODO(Project579): This will probably break in windows with unicode paths
EXPECT_TRUE(mManager.getShader(templateName.string(), {},osg::Shader::VERTEX));//TODO(Project579): This will probably break in windows with unicode paths
constautoshader=mManager.getShader(templateName.string(), mDefines,osg::Shader::VERTEX);//TODO(Project579): This will probably break in windows with unicode paths
constautoshader=mManager.getShader(templateName2.string(), mDefines,osg::Shader::VERTEX);//TODO(Project579): This will probably break in windows with unicode paths
constautoshader=mManager.getShader(templateName.string(), mDefines,osg::Shader::VERTEX);//TODO(Project579): This will probably break in windows with unicode paths
constautoshader=mManager.getShader(templateName.string(), mDefines,osg::Shader::VERTEX);//TODO(Project579): This will probably break in windows with unicode paths
constautoshader=mManager.getShader(templateName.string(), mDefines,osg::Shader::VERTEX);//TODO(Project579): This will probably break in windows with unicode paths
EXPECT_FALSE(mManager.getShader(templateName.string(), mDefines,osg::Shader::VERTEX));//TODO(Project579): This will probably break in windows with unicode paths
EXPECT_FALSE(mManager.getShader(templateName.string(), mDefines,osg::Shader::VERTEX));//TODO(Project579): This will probably break in windows with unicode paths
constautoglobalDataDir=QString(gameSettings.getGlobalDataDir().string().c_str());//TODO(Project579): This will probably break in windows with unicode paths
strncpy_s(mShm->mStartup.mLogFilePath,sizeofmShm->mStartup.mLogFilePath,Misc::StringUtils::char8_to_char(str.c_str()),length);//TODO(Project579): This will probably break in windows with unicode paths
mShm->mStartup.mLogFilePath[length]='\0';
// note that we don't need to lock the SHM here, the other process has not started yet
db=std::make_unique<NavMeshDb>((userDataPath/"navmesh.db").string(),settings.mMaxDbFileSize);//TODO(Project579): This will probably break in windows with unicode paths
std::stringfnamecandidate=reader->getName().filename().string();//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
Log(Debug::Warning)<<"Warning: Encountered invalid water level in cell "<<mName<<" defined in "<<esm.getContext().filename;
Log(Debug::Warning)<<"Warning: Encountered invalid water level in cell "<<mName<<" defined in "<<esm.getContext().filename;//TODO(Project579): This will probably break in windows with unicode paths
conststd::stringextension=Misc::StringUtils::lowerCase(std::filesystem::path(file).extension().string());//TODO(Project579): let's hope unicode characters are never used in these extensions on windows or this will break
std::filesystem::pathgetPath(conststd::string&file)const;//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
///< Return full path (including filename) of \a file.
///
/// If the file does not exist in any of the collection's
/// directories, an exception is thrown. \a file must include the
/// extension.
booldoesExist(conststd::string&file)const;
booldoesExist(conststd::string&file)const;//TODO(Project579): let's hope unicode characters are never used in these filenames on windows or this will break
///< \return Does a file with the given name exist?
Log(Debug::Warning)<<"Trailing data in path setting. Used '"<<MaybeQuotedPath.string()<<"' but '"<<remainder<<"' remained";
Log(Debug::Warning)<<"Trailing data in path setting. Used '"<<MaybeQuotedPath.string()<<"' but '"<<remainder<<"' remained";//TODO(Project579): This will probably break in windows with unicode paths
throwstd::runtime_error("Error while reading \""+fileName+"\" to get hash: "+std::string(e.what()));
throwstd::runtime_error("Error while reading \""+fileName.string()+"\" to get hash: "+std::string(e.what()));//TODO(Project579): This will probably break in windows with unicode paths