{"id":2024,"date":"2021-09-18T13:52:34","date_gmt":"2021-09-18T04:52:34","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=2024"},"modified":"2021-09-18T19:14:09","modified_gmt":"2021-09-18T10:14:09","slug":"post-2024","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/09\/18\/2024\/","title":{"rendered":"RetroPie \u3067 ONScripter \u306e\u4e00\u62ec\u767b\u9332"},"content":{"rendered":"\n<p>\u3000GPiCASE \u306e RetroPie \u306b ONScripter \u306e\u30b2\u30fc\u30e0\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002\u7d50\u69cb\u3042\u308a\u307e\u3057\u305f\u304c\u4f5c\u696d\u7684\u306b\u306f\u6a5f\u68b0\u7684\u306a\u4f5c\u696d\u306a\u306e\u3067\u3001SHELL \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4e00\u62ec\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3000\u767b\u9332\u3059\u308b\u540d\u524d\u3068\u304b\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3067\u767b\u9332\u3059\u308b\u3053\u3068\u306b\u3059\u308c\u3070\u3001\u4f5c\u696d\u5185\u5bb9\u306f\u307b\u3068\u3093\u3069\u4e00\u7dd2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4ee5\u4e0b\u306e\u3088\u3046\u306a SHELL \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">#!\/bin\/bash\n\nexec=\"sudo \/usr\/local\/bin\/onscripter\"\nem_dir=\"\/opt\/retropie\/configs\/ports\"\n\nadd_ports() {\n    cmd=$1\n    dir=$2\n    base=${PWD}\n\n    echo \"make ${base}\/${cmd}\"\n    echo \"#!\/bin\/bash\" > \"${cmd}\"\n    echo \"\" >> \"${cmd}\"\n    echo \"\\\"\/opt\/retropie\/supplementary\/runcommand\/runcommand.sh\\\" 0 _PORT_ \\\"${dir}\\\" \\\"\\\"\" >> \"${cmd}\"\n    if [ ! -d \"${em_dir}\/${dir}\" ]; then\n        mkdir \"${em_dir}\/${dir}\"\n    fi\n    title=$(echo \"${dir}\" | tr \" \" \"_\")\n    edir=$(echo \"${dir}\" | sed -e 's\/ \/\\\\ \/g' -e 's\/(\/\\\\(\/g' -e 's\/)\/\\\\)\/g')\n    echo \"make ${em_dir}\/${dir}\/emulators.cfg\"\n    echo \"${title} = \\\"pushd ${base}\/${edir}; ${exec}; popd\\\"\" > \"${em_dir}\/${dir}\/emulators.cfg\"\n    echo \"default = \\\"${title}\\\"\" >> \"${em_dir}\/${dir}\/emulators.cfg\"\n}\n\nsearch_dir() {\n    for dir in *\n    do\n        if [ -d \"${dir}\" ]; then\n            if [ -f \"${dir}\/arc.nsa\" -o -f \"${dir}\/arc.sar\" -o -f \"${dir}\/0.txt\" -o -f \"${dir}\/nscript.dat\" ]; then\n                cmd=\"${dir}.sh\"\n                if [ ! -f \"${cmd}\" ]; then\n                    add_ports \"${cmd}\" \"${dir}\"\n                fi\n            else\n                cd \"${dir}\"\n                search_dir\n                cd ..\n            fi\n        fi\n    done\n}\n\ncd ~\/RetroPie\/roms\/ports\nsearch_dir<\/pre>\n\n\n\n<p>\u3000~\/RetroPie\/roms\/ports \u306b\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5bfe\u8c61\u306b\u3001\u30b2\u30fc\u30e0\u30c7\u30fc\u30bf\u304c\u3042\u308c\u3070\u767b\u9332\u3057\u3066\u3001\u7121\u3051\u308c\u3070\u518d\u5e30\u7684\u306b\u8fbf\u308a\u307e\u3059\u3002\u65e2\u306b\u8d77\u52d5\u7528\u306e .sh \u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308c\u3070\u767b\u9332\u6e08\u307f\u3068\u3057\u3066\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000GPiCASE \u306b\u30b3\u30d4\u30fc\u3057\u305f ONSCripter \u306e\u30b2\u30fc\u30e0\u3092\u4e00\u6c17\u306b\u767b\u9332\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3000\u8d77\u52d5\u30b3\u30de\u30f3\u30c9\u3084\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5909\u3048\u308c\u3070\u3001ONScripter \u4ee5\u5916\u3067\u3082\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4eca\u306e\u6240\u3001\u4e00\u6c17\u306b\u767b\u9332\u3057\u305f\u3044\u30b2\u30fc\u30e0\u30c7\u30fc\u30bf\u304c\u3042\u308b\u306e\u306f ONScripter \u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u307e\u305f\u3001\u8d77\u52d5\u30b3\u30de\u30f3\u30c9\u304c sudo \/usr\/local\/bin\/onscripter \u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u95a2\u4fc2\u304b pi \u30e6\u30fc\u30b6\u3067\u306f\u8d77\u52d5\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001sudo \u30b3\u30de\u30f3\u30c9\u3092\u901a\u3057\u3066 ONScripter \u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000GPiCASE \u306e RetroPie \u306b ONScripter \u306e\u30b2\u30fc\u30e0\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002\u7d50\u69cb\u3042\u308a\u307e\u3057\u305f\u304c\u4f5c\u696d\u7684\u306b\u306f\u6a5f\u68b0\u7684\u306a\u4f5c\u696d\u306a\u306e\u3067\u3001SHELL \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4e00\u62ec\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 \u3000\u767b\u9332\u3059\u308b\u540d\u524d\u3068\u304b\u306f\u3001\u30c7\u30a3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,13],"tags":[],"class_list":["post-2024","post","type-post","status-publish","format-standard","hentry","category-gpicase","category-retropie"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=2024"}],"version-history":[{"count":7,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2024\/revisions"}],"predecessor-version":[{"id":2031,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2024\/revisions\/2031"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=2024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=2024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=2024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}