{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2182","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2182/labels{/name}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2182/comments","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2182/events","html_url":"https://github.com/OpenRCT2/OpenRCT2/issues/2182","id":114511027,"number":2182,"title":"Feature request: Allow using the executable's directory to store user files for portable installation","user":{"login":"osconnoisseur","id":15527244,"avatar_url":"https://avatars.githubusercontent.com/u/15527244?v=3","gravatar_id":"","url":"https://api.github.com/users/osconnoisseur","html_url":"https://github.com/osconnoisseur","followers_url":"https://api.github.com/users/osconnoisseur/followers","following_url":"https://api.github.com/users/osconnoisseur/following{/other_user}","gists_url":"https://api.github.com/users/osconnoisseur/gists{/gist_id}","starred_url":"https://api.github.com/users/osconnoisseur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osconnoisseur/subscriptions","organizations_url":"https://api.github.com/users/osconnoisseur/orgs","repos_url":"https://api.github.com/users/osconnoisseur/repos","events_url":"https://api.github.com/users/osconnoisseur/events{/privacy}","received_events_url":"https://api.github.com/users/osconnoisseur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/labels/feature","name":"feature","color":"91ca55"},{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/labels/platform","name":"platform","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-11-02T02:16:22Z","updated_at":"2015-11-03T19:26:38Z","closed_at":null,"body":"The current behavior is that platform_get_user_directory() returns a subdirectory of the user's home, and OpenRCT2 uses this path to store all of the user's files and saved games. This is usually \"C:\\Users\\<username>\\OpenRCT2\" or \"C:\\Documents and Settings\\<username>\\OpenRCT2\" on Windows and \"/home/<username/.config/OpenRCT2\" on Linux. I think it would be a nice idea to first check to see if config.ini is in the executable's directory, and if it is, set a flag and have platform_get_user_directory() return the executable's directory so that all of the user's files are stored locally. If it is not, just have platform_get_user_directory() do its current behavior and return the subdirectory of the user's home.\r\n\r\nBy doing this, a user can simply place config.ini in the same directory of OpenRCT.exe to make it portable. Normal installations using the installer won't have config.ini in the executable's directory, and so OpenRCT would work just like it does currently."},"comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments/153461837","html_url":"https://github.com/OpenRCT2/OpenRCT2/issues/2182#issuecomment-153461837","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/2182","id":153461837,"user":{"login":"janisozaur","id":550290,"avatar_url":"https://avatars.githubusercontent.com/u/550290?v=3","gravatar_id":"","url":"https://api.github.com/users/janisozaur","html_url":"https://github.com/janisozaur","followers_url":"https://api.github.com/users/janisozaur/followers","following_url":"https://api.github.com/users/janisozaur/following{/other_user}","gists_url":"https://api.github.com/users/janisozaur/gists{/gist_id}","starred_url":"https://api.github.com/users/janisozaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janisozaur/subscriptions","organizations_url":"https://api.github.com/users/janisozaur/orgs","repos_url":"https://api.github.com/users/janisozaur/repos","events_url":"https://api.github.com/users/janisozaur/events{/privacy}","received_events_url":"https://api.github.com/users/janisozaur/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T19:26:38Z","updated_at":"2015-11-03T19:26:38Z","body":"I'm fine with anything, as long as it's consistent and clearly communicated. There's only one thing which you should not do: provide long options with single dash. But it's already done this way, so just keep it up as is.\r\n\r\n@IntelOrca in that case `--data`, `--data-path` would be something I'd expect. It's just my personal opinion that `--home` looks strange, but I'm fine with it really."}}