{"action":"created","comment":{"url":"https://api.github.com/repos/xoreos/xoreos/pulls/comments/199979406","pull_request_review_id":134203756,"id":199979406,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTk3OTQwNg==","diff_hunk":"@@ -0,0 +1,47 @@\n+/* xoreos - A reimplementation of BioWare's Aurora engine\n+ *\n+ * xoreos is the legal property of its developers, whose names\n+ * can be found in the AUTHORS file distributed with this source\n+ * distribution.\n+ *\n+ * xoreos is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version 3\n+ * of the License, or (at your option) any later version.\n+ *\n+ * xoreos is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with xoreos. If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+/** @file\n+ *  Utility class for managing user data, for example save games.\n+ */\n+\n+#include \"src/common/filepath.h\"\n+#include \"src/common/configman.h\"\n+\n+#include \"src/engines/aurora/userdata.h\"\n+\n+namespace Engines {\n+\n+UserData::UserData(const Common::UString &id) {\n+\t// If a directory for the user data is given over command line, we use it.\n+\tif (ConfigMan.hasKey(\"userdata\"))\n+\t\t_rootPath = ConfigMan.getString(\"userdata\");\n+\telse\n+\t\t_rootPath = Common::FilePath::getUserDataDirectory() + \"/saves/\" + id;\n+\n+\t// If the user data directory was not created yet, create it.\n+\tif (!Common::FilePath::isDirectory(_rootPath))\n+\t\tCommon::FilePath::createDirectories(_rootPath);","path":"src/engines/aurora/userdata.cpp","position":41,"original_position":41,"commit_id":"58c26873efcac5580dee926c29e7a057c5537e04","original_commit_id":"0d5c2fc30c0ee2fedb7bcc9449ba3081a4203c12","user":{"login":"Nostritius","id":17826813,"node_id":"MDQ6VXNlcjE3ODI2ODEz","avatar_url":"https://avatars3.githubusercontent.com/u/17826813?v=4","gravatar_id":"","url":"https://api.github.com/users/Nostritius","html_url":"https://github.com/Nostritius","followers_url":"https://api.github.com/users/Nostritius/followers","following_url":"https://api.github.com/users/Nostritius/following{/other_user}","gists_url":"https://api.github.com/users/Nostritius/gists{/gist_id}","starred_url":"https://api.github.com/users/Nostritius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nostritius/subscriptions","organizations_url":"https://api.github.com/users/Nostritius/orgs","repos_url":"https://api.github.com/users/Nostritius/repos","events_url":"https://api.github.com/users/Nostritius/events{/privacy}","received_events_url":"https://api.github.com/users/Nostritius/received_events","type":"User","site_admin":false},"body":"What would you suggest as standard behaviour in such a case?","created_at":"2018-07-03T23:57:18Z","updated_at":"2018-07-03T23:57:18Z","html_url":"https://github.com/xoreos/xoreos/pull/307#discussion_r199979406","pull_request_url":"https://api.github.com/repos/xoreos/xoreos/pulls/307","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/xoreos/xoreos/pulls/comments/199979406"},"html":{"href":"https://github.com/xoreos/xoreos/pull/307#discussion_r199979406"},"pull_request":{"href":"https://api.github.com/repos/xoreos/xoreos/pulls/307"}},"in_reply_to_id":199960241},"pull_request":{"url":"https://api.github.com/repos/xoreos/xoreos/pulls/307","id":199089314,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MDg5MzE0","html_url":"https://github.com/xoreos/xoreos/pull/307","diff_url":"https://github.com/xoreos/xoreos/pull/307.diff","patch_url":"https://github.com/xoreos/xoreos/pull/307.patch","issue_url":"https://api.github.com/repos/xoreos/xoreos/issues/307","number":307,"state":"open","locked":false,"title":"KOTOR: User data","user":{"login":"Nostritius","id":17826813,"node_id":"MDQ6VXNlcjE3ODI2ODEz","avatar_url":"https://avatars3.githubusercontent.com/u/17826813?v=4","gravatar_id":"","url":"https://api.github.com/users/Nostritius","html_url":"https://github.com/Nostritius","followers_url":"https://api.github.com/users/Nostritius/followers","following_url":"https://api.github.com/users/Nostritius/following{/other_user}","gists_url":"https://api.github.com/users/Nostritius/gists{/gist_id}","starred_url":"https://api.github.com/users/Nostritius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nostritius/subscriptions","organizations_url":"https://api.github.com/users/Nostritius/orgs","repos_url":"https://api.github.com/users/Nostritius/repos","events_url":"https://api.github.com/users/Nostritius/events{/privacy}","received_events_url":"https://api.github.com/users/Nostritius/received_events","type":"User","site_admin":false},"body":"This PR aims to create a base for the user data, the data which the game generates, mostly save games.","created_at":"2018-07-03T21:37:05Z","updated_at":"2018-07-03T23:57:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3820f7eb53d54f27b1f22e4cdf4019933e5060cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xoreos/xoreos/pulls/307/commits","review_comments_url":"https://api.github.com/repos/xoreos/xoreos/pulls/307/comments","review_comment_url":"https://api.github.com/repos/xoreos/xoreos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xoreos/xoreos/issues/307/comments","statuses_url":"https://api.github.com/repos/xoreos/xoreos/statuses/58c26873efcac5580dee926c29e7a057c5537e04","head":{"label":"Nostritius:kotor_userdata","ref":"kotor_userdata","sha":"58c26873efcac5580dee926c29e7a057c5537e04","user":{"login":"Nostritius","id":17826813,"node_id":"MDQ6VXNlcjE3ODI2ODEz","avatar_url":"https://avatars3.githubusercontent.com/u/17826813?v=4","gravatar_id":"","url":"https://api.github.com/users/Nostritius","html_url":"https://github.com/Nostritius","followers_url":"https://api.github.com/users/Nostritius/followers","following_url":"https://api.github.com/users/Nostritius/following{/other_user}","gists_url":"https://api.github.com/users/Nostritius/gists{/gist_id}","starred_url":"https://api.github.com/users/Nostritius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nostritius/subscriptions","organizations_url":"https://api.github.com/users/Nostritius/orgs","repos_url":"https://api.github.com/users/Nostritius/repos","events_url":"https://api.github.com/users/Nostritius/events{/privacy}","received_events_url":"https://api.github.com/users/Nostritius/received_events","type":"User","site_admin":false},"repo":{"id":90493789,"node_id":"MDEwOlJlcG9zaXRvcnk5MDQ5Mzc4OQ==","name":"xoreos","full_name":"Nostritius/xoreos","owner":{"login":"Nostritius","id":17826813,"node_id":"MDQ6VXNlcjE3ODI2ODEz","avatar_url":"https://avatars3.githubusercontent.com/u/17826813?v=4","gravatar_id":"","url":"https://api.github.com/users/Nostritius","html_url":"https://github.com/Nostritius","followers_url":"https://api.github.com/users/Nostritius/followers","following_url":"https://api.github.com/users/Nostritius/following{/other_user}","gists_url":"https://api.github.com/users/Nostritius/gists{/gist_id}","starred_url":"https://api.github.com/users/Nostritius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nostritius/subscriptions","organizations_url":"https://api.github.com/users/Nostritius/orgs","repos_url":"https://api.github.com/users/Nostritius/repos","events_url":"https://api.github.com/users/Nostritius/events{/privacy}","received_events_url":"https://api.github.com/users/Nostritius/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nostritius/xoreos","description":"A reimplementation of BioWare's Aurora engine (and derivatives). Pre-pre-alpha :P","fork":true,"url":"https://api.github.com/repos/Nostritius/xoreos","forks_url":"https://api.github.com/repos/Nostritius/xoreos/forks","keys_url":"https://api.github.com/repos/Nostritius/xoreos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nostritius/xoreos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nostritius/xoreos/teams","hooks_url":"https://api.github.com/repos/Nostritius/xoreos/hooks","issue_events_url":"https://api.github.com/repos/Nostritius/xoreos/issues/events{/number}","events_url":"https://api.github.com/repos/Nostritius/xoreos/events","assignees_url":"https://api.github.com/repos/Nostritius/xoreos/assignees{/user}","branches_url":"https://api.github.com/repos/Nostritius/xoreos/branches{/branch}","tags_url":"https://api.github.com/repos/Nostritius/xoreos/tags","blobs_url":"https://api.github.com/repos/Nostritius/xoreos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nostritius/xoreos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nostritius/xoreos/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nostritius/xoreos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nostritius/xoreos/statuses/{sha}","languages_url":"https://api.github.com/repos/Nostritius/xoreos/languages","stargazers_url":"https://api.github.com/repos/Nostritius/xoreos/stargazers","contributors_url":"https://api.github.com/repos/Nostritius/xoreos/contributors","subscribers_url":"https://api.github.com/repos/Nostritius/xoreos/subscribers","subscription_url":"https://api.github.com/repos/Nostritius/xoreos/subscription","commits_url":"https://api.github.com/repos/Nostritius/xoreos/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nostritius/xoreos/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nostritius/xoreos/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nostritius/xoreos/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nostritius/xoreos/contents/{+path}","compare_url":"https://api.github.com/repos/Nostritius/xoreos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nostritius/xoreos/merges","archive_url":"https://api.github.com/repos/Nostritius/xoreos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nostritius/xoreos/downloads","issues_url":"https://api.github.com/repos/Nostritius/xoreos/issues{/number}","pulls_url":"https://api.github.com/repos/Nostritius/xoreos/pulls{/number}","milestones_url":"https://api.github.com/repos/Nostritius/xoreos/milestones{/number}","notifications_url":"https://api.github.com/repos/Nostritius/xoreos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nostritius/xoreos/labels{/name}","releases_url":"https://api.github.com/repos/Nostritius/xoreos/releases{/id}","deployments_url":"https://api.github.com/repos/Nostritius/xoreos/deployments","created_at":"2017-05-06T22:04:26Z","updated_at":"2018-06-27T14:40:12Z","pushed_at":"2018-07-03T21:35:24Z","git_url":"git://github.com/Nostritius/xoreos.git","ssh_url":"git@github.com:Nostritius/xoreos.git","clone_url":"https://github.com/Nostritius/xoreos.git","svn_url":"https://github.com/Nostritius/xoreos","homepage":"https://xoreos.org/","size":24472,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"xoreos:master","ref":"master","sha":"0004246060df17f1ed8a88674e2208021f6db02b","user":{"login":"xoreos","id":4641510,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2NDE1MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/4641510?v=4","gravatar_id":"","url":"https://api.github.com/users/xoreos","html_url":"https://github.com/xoreos","followers_url":"https://api.github.com/users/xoreos/followers","following_url":"https://api.github.com/users/xoreos/following{/other_user}","gists_url":"https://api.github.com/users/xoreos/gists{/gist_id}","starred_url":"https://api.github.com/users/xoreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xoreos/subscriptions","organizations_url":"https://api.github.com/users/xoreos/orgs","repos_url":"https://api.github.com/users/xoreos/repos","events_url":"https://api.github.com/users/xoreos/events{/privacy}","received_events_url":"https://api.github.com/users/xoreos/received_events","type":"Organization","site_admin":false},"repo":{"id":827722,"node_id":"MDEwOlJlcG9zaXRvcnk4Mjc3MjI=","name":"xoreos","full_name":"xoreos/xoreos","owner":{"login":"xoreos","id":4641510,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2NDE1MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/4641510?v=4","gravatar_id":"","url":"https://api.github.com/users/xoreos","html_url":"https://github.com/xoreos","followers_url":"https://api.github.com/users/xoreos/followers","following_url":"https://api.github.com/users/xoreos/following{/other_user}","gists_url":"https://api.github.com/users/xoreos/gists{/gist_id}","starred_url":"https://api.github.com/users/xoreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xoreos/subscriptions","organizations_url":"https://api.github.com/users/xoreos/orgs","repos_url":"https://api.github.com/users/xoreos/repos","events_url":"https://api.github.com/users/xoreos/events{/privacy}","received_events_url":"https://api.github.com/users/xoreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xoreos/xoreos","description":"A reimplementation of BioWare's Aurora engine (and derivatives). Pre-pre-alpha :P","fork":false,"url":"https://api.github.com/repos/xoreos/xoreos","forks_url":"https://api.github.com/repos/xoreos/xoreos/forks","keys_url":"https://api.github.com/repos/xoreos/xoreos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xoreos/xoreos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xoreos/xoreos/teams","hooks_url":"https://api.github.com/repos/xoreos/xoreos/hooks","issue_events_url":"https://api.github.com/repos/xoreos/xoreos/issues/events{/number}","events_url":"https://api.github.com/repos/xoreos/xoreos/events","assignees_url":"https://api.github.com/repos/xoreos/xoreos/assignees{/user}","branches_url":"https://api.github.com/repos/xoreos/xoreos/branches{/branch}","tags_url":"https://api.github.com/repos/xoreos/xoreos/tags","blobs_url":"https://api.github.com/repos/xoreos/xoreos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xoreos/xoreos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xoreos/xoreos/git/refs{/sha}","trees_url":"https://api.github.com/repos/xoreos/xoreos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xoreos/xoreos/statuses/{sha}","languages_url":"https://api.github.com/repos/xoreos/xoreos/languages","stargazers_url":"https://api.github.com/repos/xoreos/xoreos/stargazers","contributors_url":"https://api.github.com/repos/xoreos/xoreos/contributors","subscribers_url":"https://api.github.com/repos/xoreos/xoreos/subscribers","subscription_url":"https://api.github.com/repos/xoreos/xoreos/subscription","commits_url":"https://api.github.com/repos/xoreos/xoreos/commits{/sha}","git_commits_url":"https://api.github.com/repos/xoreos/xoreos/git/commits{/sha}","comments_url":"https://api.github.com/repos/xoreos/xoreos/comments{/number}","issue_comment_url":"https://api.github.com/repos/xoreos/xoreos/issues/comments{/number}","contents_url":"https://api.github.com/repos/xoreos/xoreos/contents/{+path}","compare_url":"https://api.github.com/repos/xoreos/xoreos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xoreos/xoreos/merges","archive_url":"https://api.github.com/repos/xoreos/xoreos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xoreos/xoreos/downloads","issues_url":"https://api.github.com/repos/xoreos/xoreos/issues{/number}","pulls_url":"https://api.github.com/repos/xoreos/xoreos/pulls{/number}","milestones_url":"https://api.github.com/repos/xoreos/xoreos/milestones{/number}","notifications_url":"https://api.github.com/repos/xoreos/xoreos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xoreos/xoreos/labels{/name}","releases_url":"https://api.github.com/repos/xoreos/xoreos/releases{/id}","deployments_url":"https://api.github.com/repos/xoreos/xoreos/deployments","created_at":"2010-08-10T00:39:01Z","updated_at":"2018-07-03T15:45:03Z","pushed_at":"2018-07-03T21:37:06Z","git_url":"git://github.com/xoreos/xoreos.git","ssh_url":"git@github.com:xoreos/xoreos.git","clone_url":"https://github.com/xoreos/xoreos.git","svn_url":"https://github.com/xoreos/xoreos","homepage":"https://xoreos.org/","size":24405,"stargazers_count":538,"watchers_count":538,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":89,"open_issues":24,"watchers":538,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xoreos/xoreos/pulls/307"},"html":{"href":"https://github.com/xoreos/xoreos/pull/307"},"issue":{"href":"https://api.github.com/repos/xoreos/xoreos/issues/307"},"comments":{"href":"https://api.github.com/repos/xoreos/xoreos/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/xoreos/xoreos/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/xoreos/xoreos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xoreos/xoreos/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/xoreos/xoreos/statuses/58c26873efcac5580dee926c29e7a057c5537e04"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Nostritius"}}