{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments/52685398","id":52685398,"diff_hunk":"@@ -876,4 +877,14 @@ datetime64 platform_get_datetime_now_utc()\n \treturn utcNow;\n }\n \n+utf8* platform_get_username() {\n+\tstruct passwd* pw = getpwuid(getuid());\n+\n+\tif (pw) {\n+\t\treturn pw->pw_name;\n+\t} else {\n+\t\treturn language_get_string(STR_PLAYER_DEFAULT_NAME);","path":"src/platform/posix.c","position":null,"original_position":18,"commit_id":"05c1aabc390104b7036f748dbc85f127c771245b","original_commit_id":"65f25f8340fd67f85cb2de496b76932adcb20a94","user":{"login":"Overv","id":285063,"avatar_url":"https://avatars.githubusercontent.com/u/285063?v=3","gravatar_id":"","url":"https://api.github.com/users/Overv","html_url":"https://github.com/Overv","followers_url":"https://api.github.com/users/Overv/followers","following_url":"https://api.github.com/users/Overv/following{/other_user}","gists_url":"https://api.github.com/users/Overv/gists{/gist_id}","starred_url":"https://api.github.com/users/Overv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Overv/subscriptions","organizations_url":"https://api.github.com/users/Overv/orgs","repos_url":"https://api.github.com/users/Overv/repos","events_url":"https://api.github.com/users/Overv/events{/privacy}","received_events_url":"https://api.github.com/users/Overv/received_events","type":"User","site_admin":false},"body":"You're right, fixed it.","created_at":"2016-02-11T23:31:51Z","updated_at":"2016-02-11T23:31:51Z","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2910#discussion_r52685398","pull_request_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910","_links":{"self":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments/52685398"},"html":{"href":"https://github.com/OpenRCT2/OpenRCT2/pull/2910#discussion_r52685398"},"pull_request":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910","id":58951364,"html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2910","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2910.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/2910.patch","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2910","number":2910,"state":"open","locked":false,"title":"Change default player name to use the OS username if available (resolves #2761)","user":{"login":"Overv","id":285063,"avatar_url":"https://avatars.githubusercontent.com/u/285063?v=3","gravatar_id":"","url":"https://api.github.com/users/Overv","html_url":"https://github.com/Overv","followers_url":"https://api.github.com/users/Overv/followers","following_url":"https://api.github.com/users/Overv/following{/other_user}","gists_url":"https://api.github.com/users/Overv/gists{/gist_id}","starred_url":"https://api.github.com/users/Overv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Overv/subscriptions","organizations_url":"https://api.github.com/users/Overv/orgs","repos_url":"https://api.github.com/users/Overv/repos","events_url":"https://api.github.com/users/Overv/events{/privacy}","received_events_url":"https://api.github.com/users/Overv/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-02-10T20:50:12Z","updated_at":"2016-02-11T23:31:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff77876c0a9008362e5feb42f24679678d04d023","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910/commits","review_comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910/comments","review_comment_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2910/comments","statuses_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/05c1aabc390104b7036f748dbc85f127c771245b","head":{"label":"Overv:automatic-player-name","ref":"automatic-player-name","sha":"05c1aabc390104b7036f748dbc85f127c771245b","user":{"login":"Overv","id":285063,"avatar_url":"https://avatars.githubusercontent.com/u/285063?v=3","gravatar_id":"","url":"https://api.github.com/users/Overv","html_url":"https://github.com/Overv","followers_url":"https://api.github.com/users/Overv/followers","following_url":"https://api.github.com/users/Overv/following{/other_user}","gists_url":"https://api.github.com/users/Overv/gists{/gist_id}","starred_url":"https://api.github.com/users/Overv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Overv/subscriptions","organizations_url":"https://api.github.com/users/Overv/orgs","repos_url":"https://api.github.com/users/Overv/repos","events_url":"https://api.github.com/users/Overv/events{/privacy}","received_events_url":"https://api.github.com/users/Overv/received_events","type":"User","site_admin":false},"repo":{"id":43582611,"name":"OpenRCT2","full_name":"Overv/OpenRCT2","owner":{"login":"Overv","id":285063,"avatar_url":"https://avatars.githubusercontent.com/u/285063?v=3","gravatar_id":"","url":"https://api.github.com/users/Overv","html_url":"https://github.com/Overv","followers_url":"https://api.github.com/users/Overv/followers","following_url":"https://api.github.com/users/Overv/following{/other_user}","gists_url":"https://api.github.com/users/Overv/gists{/gist_id}","starred_url":"https://api.github.com/users/Overv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Overv/subscriptions","organizations_url":"https://api.github.com/users/Overv/orgs","repos_url":"https://api.github.com/users/Overv/repos","events_url":"https://api.github.com/users/Overv/events{/privacy}","received_events_url":"https://api.github.com/users/Overv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Overv/OpenRCT2","description":"An open source re-implementation of Roller Coaster Tycoon 2.","fork":true,"url":"https://api.github.com/repos/Overv/OpenRCT2","forks_url":"https://api.github.com/repos/Overv/OpenRCT2/forks","keys_url":"https://api.github.com/repos/Overv/OpenRCT2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Overv/OpenRCT2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Overv/OpenRCT2/teams","hooks_url":"https://api.github.com/repos/Overv/OpenRCT2/hooks","issue_events_url":"https://api.github.com/repos/Overv/OpenRCT2/issues/events{/number}","events_url":"https://api.github.com/repos/Overv/OpenRCT2/events","assignees_url":"https://api.github.com/repos/Overv/OpenRCT2/assignees{/user}","branches_url":"https://api.github.com/repos/Overv/OpenRCT2/branches{/branch}","tags_url":"https://api.github.com/repos/Overv/OpenRCT2/tags","blobs_url":"https://api.github.com/repos/Overv/OpenRCT2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Overv/OpenRCT2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Overv/OpenRCT2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Overv/OpenRCT2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Overv/OpenRCT2/statuses/{sha}","languages_url":"https://api.github.com/repos/Overv/OpenRCT2/languages","stargazers_url":"https://api.github.com/repos/Overv/OpenRCT2/stargazers","contributors_url":"https://api.github.com/repos/Overv/OpenRCT2/contributors","subscribers_url":"https://api.github.com/repos/Overv/OpenRCT2/subscribers","subscription_url":"https://api.github.com/repos/Overv/OpenRCT2/subscription","commits_url":"https://api.github.com/repos/Overv/OpenRCT2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Overv/OpenRCT2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Overv/OpenRCT2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Overv/OpenRCT2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Overv/OpenRCT2/contents/{+path}","compare_url":"https://api.github.com/repos/Overv/OpenRCT2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Overv/OpenRCT2/merges","archive_url":"https://api.github.com/repos/Overv/OpenRCT2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Overv/OpenRCT2/downloads","issues_url":"https://api.github.com/repos/Overv/OpenRCT2/issues{/number}","pulls_url":"https://api.github.com/repos/Overv/OpenRCT2/pulls{/number}","milestones_url":"https://api.github.com/repos/Overv/OpenRCT2/milestones{/number}","notifications_url":"https://api.github.com/repos/Overv/OpenRCT2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Overv/OpenRCT2/labels{/name}","releases_url":"https://api.github.com/repos/Overv/OpenRCT2/releases{/id}","deployments_url":"https://api.github.com/repos/Overv/OpenRCT2/deployments","created_at":"2015-10-03T00:32:20Z","updated_at":"2016-02-09T18:54:25Z","pushed_at":"2016-02-11T23:31:37Z","git_url":"git://github.com/Overv/OpenRCT2.git","ssh_url":"git@github.com:Overv/OpenRCT2.git","clone_url":"https://github.com/Overv/OpenRCT2.git","svn_url":"https://github.com/Overv/OpenRCT2","homepage":"http://openrct2.website","size":24672,"stargazers_count":1,"watchers_count":1,"language":"C","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":1,"default_branch":"develop"}},"base":{"label":"OpenRCT2:develop","ref":"develop","sha":"113631f7d27c08a74c09af6dd999c13a8f325682","user":{"login":"OpenRCT2","id":8473908,"avatar_url":"https://avatars.githubusercontent.com/u/8473908?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRCT2","html_url":"https://github.com/OpenRCT2","followers_url":"https://api.github.com/users/OpenRCT2/followers","following_url":"https://api.github.com/users/OpenRCT2/following{/other_user}","gists_url":"https://api.github.com/users/OpenRCT2/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRCT2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRCT2/subscriptions","organizations_url":"https://api.github.com/users/OpenRCT2/orgs","repos_url":"https://api.github.com/users/OpenRCT2/repos","events_url":"https://api.github.com/users/OpenRCT2/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRCT2/received_events","type":"Organization","site_admin":false},"repo":{"id":18348651,"name":"OpenRCT2","full_name":"OpenRCT2/OpenRCT2","owner":{"login":"OpenRCT2","id":8473908,"avatar_url":"https://avatars.githubusercontent.com/u/8473908?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRCT2","html_url":"https://github.com/OpenRCT2","followers_url":"https://api.github.com/users/OpenRCT2/followers","following_url":"https://api.github.com/users/OpenRCT2/following{/other_user}","gists_url":"https://api.github.com/users/OpenRCT2/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRCT2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRCT2/subscriptions","organizations_url":"https://api.github.com/users/OpenRCT2/orgs","repos_url":"https://api.github.com/users/OpenRCT2/repos","events_url":"https://api.github.com/users/OpenRCT2/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRCT2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRCT2/OpenRCT2","description":"An open source re-implementation of Roller Coaster Tycoon 2.","fork":false,"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2","forks_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/forks","keys_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/teams","hooks_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/hooks","issue_events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/events","assignees_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/tags","blobs_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/languages","stargazers_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/stargazers","contributors_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/contributors","subscribers_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/subscribers","subscription_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/subscription","commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/merges","archive_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/downloads","issues_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/labels{/name}","releases_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/deployments","created_at":"2014-04-01T23:32:25Z","updated_at":"2016-02-11T14:57:28Z","pushed_at":"2016-02-11T23:31:37Z","git_url":"git://github.com/OpenRCT2/OpenRCT2.git","ssh_url":"git@github.com:OpenRCT2/OpenRCT2.git","clone_url":"https://github.com/OpenRCT2/OpenRCT2.git","svn_url":"https://github.com/OpenRCT2/OpenRCT2","homepage":"http://openrct2.website","size":48749,"stargazers_count":1521,"watchers_count":1521,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":280,"mirror_url":null,"open_issues_count":411,"forks":280,"open_issues":411,"watchers":1521,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910"},"html":{"href":"https://github.com/OpenRCT2/OpenRCT2/pull/2910"},"issue":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2910"},"comments":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2910/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/2910/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRCT2/OpenRCT2/statuses/05c1aabc390104b7036f748dbc85f127c771245b"}}}}