Skip to content
Snippets Groups Projects
Commit 9036f24e authored by Lava Block's avatar Lava Block
Browse files

rename

parent 8c09bfa5
Branches
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ namespace lava {
return PHYSFS_getPrefDir(instance().org, instance().app);
}
string file_system::get_res_dir() {
string file_system::get_res_dir_str() {
string res_dir = get_base_dir();
res_dir += instance().res_path;
string_ref const_res_dir = res_dir;
......@@ -100,13 +100,13 @@ namespace lava {
res_path = "res/";
#endif
if (fs::exists(str(get_res_dir())))
if (fs::exists(str(get_res_dir_str())))
if (file_system::mount(str(res_path)))
log()->debug("mount {}", str(get_res_dir()));
log()->debug("mount {}", str(get_res_dir_str()));
auto cwd_res_dir = fs::current_path().append("res/").lexically_normal().string();
if (fs::exists(cwd_res_dir) && (cwd_res_dir != get_res_dir()))
if (fs::exists(cwd_res_dir) && (cwd_res_dir != get_res_dir_str()))
if (file_system::mount(cwd_res_dir))
log()->debug("mount {}", str(cwd_res_dir));
......
......@@ -24,7 +24,7 @@ namespace lava {
static name get_base_dir();
static string get_base_dir_str();
static name get_pref_dir();
static string get_res_dir();
static string get_res_dir_str();
static bool mount(string_ref path);
static bool mount(name base_dir_path);
......
......@@ -173,7 +173,7 @@ lava::mesh::ptr lava::load_mesh(device_ptr device, name filename) {
return nullptr;
}
lava::mesh::ptr lava::load_mesh(device_ptr device, mesh_type type) {
lava::mesh::ptr lava::create_mesh(device_ptr device, mesh_type type) {
switch (type) {
case mesh_type::cube: {
auto cube = make_mesh();
......
......@@ -128,7 +128,7 @@ namespace lava {
quad
};
mesh::ptr load_mesh(device_ptr device, mesh_type type);
mesh::ptr create_mesh(device_ptr device, mesh_type type);
struct mesh_meta {
string filename; // empty -> type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment