Morilli
28dda60e46
Fix lua project with analyzer change
...
rebuild lua dll
2023-05-24 18:43:25 +02:00
YoshiRulz
4a752f66b7
Add Analyzer to require checking or discarding `TryGetValue`
...
I'm pretty sure all the existing instances were intended to use `default(T)` if
the key isn't present, except maybe the cheatcode converters but I don't care to
rewrite those at the moment
2023-05-05 06:27:15 +10:00
YoshiRulz
8a5921182e
Add Analyzer to disallow discarding locals e.g. `_ = result;`
...
fixes 70bd081a9
, a2185d9ef
2023-04-29 01:52:43 +10:00
YoshiRulz
ebd36f08b6
Downgrade `System.Drawing.Common` to 6.0.0 and enable Unix impl.
...
fixes 65ffa3fc2
testroms run now, CBB checking GambatteSuite runs but I'm guessing it does too
2023-04-16 10:49:18 +10:00
YoshiRulz
a1fe557d31
Re-enable MA0020 and fix noncompliance
2023-04-16 09:02:40 +10:00
YoshiRulz
65ffa3fc2e
Blindly update NuGet deps
...
temporarily disabled MA0020
2023-04-16 09:02:40 +10:00
YoshiRulz
da65ad6226
Fix CS0168 warning
2023-04-16 09:02:36 +10:00
Moritz Bender
ddc3e929e9
Use source generation for VersionInfo ( #3625 )
...
* Use source generator for VersionInfo
* Remove leftover hacks
* Use same fallbacks as NixHawk when Git not available
---------
Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2023-04-12 21:14:44 +02:00
CasualPokePlayer
03aa420bd5
fix last issue in #2951 properly
2023-04-09 23:43:28 -07:00
CasualPokePlayer
8737203f3a
Add ISaveRam implementation for AppleII, fix bug which caused DiskIIController to not be correctly stated
2023-04-04 23:46:26 -07:00
CasualPokePlayer
ece5d2548a
Fix peeks/pokes with the new memory domains in Virtu
...
fixes a311b3b6f3
2023-04-02 23:37:48 -07:00
CasualPokePlayer
5ca888a8af
misc cleanups with previous commit
2023-04-01 19:57:47 -07:00
CasualPokePlayer
a311b3b6f3
Change up AppleII's "main ram" domain, add aux ram domain
...
The main ram previously seemed to just be a slice of the system bus between 0 - 0xbfff. this posed two problems: that area is banked, and that area could represent main ram or aux ram. main ram now represents all of the ram main ram can possible represent, ordered like how the core orders it (which the way it does it happens to be very natural in any case), and a new aux ram domain does the same thing but with aux ram
Also some other changes put in so Rider wouldn't error on building Virtu
2023-04-01 19:54:26 -07:00
CasualPokePlayer
b11bb4fc22
fix check for IsParamsArray
...
fixes #3513
2023-01-10 05:53:58 -08:00
CasualPokePlayer
2c75e9bf96
remove this unneeded using of System.Drawing (i don't know how that got here)
2022-12-20 23:32:12 -08:00
CasualPokePlayer
91ce98ef12
better handle lua on linux, be compatible with lua 5.3 (we don't actually use any API exclusive to 5.4 so no real change in this case)
2022-12-20 23:30:33 -08:00
CasualPokePlayer
339915c013
check-in NLua to main repo
...
combine NLua with KeraLua (KeraLua is "gone" now I guess)
make it use the BizInvoker (so now it can properly handle the liblua5.4.so and lua54.dll names differing), also delete the liblua54.so.
minor speedup when creating a new empty table
make lua default to UTF8 internally, so we don't need to manually change the state's encoding
2022-12-17 21:51:10 -08:00
CasualPokePlayer
1fc08e3d95
Use NLua's MethodCache if possible for MethodBase based lua functions (see 0ed3085ec3
)
2022-12-07 19:36:13 -08:00
CasualPokePlayer
b04260bee7
fix unwrapped lua exceptions not being correctly thrown
2022-12-06 14:21:39 -08:00
CasualPokePlayer
bc79664461
fix implicit lua number to .net conversion
...
fix .net exceptions not halting the running script
fix inconsistency with stdout and lua console printing errors, both should end in a newline now
print the inner exception of a lua exception (i.e. the .net extension) if possible
2022-12-06 02:52:57 -08:00
CasualPokePlayer
eb00019c86
fix passing numbers for string args in .net lua functions (old engine had this behavior, granted "bad user" if they relied on this), add appropriate test
...
fix passing sbyte/char as args, add appropriate tests
cleanup the lua auto unlock hack, using a nice ref struct + dispose to handle it
2022-12-05 23:21:23 -08:00
CasualPokePlayer
51f01efdc4
Properly handle errors when running a lua script, using Resume/Yield methods added to the LuaThread class (see f904fa0d53
)
2022-12-02 14:44:05 -08:00
CasualPokePlayer
45fbdb4844
Move to NLua/KeraLua/Lua5.4 ( #3361 )
2022-12-01 00:51:02 -08:00
YoshiRulz
7efafc18da
Extract helper code for Analyzers and Source Generators
2022-10-01 04:13:55 +10:00
YoshiRulz
466d052c2d
Clean up project files of external .NET projects
2022-09-30 08:51:57 +10:00
YoshiRulz
65f5aecfa6
Fix warnings in external .NET projects
2022-09-30 08:51:53 +10:00
YoshiRulz
158c897702
Use `Google.FlatBuffers` NuGet package and check in new Nyma codegen
2022-09-30 05:33:18 +10:00
CasualPokePlayer
98a8cdf693
remove gongshell, add "simple" code for opening win32 context menu (gongshell's only actual use), re: #2261
2022-08-19 00:24:50 -07:00
YoshiRulz
d58a4a07f5
Update `PcxFileTypePlugin.HawkQuantizer` project file to match others
2022-08-19 17:02:27 +10:00
YoshiRulz
a5652ee3bc
Backport `IEnumerable.Order`/`OrderDescending` shorthand
...
at time of writing, in .NET 7 preview
https://github.com/dotnet/runtime/pull/70525
2022-08-13 02:18:26 +10:00
YoshiRulz
140e340a8d
Add Analyzer rule to warn of `FirstOrDefault` on list of structs
2022-07-28 03:06:01 +10:00
YoshiRulz
a2fef59fe1
Add Analyzer rule to prohibit `typeof(T).ToString()`
2022-07-22 03:51:43 +10:00
YoshiRulz
f3f90a4cd5
Add Analyzer rules to prohibit `this.GetType()`
...
seriously Meziantou is a godsend
2022-07-22 03:51:42 +10:00
YoshiRulz
dcc8957be3
Fast-fail Analyzer properly, fix typo
...
thanks to https://www.meziantou.net/working-with-types-in-a-roslyn-analyzer.htm
2022-07-22 03:51:36 +10:00
YoshiRulz
3fddcdb2c5
Add Analyzer rule to enforce throwing in `[FeatureNotImplemented]`
2022-07-15 22:22:28 +10:00
YoshiRulz
26e02033f2
Do the analysis for BHI1005 properly
2022-07-15 22:22:28 +10:00
YoshiRulz
4f98733c29
Add Analyzer to enforce exception type for default switch branches
2022-07-14 23:46:34 +10:00
YoshiRulz
395aa0755b
Add `BizHawk.Analyzer` project
2022-07-14 04:26:27 +10:00
CasualPokePlayer
13456e51bf
AppleII - make clock registers deterministic if needed
...
also don't state monochrome (non-sync setting? todo: verify)
2022-06-27 18:33:31 -07:00
YoshiRulz
0d18a54609
Retarget Virtu to .NET Standard 2.0
...
fixes 4df256cd6
2022-06-24 21:30:30 +10:00
CasualPokePlayer
4df256cd6b
AppleII - State keyboard, fix up csproj
2022-06-23 22:01:07 -07:00
YoshiRulz
0a4bbce3f2
Some additions to ReflectionCache source generator
2021-12-03 16:36:03 +10:00
YoshiRulz
182699b967
Clean up ReflectionCache source generator
2021-11-28 03:33:34 +10:00
YoshiRulz
4f7a641453
Add missing $ before string in generated ReflectionCache source
2021-07-27 21:10:11 +10:00
YoshiRulz
652b38d04c
Check-in ReflectionCache assembly instead of including in build
2021-04-14 10:44:46 +10:00
YoshiRulz
65d5e3f7d5
Move NymaTypes to separate project, fiddling w/ project structure
2021-04-09 17:49:07 +10:00
YoshiRulz
e24c4c3971
Move CDFS (iso-parser) to new external project, update upstream info
2021-01-02 17:34:13 +10:00
YoshiRulz
b9b1e2d237
Move Quantize to new external project, update upstream info
2020-12-23 16:37:47 +10:00
YoshiRulz
d23386e75d
Remove unused assemblies from repo
2020-11-06 23:15:12 +10:00
YoshiRulz
10e7cb0f34
Use pre-built assembly for FlatBuffers.Core
...
fixes 4be701e2a
2020-05-30 15:54:06 +10:00