Skip to content

Commit

Permalink
34 update various lib (#36)
Browse files Browse the repository at this point in the history
* Update submodule. Add GamecontrollerDB as submodule
  • Loading branch information
Tom1975 authored Dec 11, 2024
1 parent 597eec9 commit 6189b7c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
path = circle-stdlib
url = https://github.com/smuehlst/circle-stdlib
branch = master
[submodule "SDL_GameControllerDB"]
path = SDL_GameControllerDB
url = https://github.com/mdqinc/SDL_GameControllerDB
1 change: 1 addition & 0 deletions SDL_GameControllerDB
Submodule SDL_GameControllerDB added at 6aa2a7
3 changes: 2 additions & 1 deletion SugarPiWin32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ set(CpcCore_Files

set (RES
${CMAKE_CURRENT_SOURCE_DIR}/../res/labels.ini
${CMAKE_CURRENT_SOURCE_DIR}/../SDL_GameControllerDB/gamecontrollerdb.txt
)

add_definitions()
Expand Down Expand Up @@ -174,7 +175,7 @@ install (TARGETS SugarPiWin32 RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})

install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../CART DESTINATION ${CMAKE_INSTALL_PREFIX})
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../config_win32 DESTINATION ${CMAKE_INSTALL_PREFIX}/Config RENAME config)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../gamecontrollerdb.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/Config)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../SDL_GameControllerDB/gamecontrollerdb.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/Config)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../res/101_keyboard DESTINATION ${CMAKE_INSTALL_PREFIX}/Keyboards)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../res/101_keyboard_win DESTINATION ${CMAKE_INSTALL_PREFIX}/Keyboards)
install (FILES "${CMAKE_CURRENT_SOURCE_DIR}/../res/Facile_Sans.ttf" DESTINATION ${CMAKE_INSTALL_PREFIX}/FONTS)
Expand Down
2 changes: 1 addition & 1 deletion build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ echo "cart=SD:/CART/crtc3_projo.cpr" >> config
cp res/101_keyboard sdcard/Keyboards
cp config sdcard/Config
cp CART/* sdcard/CART
cp gamecontrollerdb.txt sdcard/Config/gamecontrollerdb.txt
cp SDL_GameControllerDB/gamecontrollerdb.txt sdcard/Config/gamecontrollerdb.txt
cp "res/Facile_Sans.ttf" "sdcard/FONTS/Facile_Sans.ttf"
cp "res/logo.bin" "sdcard/RES/logo.bin"
cp "res/Img464.bin" "sdcard/RES/Img464.bin"
Expand Down
4 changes: 4 additions & 0 deletions sysconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@
#define USB_GADGET_DEVICE_ID_SERIAL_CDC (USB_GADGET_DEVICE_ID_BASE+1)
#endif

#ifndef USB_GADGET_DEVICE_ID_MSD
#define USB_GADGET_DEVICE_ID_MSD (USB_GADGET_DEVICE_ID_BASE+2)
#endif

///////////////////////////////////////////////////////////////////////
//
// Other
Expand Down

0 comments on commit 6189b7c

Please sign in to comment.