{"action":"opened","issue":{"url":"https://api.github.com/repos/ShivamMistry/RSLoader/issues/1","repository_url":"https://api.github.com/repos/ShivamMistry/RSLoader","labels_url":"https://api.github.com/repos/ShivamMistry/RSLoader/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ShivamMistry/RSLoader/issues/1/comments","events_url":"https://api.github.com/repos/ShivamMistry/RSLoader/issues/1/events","html_url":"https://github.com/ShivamMistry/RSLoader/issues/1","id":158425573,"number":1,"title":"Cache files for faster loading.","user":{"login":"wyatt8740","id":2400933,"avatar_url":"https://avatars.githubusercontent.com/u/2400933?v=3","gravatar_id":"","url":"https://api.github.com/users/wyatt8740","html_url":"https://github.com/wyatt8740","followers_url":"https://api.github.com/users/wyatt8740/followers","following_url":"https://api.github.com/users/wyatt8740/following{/other_user}","gists_url":"https://api.github.com/users/wyatt8740/gists{/gist_id}","starred_url":"https://api.github.com/users/wyatt8740/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyatt8740/subscriptions","organizations_url":"https://api.github.com/users/wyatt8740/orgs","repos_url":"https://api.github.com/users/wyatt8740/repos","events_url":"https://api.github.com/users/wyatt8740/events{/privacy}","received_events_url":"https://api.github.com/users/wyatt8740/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T18:23:22Z","updated_at":"2016-06-03T18:23:22Z","closed_at":null,"body":"Launcher should check to see if the 'jav_config.ws' file has been changed and cache the files it needs to download for if it hasn't changed.\r\n\r\nFor example, if I play oldschool once, the launcher will download [http://oldschool.runescape.com/jav_config.ws](http://oldschool.runescape.com/jav_config.ws). it will then download the necessary `gamepack_xxxxxx.jar` file from it, based on the value of `initial_jar`. An entry might read `initial_jar=gamepack_3065604.jar` (and it does right now).\r\n\r\nIt also appears to download `initial_class` - which it doesn't look like the name changes for: `client.class`.\r\n\r\nMy suggestion is that if the checksum of `jav_config.ws` is the same as from the last run, that the launcher just recycle the old files instead of grabbing them again.\r\n\r\nAlternately, it looks like the `jav_config.ws` file also contains a few more helpful entries for more intelligent checking:\r\n```\r\nviewerversion=124\r\nwin_sub_version=1\r\nmac_sub_version=2\r\nother_sub_version=2\r\n```\r\nAnd you could probably checksum `client.class` as well, it's a much smaller file than the gamepack jar file.\r\n\r\nJust some ideas - I'm not sure what is used to determine if the official launcher needs to update. But it would greatly accelerate load time."}}
{"actor":{"display_login":"wyatt8740"}}