diff --git a/spine-glfw/CMakeLists.txt b/spine-glfw/CMakeLists.txt index ba7f35ae8..e0dcaa219 100644 --- a/spine-glfw/CMakeLists.txt +++ b/spine-glfw/CMakeLists.txt @@ -54,6 +54,7 @@ target_link_libraries(spine-glfw-example PRIVATE glfw) target_link_libraries(spine-glfw-example PRIVATE OpenGL::GL) target_link_libraries(spine-glfw-example LINK_PUBLIC spine-glfw) target_link_libraries(spine-glfw-example PRIVATE glbinding::glbinding) +set_property(TARGET spine-glfw-example PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/spine-glfw") # copy data to build directory add_custom_command(TARGET spine-glfw-example PRE_BUILD diff --git a/spine-glfw/example/main.cpp b/spine-glfw/example/main.cpp index 04fa778dc..8e2f387d9 100644 --- a/spine-glfw/example/main.cpp +++ b/spine-glfw/example/main.cpp @@ -35,8 +35,8 @@ int main() { spine_bone_set_is_y_down(true); // Load the atlas and the skeleton data - atlas_t *atlas = atlas_load("/Users/badlogic/workspaces/spine-runtimes/examples/spineboy/export/spineboy.atlas"); - spine_skeleton_data skeleton_data = skeleton_data_load("/Users/badlogic/workspaces/spine-runtimes/examples/spineboy/export/spineboy-pro.json", atlas); + atlas_t *atlas = atlas_load("data/spineboy-pma.atlas"); + spine_skeleton_data skeleton_data = skeleton_data_load("data/spineboy-pro.json", atlas); // Create a skeleton drawable from the data, set the skeleton's position to the bottom center of // the screen and scale it to make it smaller.