160 Commits
Author SHA1 Message Date
Daniel Brooks 3ffd13747f cosmetic; silence a few warnings from js2-mode about return values 2016-03-01 10:42:55 -08:00
Daniel Brooks 029855f820 bare-minimum fix for gamepads. no ui, no hooks, and mame doesn't notice them unless you press a button on the gamepad before we start it 2016-03-01 10:28:10 -08:00
Grant Galitz 1f579da61c welcome to hell
firefox bug workaround that needs to exist until mozilla fixes said bug.
2016-02-03 16:55:02 -05:00
Grant GalitzandDaniel Brooks 4a5277c1cb clean up the sound output quite a lot 2016-02-03 06:20:39 -08:00
Daniel Brooks e701aa8f66 gracefully handle a failure to access the IndexedDB 2015-09-13 16:34:38 -07:00
Daniel Brooks 2655177171 spruce up error handling
It now correctly "stops" on the step that failed (later steps return
early), allowing the correct error message to show. This fixes the last
and most important review comment from Alex.
2015-07-02 09:05:36 -07:00
Daniel Brooks 608890543c just tweak some indentation 2015-06-25 17:01:53 -07:00
Daniel Brooks 2281f3055f last review comment by Alex; no need to keep searching once we've found the dosbox config file 2015-06-25 01:18:21 -07:00
Daniel Brooks a4bc4aa748 address minor review comments by Alex Vincent 2015-06-24 18:49:18 -07:00
Daniel Brooks ae15fa8861 move config to the correct place
code documentation should describe the difference better (or perhaps
should explain it in the first place)
2015-06-24 18:47:54 -07:00
Daniel Brooks 718011a76b clean up indentation 2015-06-24 18:47:37 -07:00
John Vilk 3899c28d68 Use different IndexedDB stores for each game. 2015-06-08 22:07:16 -07:00
John Vilk eb5d3f2608 [BETA] Can now persist save files. 2015-06-07 22:31:00 -07:00
Daniel Brooks 16455e62b1 add checkmarks on success/Xs on failure 2015-05-18 11:42:26 -07:00
Daniel Brooks fdd803c8fd remove obsolete loader_game check 2015-05-18 01:36:21 -07:00
Daniel Brooks 8a7efdfc59 handle error status codes when fetching files
we were completely falling over on a simple 404, which is dumb.
2015-05-18 01:27:20 -07:00
Daniel Brooks 3c43816d1a clean up styling in the xhr success/failure cases 2015-05-18 01:27:19 -07:00
Daniel Brooks fa66c5c6c9 just show the title on each row of the status table 2015-05-18 01:27:19 -07:00
Daniel Brooks 155b60ad6e clean up splash-screen colors 2015-05-18 01:25:57 -07:00
Daniel Brooks 5fa420ad8d actually remove spinner element 2015-05-18 00:50:41 -07:00
Daniel Brooks 35135cfe44 nuke the spinner, and the animation code 2015-05-18 00:34:56 -07:00
Daniel Brooks 0e0d6e0846 don't tie the splash screen to the height of the canvas
I should probably do something similar for the width, but that's more
complicated.
2015-05-15 11:23:30 -07:00
Daniel Brooks a716cdb6d5 use a spinner image that stands out from the default black background better
I just used a quick google image search to find
http://www.clker.com/clipart-15492.html; it's possible that there are
better images to use out there.
2015-05-13 15:50:18 -07:00
Daniel Brooks 599ee0bb95 splash screen no longer draws on the canvas
Since we're no longer creating a 2d context to draw the splash screen,
there's no problem if the emulator wants to create a 3d context.
2015-05-13 15:48:36 -07:00
Daniel Brooks 170e6a28ae tweak the hostname hack so that it works better with archive.org's test subdomains 2015-05-08 14:45:26 -07:00
Tracey JaquithandDaniel Brooks 1d91bfd724 fix CORS for safari/ie 2015-05-01 00:04:31 -07:00
Daniel Brooks 1ab9544534 allow for more callbacks, and call one just before we load the emulator as well as after it's loaded 2015-04-12 20:54:52 -07:00
Daniel Brooks 9ac6b8a3df correct name for the IA logo 2015-04-12 19:43:28 -07:00
Daniel Brooks 1eab408fb7 apparently an image that was 404 can still be considered complete 2015-04-12 10:54:49 -07:00
Daniel Brooks 974a0820e3 handle missing splash/spinner images better 2015-04-12 10:36:12 -07:00
Daniel Brooks f498739d35 tweak positioning of the logo in the splash screen
for reduced crampedness
2015-04-11 15:37:23 -07:00
Daniel Brooks 857737f166 bundle the IA and emulator logos
Drawing an image from another origin into the canvas prevents the
emulator from later reading data out of the canvas.
2015-04-11 11:05:02 -07:00
Daniel Brooks 17e9ae3e16 bigger IA logo 2015-04-11 10:58:56 -07:00
Daniel Brooks 2d3807296e fix js error
really need to write a replacement for that
2015-04-11 10:57:49 -07:00
Daniel Brooks d5d4b9d23f use the IA logo until we know which emulator logo to show 2015-04-11 03:48:28 -07:00
Daniel Brooks 0ec9153d06 handle an unknown native resolution without errors, at least 2015-04-02 19:29:47 -07:00
Daniel Brooks 25b3e7b7d5 fix scaling behavior 2015-04-02 19:15:23 -07:00
Daniel Brooks ea79f25fdb show a percentage in the splash screen if we can 2015-03-25 19:08:14 -07:00
Daniel Brooks b5076a16e5 log of 0 is -Inf, so handle that case separately 2015-03-25 19:07:58 -07:00
Daniel Brooks f997324eec convenient place to list the default option values 2015-03-25 16:53:37 -07:00
Daniel Brooks 57df095229 show download progress on splash screen 2015-03-25 16:51:24 -07:00
Daniel Brooks fd8ef99c54 add a -conf option to point dosbox to the config file
This doesn't seem to cause any problems if the file is missing, which is
good.
2015-03-24 15:13:45 -07:00
Daniel Brooks 6714044780 make the 'press any key' pause opt-in 2015-03-17 04:48:06 -07:00
Daniel Brooks a62d19cdfc correct the positioning of the loading status
by appending it not to the end of the document, but into the parent
element of the canvas
2015-03-17 04:34:40 -07:00
Daniel Brooks 812f14cf86 git rid of 'raw' param to fetch_file
It didn't really do what it sounded like it did; it just converted the
response to an Int8Array. This would only work if the result type was
either null or 'arraybuffer', and we then have to immediately convert
that into a BrowserFS Buffer. Since we can do that directly from an
ArrayBuffer, this is just extra work. Additionally, for rediculuous
reasons a 0-length Int8Array can't be converted into a Buffer, so we
would have a spurious failure if we got a 0-byte response. This then is
the very definition of an anti-feature.
2015-03-17 04:28:30 -07:00
Daniel Brooks 43e7b02fa0 fix the permissions problem when decompressing a zip file 2015-03-14 18:40:33 -07:00
Daniel Brooks 1aea283378 swap foreground and background colors on the splash screen to match IA v2 interface 2015-03-13 15:42:58 -07:00
Daniel Brooks 1dda3d145c "fix" an error when loading in IA v2 interface
Honestly this is a hack. IA is kindly providing us with an object that
has split out the item name, file name, and a few other things. We treat
it as a path (by calling its special toString() method) and then later
split that path into path components to find the item name. Yay.
2015-03-13 15:41:01 -07:00
Daniel Brooks 7f1e9ce7c8 set the loading progress' foreground color when updating the splash screen in case the colors have been inverted 2015-03-13 10:50:17 -07:00
Daniel Brooks 67652ad976 fix filename when saving 2015-03-13 10:31:09 -07:00