And reordered all the source files in the projects according to name sort. And removed all the deleted files, including some which were forgotten in previous updates, but left as 0 byte files. Finally, updated the project to use C23 / C++23 language standards. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
50 lines
1,007 B
C++
50 lines
1,007 B
C++
/*
|
|
* 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 <utility>
|
|
|
|
#endif // MPT_ENABLE_FILEIO
|
|
|
|
|
|
OPENMPT_NAMESPACE_BEGIN
|
|
|
|
|
|
#if defined(MPT_ENABLE_FILEIO)
|
|
|
|
|
|
template <typename Targ1>
|
|
inline FileCursor GetFileReader(Targ1 &&arg1)
|
|
{
|
|
return mpt::IO::make_FileCursor<mpt::PathString>(std::forward<Targ1>(arg1));
|
|
}
|
|
|
|
|
|
template <typename Targ1, typename Targ2>
|
|
inline FileCursor GetFileReader(Targ1 &&arg1, Targ2 &&arg2)
|
|
{
|
|
return mpt::IO::make_FileCursor<mpt::PathString>(std::forward<Targ1>(arg1), std::forward<Targ2>(arg2));
|
|
}
|
|
|
|
|
|
#endif // MPT_ENABLE_FILEIO
|
|
|
|
|
|
OPENMPT_NAMESPACE_END
|
|
|