{"action":"created","issue":{"url":"https://api.github.com/repos/haikuports/haikuports/issues/688","repository_url":"https://api.github.com/repos/haikuports/haikuports","labels_url":"https://api.github.com/repos/haikuports/haikuports/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/haikuports/haikuports/issues/688/comments","events_url":"https://api.github.com/repos/haikuports/haikuports/issues/688/events","html_url":"https://github.com/haikuports/haikuports/pull/688","id":164656329,"number":688,"title":"crimson, new recipe for CrimsonFields","user":{"login":"Begasus","id":16057090,"avatar_url":"https://avatars.githubusercontent.com/u/16057090?v=3","gravatar_id":"","url":"https://api.github.com/users/Begasus","html_url":"https://github.com/Begasus","followers_url":"https://api.github.com/users/Begasus/followers","following_url":"https://api.github.com/users/Begasus/following{/other_user}","gists_url":"https://api.github.com/users/Begasus/gists{/gist_id}","starred_url":"https://api.github.com/users/Begasus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Begasus/subscriptions","organizations_url":"https://api.github.com/users/Begasus/orgs","repos_url":"https://api.github.com/users/Begasus/repos","events_url":"https://api.github.com/users/Begasus/events{/privacy}","received_events_url":"https://api.github.com/users/Begasus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-09T08:00:55Z","updated_at":"2016-07-11T12:49:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/haikuports/haikuports/pulls/688","html_url":"https://github.com/haikuports/haikuports/pull/688","diff_url":"https://github.com/haikuports/haikuports/pull/688.diff","patch_url":"https://github.com/haikuports/haikuports/pull/688.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/haikuports/haikuports/issues/comments/231724700","html_url":"https://github.com/haikuports/haikuports/pull/688#issuecomment-231724700","issue_url":"https://api.github.com/repos/haikuports/haikuports/issues/688","id":231724700,"user":{"login":"mmuman","id":470143,"avatar_url":"https://avatars.githubusercontent.com/u/470143?v=3","gravatar_id":"","url":"https://api.github.com/users/mmuman","html_url":"https://github.com/mmuman","followers_url":"https://api.github.com/users/mmuman/followers","following_url":"https://api.github.com/users/mmuman/following{/other_user}","gists_url":"https://api.github.com/users/mmuman/gists{/gist_id}","starred_url":"https://api.github.com/users/mmuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmuman/subscriptions","organizations_url":"https://api.github.com/users/mmuman/orgs","repos_url":"https://api.github.com/users/mmuman/repos","events_url":"https://api.github.com/users/mmuman/events{/privacy}","received_events_url":"https://api.github.com/users/mmuman/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T12:49:28Z","updated_at":"2016-07-11T12:49:28Z","body":"> Signature in rsrc doesn't match constructor arg. (application/x-SDL-executable, application/x-vnd.CrimsonFields) if I change it ...\r\n\r\nThat's because the BApplication-passed signature is hardcoded in libSDL. It shouldn't be that hard to find it from the application's resources instead, I already thought about it but didn't take the time to patch it.\r\n\r\nActually, I already wrote this code for my FLTK port:\r\n```C++\r\n  // default application signature\r\n  const char *signature = \"application/x-vnd.FLTK-app\";\r\n  // dig resources for correct signature\r\n  image_info info;\r\n  int32 cookie = 0;\r\n  if (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {\r\n    fprintf(stderr, \"image:%s\\n\", info.name);\r\n    BFile app(info.name, O_RDONLY);\r\n    if (app.InitCheck() == B_OK) {\r\n      BAppFileInfo app_info(&app);\r\n      if (app_info.InitCheck() == B_OK) {\r\n        char sig[B_MIME_TYPE_LENGTH];\r\n        if (app_info.GetSignature(sig) == B_OK)\r\n          signature = strndup(sig, B_MIME_TYPE_LENGTH);\r\n      }\r\n    }\r\n  }\r\n```"}}
{"actor":{"display_login":"mmuman"}}