Commit Graph

213 Commits

Author SHA1 Message Date
adelikat 46a7e64911 misc cleanups 2020-04-12 17:41:55 -05:00
adelikat 2b281116ed misc cleanups 2020-04-08 16:03:35 -05:00
adelikat 250d3b6c49 simplify CheatList.Sort using OrderBy extension method 2020-03-15 18:32:31 -05:00
adelikat e6eb667e56 RamSearchEngine - simplify 2020-03-04 19:19:32 -06:00
adelikat ebc3ea7ca0 RamSearch - simplify slightly 2020-03-04 19:10:26 -06:00
adelikat eff3f310a8 ramSearchEngine - fix AddRange broken in earlier refactor, oops 2020-03-04 19:07:36 -06:00
adelikat 74c12779b0 RamSearchEngine - use HawkFloatEquality() for float equality comparisons 2020-03-04 19:02:00 -06:00
adelikat d1db498d20 RamSearchEngine - List -> IEnumerable 2020-03-04 18:44:22 -06:00
adelikat a84fca5f8f make WatchList constants not all caps 2020-03-04 18:43:31 -06:00
adelikat 888a5225fe create an OrderBy() overload that does OrderBy or OrderByDesc, and use it to simplify sorting in RamSearchEngine (can be used to simplify other things like CheatList) 2020-03-04 18:40:26 -06:00
adelikat d6e56f8aa8 RamSearchEngine - simplify watchList creation with extension methods 2020-03-04 18:15:04 -06:00
adelikat 35ab6762a2 RamSearchEngine - simplify a bit 2020-03-04 17:51:57 -06:00
adelikat e460394d41 RamSearchEngine - cleanup code slightly by making ToFloat() an extension method, also fix CompareDifrerent by float comparisons that were all incorrect 2020-03-04 17:39:05 -06:00
adelikat 51dcd3db46 remove now redundant casts 2020-03-03 19:09:44 -06:00
adelikat d38e8a0503 cleanup 2020-03-03 18:41:53 -06:00
adelikat 3d664d9270 simplify ram search engine settings usage a bit with some extension methods 2020-03-03 18:41:53 -06:00
adelikat 23c819de4a Move SearcMode enum out of SearchEngineSettings 2020-03-03 18:41:53 -06:00
adelikat a151bd7424 move settings class out of RamSearchEngine 2020-03-03 18:41:52 -06:00
adelikat 3a0df3f543 move enums out of RamSearchEngine class 2020-03-03 18:41:52 -06:00
adelikat 92221f38df separate namesapce for RamSearchEngine files 2020-03-03 18:41:52 -06:00
adelikat c25d354194 break out some classes out of RamSearchEngine into their own files 2020-03-03 18:41:52 -06:00
adelikat 9474771098 ToolBox.cs - replace serious of ifs with LINQ filters 2020-03-01 16:30:51 -06:00
adelikat ff836b7089 remove no longer used Watch.IsOutOfRange 2020-03-01 16:23:02 -06:00
adelikat 18762c75ee misc cleanups in Client.Common 2020-03-01 15:49:48 -06:00
adelikat db21af9e59 cleanups in Client.Common, mostly removing redundant parenthesis 2020-03-01 14:52:16 -06:00
adelikat e1bb93971a use expression body in various places 2020-02-25 15:14:14 -06:00
adelikat 5386b8b18c Client.Common cleanups - mostly using higher language features 2020-02-22 12:29:12 -06:00
adelikat 656f2b814e Move IEmulator extensions to the Emulation.Common namespace, the intent is that these are used and serve as built in functionality, so it's overly tedious to when most situations require both Common and an additional extensions namespace 2020-02-15 12:33:15 -06:00
adelikat b3cc55080f Ram Search - use SignExtendAsNeeded in more places, fixes #1819 2020-02-01 16:41:28 -06:00
YoshiRulz a8170ca183
Fix mismatching namespaces 2020-01-13 07:19:06 +10:00
YoshiRulz a8408ed3be
Improve exception docs in BizHawk.Client.Common 2020-01-02 21:51:27 +10: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
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
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 e974006ea6 RamSearchEngine - simplify some 2019-11-15 16:47:54 -06:00
adelikat ab9c7699ec misc cleanups 2019-11-15 15:15:13 -06:00
J.D. Purcell fec63fb66a Spaces -> tabs, fix mixed newlines. 2019-11-03 20:58:36 -05:00
adelikat ae7221988b cheats code cleanup 2019-11-02 11:25:11 -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 5c674e5f8f Watch UI classes - some cleanups, mostly C#7isms 2019-10-27 18:02:06 -05:00
alyosha-tas db1dc74591 Mostly Fix #1696 2019-10-19 21:28:06 -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 3fa0f71a24 Inline ToHexString extension where param numdigits is constant 2019-06-14 15:54:17 +00: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