YoshiRulz
e435fb807b
Migrate to "new csproj", remove unnecessary tags/info, and dedupe
...
Didn't want to mess with resource generation so the execuable projects didn't
get migrated, just cleaned up
2020-01-19 01:43:39 +10:00
adelikat
45003ea584
revert "Use Ranges" on TasMovie since it causes exceptions when attempting to create the first branch of a tasproj
2020-01-17 09:00:56 -06:00
alyosha-tas
8fed99456a
GBlink: fix some 4x bugs and route CGBGBA to cores
2020-01-13 16:55:07 -05:00
adelikat
a51be3efbe
remove useless regions in previous commit
2020-01-13 15:50:49 -06:00
adelikat
63da3d7bd3
expose GenerateLogKey and Map as methods on ILogEntryGenerator and remove all the direct casting that was happening in tastudio code
2020-01-13 15:49:11 -06:00
YoshiRulz
a8170ca183
Fix mismatching namespaces
2020-01-13 07:19:06 +10:00
YoshiRulz
dd4f9aaf64
Use ranges
2020-01-13 06:59:40 +10:00
YoshiRulz
0f1fa1531f
Use ranges in ApiHawk and Lua
2020-01-13 06:57:24 +10:00
YoshiRulz
5c472bcf77
Default to D3D and DirectSound if they're present
2020-01-13 06:34:57 +10:00
YoshiRulz
60b7858fbe
Simplify Windows prereqs (see desc.)
...
* Changed default sound/display methods to OpenAL/OpenGL on Windows to match
non-Windows, and replaced DirectInput with OpenTK input (needs regression
testing on Windows).
* (meta) As a result of the above, DirectX is no longer a prerequisite, leaving
only: .NET Framework 4.6.1 (comes with Win10, as does 4.8), MSVC 14 (also comes
with Win10), MSVC 12 for Mupen, and MSVC 10 for BSNES/Mupen.
* Refactored static Program ctor, using ExceptionBox for missing prereqs, and
removed PrereqsAlert.
* Added OS version check for Windows, with a flag in the config to skip it.
* Updated readme for Win7 EOL (and generally cleanup Windows sections).
2020-01-12 20:00:34 +00:00
adelikat
eaca35d3d0
properly use TasMovie.Session - fixes #1771
2020-01-12 10:55:15 -06:00
alyosha-tas
46d0818f09
MSXHawk: Core interface stuff
2020-01-10 15:51:56 -05:00
adelikat
48a16806cf
cleanups in InputManager
2020-01-03 14:05:59 -06:00
YoshiRulz
dabbaae075
Cleanup TasStateManager.Invalidate
...
had this written down for after #1591 merge
2020-01-04 04:54:26 +10:00
adelikat
038f35f45e
lua - implement controller number parameter to joypad.getimmediate and movie.getinput, consolidate input getting lua code
2020-01-03 09:51:48 -06:00
YoshiRulz
9ef32cf8f5
Merge ctors using default params, resolves a TODO
2020-01-02 22:10:42 +10:00
YoshiRulz
a8408ed3be
Improve exception docs in BizHawk.Client.Common
2020-01-02 21:51:27 +10:00
adelikat
8c0c00c2bf
lua - movie.save() - fix bug that was preventing the optional filename parameter from being used
2020-01-01 17:03:01 -06:00
adelikat
18975e390d
use Globals less in Tastudio sub-components
2019-12-31 16:31:32 -06:00
adelikat
094ae65e06
Merge pull request #1775 from TASVideos/log-as-tool
...
Remove Log windows as console option, and make LogWindow a Tool
2019-12-31 09:37:57 -06:00
alyosha-tas
6a68c7f521
Controller: fix physical controller input, fixes #1166
2019-12-30 17:28:48 -05:00
adelikat
6e49f1c07d
Convert LogWindow to a tool that implements IAutoToolformConfig
2019-12-29 15:05:45 -06:00
adelikat
bdd0d56a70
delete the console log window, always show LogWindow instead
2019-12-29 14:39:44 -06:00
alyosha-tas
a259c763de
O2Hawk: typo
2019-12-27 17:32:33 -05:00
YoshiRulz
50373ac1ad
Move conditional PackageReferences to conditional .targets import
...
Fixes build system bug introduced by c31050feb
2019-12-27 16:35:47 +10:00
YoshiRulz
c31050feb6
Migrate from packages.config to PackageReference
2019-12-26 16:54:33 +10:00
adelikat
e7e30371fe
Remove Rewinder from Global and put as a mainform variable instead
2019-12-22 14:25:06 -06:00
YoshiRulz
264b27475e
Fix default referring to non-nullable type
2019-12-23 04:12:02 +10:00
James Groom
78fcde9480
Merge branch 'master' into winhacksbgone
2019-12-22 17:01:10 +00:00
adelikat
1e41dbf20d
LuaRegisteredFunctionsList - override Clear() so that needed clear logic can't be mistakenly not called. Fixes #1763
2019-12-21 17:16:16 -06:00
adelikat
b80b367831
refactor IMovie to expose the movie mode, and make extension methods that do IsPlaying type logic. This way there can be direct checks, and more variety of methods without cluttering the interface
2019-12-21 16:34:29 -06:00
adelikat
d26cb7d272
small cleanup
2019-12-21 15:55:01 -06:00
adelikat
f5929602ff
rename MessageOption to MessagePosition
2019-12-21 15:28:16 -06:00
adelikat
433eff65ec
OSDManager - simplify calculations for points for things like fps, frame counter, etc
2019-12-21 15:24:50 -06:00
adelikat
6748d32830
Message config - fixes, make Anchor an enum instead of int
2019-12-21 14:50:20 -06:00
adelikat
a565f6f299
refactor message display option settings to be an object, and simplify the message config dialog
2019-12-21 14:11:49 -06:00
adelikat
b94a830f13
Message config refactor - fix some names, break off DefaultMessageOptions class into its own file
2019-12-21 13:22:22 -06:00
adelikat
98bfcabfe8
refactor Global.SystemInfo into an extension method class
2019-12-21 13:07:05 -06:00
adelikat
5002968bd7
cleanup SystemInfo
2019-12-21 13:00:33 -06:00
adelikat
8ac53f51c0
move bkm files to the import folder now that they are only used for import
2019-12-21 12:55:57 -06:00
YoshiRulz
784c800ca2
Disable features using Win32 unless on Windows host
...
forms: GBAGPUView, GBGPUView, LogWindow, SNESGraphicsDebugger,
SynclessRecordingTools; features: A/V recording, logging to AWE(?)
2019-12-21 18:31:03 +10:00
YoshiRulz
7ea8fb185a
Congregate, organise, and cleanup some Win32 imports and their usages
2019-12-21 18:21:51 +10:00
adelikat
f934b059c8
fix a few potential NRE's in Global.cs
2019-12-20 10:24:54 -06:00
adelikat
24ed667c13
reduce global usage in MainForm more
2019-12-20 10:22:42 -06:00
YoshiRulz
0fcb6cbaa7
ApiHawk refactoring and cleanup
...
MemApi.ReadByteRange now returns the requested number of bytes and not 1 extra,
MemApi.ReadByteRange now warns only once per call for addrs outside range,
MemApi.ReadByteRange now warns for negative addrs (once per call; previous
implementation passed negative addresses to PeekByte), MemApi.WriteByteRange now
warns only once per call for addrs outside range, MemApi.WriteByteRange now
warns for negative addrs (once per call; previous implementation passed negative
addresses to PokeByte)
2019-12-17 02:39:04 +10:00
YoshiRulz
08d0f462fc
Partially migrate NesLuaLibrary to ApiHawk delegation
...
nes.setdispbackground and nes.setscanlines now throw when the core is neither
NesHawk or QuickNES (the latter is still silently ignored by these functions)
2019-12-16 17:47:50 +10:00
YoshiRulz
29ac251f34
Migrate SnesLuaLibrary to ApiHawk delegation
2019-12-16 17:14:10 +10:00
YoshiRulz
60daae50d5
Migrate GenesisLuaLibrary to ApiHawk delegation
2019-12-16 17:14:01 +10:00
YoshiRulz
0b43b35427
Migrate GuiLuaLibrary to ApiHawk delegation
...
Changed param clear of IGui.DrawNew from bool? to bool (default value remains
true), made IGui and GuiLuaLibrary inherit IDisposable, added
GetDefaultTextBackground to IGui, applied fix from 6b3071d8a
to
GuiApi.DrawString, replaced background box drawn by Lua API
gui.drawString/gui.drawText with what I think is a shadow (now matches
GuiApi.DrawString)
2019-12-16 16:54:06 +10:00
YoshiRulz
8f93a954e1
Move Lua hacks to Lua libs
...
Changed parameter of IInputMovie.SetRerecordCount to ulong to match internal
2019-12-16 15:04:35 +10:00
adelikat
ad8f321ea1
Add event.availableScopes(), fix LogWithSeparator, cleanup
2019-12-15 12:25:49 -06:00
YoshiRulz
05801dc2c5
Reduce LINQ usage in Lua subsystem
2019-12-16 04:08:22 +10:00
adelikat
91ef301a23
memory callbacks - log error if a scope is passed in that is not available
2019-12-15 12:02:43 -06:00
adelikat
9676fd97df
cleanup
2019-12-15 11:52:55 -06:00
adelikat
1d741f3d0e
memorycallbacks - rename domain param to scope to avoid confusion, otherwise it looks like any memory domain will do
2019-12-15 11:42:26 -06:00
adelikat
29e284c6f8
cleanup
2019-12-15 11:40:22 -06:00
adelikat
250bd2087e
fix lua memory callback functions on cores with no system bus such as PSX
2019-12-15 11:37:45 -06:00
YoshiRulz
2f494003c7
Add param to IList.ToLuaTable extension and refactor bizstring.split
...
Changed behaviour when said Lua function is called with a misformatted separator
param, and updated its docs
2019-12-16 01:58:19 +10:00
adelikat
d2f21f84e3
another extension method for lua table creation
2019-12-15 09:46:39 -06:00
adelikat
7ebfd42229
Simplify some lua table creation with an extension method
2019-12-15 09:22:10 -06:00
adelikat
d955c468db
refactor LuaHelper into an extension method class, and some nitpick cleanups
2019-12-15 09:05:33 -06:00
YoshiRulz
8bb9cee9c2
Write version to config (for migration check to be implemented later)
2019-12-16 00:44:40 +10:00
YoshiRulz
e58f2811dc
Replace config bool `UseNLua` w/ enum
2019-12-16 00:38:22 +10:00
YoshiRulz
f8dc18c1bd
Migrate SavestateLuaLibrary to ApiHawk delegation
...
includes backwards-compatible API change
2019-12-15 04:39:16 +10:00
YoshiRulz
104c17e77c
Prepare for EmuHawk-tied libraries to delegate to ApiHawk
...
Made ApiContainer inherit from APISubsetContainer, added
DelegatingLuaLibraryEmu, and reworked init logic in EmuLuaLibrary
2019-12-15 03:52:48 +10:00
James Groom
3099a11a04
Merge branch 'master' into lua-via-apihawk
2019-12-14 16:17:14 +00:00
feos
dfa73eceef
mame syncsettings
2019-12-14 18:50:11 +03:00
YoshiRulz
3f9b51f565
Partially revert #1754 , add event.onmemoryexecuteany
2019-12-14 16:47:29 +10:00
adelikat
06e1149cfe
a bit of cleanup
2019-12-13 12:35:51 -06:00
adelikat
b080d6d09e
Merge pull request #1754 from warmCabin/all-memory-execute
...
All Memory Execute
2019-12-13 07:40:41 -06:00
YoshiRulz
185337d1c5
Replace assembly references with NuGet packages where possible
2019-12-12 03:56:46 +00:00
warmCabin
201a4b85a4
remove default value for address
...
<adelikat> The reason we throw an error originally is my concern is that it would be easy to leave out an address in a script, and that it would have huge concequences.
<adelikat> I think address should not have a default value here and make the user explicitly add nil if they want this functionality.
2019-12-11 12:44:54 -05:00
warmCabin
715761f563
unit?
2019-12-10 23:23:40 -05:00
warmCabin
e7374447f3
make onmemoryexecute address default to null
2019-12-10 22:59:35 -05:00
adelikat
515f409246
Tastudio - Make mainform hotkeys out of a bunch of built in hotkeys
2019-12-10 19:26:23 -06:00
adelikat
7cd4bf881c
TasBranch - remove last reminents of UniqueIdentifier.GetHashCode()
2019-12-08 14:26:29 -06:00
adelikat
35fdb5dbdd
Tastudio - Integrate branches with the statusbar slot icons
2019-12-08 13:53:36 -06:00
adelikat
fff85d917a
Fix typo
2019-12-08 13:41:52 -06:00
adelikat
43c9ac7ef7
SImplify some code
2019-12-08 13:40:59 -06:00
adelikat
6107bc4553
TasMovie - rip out input caching attempt that wasn't even working
2019-12-07 12:21:42 -06:00
adelikat
9bb07dca76
Bk2ControllerAdapter/Bk2Movie - don't new up everytime some things that don't change through the lifetime of the object. HUGE (3x-4x) speedup to TAStudio
2019-12-07 11:35:48 -06:00
adelikat
4a522263d9
Bk2ControllerAdapter - small cleanups
2019-12-07 11:02:17 -06:00
adelikat
4e7d19fa18
Merge pull request #1744 from Zinfidel/watch-separator-sorting
...
Watch sorting - new algorithm that handles separators. Fixes #1713
2019-12-06 18:44:32 -06:00
feos
b5db6a7df6
mame
...
- put system and game names to emuhawk caption
- fix loading from recent menu
- temp fix for audio drift
2019-12-06 21:34:20 +03:00
adelikat
4711950f9c
default to using luainterface over nlua, supposedly the memory leaks are resolved in luainterface
2019-12-04 16:56:27 -06:00
adelikat
1dbf932486
Config.cs - remove unused methods, simplify some things
2019-12-04 16:53:57 -06:00
James Groom
fcc0bc19a4
Change build config to support the Core build system (for #1415 )
...
squashed PR #1702
2019-12-03 16:58:33 +00:00
adelikat
5e73c7c536
lua - update memory documentation to mention it defaults to system bus, fixes #1675
2019-12-02 20:48:38 -06:00
adelikat
c050a377d8
WatchList - flag changes when doing column sort
2019-12-02 20:11:35 -06:00
Zach
0e055ecb5a
Merge branch 'master' into watch-separator-sorting
2019-12-02 16:38:01 -08:00
Zach
e621876453
Replaced LINQ query with for loop.
...
Upon reflection, the query looked nice, but was inferior to a plain for loop because it would have to create n anonymous objects to process the list, even with LINQ's filtering optimization, due to select preceding where.
2019-12-02 16:37:55 -08:00
adelikat
52db5ac848
cleanups
2019-12-01 18:05:20 -06:00
YoshiRulz
230548cf35
Partially migrate MainMemoryLuaLibrary to ApiHawk delegation
...
`mainmemory.readbyterange` will now return partial data if the requested range
extends beyond the domain (invalid addresses are read as 0). Did not fix docs of
`mainmemory.readbyterange` which incorrectly claim the returned table uses the
memory addresses as keys i.e. addr..(addr+length) - it was and remains
0..length. `mainmemory.write_u8` will now check the specified domain's length
and not erroneously check the selected domain's length.
2019-11-30 23:33:54 +10:00
YoshiRulz
b678e19041
Merge LuaMemoryBase into MainMemoryLuaLibrary
2019-11-30 23:33:46 +10:00
YoshiRulz
7d99071ac5
Migrate MemoryLuaLibrary to ApiHawk delegation
...
`memory.readbyterange` will now return partial data if the requested range
extends beyond the domain (invalid addresses are read as 0). Did not fix docs of
`memory.readbyterange` which incorrectly claim the returned table uses the
memory addresses as keys i.e. addr..(addr+length) - it was and remains
0..length. `memory.write_u8` will now check the specified domain's length and
not erroneously check the selected domain's length.
2019-11-30 23:32:09 +10:00
YoshiRulz
b2676bce68
Copy LuaMemoryBase and merge copy into MemoryLuaLibrary
2019-11-30 23:32:09 +10:00
YoshiRulz
24c3f3a7f0
Merge MemApiBase into MemApi
2019-11-30 23:32:09 +10:00
YoshiRulz
1042f746f4
Migrate JoypadLuaLibrary to ApiHawk delegation
...
`joypad.getimmediate()` now returns float controls as well as bools
2019-11-30 23:32:09 +10:00
YoshiRulz
f4a229888f
Migrate UserDataLibrary to ApiHawk delegation
2019-11-30 23:32:09 +10:00
YoshiRulz
4a84e1a8a9
Migrate MovieLuaLibrary to ApiHawk delegation
2019-11-30 23:32:00 +10:00
YoshiRulz
bd7dfbd487
Migrate MemorySavestateEmuLuaLibrary to ApiHawk delegation
2019-11-30 23:31:23 +10:00
YoshiRulz
8da543b1a5
Migrate EmulatorLuaLibrary to ApiHawk delegation
...
`emu.setrenderplanes(bool...)` now works when using BSNES or Genplus-gx
2019-11-30 23:31:18 +10:00
YoshiRulz
e39e083c13
Migrate GameInfoLuaLibrary to ApiHawk delegation
2019-11-30 23:29:09 +10:00
YoshiRulz
0bea6032ab
Migrate SQLLuaLibrary to ApiHawk delegation
2019-11-30 23:27:14 +10:00
YoshiRulz
8ce403dab2
Mirror cleanup from 7aa170283
onto the C# APIs
...
also fixed VS' stupid comma placement and added a "using" in SqlLuaLibrary
2019-11-30 23:18:26 +10:00
adelikat
7aa170283e
cleanup some lua files
2019-11-29 16:35:21 -06:00
adelikat
50cad2067f
Lua - when removing registered functions, remove functions reigstered to a script of the same path (or the same thread)
2019-11-29 15:11:40 -06:00
adelikat
f36d69e6b0
cleanup LuaFileList
2019-11-29 15:10:58 -06:00
adelikat
d757b8e64f
Refactor a lot of lua code to use a LuaFile object instead of a Lua object, and unify some luafile manipulation logic into methods
2019-11-29 15:02:40 -06:00
adelikat
84d9419637
LuaLibraryBase - a bit of cleanup
2019-11-29 12:40:14 -06:00
adelikat
c9d34ca828
minor cleanup
2019-11-29 10:16:48 -06:00
adelikat
ce2a7b1612
EmuLuaLibrary.Events - cleanup
2019-11-29 10:14:07 -06:00
adelikat
a0ba2189af
lua events library - remove N64 dynarec checks since we don't have the dynarec core anymore
2019-11-29 10:03:35 -06:00
adelikat
263a72f57d
Lua console - remove bad user option (defaulted to true even) that clears all registered functions on toggle, toggle already clears all registered functions registered to the script. If there is some edge case there, we need to fix it, not clear registered funcitons that don't even belong to the given script
2019-11-29 09:58:07 -06:00
Zinfidel
ac2c42ef74
Correct tab size inconsistency
2019-11-27 21:46:49 -08:00
Zinfidel
b3875e21ae
Watch sorting - new algorithm that handles separators.
...
Also moved comparers from fields into a dictionary to make selection more concise.
2019-11-27 21:31:39 -08:00
adelikat
6eb9fa9b51
movie importers - import the core header key on systems that we check for core when loading the movie
2019-11-26 20:10:34 -06:00
adelikat
f0f8cd3171
cleanup Bk2Movie.HeaderApi.cs
2019-11-26 20:04:12 -06:00
adelikat
3c14371009
pjm import - fix analog stick importing
2019-11-26 09:11:20 -06:00
adelikat
3e92b8c5ab
pjm import - account junk white space at the ened of the file
2019-11-26 08:53:09 -06:00
adelikat
c741c37789
fix .pjm import, text based input parsing was completely broken. Fixes #1723
2019-11-25 15:02:26 -06:00
adelikat
64f32983f6
misc movie code cleanups
2019-11-25 08:37:11 -06:00
adelikat
ffd2aedfa5
oops, fix paste logic to be the first different frame, not the last
2019-11-24 19:23:12 -06:00
adelikat
6eef264f91
paste - only invalidate on the first different frame pasted, rather than the first selected frame
2019-11-24 19:14:49 -06:00
adelikat
1f4a2274d3
TasMovie - more cleanup
2019-11-24 16:06:01 -06:00
adelikat
60487c6a96
don't use Guid.GetHashCode, this was a leftover from some old bad code
2019-11-24 15:53:33 -06:00
adelikat
caced9c2a8
TasMovie - remove unused constructor params
2019-11-24 15:40:26 -06:00
adelikat
6a584c00bd
TasMovie - delete unused progress worker
2019-11-24 15:35:45 -06:00
adelikat
7d0b736e8d
Simplify TasMovie by using auto-properties
2019-11-24 15:33:25 -06:00
adelikat
1c67066e13
TasMovie - a small simplification
2019-11-24 15:26:44 -06:00
adelikat
289971c9e9
.tasproj - convert Session saving/loading to json. This is a breaking change, and older versions will silently fallback to defaults
2019-11-23 21:55:29 -06:00
adelikat
b4c4c3b870
.tasproj - use json to save/load statemanager settings. This is a breaking format change, earlier .tasproj will load and silently fallback to default settings
2019-11-23 21:43:23 -06:00
adelikat
707419bba1
some TasMovie cleanups
2019-11-23 21:33:48 -06:00
feos
d15dc56e15
address #1631 for gambatte
2019-11-20 21:25:55 +03:00
alyosha-tas
2fbf3c3b19
O2Hawk: system management work
2019-11-18 22:17:29 -05:00
alyosha-tas
61038a13ae
O2Hawk: Expose Core and start running code
2019-11-18 17:33:55 -05:00
adelikat
eb1d87933b
Fix Nintento (breaking config change but we've already thoroughly broken compatibility since last release), partially addresses #971
2019-11-16 12:42:18 -06:00
YoshiRulz
a7ffdd948e
Add DelegatingLuaLibrary and set up ApiHawk instantiation
2019-11-16 17:19:04 +10:00
YoshiRulz
27b2d1b6ad
Mirror cleanup from cf4dd6770
onto the Lua APIs
2019-11-16 16:52:32 +10:00
YoshiRulz
fab882b7a5
Move most API interfaces and implementations to BizHawk.Client.Common
2019-11-16 17:28:25 +11:00
adelikat
5a1341dd47
misc cleanups
2019-11-15 17:00:43 -06:00
adelikat
e974006ea6
RamSearchEngine - simplify some
2019-11-15 16:47:54 -06:00
adelikat
ab9c7699ec
misc cleanups
2019-11-15 15:15:13 -06:00
adelikat
c4658c3e85
remove Bkm as a IMovie implementation and remove all code other than what is necessary to import it
2019-11-14 21:41:37 -06:00
adelikat
adf834480a
remove .bkm as a standard movie type, require user to run the importer
2019-11-14 21:39:15 -06:00
adelikat
8dfbd752ae
SmvImport - remove useless If
2019-11-14 21:03:50 -06:00
adelikat
2a3c9b741e
Cleanups
2019-11-14 18:18:46 -06:00
adelikat
40e5106064
oops
2019-11-14 18:01:52 -06:00
adelikat
5aed5ed9c7
rename importer attribute
2019-11-14 18:01:16 -06:00
adelikat
673073e650
data drive the import movies dialog filter
2019-11-14 18:00:33 -06:00
adelikat
0235ca21ab
make movie importers internal
2019-11-14 17:19:59 -06:00
adelikat
af50d74b98
simplify movie import code more
2019-11-14 17:00:47 -06:00
adelikat
f93766e5bb
Movie import cleanup
2019-11-14 16:35:29 -06:00
adelikat
0043c1de1e
Movie Import cleanup - use IMovie more, don't redundantly save in Pjm and Psx importers, cleanups
2019-11-14 15:59:01 -06:00
adelikat
eb1b658f6e
movie import - cleanup
2019-11-13 20:52:20 -06:00
adelikat
fb8111d630
convert .mmv import to new style, properly import game gear flag
2019-11-13 20:52:19 -06:00
YoshiRulz
5eb54dbf9e
Fix #1727
2019-11-14 11:37:13 +10:00
adelikat
641c3e9f82
convert .smv importer to new style, also convert to bsnes instead of snes9x
2019-11-12 14:59:07 -06:00
adelikat
33d53638e9
convert Vbm importer to new style
2019-11-10 14:35:58 -06:00
adelikat
dce39c1cff
convert GMV importer to new style
2019-11-10 13:20:13 -06:00
adelikat
b1bdb8c7ea
port fmv importer to new style
2019-11-10 12:48:51 -06:00
adelikat
f9eadf104b
delete unused movie import code
2019-11-10 12:18:28 -06:00
adelikat
c5ecba326f
convert YMV importing to new way, and also fix it, it's been broken for a long time, if it ever worked
2019-11-10 12:14:50 -06:00
adelikat
c1516de259
Convert mc2 to new import style, properly support pcecd flag, and number of controller ports
2019-11-10 11:35:45 -06:00
adelikat
ced5b313a5
Leagcy movie import - remove more fm2 and lsmv specific code
2019-11-10 11:10:45 -06:00
adelikat
6086f98fa0
convert lsmv importer to new style
2019-11-10 10:55:53 -06:00
adelikat
223795887e
remove importer support for .mcm, .nmv, .vmv, .zmv. These are very dated and with very few movies out in the wild
2019-11-10 10:02:26 -06:00
adelikat
6d535a11ee
Convert fcm importer to new style, input parsing seems to have been broken this whole time, this commit doesn't fix that, just converts it
2019-11-10 09:55:27 -06:00
adelikat
d0f54f88ee
delete some fm2 specific legacy importer code
2019-11-10 09:05:17 -06:00
adelikat
8baa400d34
fix up new fm2 import and use it instead of the old one. FDS is still not supported, nor peripherals, but they weren't supported in the old one either
2019-11-10 09:00:27 -06:00
adelikat
0a63255244
progress on fm2 importer rewrite (not wired up yet)
2019-11-10 09:00:27 -06:00
adelikat
7c9f2a2873
cleanup Import classes
2019-11-10 09:00:27 -06:00
adelikat
46ea09da10
MovieImport - cleanup, and properly wire up the new style importers. Pjm, Pxm no longer broken
2019-11-09 14:43:49 -06:00
adelikat
7c38b855ca
nitpick rename of a few files
2019-11-09 13:45:23 -06:00
adelikat
93562eb935
cleanup FileLoader.cs
2019-11-09 13:40:15 -06:00
YoshiRulz
8c059aa43c
Replace helper methods with readonly bool IsUnixHost and cleanup
2019-11-04 14:30:05 +10:00
J.D. Purcell
fec63fb66a
Spaces -> tabs, fix mixed newlines.
2019-11-03 20:58:36 -05:00
adelikat
e4e10646bf
Merge branch 'master' into MoreUnixMonoCompatWork
...
# Conflicts:
# BizHawk.Client.EmuHawk/Program.cs
# BizHawk.Common/BizInvoke/MemoryBlock.cs
2019-11-03 16:09:22 -06:00
adelikat
942d9fc75e
Simplify OS checks with some helpful methods
2019-11-03 16:04:42 -06:00
adelikat
b9ade1a555
Merge branch 'master' into MoreUnixMonoCompatWork
2019-11-03 12:55:53 -06:00
J.D. Purcell
d71b2d26b5
Update Newtonsoft.Json
2019-11-02 16:24:08 -04:00
adelikat
ae7221988b
cheats code cleanup
2019-11-02 11:25:11 -05:00
J.D. Purcell
f2d43f306c
Remove unused setting.
2019-11-01 22:44:02 -04:00
adelikat
fdd0076485
Merge branch 'master' into MoreUnixMonoCompatWork
2019-11-01 20:59:40 -05:00
adelikat
ba9d5f7a4a
SharpCompress - private = true, also remove processorArch = MSIL, not sure it matters or not, but didn't intent to put it
2019-11-01 20:54:40 -05:00
adelikat
b862a464ee
remove our outdated 7z shenanigans with sharpcompress
2019-11-01 20:22:05 -05:00
adelikat
00691b58a2
misc cleanups in Client.Common movie and watch files, mostly typos and C#7isms
2019-10-31 19:25:11 -05:00
adelikat
6c7653e158
Merge branch 'master' into MoreUnixMonoCompatWork
...
This doesn't compile because of Input.cs, didn't know what to do. Also search for Merge TODO for some commenting things that probably need to be deleted
# Conflicts:
# BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj
# BizHawk.Client.EmuHawk/CustomControls/InputRoll.Drawing.cs
# BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs
# BizHawk.Client.EmuHawk/Program.cs
# BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs
# BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs
# BizHawk.Client.EmuHawk/tools/ToolHelpers.cs
# BizHawk.Client.EmuHawk/tools/ToolManager.cs
# BizHawk.Client.EmuHawk/tools/TraceLogger.Designer.cs
# BizHawk.Client.EmuHawk/tools/TraceLogger.cs
# BizHawk.Client.EmuHawk/tools/Watch/RamSearch.Designer.cs
# BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs
# BizHawk.Common/BizInvoke/DynamicLibraryImportResolver.cs
2019-10-31 17:01:19 -05:00
adelikat
7d554f06d3
return an IMovie instead of Bk2Movie from ImportFile
2019-10-31 16:08:05 -05:00
adelikat
3b25fdc8ca
simplify some movie import code
2019-10-31 16:08:05 -05:00
YoshiRulz
f8379d9fd4
Bump ReSharper analysis to C# 8.0
2019-10-31 03:30:00 +10:00
feos
0247a8f1a8
mame core wip ( #1705 )
...
* add MAME to OpenAdvanced
* make mame launch games
limited to arcades that only need rom name. other devices require machine name and rom name, and won't run. nor they are meant to be supported anyway: we have enough emulators that do the job better for particular devices.
dunno if direct disk access will be avoidable, there are quite some files it might want to load other than the rom (parent rom, bios, artwork). trapping all of these might be a future task.
it is also known that mame can load "romname.zip" file just as well as "romname" folder, which would represent an unarchived zip. I make use of it to send it zip name with extension. it's easy, and we're not obliged to recognize mere folder paths in the mame-advanced-loader logic.
* ability to run lua code inside mame
2019-10-29 18:37:27 +03:00
adelikat
5c674e5f8f
Watch UI classes - some cleanups, mostly C#7isms
2019-10-27 18:02:06 -05:00
J.D. Purcell
69edada441
Set LangVersion to 8.0. Requires Visual Studio 2019 with 16.3+ update installed.
2019-10-27 12:14:19 -04:00
adelikat
924618ee8f
Set resharper language level to 7, add some emulator lingo to the resharper dictionary
2019-10-27 10:54:29 -05:00
YoshiRulz
d0159ee565
Port InputRoll by adding GDI+ implementation
...
also available for Windows users via a toggle in TAStudio
2019-10-25 19:17:50 +10:00
J.D. Purcell
952609eeaa
Factor out some common stuff in rom load/close.
2019-10-20 23:36:11 -04:00
J.D. Purcell
b01f52c01b
Ability to handle alternate keyboard layouts (e.g. Dvorak). Optional and off by default for now due to its experimental nature. Closes #1584
2019-10-20 01:16:27 -04:00
alyosha-tas
db1dc74591
Mostly Fix #1696
2019-10-19 21:28:06 -04:00
adelikat
6c22e1c4c6
Lua console - implement saving/loading of column info
2019-10-19 10:45:42 -05:00
adelikat
d6972d1252
Lua Console - use InputRolle, fix all kinds of bugs with using Separators
2019-10-19 09:50:21 -05:00
J.D. Purcell
6504387302
Option to accept background input only from controller. Closes #1396 .
2019-10-13 19:49:24 -04:00
James Groom
90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
...
squashed PR #1591
2019-10-13 15:50:57 +00:00
YoshiRulz
462bd891af
Fix SevenZipLibraryManager.LoadLibrary
2019-10-14 00:51:44 +10:00
YoshiRulz
7df71f2c86
Properly fix lib loading (builds upon 77bbc4128
)
...
Also cleaned up OSTailoredCode.cs and fixed qualifiers in Program.cs
2019-10-13 15:23:14 +10:00
YoshiRulz
d9c42f44a1
Implement IHawkFileArchiveHandler using NuGet package SharpCompress
2019-10-06 16:51:02 +10:00
alyosha-tas
d2fe217869
GBHawk: expose 4x core
2019-10-04 13:52:29 -04:00
alyosha-tas
79c4b1e846
GBHawkLink3x: Initial Commits
2019-09-08 16:35:39 -04:00
feos
ab042fafd0
srt export: I was dumb and made it edit the original thing instead of the copy
2019-08-30 19:51:49 +03:00
YoshiRulz
8c53a06a6b
Port GetRelativePath
2019-08-17 16:03:27 +10:00
YoshiRulz
2073583157
Fix typo, re-add Asnivor's implementations which may help on .NET Core
2019-08-17 15:45:26 +10:00
YoshiRulz
72c052622c
Use SystemColors instead of using a lookup
...
And work around unimplemented stuff in the System.Drawing implementation that
I'm using --Sappharad
2019-08-12 20:34:17 +10:00
YoshiRulz
196594e1df
Port TryMakeRelative and IsSubfolder
2019-08-12 20:03:40 +10:00
adelikat
290de71b71
some misc cleanups
2019-06-28 20:33:40 -05:00
adelikat
6b249c648d
fix a bug in TasLagLog, not sure how it was working
2019-06-28 20:26:18 -05:00
adelikat
062ec8cb97
remove a todo that we decided not to do
2019-06-28 20:22:10 -05:00
adelikat
41d9d2da4d
fix a warning, and fix the name of a variable nearby
2019-06-28 14:34:18 -05:00
feos
2edf5c08f8
Merge pull request #1592 from TASVideos/tsm-interface
...
Tsm interface
2019-06-23 18:04:56 +03:00
alyosha-tas
982dc479e7
SubNESHawk: Play Movie dialog now calculates time correctly
2019-06-21 17:58:13 -04:00
alyosha-tas
e8d64cdbbb
Vectrex: Add minestorm and bug fixes
2019-06-17 09:06:37 -04:00
alyosha-tas
fb9ac2f3af
Vectrex: hook up controllers
2019-06-16 08:17:34 -04:00
feos
a2846ea8e6
fix #1447
2019-06-16 10:41:10 +03:00
adelikat
5075160355
some cleanups
2019-06-15 18:38:56 -05:00
adelikat
cb4b7d7089
some cleanup
2019-06-15 18:31:46 -05:00
adelikat
26c190cd32
simplify
2019-06-15 18:26:59 -05:00
adelikat
c9ae8e3db3
StateManagerState begone!
2019-06-15 17:06:13 -05:00
adelikat
ea55217c3f
I'm convinced this is a worthless check, -1 was never being passed in, and shouldn't be
2019-06-15 16:49:08 -05:00
adelikat
3ec2ec325a
IStateManager - refactor indexer to not return a keyvalue pair, since it by design will try to return the exact frame, returning the frame is redundant
2019-06-15 16:43:21 -05:00
feos
6f5d2cf24b
movie: when pause on movie end is chosen, go to finished mode instead of stopping
2019-06-16 00:32:39 +03:00
adelikat
d79a00f035
remove IStateManager.IsMarkerState
2019-06-15 16:17:49 -05:00
adelikat
e89bb6c276
reorg TasStateManager file
2019-06-15 16:13:16 -05:00
adelikat
eaef336492
rip out IStateManager.MountForWriteAccess() and simplify
2019-06-15 16:06:35 -05:00
adelikat
c87c1d8328
simplify
2019-06-15 15:51:56 -05:00
adelikat
d4432db7f9
simplify
2019-06-15 15:44:34 -05:00
adelikat
2a8b4504cd
Simplify
2019-06-15 15:43:22 -05:00
adelikat
7f43fb09af
delete an absurd check
2019-06-15 15:29:25 -05:00
adelikat
d998a9587f
remove a todo
2019-06-15 15:28:10 -05:00
adelikat
21c164abcf
simplify Last implementation
2019-06-15 15:22:12 -05:00
adelikat
6004f30d3a
rename IStateManager.ClearStateHistory -> Clear, LastStatedFrame -> Last
2019-06-15 15:19:18 -05:00
adelikat
0ab1b1887e
IStateManager - remove IDisposable, this isn't a terrible idea, but let's put it back if/when we need it. Remove IDisposable from StateManagerState
2019-06-15 15:15:14 -05:00
adelikat
b1296dd9bb
rip out NDBDatabase
2019-06-15 15:13:08 -05:00
adelikat
ed85ce806b
more cleanup
2019-06-15 14:57:26 -05:00
adelikat
81ee00a1b6
cleanup
2019-06-15 14:56:03 -05:00
adelikat
e0a51eaab1
Rename IStateManager.StateCount -> IStateManager.Count
2019-06-15 14:49:43 -05:00
adelikat
cb4e71ebf7
rename a StateManager method, and delete some unused methods
2019-06-15 14:40:18 -05:00
adelikat
8f116a8428
Pass TasMovie into StateManagerDecay and have it get the last edited frame instead of from IStateManager
2019-06-15 14:35:31 -05:00
adelikat
3c27a332bb
create IStateManager interface and use that instead of TasStateManager
2019-06-15 14:31:06 -05:00
adelikat
1bcf6394ed
cleanup
2019-06-15 13:27:10 -05:00
adelikat
694ba93ec1
I think this is the correct wasLag logic
2019-06-15 13:10:31 -05:00
adelikat
f431492944
better code for populating wasLag, I think
2019-06-15 12:53:17 -05:00
adelikat
3b9e54c250
refactor TasLagLog to allow for gaps in the history. Note that this is a breaking .tasproj format change currently
2019-06-15 12:11:52 -05:00
YoshiRulz
1c0622d272
Move polar<=>rect conversion to new class
2019-06-14 16:26:31 +00:00
YoshiRulz
3fa0f71a24
Inline ToHexString extension where param numdigits is constant
2019-06-14 15:54:17 +00:00
James Groom
067477ce18
Merge branch 'master' into clean_docs
2019-06-14 13:28:39 +00:00
feos
2423f44540
tastudio: drop laglog from branches since they don't have greenzone anymore
2019-06-13 19:39:52 +03:00
feos
bc990061b7
tastudio: refactor out a variable
...
fix autorestore triggering while drawing on future frames
2019-06-12 22:34:16 +03:00
zeromus
6a548220bd
Merge pull request #1462 from brian-armstrong/brian/mem_callback_addr_value
...
Studies show that PR's with threads exceeding 40 posts suffer a 50% greater chance of never getting merged for each additional post
2019-06-10 02:01:06 -04:00
feos
f5bcdc4aba
fix #1513
...
OSD info on branch hover is mandatory, so I'm not removing it. drawing the branch OSD-framebuffer on the emulator screen is barely possible without butchering everything, so I'm not doing it. instead, keep both core and client framebuffers and use them where they make sense: osd FB shows up on hover, core FB goes to emulator screen on branch load.
2019-06-09 20:34:14 +03:00
Brian Armstrong
2c6ecb68bd
Merge branch 'master' into brian/mem_callback_addr_value
2019-06-06 02:11:04 -07:00
Brian Armstrong
d41bd867b8
flags
2019-06-06 02:04:47 -07:00
YoshiRulz
2642ef4049
Remove empty docs
2019-06-06 16:41:10 +10:00
YoshiRulz
df232e6184
Add additional CurrentOS checks
2019-05-19 14:46:50 +10:00
YoshiRulz
35056ae2d9
Remove #if WINDOWS, using runtime check where applicable
2019-05-18 20:17:02 +10:00
YoshiRulz
58c738957c
Rename PlatformLinkedLibSingleton and children
2019-05-18 15:40:46 +10:00
alyosha-tas
1c9182a290
Fix exception when statrting from saveram multple times
2019-04-21 09:06:16 -04:00
vadosnaprimer
7915ec8bc1
tsm decay: try to work around some more removal bugs
2019-04-18 19:11:45 +03:00
Asnivor
f0384b7e83
ChannelF: Extreme WIP! I promise nothing...
2019-04-16 16:10:56 +01:00
alyosha-tas
9296092b84
Vectrex: Start running the cpu and fixing bugs
2019-04-08 18:57:21 -05:00
James Groom
779975f689
Use nameof
2019-03-28 14:17:14 +11:00
adelikat
165880b444
Merge pull request #1504 from TASVideos/semicolonFormat
...
[Untested] Use format strings with the semicolon section separator
2019-03-27 19:38:16 -05:00
YoshiRulz
9d0ee22885
Use string interpolation
2019-03-20 15:01:12 +10:00
YoshiRulz
5412a74890
Use the *correct* formatting string, skip calls to Math.Abs
2019-03-05 19:16:20 +10:00
YoshiRulz
20087cd804
Use string interpolation with {0:P;M;Z} format string
2019-03-03 17:52:47 +10:00
alyosha-tas
5665617d9b
GGHawkLink: menues and API stuff
2019-02-09 12:41:23 -06:00
alyosha-tas
4f17934d6c
GGHawkLink: Initial Commit
...
- Make necessary access changes in SMS
- Implmement multi-disk bundler support
- Initial Video and sound support
2019-02-09 09:55:45 -06:00
Brian Armstrong
a8f293eec8
Call mem callbacks with addr, value
2019-01-24 03:23:21 -08:00
feos
ce3e3d2ed3
lua docs: couple hints
2019-01-23 15:42:02 +03:00
adelikat
5b26300e50
Merge pull request #1419 from upthorn/master
...
Extend APIHawk with a lua-like system of api libraries
2019-01-19 17:24:08 -06:00
alyosha-tas
2bddf3663e
TAStudio: Fix some bugs in new from menues
2019-01-19 13:30:42 -06:00
alyosha-tas
9696a75839
Merge pull request #1439 from TASVideos/subneshawkfixattempt
...
SubNESHawk
2019-01-19 09:48:43 -06:00
zeromus
cecdff8293
config hookup for user crop area
2019-01-18 00:59:45 -05:00
upthorn
435d717f7b
Merge branch 'master' of https://github.com/Upthorn/Bizhawk
2019-01-14 17:10:45 -08:00
alyosha-tas
74d20ca45c
SubNEShawk: Add VBL Count to BK2 movie header
2019-01-12 13:27:00 -06:00
alyosha-tas
c19c7cd5c3
SubNESHawk
...
also Input register shift fix
# Conflicts:
# BizHawk.Client.EmuHawk/MainForm.Designer.cs
# BizHawk.Client.EmuHawk/MainForm.Events.cs
# BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.IEmulator.cs
# BizHawk.Emulation.Cores/Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs
# BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs
2019-01-10 18:25:59 +03:00
feos
56e77f4907
tastudio: allow to actually unbind markers from input, and unbind by default
2019-01-05 21:48:40 +03:00
feos
cd2d63b04a
tastudio:
...
- don't use branch laglog after loading it. it's useless because we invalidate if needed anyway
- PauseOnFrame being null started to crash seeking, fixed
- make use of movie alias in branchbox
- capture tsm state after loading the branch
todo: if we load a branch in the middle of invalid greenzone, advancing won't draw new greenzone even tho states are being created. laglog doesn't seem to allow gaps either. unsure how to resolve
2019-01-05 21:30:06 +03:00
alyosha-tas
b9094545db
update 7zip file location
2019-01-04 18:03:34 -06:00
upthorn
71215adf0d
Merge branch 'master' of https://github.com/TASVideos/BizHawk
2019-01-04 04:58:58 -08:00
James Groom
42764f0019
Add preliminary Unix compatibility (using Mono; resolves #1384 ) ( #1380 )
...
* Move PlatformSpecificLinkedLibs and implementations to common and rename
* Specify file ext. at LoadPlatformSpecific call site
* Move Client.Common.Global.RunningOnUnix to PlatformLinkedLibSingleton
* Inline var Resolver
* Use PlatformLinkedLibManager internally
* Move plugin load check to LinkedLibManager, use LinkedLibManager
* Interpolate
* Return exit code from dlclose/FreeLibrary
* Skip all calls to externs in BlipBufDll when using mono
* Use PlatformLinkedLibManager in SevenZipLibraryManager
* Add expected return value to workaround (from testing on Win32)
* Remove ".dll" from DllImport attr, remove temporary workaround, see desc.
The library can be built by changing the output file name in
`.../blip_buf/Makefile` to `libblip_buf.so`, and running `make`. It will be
loaded if placed in the `.../output` folder.
* Remove unused code, add TODO (this class is req. for Waterbox.PeWrapper)
The TODO is to [rewrite with
C#](https://docs.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files )
instead of importing from `kernel32.dll`.
* Update OpenTK again but better (for #1384 )
* Add Mono run script
* Add libblip_buf.so (temporary)
Temporary because it should be a separate package which BizHawk depends on.
* Add distro detection, add "already running" and "unknown distro" messages
* Gray-out Lua Console on Unix
* Extract superclass from EmuLuaLibrary, add shell implementation for Unix
* Specify libdl version, Fedora doesn't have the versionless symlink
* Remove empty `ToolStripMenuItem`, null `Text` caused crash on Unix
* Transform OpenTK keyboard input into a `List<KeyEvent>` and read that
Also fixes crash on rebind
* Remove debug `using ...;`
2019-01-04 01:50:55 +03:00
alyosha-tas
f47c2d1558
GBHawk: Start link support
2019-01-03 12:10:53 -06:00
upthorn
01914552de
Merge branch 'master' of https://github.com/Upthorn/Bizhawk
2018-12-23 14:45:18 -08:00
zeromus
15131a0626
support --config=c:\path\to\config.ini ( fixes #1404 )
2018-12-23 00:23:57 -05:00
upthorn
79aaef0257
Removed project references to old, unrefactored files that no longer exist.
2018-12-22 11:16:54 -08:00
upthorn
efc6f73169
Merge branch 'PluginDev'
2018-12-22 10:43:12 -08:00
upthorn
aba1da071d
Completely refactored PluginAPI to extend ApiHawk. Ecco2AssistantPlugin is now an external tool.
2018-12-22 10:40:30 -08:00
upthorn
d238ecc311
Merge branch 'master' of https://github.com/TASVideos/bizhawk
2018-12-21 22:41:37 -08:00
Asnivor
eee1cb481c
Fix Lua documentation - #1389
2018-12-08 08:47:17 +00:00
upthorn
05f9939ddf
Merge branch 'master' into PluginDev
2018-12-06 12:29:58 -08:00
upthorn
59f30b4a79
Allow signed display of fixed point values.
2018-12-06 12:25:00 -08:00
upthorn
9874c496ac
Minor revisions to plugin API
2018-12-05 11:58:19 -08:00