Change some references to "data" to the new "game" directory
This isn't comprehensive, but will get some things to work.
This commit is contained in:
parent
2f7cc31cc1
commit
cbf1246e2f
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
#include "path.hpp"
|
#include "path.hpp"
|
||||||
|
|
||||||
void app_main(prism::engine*) {
|
void app_main(prism::engine*) {
|
||||||
prism::set_domain_path(prism::domain::app, "{resource_dir}/data");
|
prism::set_domain_path(prism::domain::app, "{resource_dir}/game");
|
||||||
prism::set_domain_path(prism::domain::internal, "{resource_dir}/shaders");
|
prism::set_domain_path(prism::domain::internal, "{resource_dir}/shaders");
|
||||||
|
|
||||||
platform::open_window("Example", {-1, -1, 1280, 720}, WindowFlags::Resizable);
|
platform::open_window("Example", {-1, -1, 1280, 720}, WindowFlags::Resizable);
|
||||||
|
|
|
@ -60,13 +60,13 @@ function(add_platform_commands target data_directory skip_data)
|
||||||
if(NOT skip_data)
|
if(NOT skip_data)
|
||||||
if(ENABLE_MACOS)
|
if(ENABLE_MACOS)
|
||||||
add_custom_target(${target}_copy_assets
|
add_custom_target(${target}_copy_assets
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${data_directory} $<TARGET_FILE_DIR:${target}>/../Resources/data
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${data_directory} $<TARGET_FILE_DIR:${target}>/../Resources/game
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/data)
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/game)
|
||||||
|
|
||||||
add_custom_target(${target}_copy_assets
|
add_custom_target(${target}_copy_assets
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${data_directory} ${CMAKE_BINARY_DIR}/bin/data
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${data_directory} ${CMAKE_BINARY_DIR}/bin/game
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
add_dependencies(${target} ${target}_copy_assets)
|
add_dependencies(${target} ${target}_copy_assets)
|
||||||
|
|
|
@ -43,7 +43,7 @@ const std::map<ImGuiKey, InputButton> imToPl = {
|
||||||
};
|
};
|
||||||
|
|
||||||
CommonEditor::CommonEditor(const std::string_view id) : id(id) {
|
CommonEditor::CommonEditor(const std::string_view id) : id(id) {
|
||||||
prism::set_domain_path(prism::domain::app, "{resource_dir}/data");
|
prism::set_domain_path(prism::domain::app, "{resource_dir}/game");
|
||||||
prism::set_domain_path(prism::domain::internal, "{resource_dir}/shaders");
|
prism::set_domain_path(prism::domain::internal, "{resource_dir}/shaders");
|
||||||
|
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
|
|
Reference in a new issue