Commit Graph

2287 Commits

Author SHA1 Message Date
YoshiRulz f256c164d1
Replace concatenation and StringBuilder with string.Concat/string.Join 2019-03-28 00:40:18 +10:00
YoshiRulz 56c33ac99b
Use OfType where possible 2019-03-27 16:20:43 +10:00
YoshiRulz 2b7443bd83
Create and use IEnumerable.OrderByInDir extension 2019-03-27 15:57:49 +10:00
YoshiRulz 4d465a4a58
Use AddRange where possible 2019-03-27 14:57:08 +10:00
YoshiRulz 03d4c51c47
Replace .Where(pred).Count() with .Count(pred) 2019-03-27 14:40:55 +10:00
YoshiRulz c847b8cdba
Use RemoveAll where possible 2019-03-27 14:38:06 +10:00
YoshiRulz 6abcf7953c
Use Except where possible 2019-03-27 14:28:58 +10:00
YoshiRulz c82ff6077a
Remove ToList call when the returned List is used as an IEnumerable 2019-03-27 13:56:10 +10:00
YoshiRulz 2900484ad5
Simplify Any calls
Replace .Where(pred).Any() with .Any(pred)
Replace .Any(x => x == y) with .Contains(y)
2019-03-25 04:02:11 +10:00
YoshiRulz 718e60cbc4
Remove IEnumerable.Any check when iterating the same IEnumerable 2019-03-25 03:28:02 +10:00
YoshiRulz f45201ce7a
Replace remaining LINQ DSL with method chains 2019-03-25 03:03:54 +10:00
YoshiRulz 90623d36e2
Replace .Where(pred).FirstOrDefault() with .FirstOrDefault(pred)
In FirmwareDatabase.LookupFirmwareRecord and MDS_Format.LoadMDSToDisc, first
convert LINQ DSL to method chain
2019-03-25 02:21:37 +10:00
YoshiRulz 5f80e9d8e5
Use indexer instead of First() or Last() 2019-03-25 00:42:30 +10:00
YoshiRulz b72f40808b
Create and use IEnumerable.SelectAsIndexOf extension 2019-03-24 21:06:05 +10:00
YoshiRulz e790d904cb
Use Count or Length instead of Count() or no-param Any() 2019-03-24 19:21:47 +10:00
feos d54146791e fix #1509 2019-03-14 19:30:52 +03:00
James Groom c49799bb5b
Fix erroneous s/watch\.//i 2019-03-15 00:08:43 +10:00
alyosha-tas 6d0973ca7e
Merge pull request #1429 from YoshiRulz/master
Inconsequential changes (no whitespace)

looks good to me
2019-03-09 17:32:10 -06:00
alyosha-tas e5d94f3d7c Genesis: fix VDP viewer, fixes #1449 2019-03-09 17:16:00 -06:00
zeromus 5b552af5d5 change >= 0x80 -> '.' remap in hex editor to >= 0x7F (fixes #1503) 2019-03-03 01:14:33 -05:00
alyosha-tas ead1d8d08c GGHawkLink: Virtual Pad 2019-02-10 08:59:28 -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
adelikat 143c172cf0 debugger - dissassembler - wire pageup/pagedown to incement/decrement 2019-02-02 17:08:26 -06:00
feos 766de68e18 tastudio: don't tell about clipboard if it's empty 2019-01-23 17:24:42 +03: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 c4b3a7c3b8 TAStudio: Update window name when using saveas, Fixes #1444 2019-01-19 14:47:12 -06:00
alyosha-tas 6e1a19b5f8 TAStudio: Ask to override existing bk2 file when exporting 2019-01-19 14:02:45 -06:00
alyosha-tas 2bddf3663e TAStudio: Fix some bugs in new from menues 2019-01-19 13:30:42 -06:00
upthorn 435d717f7b Merge branch 'master' of https://github.com/Upthorn/Bizhawk 2019-01-14 17:10:45 -08:00
YoshiRulz c0a28a320b
Inconsequential changes (no whitespace)
Remove useless semicolon, remove useless `? true : false`, move period to next
line
2019-01-07 22:02:02 +10: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
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
zeromus 9d14c1f214 fix ugly cleartype mangling on lua canvas drawtext, unintended goof-up in code. fixes #1411 2018-12-30 02:32:38 -05: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
alyosha-tas afebde0d3e A7800: change 'trigger' to 'button' 2018-12-14 18:23:24 -06:00
feos 3857ccc18f fix #1388 2018-12-04 19:57:01 +03:00
feos 8e58777c70 tastudio: update branchview buttons on any selection change
fix crash on branch dbl-clk without selection
2018-12-04 00:53:53 +03:00
feos c85bb39d98 tastudio: branch loading now can behave as it does for regular rerecording!
Old control scheme for Branches ON:
- Loading in read+write (recording) mode restores the branch input and truncates it after the branch frame
- Loading in read-only (playback) mode only makes emulation jump to the frame of the branch, disregarding its savestate and timeline

Old control scheme for Branches OFF:
- Loading a branch ALWAYS restores its entire input

TASEditor adds to this that you only start recording after you load a branch in rec mode, but I don't think this is important here.
2018-12-04 00:16:14 +03:00
feos d03e12590e tastudio: make state-save hotkeys usable if the slot is empty, just add a branch 2018-12-03 23:27:21 +03:00
feos 731584344d tastudio: BranchesRestoreEntireMovie and LoadBranchOnDoubleclick 2018-12-03 22:33:42 +03:00
adelikat 12c11eec5d lua method - client.getconfig(), returns the current config object, note that you can actually use this to set primitive config values, do so at your own risk 2018-12-01 09:20:08 -06:00
zeromus 615d7848f9 basic bot - fix failure to fully use selected memory domain (fixes #1305) 2018-11-30 10:14:35 -06:00
feos 0433b10d31
Revert "This fixes a bug in TAStudio where you cannot use '<'to get to frame 0" (#1382)
I'm committing the proper fix after this
2018-11-28 22:03:16 +03:00
adelikat 870c5c186a Hex editor - remember last domain used, and load it automatically if available, fixes #1345, fixes#508 2018-11-18 11:18:42 -06:00
adelikat b73e9d2f7a
Merge pull request #1371 from TASVideos/rewind_frame0
This fixes a bug in TAStudio where you cannot use '<'to get to frame 0
2018-11-18 11:07:11 -06:00
adelikat 06bb89791f Add a nag when attempting to record a quicknes movie (but allow the user to continue), fixes #1353 2018-11-18 10:05:12 -06:00