Selaa lähdekoodia

[glfw] Fix up asset paths.

Mario Zechner 1 vuosi sitten
vanhempi
commit
578084806d
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 0
      spine-glfw/CMakeLists.txt
  2. 2 2
      spine-glfw/example/main.cpp

+ 1 - 0
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

+ 2 - 2
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.