mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Minor refactor
This commit is contained in:
parent
0d36f52bdd
commit
2ad115a2a8
9 changed files with 19 additions and 20 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
files::rafile::rafile(std::filesystem::path filename)
|
||||
files::rafile::rafile(fs::path filename)
|
||||
: file(filename, std::ios::binary | std::ios::ate) {
|
||||
if (!file) {
|
||||
throw std::runtime_error("could not to open file "+filename.string());
|
||||
|
|
@ -102,7 +102,7 @@ json::JObject* files::read_json(fs::path file) {
|
|||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> files::read_list(std::filesystem::path filename) {
|
||||
std::vector<std::string> files::read_list(fs::path filename) {
|
||||
std::ifstream file(filename);
|
||||
if (!file) {
|
||||
throw std::runtime_error("could not to open file "+filename.u8string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue