diff --git a/multimedia/Kconfig b/multimedia/Kconfig index 0e40ee96eb..39bc9b8817 100644 --- a/multimedia/Kconfig +++ b/multimedia/Kconfig @@ -2,6 +2,7 @@ menu "multimedia packages" source "$PKGS_DIR/packages/multimedia/LVGL/Kconfig" source "$PKGS_DIR/packages/multimedia/u8g2/Kconfig" +source "$PKGS_DIR/packages/multimedia/nes_simulator/Kconfig" source "$PKGS_DIR/packages/multimedia/openmv/Kconfig" source "$PKGS_DIR/packages/multimedia/mupdf/Kconfig" source "$PKGS_DIR/packages/multimedia/STemWin/Kconfig" diff --git a/multimedia/nes_simulator/Kconfig b/multimedia/nes_simulator/Kconfig new file mode 100644 index 0000000000..cc9c65efde --- /dev/null +++ b/multimedia/nes_simulator/Kconfig @@ -0,0 +1,90 @@ + +# Kconfig file for package nes +menuconfig PKG_USING_NES_SIMULATOR + bool "The nes simulator implemented in C." + default n + +if PKG_USING_NES_SIMULATOR + + config PKG_NES_SIMULATOR_PATH + string + default "/packages/multimedia/nes_simulator" + + choice + prompt "PKG_NES_LOG_LEVEL" + default PKG_NES_LOG_LEVEL_INFO + help + Select NES LOG LEVEL + + config PKG_NES_LOG_LEVEL_NONE + bool "LOG_LEVEL_NONE" + + config PKG_NES_LOG_LEVEL_ERROR + bool "LOG_LEVEL_ERROR" + + config PKG_NES_LOG_LEVEL_WARN + bool "LOG_LEVEL_WARN" + + config PKG_NES_LOG_LEVEL_INFO + bool "LOG_LEVEL_INFO" + + config PKG_NES_LOG_LEVEL_DEBUG + bool "LOG_LEVEL_DEBUG" + endchoice + + choice + prompt "PKG_NES_COLOR_DEPTH" + default PKG_NES_COLOR_DEPTH_32 + help + Select NES COLOR DEPTH, 16:rgb565, 32:rgb8888 + + config PKG_NES_COLOR_DEPTH_16 + bool "COLOR_DEPTH_16" + + config PKG_NES_COLOR_DEPTH_32 + bool "COLOR_DEPTH_32" + endchoice + + if PKG_NES_COLOR_DEPTH_16 + config PKG_NES_COLOR_SWAP + bool "Enable Color Swap" + default y + endif + + config PKG_NES_ENABLE_SOUND + bool "Enable Sound" + default n + help + config nes to enable sound. + + config PKG_NES_USE_FS + bool "Enable File System" + default y + help + config nes to use file system to load rom files. + + config PKG_NES_FRAME_SKIP + int "Frame Skip" + range 0 5 + default 0 + + choice + prompt "Version" + default PKG_USING_NES_SIMULATOR_LATEST_VERSION + help + Select the package version + + config PKG_USING_NES_SIMULATOR_V003 + bool "v0.0.4" + + config PKG_USING_NES_SIMULATOR_LATEST_VERSION + bool "latest" + endchoice + + config PKG_NES_SIMULATOR_VER + string + default "v0.0.4" if PKG_USING_NES_SIMULATOR_V003 + default "latest" if PKG_USING_NES_SIMULATOR_LATEST_VERSION + +endif + diff --git a/multimedia/nes_simulator/package.json b/multimedia/nes_simulator/package.json new file mode 100644 index 0000000000..d42d1d8b6a --- /dev/null +++ b/multimedia/nes_simulator/package.json @@ -0,0 +1,35 @@ +{ + "name": "nes_simulator", + "description": "The nes simulator implemented in C.", + "description_zh": "C语言实现的nes模拟器。", + "enable": "PKG_USING_NES_SIMULATOR", + "keywords": [ + "nes", + "simulator", + "game" + ], + "category": "multimedia", + "author": { + "name": "PeakRacing", + "email": "1473454180@qq.com", + "github": "PeakRacing" + }, + "license": "Apache-2.0", + "repository": "https://github.com/PeakRacing/nes", + "icon": "unknown", + "homepage": "https://github.com/PeakRacing/nes#readme", + "doc": "unknown", + "site": [ + { + "version": "v0.0.4", + "URL": "https://github.com/PeakRacing/nes/archive/refs/tags/v0.0.4.zip", + "filename": "nes-0.0.4.zip" + }, + { + "version": "latest", + "URL": "https://github.com/PeakRacing/nes.git", + "filename": "", + "VER_SHA": "master" + } + ] +}