{"action":"created","issue":{"url":"https://api.github.com/repos/mgba-emu/mgba/issues/445","repository_url":"https://api.github.com/repos/mgba-emu/mgba","labels_url":"https://api.github.com/repos/mgba-emu/mgba/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/mgba-emu/mgba/issues/445/comments","events_url":"https://api.github.com/repos/mgba-emu/mgba/issues/445/events","html_url":"https://github.com/mgba-emu/mgba/issues/445","id":183235311,"number":445,"title":"Overrides don't apply if window is closed","user":{"login":"rweichler","id":1661613,"avatar_url":"https://avatars.githubusercontent.com/u/1661613?v=3","gravatar_id":"","url":"https://api.github.com/users/rweichler","html_url":"https://github.com/rweichler","followers_url":"https://api.github.com/users/rweichler/followers","following_url":"https://api.github.com/users/rweichler/following{/other_user}","gists_url":"https://api.github.com/users/rweichler/gists{/gist_id}","starred_url":"https://api.github.com/users/rweichler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rweichler/subscriptions","organizations_url":"https://api.github.com/users/rweichler/orgs","repos_url":"https://api.github.com/users/rweichler/repos","events_url":"https://api.github.com/users/rweichler/events{/privacy}","received_events_url":"https://api.github.com/users/rweichler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgba-emu/mgba/labels/minor%20bug","name":"minor bug","color":"fad8c7"},{"url":"https://api.github.com/repos/mgba-emu/mgba/labels/port:Qt","name":"port:Qt","color":"0e8a16"},{"url":"https://api.github.com/repos/mgba-emu/mgba/labels/usability","name":"usability","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-15T21:57:17Z","updated_at":"2016-10-16T20:21:09Z","closed_at":null,"body":"# With no ROM loaded\r\n![screen shot 2016-10-15 at 2 49 50 pm](https://cloud.githubusercontent.com/assets/1661613/19413595/bffac1c2-92e6-11e6-9f04-9749a621c731.png)\r\n\r\n* Save option is not selectable, even after changing settings\r\n\r\n# With a ROM loaded\r\n![screen shot 2016-10-15 at 2 49 35 pm](https://cloud.githubusercontent.com/assets/1661613/19413599/d2385fb6-92e6-11e6-9bc5-91b152aad7ee.png)\r\n\r\n\r\n* Save option is selectable for some reason?"},"comment":{"url":"https://api.github.com/repos/mgba-emu/mgba/issues/comments/254071894","html_url":"https://github.com/mgba-emu/mgba/issues/445#issuecomment-254071894","issue_url":"https://api.github.com/repos/mgba-emu/mgba/issues/445","id":254071894,"user":{"login":"rweichler","id":1661613,"avatar_url":"https://avatars.githubusercontent.com/u/1661613?v=3","gravatar_id":"","url":"https://api.github.com/users/rweichler","html_url":"https://github.com/rweichler","followers_url":"https://api.github.com/users/rweichler/followers","following_url":"https://api.github.com/users/rweichler/following{/other_user}","gists_url":"https://api.github.com/users/rweichler/gists{/gist_id}","starred_url":"https://api.github.com/users/rweichler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rweichler/subscriptions","organizations_url":"https://api.github.com/users/rweichler/orgs","repos_url":"https://api.github.com/users/rweichler/repos","events_url":"https://api.github.com/users/rweichler/events{/privacy}","received_events_url":"https://api.github.com/users/rweichler/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T20:21:09Z","updated_at":"2016-10-16T20:21:09Z","body":"Alright.... something really weird is going on. I changed this on line 255 of `src/gba/core.c`:\r\n\r\n```c\r\n    struct GBACartridgeOverride override;\r\n    const struct GBACartridge* cart = (const struct GBACartridge*) gba->memory.rom;\r\n    if (cart) {\r\n        memcpy(override.id, &cart->id, sizeof(override.id));\r\n        if (GBAOverrideFind(gbacore->overrides, &override)) {\r\n            GBAOverrideApply(gba, &override);\r\n        }\r\n        GBAHardwareInitRTC(&gba->memory.hw); // new code\r\n    }\r\n```\r\n\r\nAnd the realtime clock *still* doesn't work! :/ Any ideas?"}}
{"actor":{"display_login":"rweichler"}}