adelikat
40e19e64fe
oops
2020-07-13 17:25:16 -05:00
adelikat
b87f976c39
remove some unused usings
2020-07-13 15:01:14 -05:00
adelikat
6a3b014fe3
make a thing readonly
2020-07-13 12:06:48 -05:00
nattthebear
59be09b515
Make picodrive work again
...
All picodrive games were broken by 316a9d1568
2020-07-13 06:16:16 -04:00
nattthebear
5a1b5915bf
Fix compiling on ancient compilers, and add a global.json which restricts bizhawk to ancient compilers
2020-07-12 17:24:12 -04:00
nattthebear
570f17cedd
Bit more W65816 disassembler cleanup
2020-07-12 17:14:47 -04:00
adelikat
316a9d1568
gamedb - replace pico with picodrive, remove core name look up in romloader in favor of this pico change combined with a case insensitive compare
2020-07-12 16:10:01 -05:00
adelikat
b22a1070a4
W65816 Disassembler - assign ibuf to null, so it compiles
2020-07-12 16:06:45 -05:00
adelikat
ed9b7b3eb1
Lua address several memory leaks - when a script stops, take any registered functions and spawn new threads for them to execute, and regularly dispose them. Also, the main lua thread needs to have scheduled disposes run on it, even if there is no active scripts (it was being run as part of disposing individual scripts, needs refactoring). All of this fixes #1920
2020-07-12 15:48:50 -05:00
nattthebear
9278c526d0
fix a few compiler warnings
2020-07-12 16:02:26 -04:00
adelikat
1e3324cfab
Registered Lua Functions dialog - update when a lua script unregisters a file, make dupating more robust to catch other possible scenarios where it failed to update
2020-07-12 13:19:48 -05:00
adelikat
c4bcb2451a
remove now unused class in RomLoader.cs
2020-07-12 13:03:32 -05:00
adelikat
05709628e8
remove a jillion unused usings in RomLoader.cs
2020-07-12 13:02:12 -05:00
adelikat
40ad7ed67e
Lua - account for callbacks with no parent script creating more callbacks by generating a mock lua file with a new thread, and register the thread with the sandbox. Fixes #1983 . Not super proud of this.
2020-07-12 12:58:43 -05:00
nattthebear
021b1639c2
Remove special code for UnsupportedGameException in RomLoader
...
This shouldn't be needed anymore
2020-07-12 13:48:46 -04:00
nattthebear
78bbc75f33
multi rom loading by xml all uses core inventory now
2020-07-12 13:45:33 -04:00
nattthebear
8d56b65734
Convert all single-CD loading to use CoreInventory
2020-07-12 13:21:10 -04:00
nattthebear
ab07e67a07
PCEHawk: Use CoreLoadParameters for cd mode
2020-07-12 13:06:15 -04:00
nattthebear
744a9a97d0
Remove custom loader code for ChannelF
2020-07-12 12:54:36 -04:00
nattthebear
5c5ffed5ff
Next piece of the puzzle
...
This probably breaks something. I am sorry, grab me and I'll fix it
2020-07-12 12:52:27 -04:00
adelikat
33a0954087
lua console - fix recent scripts not updating when creating a new script, opening a script, or duplicating a script. Might be other scenarios that are currently missing (regression from some refactors about a month ago)
2020-07-12 11:12:29 -05:00
nattthebear
4ad89667d6
This will get simpler I promise
2020-07-12 11:37:06 -04:00
nattthebear
6f218ff20b
Remove a benign null reference exception
...
This was in a try catch so you got the null you needed anyway, but it could be confusing to see in a debugger report
2020-07-12 11:10:57 -04:00
alyosha-tas
06fa96e335
O2: finish g7400 graphics set
2020-07-12 10:44:11 -04:00
nattthebear
81d0b4ec9e
Revert "Replace dynamic type w/ casts in CoreInventory/CLP"
...
This reverts commit 9ee4821148
.
# Conflicts:
# src/BizHawk.Emulation.Cores/CoreLoadParameters.cs
This didn't actually work, so revisit later
2020-07-12 10:18:08 -04:00
nattthebear
f41a70ef32
swish swish
2020-07-12 09:06:20 -04:00
alyosha-tas
f5efbff1d3
O2: more g7400 work
2020-07-12 09:03:28 -04:00
nattthebear
9072614dfb
romloader cleanup
2020-07-12 08:09:50 -04:00
nattthebear
dc8615ca06
fix compile, sorry sorry
2020-07-12 07:36:06 -04:00
nattthebear
80793836d3
Use CoreLoadParameters on dual gambatte
2020-07-12 07:28:06 -04:00
nattthebear
9d9dd8a0fd
More romloader stuff
...
It'll all come together eventually
2020-07-12 07:08:52 -04:00
YoshiRulz
9ee4821148
Replace dynamic type w/ casts in CoreInventory/CLP
...
dynamic introduced in cc9d7df9f
2020-07-12 17:30:10 +10:00
adelikat
c712bde84e
remove firmware manager dependency from RomLoader, and a few other cleanups
2020-07-11 20:10:23 -05:00
nattthebear
467f0aff2b
Refactor 32x loading
...
less code is good good
2020-07-11 20:38:09 -04:00
nattthebear
502aef73a0
Clean up ti 83 loading. Probably works, but I have nothing to test against it
2020-07-11 20:31:36 -04:00
adelikat
8900618ce1
respect the Movie end type when loading .tasproj files outside of tastudio
2020-07-11 18:52:52 -05:00
adelikat
1f39160999
give up on the idea of throwing an exception when attaching a core to a movie. The reason this doesn't work is that restart movie keeps the movie in memory (which was previously attached). This commit decrees that it is safe to keep a movie in memory, and attach to a new instance of the same core. The alternative is that movies would have to save and load on restart which is slow and may not be desired
2020-07-11 18:03:53 -05:00
nattthebear
86ac6eadcc
Romloader omega refactor: Use CoreLoadParameters for PSX
2020-07-11 18:47:56 -04:00
nattthebear
6657917281
Fix parse error loading CCD files
2020-07-11 18:47:56 -04:00
adelikat
9d054d19f6
bk2 and tasproj movies - respect the preload flag, only loads header and inputlog. This speeds up the play movie dialog by 50-100%, a lot more if there is a large sizeable .tasproj files in the folder
2020-07-11 17:06:40 -05:00
adelikat
a19791a212
Fm2Import - warn about ignoring the famicom port, instead of a full error, apparently movies can have this port set, but to none, so importing the movie can still be successful, for example: http://tasvideos.org/6739S.html , fixes #1989
2020-07-11 15:57:08 -05:00
nattthebear
7e2251b795
Fix the CoreLoadParameters <-> CoreInventory interop
2020-07-11 16:46:16 -04:00
nattthebear
dbb73805db
error message cleanup
...
Once everything is unified, we'll probably hit this path once in a while
2020-07-11 16:46:16 -04:00
nattthebear
cc9d7df9f7
WIP of some romloader cleanups
...
This one commit doesn't make things cleaner by itself, no. The rough idea is that eventually (R) we'll pass all cores that currently use mangled arse-custom constructors with custom code all o'er the place a single, awesome, CoreLoadParameters object.
Then the romloader can be changed to just synthesize this object on one common codepath, some bs for core preferences, and boom everything is perfect. Sort of.
2020-07-11 16:46:16 -04:00
adelikat
3a820302e3
improve name of a method
2020-07-11 15:42:47 -05:00
adelikat
e5dc473203
inputroll - make escape clear selected items, this was being done custom in ram search but makes sense to be a consistent feature. It's possible people will be upset with this in tastudio since this is new functionality (and not in taseditor either)
2020-07-11 15:41:45 -05:00
adelikat
d44e96f535
remove some redundant code
2020-07-11 15:35:50 -05:00
adelikat
aeaf6aa282
add some KeyCode extension methods to make KeyUp/Down event methods easier to read
2020-07-11 15:35:00 -05:00
alyosha-tas
e29d024a90
O2: graphics work
2020-07-11 16:31:42 -04:00
adelikat
be93903c12
Play Movie dialog - properly show tooltips for detail values, also show expected vs actual (only works on the key column though, because winforms is poo), fixes #1888
2020-07-11 14:53:51 -05:00
adelikat
196934bd56
Tastudio - fix TasSession loading, fixes #2063
2020-07-11 14:28:21 -05:00
adelikat
cb575d36b4
add an option to InputRoll for "Selection when paging", as a bit of a hack to revert Tastudio back to its old PgUp/Dn behavior, while still keeping the current behavior for other input roll usages (as it makes more sense for traditional listview behavior). Fixes #2074
2020-07-11 13:49:00 -05:00
nattthebear
4343414937
Enable hypernyma for uhh, the thing. Yeah, CD games, that thing.
...
I had tested this locally some during original development, but turned it off at some point and forgot to turn it back on.
2020-07-11 13:59:05 -04:00
nattthebear
bd413738a1
Fix nyma core bug with layer settings
...
If you tried to load a nyma core with any of your layers disabled, you would crash
2020-07-11 13:56:43 -04:00
nattthebear
0578443338
Slight modification to previous commit: Keep config forward compatibility in this case.
...
That way, if somedev tries to bisect something, they don't get pooped on by their config.
2020-07-11 13:47:28 -04:00
nattthebear
bcbf124f21
Don't use fragile fully qualified typenames to resolve setting and sync setting types in config files.
...
Instead, the frontend must know what the type will be ahead of time.
TODO: Apply the same fix to mooovies
2020-07-11 13:40:25 -04:00
nattthebear
a28ca37cfb
Fix issue with settings adapter ( #2223 )
...
This would fail to work on any core that used the serviceprovider to provide a settings definition that wasn't on the iemulator itself? Guess we never did that
2020-07-11 13:35:09 -04:00
adelikat
9820fb0879
lua - implement tastudio.submitclearframes(), fixes #2170
2020-07-11 12:19:27 -05:00
nattthebear
4639c1f2ca
minor cleanup of calling convention adapters
...
sync the generator code with the generated code, remove useless endbr64 shit
2020-07-11 11:09:48 -04:00
alyosha-tas
2ed8af145e
O2: default to O2 still
2020-07-11 09:11:35 -04:00
alyosha-tas
1e90dbc978
O2: Make G7400 part of the O2 core instead, not worth a serperatecore
2020-07-11 09:05:38 -04:00
alyosha-tas
39bbe30b8e
O2: fix sprite shifting and add some homebrew to DB
2020-07-11 08:29:11 -04:00
adelikat
1bf8f80510
Subtitle Editor - add a color picker for editing the subtitle color, fixes #1554
2020-07-09 19:24:44 -05:00
YoshiRulz
38d24901cf
Fix 4-octet peeks by Hex Editor having 2 zeroed octets
...
dumb typo
2020-07-10 03:39:02 +10:00
nattthebear
27a5fcdd20
Get rid of some old-style system assembly references
2020-07-09 07:22:19 -04:00
nattthebear
7495a08b9b
Huh?????????????
...
Random LDAP garbage, not used, ever, and has just been hanging out there for 8 years. You won't be missed!
2020-07-09 07:15:02 -04:00
alyosha-tas
7f28bc2caf
Fimware: Fix #2207 and add entry for g7400
2020-07-07 17:59:20 -04:00
nattthebear
c8985e3007
Waterbox: Stack Marshalling ( #2209 )
...
Waterbox guest code now runs on a stack inside the guest memory space. This removes some potential opportunities for nondeterminism and makes future porting of libco-enabled cores easier.
2020-07-07 17:48:12 -04:00
RetroEdit
ce60cb101a
Simplify some DialogResult code. ( #2213 )
2020-07-07 15:09:41 -05:00
YoshiRulz
fa7613d481
Pass IMainForm props in PresentationPanel ctor instead
2020-07-08 02:48:04 +10:00
RetroEdit
9a45d88301
More concise FrameRate definition; comment tweaks ( #2210 )
2020-07-07 11:36:42 -05:00
YoshiRulz
ca646f87cf
Fix style problems, mainly docs
2020-07-08 02:17:31 +10:00
YoshiRulz
b0f38a4d91
Shuffle code in AvFrameAdvance to eliminate goto
2020-07-08 02:17:28 +10:00
YoshiRulz
33d8f4a62c
Add RigidMultiPredicateSort to replace some .ThenBy() boilerplate
...
As documented, the class "Sorts using a single primary predicate, with subsorts
using the remaining predicates in order." So only the most recent
column-header-click is taken into account. I've got a WIP class in #if false for
providing the "remember which column headers I clicked and in which order"
behaviour, but it doesn't look like that behaviour actually exists in the
codebase?
2020-07-08 02:17:24 +10:00
hegyak
2dc28ecc4c
Merge pull request #2204 from hegyak/master
...
Firmware Renaming Unification/Changes. This is Aesthetic.
2020-07-07 05:50:23 -07:00
RetroEdit
9cdf0abc0c
Retype IMovie.TimeLength to TimeSpan; cleanup frame rate code ( #2206 )
...
* Retype IMovie.TimeLength to TimeSpan; cleanup frame rate code
* More concise IsPal field.
2020-07-06 16:24:04 -05:00
alyosha-tas
f52b02d499
Start wok on G7400
2020-07-06 15:19:57 -04:00
hegyak
f430df9575
Firmware Rename (2)
...
Fixed KoF 95 and Ultraman
2020-07-06 11:55:13 -07:00
hegyak
6a73dd0115
Firmware Rename
...
Rename All the Firmware Files to have a more Unified Naming Convention
2020-07-06 10:46:56 -07:00
alyosha-tas
fee733480f
O2Hawk: change PAL timing
2020-07-06 09:38:24 -04:00
alyosha-tas
694b3d88d3
GBhawk: fine tune tilt range some more and fix savestate
2020-07-05 18:39:06 -04:00
RetroEdit
c12d2fa570
EmuVersion needs updating on saving, not loading; I made the wrong call of where to put this originally, but the interaction with PlayMovie slipped my mind. ( #2202 )
2020-07-05 16:29:06 -05:00
adelikat
72993a3bd0
don't double load movie files when pre-loading, remove unused HawkFile parameter
2020-07-05 15:31:43 -05:00
adelikat
624493e6e2
simplify splitter distance loading with an extension method
2020-07-05 15:01:08 -05:00
alyosha-tas
fa7ac3d4c1
A7800Hawk: Fix pokey 0x450 detection
2020-07-05 15:45:08 -04:00
alyosha-tas
6f809de609
Add default DS paths ( fixes #2062 )
2020-07-05 13:54:36 -04:00
RetroEdit
0b07e38bdf
Update emuVersion each time the movie is opened; OriginalEmuVersion preserves old behavior. ( #2193 )
2020-07-05 11:21:01 -05:00
RetroEdit
9e980c7732
Merge redundant copy-pasted movie loading code. ( #2197 )
2020-07-05 09:48:46 -05:00
alyosha-tas
ef0f4b2b96
TAStudio: Don't erase states if they exist already when attaching an emulator instance ( fixes #2057 )
2020-07-05 09:55:38 -04:00
alyosha-tas
d900053dad
TAStudio: Allow insertion of multiple frames at end of movie ( fixes #2169 )
2020-07-05 09:54:35 -04:00
alyosha-tas
34f99922cd
TAStudio: use path.combine now, as well as fix a usage of '\' for filename display in .bk2
2020-07-04 19:07:38 -04:00
alyosha-tas
e215f99f74
GBHawk: increase MBC7 asselerometer return value range
2020-07-04 18:44:34 -04:00
alyosha-tas
4b59282fdf
TAStudio: bounds check previous commit
2020-07-04 11:00:40 -04:00
alyosha-tas
a72286eb5a
TAStudio: More analog control jump fixes
2020-07-04 10:17:01 -04:00
adelikat
d775067037
move BreakpointList to Client.Common
2020-07-03 19:49:29 -05:00
adelikat
2cbe0fb3d9
remove unused GenDbgWin tool
2020-07-03 19:42:09 -05:00
adelikat
9e2b2a9b91
remove pointless name and text parameters from MenuStripEx
2020-07-03 19:26:01 -05:00
alyosha-tas
3dba6857bc
GBHawk: increase range for tilt input
2020-07-03 19:57:29 -04:00
nattthebear
054efa4bdd
Helps if you actually serialize the thing you're serializing
2020-07-03 18:31:21 -04:00
nattthebear
3a18f6356d
Rebuild all of waterbox as sysvabi, not msabi
...
This helps linux at the expense of windows, except it seems like windows gets a nice little speed up as well
2020-07-03 18:21:48 -04:00
alyosha-tas
35fdec2132
Use a forward slash instead. the file name will display incorrect (as Movie/name) when first loaded, but at least it's in the right place.
2020-07-03 17:40:52 -04:00
alyosha-tas
53b61d9cfa
TAStudio: add trailing slash so loading a bk2 multiple times properly puts the file in the movies folder
2020-07-03 17:05:07 -04:00
alyosha-tas
32031d0f67
Atari 7800: support serpentine
2020-07-03 16:07:26 -04:00
adelikat
ce0a529362
pass InputManager dependencies to more virtualpad controls
2020-07-03 14:50:57 -05:00
adelikat
2be1d04182
cleanup ToolStripEx
2020-07-03 14:29:48 -05:00
adelikat
728a946470
pass InputManager to tools, remove other usages of GlobalWin in various tools
2020-07-03 14:26:08 -05:00
adelikat
20a1a49851
remove unnecessary usage of GlobalWin.Emulator (instance was already being passed in)
2020-07-03 13:34:17 -05:00
adelikat
8bb055b392
FilePreferences config - fix message when clicking ok, reduce dependency from the entire config file to the only object it sets, remove usage of GlobalWin
2020-07-03 13:31:47 -05:00
adelikat
7ab20f5667
mainform - a few simplifications
2020-07-03 13:10:48 -05:00
adelikat
c681be033d
rename an interface
2020-07-03 12:59:10 -05:00
nattthebear
2ee3125724
Refactor gpgx init method to use fewer arguments
...
Upcoming waterbox changes will likely limit the number of arguments a function can take to 6, which should be enough for anybody
2020-07-03 13:24:54 -04:00
adelikat
c64eff6baf
reorg controller and input adapter classes
2020-07-03 11:54:10 -05:00
adelikat
6db1d7e61d
cleanups
2020-07-03 11:39:50 -05:00
adelikat
d9e563a655
simplify setting the font style of a ToolStripMenuItemEx
2020-07-03 11:08:48 -05:00
adelikat
715e457a4e
Mainform - property wrapper for GlobalWin.OSD
2020-07-03 11:08:48 -05:00
adelikat
910c37d434
move some logic from mainform to InputManager
2020-07-03 11:08:48 -05:00
adelikat
a3c586b480
mainform - use InputManager property instead of GlobalWin reference
2020-07-03 11:08:48 -05:00
nattthebear
42ceba7d21
Fix linux waterbox
...
Sorry about that -- some things were removed but not others to go with them. It had been working before.
2020-07-03 12:02:11 -04:00
nattthebear
2c2ed72dc6
Remove some unused variables
...
Leftovers from a zwinder refactor
2020-07-03 11:48:51 -04:00
nattthebear
fa5885d7a1
Rewrite WaterboxHost in rust. ( #2190 )
...
This replaces the old managed one. The only direct effect of this is to fix some hard to reproduce crashes in bsnes.
In the long run, we'll use this new code to help build more waterbox features.
2020-07-03 11:45:59 -04:00
adelikat
374964bfb0
a few mainform simplifications
2020-07-03 10:07:56 -05:00
alyosha-tas
e3afead876
SubGBHawk: have TotalExecutedCycles reflect run time
2020-07-03 10:40:17 -04:00
nattthebear
2f18ad5be1
Defer deserialization of core config
...
That was simple. No config file change either. Doesn't seem to have a noticeable effect on startup speed, but it's not any slower, and we're more resilient to core changes now.
2020-07-03 05:54:01 -04:00
adelikat
eede99a505
simplify a few mainform methods with the ToClipBoard() extension method
2020-07-02 17:26:09 -05:00
alyosha-tas
b09b9681e2
TAStudio: don't jump to greenzone on single mouse click of analog cell (this is not an edit event.)
2020-07-02 17:46:21 -04:00
adelikat
be2ba08c10
remove unused method
2020-07-02 13:30:28 -05:00
adelikat
82ae83919a
Lua Console - cleanup
2020-07-02 12:57:02 -05:00
adelikat
fbbe3b6e40
LuaConsole - bump message count max to 100, clear count after using the command input box on the console
2020-07-02 12:33:41 -05:00
adelikat
bb7f933429
Lua - refactor console logging to use a string builder to concat messages, reduces the actual call to the console to 1 call, greatly improving performance (less calls to scrolling and other methods that invoke drawing)
2020-07-02 12:29:37 -05:00
adelikat
8e79f0d5e2
LuaConsole - warn when message cap has been reached
2020-07-02 12:15:02 -05:00
adelikat
ee263fbfbf
LuaConsole - simplify WriteToOutputWindow some
2020-07-02 12:10:15 -05:00
adelikat
12897bb00d
default to TurboNyma instead of PCEHawk - fixes #2122
2020-07-02 09:09:00 -05:00
adelikat
d60e5dc1a2
change View Log Window menu item to Open Log Window, with some different styling, fixes #2110
2020-07-02 08:56:16 -05:00
adelikat
a1278df02e
add icon to MacroInput
2020-07-02 08:40:03 -05:00
adelikat
21823196fc
Add some menu "Ex" controls ( #2187 )
...
* add MenuItemEx and StatusLabelEx and use in MainForm
* use ToolStripMenuItemEx
* use ToolStripSeparatorEx
* fix toolbox sizing
2020-07-02 08:35:15 -05:00
YoshiRulz
1360210331
This was flooding stdout in Release builds
2020-07-02 10:08:26 +10:00
YoshiRulz
4f9d9d29ef
Fix NRE on clicking RecordMovie's browse button ( fixes #2185 )
2020-07-02 10:05:55 +10:00
zeromus
ffabb48f07
remove TopMost from commondialogs (OpenFileDialog, etc.). Fixes #2182 but it is unclear what this was intended to fix in the first place. please gather more information
2020-07-01 14:18:09 -04:00
adelikat
edc31793cf
StatusStripEx, ToolStripEx - lock down size and text properties
2020-07-01 13:13:24 -05:00
adelikat
bf03f3861a
ToolStripEx - don't have a size option (toolstrips flow), or location (they are always 0,0)
2020-07-01 13:04:08 -05:00
adelikat
52f2596492
Move ToolStripEx to WinForms.Controls, break into separate files, add namespaces, make ClickThrough built in instead of an option (if the functionality isn't desired just use the original class)
2020-07-01 12:55:21 -05:00
YoshiRulz
07c6063da1
Slightly change execution order in MainForm ctor ( fixes #2184 )
2020-07-01 19:10:34 +10:00
adelikat
498ba66e8c
Revert "cleanup some icon images by removing some unnecessary resolutions (large images and low bit images)"
...
This reverts commit b40812798b
.
2020-06-30 18:08:09 -05:00
adelikat
5ef46b9969
log window icon
2020-06-30 18:08:09 -05:00
nattthebear
6e938718f5
bizinvoker - fix a bug that caused the CLR to reject any [BizInvoke, Compatibility = false] method with a string parameter in any position except the first
...
According to the rules (which are hard to find), there must be nothing on the evaluation stack when localloc is called (except its own size parameter). The generated string interop code didn't respect that. This didn't cause any problems in existing code.
2020-06-30 17:56:11 -04:00
adelikat
ef311576ee
Use LastInputColor config value instead of hardcoded color
2020-06-30 16:40:00 -05:00
adelikat
e5bbec1800
Message Config - Simplify code and some cleanup ( #2183 )
...
* move messageConfig to its own folder
* start MessageEdit user control
* more setup
* wire stuff up
* progress
* progress
* fixes and cleanup
* start mesage row component
* move method from MessageConfig to extension method
* MessageRow - progress
* progress
* Message row - progress
* progress
* fix initial load
* fix Restore btn
* use RadioButtonEx
* start ColorRow user control
* progress
* progress
* progress
* rename
* make color picker work
* cleanup
* cleanup
* Message config - don't immediate set config values on restore defaults, allow user to press ok or cancel to decide to actually save
* cleanup
* cleanup
2020-06-30 16:16:54 -05:00
alyosha-tas
7aa1a497f7
GBHawk: only latch new window y value if greater then current line (fixes pokemon crystal artifact)
2020-06-30 17:15:00 -04:00
YoshiRulz
dddeab8e12
Refactor UndoHistory
2020-06-30 14:25:02 +10:00
YoshiRulz
05eaf2cfb7
Fix wrapping of 2 labels in DisplayConfig
...
fixes 64d14a7f9
2020-06-30 13:20:39 +10:00
YoshiRulz
cba0eada69
More nullability
2020-06-30 12:57:57 +10:00
YoshiRulz
52203314ca
Misc. style fixes
2020-06-30 11:32:52 +10:00
YoshiRulz
62537118ac
Add GetPanelNativeSize() to DisplayManager
...
not really that helpful, but removes the annoying dependency on
PresentationPanel from IEmuHawkMainForm (ready for move to Client.Common)
2020-06-30 11:02:17 +10:00
YoshiRulz
962ac0d9d4
Extract interface from MainForm
2020-06-30 11:02:17 +10:00
YoshiRulz
e3c54b2268
Change some MainForm event handlers to delegate typed properties
...
makes encapsulation easier
2020-06-30 11:02:17 +10:00
nattthebear
499b59a0bd
zwinder refactoring
...
Looks like a big diff, but isn't. It separates the zwinder buffer part (which does most of the work) with the rewinder impl on top of it. This is part of the effort for a zwinderstatemanager for tastudio, which isn't done yet, but these changes can come in just fine
2020-06-29 15:55:53 -04:00
adelikat
ed49e58489
remove some references to multitrack in some comments
2020-06-29 10:37:05 -05:00
adelikat
452611477b
delete multitrack message position config values, and message config ui, also reposition thingsin message config and fix some positioining, hence designer barf
2020-06-29 10:32:04 -05:00
scrimpeh
1c82340cac
ram search - fix loading of wch files
2020-06-29 09:01:33 -05:00
adelikat
64d14a7f92
mass replace System.Forms.Label with LocLabelEx
2020-06-29 09:00:05 -05:00
adelikat
80599ddbe8
BatchRun - use LabelLocEx
2020-06-29 09:00:05 -05:00
YoshiRulz
141541bc1f
Pass delegates instead of MainForm to RewindConfig
2020-06-29 14:47:53 +10:00
YoshiRulz
e4df38602b
Pass delegates instead of MainForm to BatchRunner
2020-06-29 14:47:51 +10:00
YoshiRulz
c0aefd438a
Pass delegates instead of MainForm to OpenAdvancedChooser
2020-06-29 14:47:44 +10:00
YoshiRulz
4f4a875382
Pass delegates instead of MainForm to EmuHawkOptions
2020-06-29 14:47:42 +10:00
adelikat
b40812798b
cleanup some icon images by removing some unnecessary resolutions (large images and low bit images)
2020-06-28 15:11:02 -05:00
adelikat
3c9a7ff7a5
Multidisk bundler - use LocLabelEx
2020-06-28 13:29:38 -05:00
scrimpeh
286b56de5a
ram search - pr fixes. also remove out of range searches in ramsearch
...
- adds a static IsValid method to IMiniWatch implementations
- reverts .csproj changes
- 'remove out of range' button on ram search didn't seem to actually do anything. this was fixed
2020-06-28 12:29:49 -05:00
scrimpeh
c8ca09724c
ram watch - fix two minor bugs
...
fixes two minor bugs relating to ram watch display type
1.binary display was broken on 32 bit watches
2.changing a watch's size to one with an incompatible display type resulted in an exception (e.g. 32 bit float -> 8 bit unsigned)
2020-06-28 12:29:49 -05:00
scrimpeh
f9e174fd2d
ram search - incorporate domain checking
2020-06-28 12:29:49 -05:00
scrimpeh
1721e4f9ea
ram watch - add IsValid method
2020-06-28 12:29:49 -05:00
adelikat
cacf04f8ca
N64pluginConfig - replace Label wtih LocLabelEx
2020-06-28 09:04:16 -05:00
adelikat
4d53efcf85
N64 plugin config - use property grid in video plugin tabs
2020-06-28 09:04:16 -05:00
adelikat
ff4eda68c8
N64 plugin config - remove use of GameInfo that was nonsense. It was setting per game hacks to GameInfo settings if enabled, but these values are already overridden on RomLoad, so this code was doing nothing
2020-06-28 09:04:16 -05:00
zeromus
bc0849ad9d
add a path entry for libretro ROM, even though it doesn't make sense, because it just isn't worth making sure every consumer of the ROM path is prepared for the possibility that ROM may be missing. This fixes #2176 , but there's any number of other settings we could choose.
2020-06-27 22:32:51 -04:00
YoshiRulz
4f7c1a0b76
Enable nullability in AxisSpec and related types
2020-06-26 15:03:28 +10:00
YoshiRulz
d0f96339ce
Fix reboot.png; no clue what was wrong but the warning is gone
...
for reference, I converted it to .bmp and back w/ ImageMagick
the warning was to stderr and it read `libpng warning: sRGB: cHRM chunk does not
match sRGB`
2020-06-26 14:45:33 +10:00
YoshiRulz
69146b04b2
Add and use DEBUG-conditional WriteLine methods
2020-06-26 14:37:36 +10:00
diddily
46e744cd33
Catch and retry when DirectSound crashes (squashed PR #2166 , fixes #1212 )
...
* Handling for BufferLost
Fixes issue #1212 where adding/removing headphones would lead to a crash by restoring the sound device when it's detected and being defensive with exception handling.
* Internalize the handling of buffer lost and make it a bit more efficient.
Remove interface function for SoundLost and move the logic to soley live inside DirectSoundOutput. Additionally I discovered I did not need to tear down the entire device to restore sound, typically Restore() and Play() handle it. Still need to wrap every place that can throw an exception in a try/catch block and wait for WriteSamples to handle it.
* Update DirectSoundSoundOutput.cs
Logic is hard.
* Retry limiter added to recovery
Added a self reducing retry counter that will try to start sound 5 -> 4 -> 3 -> 2 -> 1 times each time it tries to recover until it succeeds, at which point the counter returns to 5. This allows for quicker attempts at recovery without the risk of an infinite loop or terrible performance from sleeping 10 ms.
2020-06-26 11:56:27 +10:00
adelikat
312f029b0b
Ram Watch - user LocLabelEx
2020-06-25 18:13:08 -05:00
YoshiRulz
3d8ed7483f
Move axis types to own files
2020-06-26 09:00:33 +10:00
YoshiRulz
a0c8f722d2
Use constraints for grouping, add new class for unconstrained pairs
...
e.g. for Intellivision `_controllerDeck.Definition.Axes["P1 Disc X"].PairedAxis`
gives "P1 Disc Y"
2020-06-26 08:53:10 +10:00
YoshiRulz
1e67fc1d4b
Use inheritance for AxisConstraints
2020-06-26 08:43:17 +10:00
YoshiRulz
15906af6e4
Merge AxisRange into AxisSpec
...
was going to move only Mid but this made more sense
2020-06-26 08:08:58 +10:00
YoshiRulz
6cb60aa9fd
Merge AxisControls, AxisRanges, and AxisConstraints into a single dict
2020-06-26 08:08:58 +10:00
adelikat
af2649d9a0
move icon references in designer files to the main files before the designer eats them
2020-06-25 16:32:29 -05:00
adelikat
09a6f54735
add icon back to LogWindow AddToDatabase button, that got eaten by the designer at some point
2020-06-25 09:40:19 -05:00
adelikat
39535eacda
RomStatus picker - remove image setting out of designer before it gets eaten by a designer based change
2020-06-25 09:18:33 -05:00
adelikat
371a7bd4f3
use MainForm.thing instead of GlobalWin.thing in some places, this is marginally better, maybe
2020-06-25 08:52:53 -05:00
alyosha-tas
49cb426a59
GBHawk: Double speed mode timing fix
2020-06-24 17:17:46 -04:00
scrimpeh
85d140c4b5
ram watch: allow duplicate identical ram watches
...
Allows duplicating identical Ram Watches. Previously, the Duplicate Watch dialog would silently discard a new watch if the address didn't change. As a side effect, multiple watches can now be duplicated simulatenously. This commit also removes the check for separate memory domains - it doesn't seem to cause any problems
2020-06-23 11:55:37 -05:00
scrimpeh
d6994ea1af
ram watch: watches are deleted by index
...
If you have two watches with an identical address, deleting one will always delete the first one. This commit fixes that
2020-06-23 11:55:37 -05:00
adelikat
c13430896f
remove empty controller mappings from defctrl, also remove duplicates that caused it to be invalid json (.net happily was deserilizing it anyway), don't save empty mappings when saving from the ui
2020-06-22 19:54:36 -05:00
adelikat
93c47b87b9
Controller config - take label width into account when generating columns
2020-06-22 18:11:31 -05:00
nattthebear
1ce0905deb
Minor zwinder tweaks
...
Change the implementation of state eviction slightly. The result is identical, but this is slightly easier to understand and will be needed to allow an evicted state to be read before eviction.
2020-06-22 18:52:18 -04:00
adelikat
b9f59337dd
fix Saturn and NGP default controls
2020-06-21 17:31:28 -05:00
adelikat
29a492fc2a
fix pc-fx controller name to match old name
2020-06-21 17:22:00 -05:00
nattthebear
53c2318b56
nyma - activate controller deck names
2020-06-21 16:55:41 -04:00
adelikat
cf4a0176a3
bk2 mnemonic lookups - we have a lot of keyboards now, make fkeys standard mnemonics instead of core specific
2020-06-21 15:32:45 -05:00
nattthebear
ae9405fb84
saturn: autofire blah blah again
2020-06-21 16:14:50 -04:00