Ilari Liusvaara
1c48e0ab06
Fix multiple problems with text drawing
...
- Fix the background to be of correct size
- Fix pre/post error in gui.text() positioning
- Fix pre/post error in custom font rendering, leading to crap pixels
2015-06-04 02:01:43 +03:00
Ilari Liusvaara
2da23de987
Small whitespace cleanup
2015-05-27 23:08:54 +03:00
Ilari Liusvaara
0d83c3aba6
Rework how memory tracking works
...
Also adds a few new tracking categories, like movie storage
2015-05-27 17:59:00 +03:00
Ilari Liusvaara
0960e967ea
Memory tracker: Add tracking of render objects
2015-05-27 16:28:01 +03:00
Ilari Liusvaara
c2a7eed9d8
Clean up system font drawing
...
Refactor font reading to fewer places
2015-05-27 15:38:22 +03:00
Ilari Liusvaara
1dd19faaeb
Make git diff --check happier
2015-05-27 11:14:56 +03:00
Ilari Liusvaara
0c0156647b
Redo text rendering (adds halo support to gui.text())
...
Now gui.text() and friends support halos. Also fixes a bug with partially
opaque halos in CUSTOMFONT rendering.
2015-05-27 10:44:50 +03:00
Ilari Liusvaara
56deafcd4a
Framework for memory usage tracking
...
Adds tracking for Lua VM and ROM images. The rest comes later.
2015-05-26 13:16:09 +03:00
Ilari Liusvaara
82a7c255a4
Lua: Memory usage limit
...
This allows limiting memory usage by Lua, which might very well be useful,
given the behaviour of accumulating garbage in memory if one does not
garbage-collect.
2015-05-25 23:44:51 +03:00
Ilari Liusvaara
478472e883
Have only one main Lua function trampoline
...
This makes it easier to have special modes when Lua functions are running
later...
2015-05-25 21:16:45 +03:00
Ilari Liusvaara
04d7e60fe1
Fix race between killing object and drawing object
...
Previously, it was possible to draw and kill object queue at the same
time, possibly leading to crashes from accessing object state after
destroying it. Fix this.
2015-05-14 19:20:21 +03:00
Ilari Liusvaara
eeaf3706d8
Add dedicated method for resetting to poweron state
...
This speeds up "rewind to beginning" operation.
2015-04-27 10:03:28 +03:00
Ilari Liusvaara
17efbec1a6
Clean up dynamic state handling a bit
2015-04-25 15:51:18 +03:00
Ilari Liusvaara
39286f820a
Refactor unsafe rewinding a bit now that state is its own subobject
2015-04-25 13:18:37 +03:00
Ilari Liusvaara
653f44e353
Refactor dynamic state to its own subobject
...
This is meant as base for further refactoring
2015-04-14 15:39:50 +03:00
Ilari Liusvaara
a45baf5559
Mark the core methods that should be idempotent as const
2015-04-14 13:06:13 +03:00
Ilari Liusvaara
3571fb3e08
Refer to loaded ROM imagesets as handles
2015-04-14 12:34:19 +03:00
Ilari Liusvaara
b7aedc6cd9
Internally refactor loaded ROM imageset out of loaded ROM code
2015-04-14 11:25:10 +03:00
Ilari Liusvaara
1bf49d532d
Move NULL core code to its own file
2015-04-14 10:27:35 +03:00
Ilari Liusvaara
a6b7391da5
Refactor loaded_rom to make public fields private
2015-04-14 10:21:31 +03:00
Ilari Liusvaara
a1b96d75da
Split overly large loaded_rom constructor
2015-04-11 20:31:23 +03:00
Ilari Liusvaara
63b59e35f7
Lua: Don't run class destructor if constructor failed
2015-03-04 22:34:03 +02:00
Ilari Liusvaara
8e95c54d68
Throw mic in to entropy pool
2015-02-27 19:02:25 +02:00
Ilari Liusvaara
791684edc3
wxwidgets: Hide dumper called "NULL"
...
This is not working dumper (it is meant for PGO using lsnes-dumpavi),
so don't show it.
2015-02-12 13:16:56 +02:00
Ilari Liusvaara
ff1004d7fa
If initsram/initstate points to LSS file, pull the matching member
2015-02-12 01:40:36 +02:00
Ilari Liusvaara
bdcf21a4e1
Movie editor: Fix unnamed branch to show properly in select branch
2015-02-12 00:38:07 +02:00
Ilari Liusvaara
95ec8a8ba7
Lua: add gui.get_runmode()
2015-02-11 21:24:06 +02:00
Ilari Liusvaara
54cbe456b4
Move all regex matching to library/string.cpp
...
This is in preparation to having an option to use std::regex. Also should
fix a few bugs with trace log.
2015-02-07 14:37:18 +02:00
Ilari Liusvaara
94b603c9f2
Fix some compilation errors on Mac OS X
2015-02-04 21:28:25 +02:00
Ilari Liusvaara
2312324824
Only exit poll advance on poll to non-00 control
2015-01-30 19:45:46 +02:00
Ilari Liusvaara
d09d301849
Add commands and Lua functions to manipulate running speed
2015-01-17 09:25:50 +02:00
Ilari Liusvaara
346ea41e0d
Fix Win32 build
2015-01-13 22:49:32 +02:00
Ilari Liusvaara
71b57756ca
Cleanup Lua multiversion support
2015-01-06 08:13:10 +02:00
Ilari Liusvaara
f4c1bc6e84
Lua 5.3 support
2015-01-06 05:19:39 +02:00
Ilari Liusvaara
50fd1b6b5f
Don't let one unload currently used core (crashes the emulator)
2015-01-06 02:55:03 +02:00
Ilari Liusvaara
5dedb34943
Lua: PALETTE:get()
2014-12-20 06:38:47 +02:00
Ilari Liusvaara
03a57aa421
runuifun: Allow marking cb routine to run once at a time
2014-12-10 08:55:02 +02:00
Ilari Liusvaara
4d86f19837
Add the UI thread checking code
...
Might still have some false positives.
2014-12-09 16:46:50 +02:00
Ilari Liusvaara
9fdd0bdd38
Tweak format of command help files and do some further command cleanup
2014-11-18 16:19:01 +02:00
Ilari Liusvaara
028a51066c
Show VMA relative hex address when dumping debug hook list
2014-11-18 07:43:05 +02:00
Ilari Liusvaara
5ddf119ef0
Reinitialize gamepads command and fix EVDEV going bonkers on gamepad suddenly disconnecting
2014-11-17 20:12:20 +02:00
Ilari Liusvaara
3b2298180a
Allow binding commands to class instance
2014-11-17 15:55:14 +02:00
Ilari Liusvaara
5ee7962cb9
Rudimentary library unloading support
...
Rather easy to crash the emulator with this, but...
2014-11-17 15:10:13 +02:00
Ilari Liusvaara
b218c1aaa0
Allow memory watch to read registers
2014-11-11 20:56:54 +02:00
Ilari Liusvaara
212d554ad1
Split audioapi to core interface and driver interface parts
2014-11-10 19:52:10 +02:00
Ilari Liusvaara
e2589db8b7
Rename token_iterator_foreach to token_iterator::foreach
2014-11-10 16:54:18 +02:00
Ilari Liusvaara
b0c08d3a9f
Make workthread a class in top namespace and move some stuff under it
2014-11-10 16:26:16 +02:00
Ilari Liusvaara
3c2b0402b2
Refactor memory_region{,_direct} to be subclasses of memory_space
2014-11-10 16:19:27 +02:00
Ilari Liusvaara
b5ed0f73b1
Refactor library GC to its own namespace
2014-11-10 16:06:04 +02:00
Ilari Liusvaara
9a69dc3511
Namespace library port-controller stuff
2014-11-10 05:13:34 +02:00