From 860d79c874db624f94b0210d6ed6de1055712fe2 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 5 Jan 2023 21:20:19 +0000 Subject: [PATCH] kaios: Add hooks for the KaiAds API The Kai Store makes display of advertisements provided by the KaiAds API mandatory. I don't want such adverts to be inconvenient for the users, so I've just gone for adding a menu item that will display one. This is probably a little too crude, but it's good for testing things. The actual KaiAds API code is not free software, so it's not included here. My intention is to add it by hand to the Zip files for Kai Store uploads. Without it, the advertising code does nothing. --- cmake/platforms/emscripten.cmake | 2 ++ kaios/apppage.pl | 3 ++ kaios/kaiads-glue.js | 58 ++++++++++++++++++++++++++++++++ kaios/manifest.pl | 10 ++++++ 4 files changed, 73 insertions(+) create mode 100644 kaios/kaiads-glue.js diff --git a/cmake/platforms/emscripten.cmake b/cmake/platforms/emscripten.cmake index 70aa5c9..898d3ea 100644 --- a/cmake/platforms/emscripten.cmake +++ b/cmake/platforms/emscripten.cmake @@ -122,6 +122,8 @@ function(build_platform_extras) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${name}-manifest.webapp RENAME manifest.webapp DESTINATION kaios/${name}) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/kaios/kaiads-glue.js + DESTINATION kaios/${name}) if (HALIBUT) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/help DESTINATION kaios/${name}) diff --git a/kaios/apppage.pl b/kaios/apppage.pl index 8f72ee6..251ab2f 100755 --- a/kaios/apppage.pl +++ b/kaios/apppage.pl @@ -13,7 +13,10 @@ print < ${displayname} + + +