mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
rename 'files' to 'io'
This commit is contained in:
parent
e5d558d357
commit
1e22882284
45 changed files with 157 additions and 160 deletions
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
#include "coders/commons.hpp"
|
||||
#include "coders/lua_parsing.hpp"
|
||||
#include "files/files.hpp"
|
||||
#include "io/io.hpp"
|
||||
#include "util/stringutil.hpp"
|
||||
|
||||
TEST(lua_parsing, Tokenizer) {
|
||||
auto filename = "../../res/scripts/stdlib.lua";
|
||||
auto source = files::read_string(std::filesystem::u8path(filename));
|
||||
auto source = io::read_string(std::filesystem::u8path(filename));
|
||||
try {
|
||||
auto tokens = lua::tokenize(filename, source);
|
||||
for (const auto& token : tokens) {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
#include "coders/vec3.hpp"
|
||||
#include "files/files.hpp"
|
||||
#include "io/io.hpp"
|
||||
|
||||
TEST(VEC3, Decode) {
|
||||
auto file = std::filesystem::u8path(
|
||||
"res/models/block.vec3"
|
||||
);
|
||||
auto bytes = files::read_bytes_buffer(file);
|
||||
auto bytes = io::read_bytes_buffer(file);
|
||||
auto model = vec3::load(file.u8string(), bytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue