Skip to content

Commit

Permalink
Port to DUH
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Feb 6, 2021
1 parent f698f9d commit d525032
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 281 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
uses: actions/checkout@v2
with:
path: main
submodules: true

# Check out the 32Blit API we build against
- name: Checkout 32Blit API
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "DUH"]
path = DUH
url = https://github.com/Daft-Freak/DUH
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ project(mjpeg-player)
set(32BLIT_PATH "../" CACHE PATH "Path to 32blit.cmake")
set(PROJECT_SOURCE
avi-file.cpp
control-icons.cpp
file-browser.cpp
mjpeg-player.cpp
)

Expand All @@ -24,7 +22,11 @@ if(NOT EXISTS ${32BLIT_PATH}/32blit.cmake)
message(FATAL_ERROR "Define location of 32Blit API with -D32BLIT_PATH=<path to 32blit.cmake>")
endif()
include (${32BLIT_PATH}/32blit.cmake)
add_subdirectory(DUH)

blit_executable (${PROJECT_NAME} ${PROJECT_SOURCE})
blit_assets_yaml (${PROJECT_NAME} assets.yml)
blit_metadata (${PROJECT_NAME} metadata.yml)
target_link_libraries (${PROJECT_NAME} DUH)

add_custom_target (flash DEPENDS ${PROJECT_NAME}.flash)
1 change: 1 addition & 0 deletions DUH
Submodule DUH added at 1fe504
1 change: 0 additions & 1 deletion assets.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
assets.cpp:
prefix: asset_
assets/buttons.png: buttons
assets/12x8font.png:
name: tall_font
type: font/image
Expand Down
Binary file removed assets/buttons.png
Binary file not shown.
43 changes: 0 additions & 43 deletions control-icons.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions control-icons.hpp

This file was deleted.

154 changes: 0 additions & 154 deletions file-browser.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions file-browser.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion mjpeg-player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ffmpeg -i 2020-02-19\ 12-14-08.mkv -vcodec mjpeg -q:v 2 -pix_fmt yuvj420p -vf sc
*/

const blit::Font tallFont(asset_tall_font);
FileBrowser fileBrowser(tallFont);
duh::FileBrowser fileBrowser(tallFont);
std::string fileToLoad;
bool renderedLoadMessage = false;

Expand Down

0 comments on commit d525032

Please sign in to comment.