mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-11-16 19:09:15 +01:00
ce406e9c5d
* Use file backup system for config files * Add -fexceptions to windows cxxflags in workflow
15 lines
614 B
C++
15 lines
614 B
C++
#ifndef __RECOMP_FILES_H__
|
|
#define __RECOMP_FILES_H__
|
|
|
|
#include <filesystem>
|
|
#include <fstream>
|
|
|
|
namespace recomp {
|
|
std::ifstream open_input_file_with_backup(const std::filesystem::path& filepath, std::ios_base::openmode mode = std::ios_base::in);
|
|
std::ifstream open_input_backup_file(const std::filesystem::path& filepath, std::ios_base::openmode mode = std::ios_base::in);
|
|
std::ofstream open_output_file_with_backup(const std::filesystem::path& filepath, std::ios_base::openmode mode = std::ios_base::out);
|
|
bool finalize_output_file_with_backup(const std::filesystem::path& filepath);
|
|
};
|
|
|
|
#endif
|