aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/rgb24
diff options
context:
space:
mode:
authorJohn "Lameguy" Wilbert Villamor <lameguy64@gmail.com>2022-03-25 09:22:20 +0800
committerGitHub <noreply@github.com>2022-03-25 09:22:20 +0800
commit975e614b3c840e2f717adac1d1cb9cee4e5e561b (patch)
tree6584ce5b0dbe27a466c95c81fac61b0d90f627bd /examples/graphics/rgb24
parent05d44488bd5587786f4bd0286fc0f555c79aa46a (diff)
parent45168ae43e29aa5930ee5a206475ae836078915f (diff)
downloadpsn00bsdk-975e614b3c840e2f717adac1d1cb9cee4e5e561b.tar.gz
Merge pull request #46 from spicyjpeg/psxmdec
Critical ldscript fixes, initial MDEC support and CI updates
Diffstat (limited to 'examples/graphics/rgb24')
-rw-r--r--examples/graphics/rgb24/CMakeLists.txt10
-rw-r--r--examples/graphics/rgb24/bunpattern.pngbin0 -> 59932 bytes
-rw-r--r--examples/graphics/rgb24/tim.s.template6
3 files changed, 3 insertions, 13 deletions
diff --git a/examples/graphics/rgb24/CMakeLists.txt b/examples/graphics/rgb24/CMakeLists.txt
index 449981a..9565b8b 100644
--- a/examples/graphics/rgb24/CMakeLists.txt
+++ b/examples/graphics/rgb24/CMakeLists.txt
@@ -11,14 +11,10 @@ project(
HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk"
)
-configure_file(tim.s.template tim.s)
-
file(GLOB _sources *.c)
-psn00bsdk_add_executable(
- rgb24 STATIC
- ${_sources}
- ${PROJECT_BINARY_DIR}/tim.s
-)
+psn00bsdk_add_executable(rgb24 STATIC ${_sources})
#psn00bsdk_add_cd_image(rgb24_iso rgb24 iso.xml DEPENDS rgb24)
+psn00bsdk_target_incbin(rgb24 PRIVATE tim_image bunpattern.tim)
+
install(FILES ${PROJECT_BINARY_DIR}/rgb24.exe TYPE BIN)
diff --git a/examples/graphics/rgb24/bunpattern.png b/examples/graphics/rgb24/bunpattern.png
new file mode 100644
index 0000000..61524f8
--- /dev/null
+++ b/examples/graphics/rgb24/bunpattern.png
Binary files differ
diff --git a/examples/graphics/rgb24/tim.s.template b/examples/graphics/rgb24/tim.s.template
deleted file mode 100644
index 9fb1fb6..0000000
--- a/examples/graphics/rgb24/tim.s.template
+++ /dev/null
@@ -1,6 +0,0 @@
-.section .data
-
-.global tim_image
-.type tim_image, @object
-tim_image:
- .incbin "${PROJECT_SOURCE_DIR}/bunpattern.tim"