mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
migrate from std::filesystem::path to io::path (WIP)
This commit is contained in:
parent
1e22882284
commit
e0314803c0
72 changed files with 1189 additions and 791 deletions
11
src/io/path.cpp
Normal file
11
src/io/path.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "path.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
using namespace io;
|
||||
|
||||
void path::checkValid() const {
|
||||
if (colonPos == std::string::npos) {
|
||||
throw std::runtime_error("path entry point is not specified: " + str);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue