all repos — mgba @ fd7d05baeecfa62873785a4b4cda77cb7808d36a

mGBA Game Boy Advance Emulator

3DS: Add one-liner for uploading a CIA
Jeffrey Pfau jeffrey@endrift.com
Fri, 05 Aug 2016 22:40:35 -0700
commit

fd7d05baeecfa62873785a4b4cda77cb7808d36a

parent

6f1a3918b90ebc569d8a7a2f99b77b51ef328b8f

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/3ds/CMakeLists.txtsrc/platform/3ds/CMakeLists.txt

@@ -111,6 +111,9 @@

add_custom_target(run ${3DSLINK} ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.3dsx DEPENDS ${BINARY_NAME}.3dsx) +add_custom_target(install-cia stat -f '0 00000001 %016Xz' '${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.cia' | xxd -r | cat -- - '${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.cia' | nc $ENV{N3DS_IP} 5000 + DEPENDS ${BINARY_NAME}.cia) + if(BUILD_PERF) add_custom_target(${BINARY_NAME}-perf.3dsx ALL ${3DSXTOOL} ../${BINARY_NAME}-perf ${BINARY_NAME}-perf.3dsx --smdh=${BINARY_NAME}.smdh