{"action":"created","comment":{"url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/comments/55005606","id":55005606,"diff_hunk":"@@ -0,0 +1,54 @@\n+#!/usr/bin/env bash\n+\n+# This file is part of The RetroPie Project\n+# \n+# The RetroPie Project is the legal property of its developers, whose names are\n+# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.\n+# \n+# See the LICENSE.md file at the top-level directory of this distribution and \n+# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md\n+#\n+\n+rp_module_id=\"cannonball\"\n+rp_module_desc=\"cannonball - An Enhanced OutRun Engine\"\n+rp_module_menus=\"4+\"\n+rp_module_flags=\"\"\n+\n+function depends_cannonball() {\n+    getDepends libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libboost-dev\n+}\n+\n+function sources_cannonball() {\n+    gitPullOrClone \"$md_build\" https://github.com/VanFanel/cannonball.git\n+}\n+\n+function build_cannonball() {\n+    mkdir build\n+    cd build\n+    cmake -DTARGET=sdl2_rpi -DCMAKE_INSTALL_PREFIX:PATH=\"$md_inst\" ../cmake\n+    make\n+}\n+\n+function install_cannonball() {\n+    cp build/cannonball \"$md_inst\"\n+    mkdir \"$md_inst/roms/\"\n+    mkdir \"$md_inst/res/\"\n+    cp -R roms/* \"$md_inst/roms/\"\n+    cp res/tilemap.bin \"$md_inst/res/\"\n+    cp res/tilepatch.bin \"$md_inst/res/\"\n+    cp res/config.xml \"$md_inst\"\n+    touch \"$md_inst/hiscores.xml\"\n+    chown pi:pi \"$md_inst/\"\n+    chown pi:pi \"$md_inst/cannonball\"\n+    chown pi:pi \"$md_inst/config.xml\"\n+    chown pi:pi \"$md_inst/hiscores.xml\"\n+    chown pi:pi \"$md_inst/res\"\n+    chown pi:pi \"$md_inst/roms\"\n+    chown pi:pi \"$md_inst/res/tilemap.bin\"\n+    chown pi:pi \"$md_inst/res/tilepatch.bin\"\n+}","path":"scriptmodules/ports/cannonball.sh","position":49,"original_position":49,"commit_id":"d5c33a1ab65a87f1e5572198875e4caa59cf46d3","original_commit_id":"d5c33a1ab65a87f1e5572198875e4caa59cf46d3","user":{"login":"joolswills","id":5365574,"avatar_url":"https://avatars.githubusercontent.com/u/5365574?v=3","gravatar_id":"","url":"https://api.github.com/users/joolswills","html_url":"https://github.com/joolswills","followers_url":"https://api.github.com/users/joolswills/followers","following_url":"https://api.github.com/users/joolswills/following{/other_user}","gists_url":"https://api.github.com/users/joolswills/gists{/gist_id}","starred_url":"https://api.github.com/users/joolswills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joolswills/subscriptions","organizations_url":"https://api.github.com/users/joolswills/orgs","repos_url":"https://api.github.com/users/joolswills/repos","events_url":"https://api.github.com/users/joolswills/events{/privacy}","received_events_url":"https://api.github.com/users/joolswills/received_events","type":"User","site_admin":false},"body":"do all the files need to be chowned? retropie-setup can be installed under any user - so you need to use $user also.","created_at":"2016-03-04T09:07:23Z","updated_at":"2016-03-04T09:07:23Z","html_url":"https://github.com/RetroPie/RetroPie-Setup/pull/1325#discussion_r55005606","pull_request_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325","_links":{"self":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/comments/55005606"},"html":{"href":"https://github.com/RetroPie/RetroPie-Setup/pull/1325#discussion_r55005606"},"pull_request":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325"}}},"pull_request":{"url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325","id":61671300,"html_url":"https://github.com/RetroPie/RetroPie-Setup/pull/1325","diff_url":"https://github.com/RetroPie/RetroPie-Setup/pull/1325.diff","patch_url":"https://github.com/RetroPie/RetroPie-Setup/pull/1325.patch","issue_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues/1325","number":1325,"state":"open","locked":false,"title":"Added Cannonball engine script.","user":{"login":"zerojay","id":630173,"avatar_url":"https://avatars.githubusercontent.com/u/630173?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojay","html_url":"https://github.com/zerojay","followers_url":"https://api.github.com/users/zerojay/followers","following_url":"https://api.github.com/users/zerojay/following{/other_user}","gists_url":"https://api.github.com/users/zerojay/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojay/subscriptions","organizations_url":"https://api.github.com/users/zerojay/orgs","repos_url":"https://api.github.com/users/zerojay/repos","events_url":"https://api.github.com/users/zerojay/events{/privacy}","received_events_url":"https://api.github.com/users/zerojay/received_events","type":"User","site_admin":false},"body":"Added Cannonball engine script.\r\n\r\nJools, there's a compilation warning that seems harmless when compiling on the Pi 2 that I'm worried about when it comes to running on Pi 3. The repository that this is being pulled from hasn't been updated for anything Pi 3, so it's possible that his compile flags here may cause some issues on it. For each file compiled, the following warning is spit out: \r\n\r\nwarning: switch -mcpu=cortex-a7 conflicts with -march=armv6 switch\r\n\r\nSo if you could give it a quick test whenever you get your Pi 3, I'd appreciate it.","created_at":"2016-03-04T06:09:55Z","updated_at":"2016-03-04T09:07:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77ceab3b69b3780491453cdb4d41285f28e41aaa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325/commits","review_comments_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325/comments","review_comment_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues/1325/comments","statuses_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/statuses/d5c33a1ab65a87f1e5572198875e4caa59cf46d3","head":{"label":"zerojay:cannonball","ref":"cannonball","sha":"d5c33a1ab65a87f1e5572198875e4caa59cf46d3","user":{"login":"zerojay","id":630173,"avatar_url":"https://avatars.githubusercontent.com/u/630173?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojay","html_url":"https://github.com/zerojay","followers_url":"https://api.github.com/users/zerojay/followers","following_url":"https://api.github.com/users/zerojay/following{/other_user}","gists_url":"https://api.github.com/users/zerojay/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojay/subscriptions","organizations_url":"https://api.github.com/users/zerojay/orgs","repos_url":"https://api.github.com/users/zerojay/repos","events_url":"https://api.github.com/users/zerojay/events{/privacy}","received_events_url":"https://api.github.com/users/zerojay/received_events","type":"User","site_admin":false},"repo":{"id":53022756,"name":"RetroPie-Setup","full_name":"zerojay/RetroPie-Setup","owner":{"login":"zerojay","id":630173,"avatar_url":"https://avatars.githubusercontent.com/u/630173?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojay","html_url":"https://github.com/zerojay","followers_url":"https://api.github.com/users/zerojay/followers","following_url":"https://api.github.com/users/zerojay/following{/other_user}","gists_url":"https://api.github.com/users/zerojay/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojay/subscriptions","organizations_url":"https://api.github.com/users/zerojay/orgs","repos_url":"https://api.github.com/users/zerojay/repos","events_url":"https://api.github.com/users/zerojay/events{/privacy}","received_events_url":"https://api.github.com/users/zerojay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zerojay/RetroPie-Setup","description":"Shell script to setup Raspberry Pi (TM) with RetroArch emulator and various cores","fork":true,"url":"https://api.github.com/repos/zerojay/RetroPie-Setup","forks_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/forks","keys_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/teams","hooks_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/hooks","issue_events_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/issues/events{/number}","events_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/events","assignees_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/assignees{/user}","branches_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/branches{/branch}","tags_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/tags","blobs_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/statuses/{sha}","languages_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/languages","stargazers_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/stargazers","contributors_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/contributors","subscribers_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/subscribers","subscription_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/subscription","commits_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/contents/{+path}","compare_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/merges","archive_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/downloads","issues_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/issues{/number}","pulls_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/pulls{/number}","milestones_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/milestones{/number}","notifications_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/labels{/name}","releases_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/releases{/id}","deployments_url":"https://api.github.com/repos/zerojay/RetroPie-Setup/deployments","created_at":"2016-03-03T05:14:02Z","updated_at":"2016-03-03T05:14:03Z","pushed_at":"2016-03-04T06:06:51Z","git_url":"git://github.com/zerojay/RetroPie-Setup.git","ssh_url":"git@github.com:zerojay/RetroPie-Setup.git","clone_url":"https://github.com/zerojay/RetroPie-Setup.git","svn_url":"https://github.com/zerojay/RetroPie-Setup","homepage":"","size":17359,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RetroPie:master","ref":"master","sha":"25e9d12fb5d9b1c87dc06b181670b087b11494dc","user":{"login":"RetroPie","id":11378204,"avatar_url":"https://avatars.githubusercontent.com/u/11378204?v=3","gravatar_id":"","url":"https://api.github.com/users/RetroPie","html_url":"https://github.com/RetroPie","followers_url":"https://api.github.com/users/RetroPie/followers","following_url":"https://api.github.com/users/RetroPie/following{/other_user}","gists_url":"https://api.github.com/users/RetroPie/gists{/gist_id}","starred_url":"https://api.github.com/users/RetroPie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RetroPie/subscriptions","organizations_url":"https://api.github.com/users/RetroPie/orgs","repos_url":"https://api.github.com/users/RetroPie/repos","events_url":"https://api.github.com/users/RetroPie/events{/privacy}","received_events_url":"https://api.github.com/users/RetroPie/received_events","type":"Organization","site_admin":false},"repo":{"id":5143809,"name":"RetroPie-Setup","full_name":"RetroPie/RetroPie-Setup","owner":{"login":"RetroPie","id":11378204,"avatar_url":"https://avatars.githubusercontent.com/u/11378204?v=3","gravatar_id":"","url":"https://api.github.com/users/RetroPie","html_url":"https://github.com/RetroPie","followers_url":"https://api.github.com/users/RetroPie/followers","following_url":"https://api.github.com/users/RetroPie/following{/other_user}","gists_url":"https://api.github.com/users/RetroPie/gists{/gist_id}","starred_url":"https://api.github.com/users/RetroPie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RetroPie/subscriptions","organizations_url":"https://api.github.com/users/RetroPie/orgs","repos_url":"https://api.github.com/users/RetroPie/repos","events_url":"https://api.github.com/users/RetroPie/events{/privacy}","received_events_url":"https://api.github.com/users/RetroPie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RetroPie/RetroPie-Setup","description":"Shell script to setup Raspberry Pi (TM) with RetroArch emulator and various cores","fork":false,"url":"https://api.github.com/repos/RetroPie/RetroPie-Setup","forks_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/forks","keys_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/teams","hooks_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/hooks","issue_events_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues/events{/number}","events_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/events","assignees_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/assignees{/user}","branches_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/branches{/branch}","tags_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/tags","blobs_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/statuses/{sha}","languages_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/languages","stargazers_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/stargazers","contributors_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/contributors","subscribers_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/subscribers","subscription_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/subscription","commits_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/contents/{+path}","compare_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/merges","archive_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/downloads","issues_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues{/number}","pulls_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls{/number}","milestones_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/milestones{/number}","notifications_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/labels{/name}","releases_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/releases{/id}","deployments_url":"https://api.github.com/repos/RetroPie/RetroPie-Setup/deployments","created_at":"2012-07-22T18:49:24Z","updated_at":"2016-03-04T06:36:31Z","pushed_at":"2016-03-04T06:09:55Z","git_url":"git://github.com/RetroPie/RetroPie-Setup.git","ssh_url":"git@github.com:RetroPie/RetroPie-Setup.git","clone_url":"https://github.com/RetroPie/RetroPie-Setup.git","svn_url":"https://github.com/RetroPie/RetroPie-Setup","homepage":"","size":27595,"stargazers_count":2207,"watchers_count":2207,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":300,"mirror_url":null,"open_issues_count":56,"forks":300,"open_issues":56,"watchers":2207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325"},"html":{"href":"https://github.com/RetroPie/RetroPie-Setup/pull/1325"},"issue":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues/1325"},"comments":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/issues/1325/comments"},"review_comments":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325/comments"},"review_comment":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/pulls/1325/commits"},"statuses":{"href":"https://api.github.com/repos/RetroPie/RetroPie-Setup/statuses/d5c33a1ab65a87f1e5572198875e4caa59cf46d3"}}}}