/* * mptFileIO.h * ----------- * Purpose: * Notes : You should only ever use these wrappers instead of plain std::fstream classes. * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #pragma once #include "openmpt/all/BuildSettings.hpp" #if defined(MPT_ENABLE_FILEIO) #include "mpt/io_file_read/inputfile_filecursor.hpp" #include "../common/mptPathString.h" #include "../common/FileReaderFwd.h" #include #endif // MPT_ENABLE_FILEIO OPENMPT_NAMESPACE_BEGIN #if defined(MPT_ENABLE_FILEIO) template inline FileCursor GetFileReader(Targ1 &&arg1) { return mpt::IO::make_FileCursor(std::forward(arg1)); } template inline FileCursor GetFileReader(Targ1 &&arg1, Targ2 &&arg2) { return mpt::IO::make_FileCursor(std::forward(arg1), std::forward(arg2)); } #endif // MPT_ENABLE_FILEIO OPENMPT_NAMESPACE_END