Commit Graph
74 Commits
Author SHA1 Message Date
Daniel Brooks 43e7b02fa0 fix the permissions problem when decompressing a zip file 2015-03-14 18:40:33 -07:00
Daniel Brooks 78b76eca53 tweak IALoader example in README 2015-03-13 15:43:19 -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 c655415da7 bare-bones html/js example files to get you started 2015-03-13 10:45:11 -07:00
Daniel Brooks 67652ad976 fix filename when saving 2015-03-13 10:31:09 -07:00
Daniel Brooks 039154dc8d initialize the webaudio wrapper for mess/mame 2015-03-13 10:29:29 -07:00
Daniel Brooks 11804214ca tweaks to the readme 2015-03-04 00:11:02 -08:00
Daniel Brooks 3371774d1c finally, we need not be given a promise of a config; a config will work just fine 2015-03-03 23:53:47 -08:00
Daniel Brooks 77591b8441 typo 2015-03-03 23:53:06 -08:00
Daniel Brooks 5606ee52ab use computed style to get width/height of canvas 2015-03-03 23:52:52 -08:00
Daniel Brooks 5b45ebaac7 IA's mess/mame config files are loaded from a different url 2015-03-03 23:52:20 -08:00
Daniel Brooks c344a4593b add browserfs 2015-03-03 23:51:17 -08:00
Daniel Brooks 95caa22035 move promises to the correct filename 2015-03-03 23:51:06 -08:00
Daniel Brooks 8607c59787 mention run-time api 2015-02-27 16:54:19 -08:00
Daniel Brooks 8ff85a34d8 improve readme a bit: IA, known issues 2015-02-27 16:42:56 -08:00
Daniel Brooks c6721bf5d2 first stab at a readme 2015-02-27 16:02:22 -08:00
Daniel Brooks 1b8a17a31a fix peripheral handling for mess/mame 2015-02-26 12:27:21 -08:00
Daniel Brooks 2e0578cdef fix url for bios files 2015-02-26 12:12:55 -08:00
Daniel Brooks 78fbc4a7f6 fix arguments for build_mess_arguments 2015-02-26 12:04:09 -08:00
Daniel Brooks 46b3e6a020 remove es6-promise code from loader.js, now that IE loads it from the proper file 2015-02-26 11:42:54 -08:00
Daniel Brooks a3a5ce3d0c merge the jsmess and emdosbox loaders
The same code now handles both, and the config api is specialized for
them as well.
2015-02-26 11:38:23 -08:00
Daniel Brooks 991d5465e8 fix the positioning of the progress indicators
This covers the case where we measured the wrong height for the splash
image originally, when there's a slight delay in loading it.
2015-02-09 21:23:08 -08:00
Daniel Brooks 9f7c543924 new config functions
This simplifies the work that the user needs to do, especially for
downloading game files and unpacking them.
2015-02-09 15:42:57 -08:00
Daniel Brooks 960c6adef5 use less of a hack when dealing with the 'game' argument 2015-02-06 01:17:11 -08:00
Daniel Brooks 66d87856bc call the method using the right name 2015-02-06 01:15:24 -08:00
Daniel Brooks d616d4c055 add a mute method 2015-02-05 22:43:33 -08:00
Daniel Brooks 767d04119f rename to Emulator, so that we can recombine it with the jsmess loader 2015-02-04 03:30:31 -08:00
Daniel Brooks a64a797dae set up resolution/scale/aspect ratio api 2015-02-04 03:28:08 -08:00
Daniel Brooks b76a0be35f Move all IA code into a different constructor 2015-02-04 00:36:21 -08:00
Daniel Brooks 6732de204a move a bunch of random stuff into the loader
It's not all in it's final form yet, but most of this will be methods
called by the user of the loader.
2015-02-03 22:19:30 -08:00
Daniel Brooks e84c39cc0c Allow changing the colors used in the splash screen 2015-01-28 19:05:48 -08:00
Daniel Brooks db0d970dd6 Merge branch 'master' into promises
Conflicts:
	emdosbox-loader.js
2015-01-28 11:31:31 -08:00
Daniel Brooks ddb52d890c let the config file tell emscripten where ancillary files are 2015-01-27 17:09:01 -08:00
Daniel Brooks eefef077c0 show 'n of m' to differentiate game files instead of their url 2015-01-27 09:52:46 -08:00
Daniel Brooks d6a77de91c don't hide download status on failure 2015-01-25 06:46:32 -08:00
Daniel Brooks e3eb04894a fix property name 2015-01-25 06:41:19 -08:00
Daniel Brooks 1655701034 add local emacs settings 2015-01-25 06:40:00 -08:00
Daniel Brooks 09db127d95 add some error messages for download failures 2015-01-25 06:39:24 -08:00
Daniel Brooks 0ef8e8332c show basic download status information 2015-01-25 06:32:15 -08:00
Daniel Brooks 9df9b0bab1 Remove unused line 2015-01-24 13:13:50 -08:00
Daniel Brooks 4c3a89752c correctly handle executables inside subdirectories 2015-01-24 11:54:33 -08:00
Daniel Brooks 8e64147290 wait for key press after all downloads are complete
but still before launching the emulator. Technically we "launch" the
emulator by adding a script tag to the document, so it may still have to
download that. It'd be nice if we could include that earlier and call a
method to start things up.
2015-01-24 11:09:21 -08:00
Daniel Brooks 996671b854 show loading animation right away
Also clean up the animation code a bit, and use requestAnimationFrame if
it's available.
2015-01-24 10:59:40 -08:00
Daniel Brooks 94bb759d92 Allow loading multiple zips, as separate drives
This is keyed off of the item metadata; use
dosbox_drive_d=item/path/to/file.zip to mount a zip file from an item as
drive D.
2015-01-24 08:18:49 -08:00
Daniel Brooks d308ad8d61 move that url to a getter like the rest
also whitespace, because reasons
2015-01-17 02:15:35 -08:00
Daniel Brooks 88226ba09f gather the skeins
By combining start and try_start into a single promise chain, and
straightening out the logic a bit, we simultaneously make the sequence
of events much clearer, and eliminate several possibilities for
bugs (nothing can be called out of order).
2015-01-17 02:08:16 -08:00
Daniel Brooks 7d4c75378c use Promises, to make extending the file dependencies easier
includes a polyfill for IE; this is included in emdosbox-loader.js for
the moment
2015-01-16 07:58:54 -08:00
John Vilk b2eadbaeb0 Hackfixing a race condition where user clicks play before module data is loaded.
IA has a separate click handler on emdosbox that is out of our control, violating internal loader assumptions that the emulator cannot be started before module data downloads.
2015-01-15 23:20:02 -05:00