chore: 增加一些加载时的日志打印

This commit is contained in:
MistEO
2023-01-13 15:16:18 +08:00
parent 821c822950
commit ec86c9c99b
4 changed files with 14 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ bool inited()
AsstBool AsstSetUserDir(const char* path)
{
auto os_path = asst::utils::path(path);
auto os_path = std::filesystem::absolute(asst::utils::path(path));
return asst::UserDir.set(os_path);
}
@@ -54,7 +54,7 @@ AsstBool AsstLoadResource(const char* path)
{
using namespace asst::utils::path_literals;
auto os_path = asst::utils::path(path);
auto os_path = std::filesystem::absolute(asst::utils::path(path));
auto res_path = os_path / "resource"_p;
if (asst::ResDir.empty()) {
asst::ResDir.set(res_path);