Commit graph

70 commits

Author SHA1 Message Date
Ilari Liusvaara
f73a2debd3 More backports of stuff from the wxwidgets branch 2011-11-04 01:19:00 +02:00
Ilari Liusvaara
9e8ba1f68c More backporting changes to core from wxwidgets work 2011-11-03 23:07:21 +02:00
Ilari Liusvaara
dc83a70f3e Whitespace fixes 2011-11-03 17:57:46 +02:00
Ilari Liusvaara
bc12e70cbf Backport some improvements to other stuff from Wxwidgets work 2011-11-03 17:49:23 +02:00
Ilari Liusvaara
829cd4a2d0 Refactor message handling
Refactor message handling so that message buffering and window handling
are in the main window code, leaving only message window rendering to
the platform code.
2011-11-01 14:58:27 +02:00
Ilari Liusvaara
2f20963264 lsnes rr0-β18 2011-11-01 00:25:48 +02:00
Ilari Liusvaara
446ed44470 Move mouse compensation code to generic window code 2011-10-31 21:14:16 +02:00
Ilari Liusvaara
9433afa7a9 Reorganize the window code a bit 2011-10-31 21:05:54 +02:00
Ilari Liusvaara
178a65e9f8 Add joystick init/quit functions and split some SDL joystick funs 2011-10-30 18:31:32 +02:00
Ilari Liusvaara
d92ca1d755 Oops, remove some mistakenly left in debug prints 2011-10-29 18:45:50 +03:00
Ilari Liusvaara
fa4fabdd9e Do color upconversion when copying lcscreen -> screen
It is slightly faster to do the upconversion there (especially when not
dumping).
2011-10-29 18:28:37 +03:00
Ilari Liusvaara
d9100677ff Make sound manipulation commands platform-independent 2011-10-29 14:32:25 +03:00
Ilari Liusvaara
338c6efd14 Add command to show plugins in use 2011-10-28 21:01:29 +03:00
Ilari Liusvaara
f27fb5801f Split platform sound and graphics parts
This is in preparation for supporting sound-only APIs like portaudio,
OpenAL and such.
2011-10-28 20:26:40 +03:00
Ilari Liusvaara
47ca48e166 SDUMP support
This is useful for dumping to high-precision YUV.Note that this code
is very preliminary and thus probably very buggy.
2011-10-27 05:08:46 +03:00
Ilari Liusvaara
e5b743a62a Reformat the flags display (adding new flags for hires and interlace) 2011-10-23 14:06:53 +03:00
Ilari Liusvaara
a8d20f606d Change the RTC time format 2011-10-22 22:58:04 +03:00
Ilari Liusvaara
feea8e41cc lsnes rr0-β17 2011-10-21 15:19:24 +03:00
Ilari Liusvaara
b8c426662b Change color notation to allow Lua scripts use full truecolor 2011-10-21 13:54:47 +03:00
Ilari Liusvaara
7e924d9c83 Be ready if some clown decides to change core frequencies 2011-10-20 17:42:29 +03:00
Ilari Liusvaara
78ea0a9d88 Use C++11 isms new in G++ 4.6. 2011-10-19 19:25:31 +03:00
Ilari Liusvaara
e28c2046e0 Fix all sorts of color fsckups from 16bit to 32bit change 2011-10-19 19:01:13 +03:00
Ilari Liusvaara
2ac0ca2413 Switch back to 32-bit colors
Now that bsnes core supports luma, 32-bit colors are needed to properly
reproduce the colors.
2011-10-19 13:59:54 +03:00
Ilari Liusvaara
dc977fbcee Bump minimum bsnes version to v083.
This also bumps the compiler version to GCC 4.6.
2011-10-14 15:05:13 +03:00
Ilari Liusvaara
2993d6d793 lsnes rr0-β16 2011-10-10 08:28:30 +03:00
Ilari Liusvaara
94b6b3aae8 Fix scaling compensation in mouse clicking
The scaling compensation in mouse clicking could have been wrong. Fix
it to be always right. Also put the code to determine screen scale factors
to one place.
2011-10-08 23:02:47 +03:00
Ilari Liusvaara
b972df809a lsnes rr0-β15 2011-10-05 19:26:53 +03:00
Ilari Liusvaara
949441c12b Refactor current controls code from mainloop.cpp to controller.cpp 2011-10-05 02:24:34 +03:00
Ilari Liusvaara
95b0df8a8b Changes to how read-only works
* Add command that loads savestate in current mode.
* Make jukebox loads use current mode.
* Fix truncation of movie when current_frame = 0
* Add command to set read-only mode
* Add command to toggle read-only mode
2011-10-03 22:32:43 +03:00
Ilari Liusvaara
3517ba2eee Move joystick axis manipulation from SDL to keymapper code
Joystick axis manipulation isn't really platform-dependent, so move it
from SDL platform code to keymapper code. Additionally, add command to
show all axes and parameters.
2011-10-02 22:40:58 +03:00
Ilari Liusvaara
bdd0a17bef All supported platforms support gettimeofday and usleep
Move to using gettimeofday and usleep instead of SDL time and delay
functions.
2011-10-02 19:05:45 +03:00
Ilari Liusvaara
38eec45987 Fix interaction of * and + in commands 2011-10-01 20:47:59 +03:00
Ilari Liusvaara
7a0085290a lsnes rr0-β14 2011-10-01 13:05:03 +03:00
Ilari Liusvaara
7c0a2bc697 Refactor rectangle clipping calculation 2011-09-28 00:14:09 +03:00
Ilari Liusvaara
ae731333cd Refactor gui.text, gui.rectangle and gui.pixel 2011-09-27 02:52:35 +03:00
Ilari Liusvaara
99468dc616 Switch internally to 16-bit graphics instead of 32-bit 2011-09-26 23:35:13 +03:00
Ilari Liusvaara
f2550aebd5 Function comment cleanups 2011-09-26 19:02:43 +03:00
Ilari Liusvaara
ecf559b0ad Remove delayed reset support
Delayed reset code is just plain too buggy. This feature will return if
I figure out how to do it properly.
2011-09-25 23:15:27 +03:00
Ilari Liusvaara
e54fd13bdd Allow disabling time() interception
This prevents recording games using S-RTC but allows building on platforms
not supporting ld --wrap, most notably Mac OS X.
2011-09-25 11:48:36 +03:00
Ilari Liusvaara
3f6ff9f7b5 lsnes rr0-β13 2011-09-25 02:22:18 +03:00
Ilari Liusvaara
847519c961 Use ld --wrap to intercept time() by bsnes core
This allows games using S-RTC to be rerecorded.
2011-09-25 02:13:50 +03:00
Ilari Liusvaara
99a969b54e lsnes rr0-β12 2011-09-24 21:07:25 +03:00
Ilari Liusvaara
42a2f92a44 Keep track of RTC
This can't be used yet (no support for external time source in bsnes, but
it should become handy when such support exists).
2011-09-24 21:05:56 +03:00
Ilari Liusvaara
765c637ae5 Major oops, forgot one source code file 2011-09-24 20:53:37 +03:00
Ilari Liusvaara
eb8dc58677 lsnes rr0-β11 2011-09-24 19:38:27 +03:00
Ilari Liusvaara
f90a3503ef Take interlace into account when determining framerate 2011-09-24 19:29:21 +03:00
Ilari Liusvaara
345daf2cc5 Panic if Lua runs out of memory
This eliminates the most frequent class of Lua errors causing who knows
what to happen.
2011-09-24 13:43:17 +03:00
Ilari Liusvaara
fb5d773339 Create helper class for globals/module-locals used in global ctors 2011-09-24 13:40:13 +03:00
Ilari Liusvaara
a7dd6e22be Reinitialize controls after continuing from loadstate
This should prevent annoying controls getting lost problem.
2011-09-24 06:10:12 +03:00
Ilari Liusvaara
a9edf4cb30 Make autofire pattern repeat in absolute time, not linear time 2011-09-24 06:09:25 +03:00