update engine data
This commit is contained in:
parent
7ed1d342c3
commit
f1add7af93
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,3 +16,5 @@ x64/
|
||||
src/engine/idk/phys/PhysicsSystemNoMT.cpp
|
||||
*.log
|
||||
src/testproj/
|
||||
src/engine/editor_data/
|
||||
src/engine/engine_data/
|
||||
|
||||
@ -172,10 +172,6 @@ namespace idk
|
||||
|
||||
instance = this;
|
||||
_resource_table = detail::ResourceHelper::GenResourceTables();
|
||||
|
||||
auto& fs = Core::GetSystem<FileSystem>();
|
||||
auto exe_dir = string{ fs.GetExeDir() };
|
||||
fs.Mount(exe_dir + "/engine_data", "/engine_data");
|
||||
}
|
||||
|
||||
void ResourceManager::LateInit()
|
||||
|
||||
@ -208,6 +208,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
std::transform(data_path.begin(), data_path.end(), derp.begin(), [](auto wch) {return static_cast<char>(wch); });
|
||||
data_dir = derp;
|
||||
}
|
||||
auto& filesys = Core::GetSystem<FileSystem>();
|
||||
filesys.Mount(string{ data_dir } + "/engine_data", "/engine_data", false);
|
||||
|
||||
Core::GetSystem<ProjectManager>().LoadProject(project_dir);
|
||||
|
||||
@ -246,7 +248,6 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
Core::GetResourceManager().RegisterLoader<GraphLoader>(shadergraph::Graph::ext);
|
||||
Core::GetResourceManager().RegisterFactory<GraphFactory>();
|
||||
|
||||
auto& filesys = Core::GetSystem<FileSystem>();
|
||||
filesys.Mount(string{ data_dir } +"/editor_data", "/editor_data", false);
|
||||
if (shadergraph::NodeTemplate::GetTable().empty())
|
||||
shadergraph::NodeTemplate::LoadTable("/editor_data/nodes");
|
||||
|
||||
@ -310,7 +310,7 @@ namespace idk::vkn
|
||||
{
|
||||
result.present_family = static_cast<uint32_t>(i);
|
||||
}
|
||||
if (family.queueFlags & vk::QueueFlagBits::eGraphics && family.queueCount>2)
|
||||
if (family.queueFlags & vk::QueueFlagBits::eGraphics)
|
||||
{
|
||||
result.graphics_family = static_cast<uint32_t>(i);
|
||||
}
|
||||
@ -406,7 +406,7 @@ namespace idk::vkn
|
||||
{
|
||||
QueueFamilyIndices indices = findQueueFamilies(pdevice);
|
||||
m_queue_family = indices;
|
||||
constexpr uint32_t num_queues = 2;//this be hack
|
||||
constexpr uint32_t num_queues = 1;//this be hack
|
||||
float queuePriority[num_queues] = {};
|
||||
int num = 1;
|
||||
for (auto& queuePri : queuePriority)
|
||||
|
||||
@ -46,7 +46,7 @@ target("game")
|
||||
|
||||
target("launcher")
|
||||
set_kind("binary")
|
||||
set_runargs("--project:$(curdir)/testproj/testproj.idk", "--engine:$(curdir)/engine")
|
||||
set_runargs("--project:$(projectdir)\\src\\testproj\\testproj.idk", "--engine:$(projectdir)\\src\\engine")
|
||||
add_deps("editor", "win32")
|
||||
add_syslinks("Xinput")
|
||||
add_defines([[TEST_DATA_PATH=R"($(ProjectDir)test_data)"]])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user