Commit Graph

18534 Commits

Author SHA1 Message Date
YoshiRulz c6dcb71d92
Remove goto from PCESoundDebugger.UpdateAfter 2021-03-26 10:43:20 +10:00
YoshiRulz 5daed21990
Remove goto from FilterProgram.Compile 2021-03-26 10:41:11 +10:00
YoshiRulz ba5a24eaad
Minor changes to readme 2021-03-26 09:58:56 +10:00
YoshiRulz 7eed4c5492
Update building on Windows section (resolves #2679) 2021-03-26 09:31:27 +10:00
YoshiRulz 40a0abc657
Replace Dictionary with List of ValueTuple in ArtManager
it was only used as a List of KeyValuePair anyway
I assume this was written before tuples
2021-03-25 19:31:56 +10:00
YoshiRulz e9ce42bfe0
Remove the other goto from TexAtlas.PackAtlas 2021-03-25 19:20:21 +10:00
YoshiRulz 997df16487
Remove a goto from TexAtlas.PackAtlas 2021-03-25 19:20:21 +10:00
YoshiRulz 89c1406f5a
Minor refactorings in TexAtlas.PackAtlas 2021-03-25 19:20:21 +10:00
YoshiRulz fc30b0bd26
Replace TexAtlas.PackedAtlasResults with List of ValueTuple 2021-03-25 19:20:18 +10:00
YoshiRulz 98c7db0274
Fix typo in TexAtlas.PackAtlas
This has been here since it was added in a2ba761ae. I think it's never caused
problems because the two lists are the same in all cases where the method's
result is used (the single caller, ArtManager.Close, immediately checks the
result of this method and throws if multiple atlases are used).
2021-03-25 18:58:22 +10:00
YoshiRulz 3da01dbfce
Init LuaFileList/LuaFunctionList outside platform impl. and pass in
now init'ing the lists at construction instead of mutating them afterwards
2021-03-25 16:02:22 +10:00
YoshiRulz ddef661eb2
Move attaching of callbacks from LuaConsole_Load to Restart
Y'know, where the thing they're being passed to is created... I don't think them
only being attached once was a problem, as one is also called from elsewhere and
the other is kinda useless
2021-03-25 15:43:20 +10:00
YoshiRulz f7cacfab99
Inline methods from LuaFunctionListExtensions and cleanup 2021-03-25 15:20:47 +10:00
YoshiRulz 3b8f08b1b0
Create and use helper for changing core pref. when importing movies 2021-03-25 15:11:04 +10:00
YoshiRulz 3249ae202e
Pass MainForm as IDialogParent through to movie importers 2021-03-25 15:11:04 +10:00
YoshiRulz 2fad61e4b5
Don't set preferred core for GBA when importing .vbm, there's only one
this wasn't removed when we dropped VBA-Next
2021-03-25 15:11:04 +10:00
zeromus b1602dae06 lua - actually send a comprehensible string over sockets instead of nonsense 2021-03-24 02:51:43 -04:00
James Groom f5d21a8f68
Unification of modal dialogs for errors and such (#2579)
* Pass IDialogParent to IVideoWriter impls via ctor instead of param

* Refactor IDialogController/Parent, moving some of it to Client.Common

tl;dr: MessageBoxButtons.OK => ShowMessageBox/ModalMessageBox,
MessageBoxButtons.YesNo or .OKCancel => ShowMessageBox2/ModalMessageBox2,
MessageBoxButtons.YesNoCancel => ShowMessageBox3/ModalMessageBox3.

Possible breaking change: Cheats had `Owner ?? this` as its "self", which I
think parented any modals it opened to MainForm instead of the Cheats window.
The Cheats window will be their parent now regardless. Other than that, all the
icons and stuff for all the other dialogs should be exactly the same.

* Remove WinForms dep from AV classes where possible

* Cleanup CoreFileProvider init, passing MainForm as IDialogParent

* Pass MainForm as IDialogParent to MovieSession

* Pass IDialogController through to one MovieZone ctor

* Use MessageBox helpers in RecordMovie

* Implement IDialogParent on misc. Forms to use MessageBox helpers

* Use MessageBox helper in misc. config Forms

* Pass IDialogController through to misc. Forms for MessageBox helpers
2021-03-23 19:08:32 -05:00
feos fbfbda65ad update mame lua api 2021-03-22 20:12:18 +03:00
zeromus c252ac2934 blind fix to lua socket receive string which supports embedded nulls and probably fixes rarer cases where long codepoints got broken up. re #2671 2021-03-21 21:28:39 -04:00
YoshiRulz fafa29a2bf
Add Lua function comm.socketServerSendBytes (resolves #2194)
takes a single param of an array-like table, casts each element to byte before
passing to ApiHawk
2021-03-22 08:15:53 +10:00
YoshiRulz 45488f2667
Change encoding for sockets to UTF-8, allow ext. tools to override it 2021-03-22 08:11:42 +10:00
nattthebear f08fdc3859 Fix aspect ratio of intellivision
What the fuck was this?  Someone went to the effort of entering in a value but expended absolutely no effort in checking it?  Oh well.  Fixes #2670.
2021-03-21 09:43:26 -04:00
adelikat 0a643af6df Hex Editor .tbl file loading - clear table before loading a new one, ignore empty lines in file 2021-03-20 22:45:20 -05:00
YoshiRulz 611d1bfaa1
Use UIHelper in FormsLuaLibrary (resolves #2604) 2021-03-21 08:23:31 +10:00
nattthebear 62ddd6495e
Tweak the rewinder. (#2668)
MainForm intentionally frame advances right after rewinding; this is so it can capture a new framebuffer. The old rewinder sort-of understood this, the new one does not.

Tweak the logic so the new rewinder behaves like the old one, but only when the interval is 1. When the interval is greater than 1, don't go farther back than we have to.

No particular behavior is guaranteed when nonlinear time exists (ie, rewinding through manual loadstates).

Fixes #2667.
2021-03-20 12:05:19 -04:00
YoshiRulz 359cb0d17b Fix executable bits on some wbox scripts 2021-03-20 08:11:48 +10:00
YoshiRulz c75ea8efd1 Cleanup libcxx scripts 2021-03-20 08:11:48 +10:00
YoshiRulz 4697c56a3b Pull musl submodule, complete script refactor and update readme 2021-03-20 08:11:48 +10:00
YoshiRulz f0b9e2e828
Make PathEntry sealed, add constructor and use in PathEntryCollection 2021-03-19 10:33:10 +10:00
YoshiRulz 0b5f48aede
Replace some parameter mutation w/ recursion 2021-03-19 10:33:10 +10:00
TiKevin83 585ed99cdd update gambatte-speedrun GBA modeswitch timing and testROM accuracy 2021-03-18 19:31:06 -04:00
YoshiRulz c53732c80c
Remove buttons from HelloWorld ext. tool which used GetInput/SetInput
fixes c11d410fb; I'm sure I could have rewritten these to use IJoypad but, like
the rest of this tool, it didn't seem like a great example
2021-03-19 07:51:13 +10:00
YoshiRulz c5e84ff02e Create new project Bizware.OpenTK3 from Bizware.BizwareGL and EmuHawk 2021-03-19 07:32:29 +10:00
YoshiRulz b1af3b1940 Move interface IBlendState to own file 2021-03-19 07:32:29 +10:00
YoshiRulz f36fc654ca Copy vector and matrix structs from OpenTK and cleanup
I managed to trim the > 5000 LOC of the original 4 files down to 400 LOC \o/
2021-03-19 07:32:29 +10:00
YoshiRulz 337b054042 "Inline" some vector and matrix operations 2021-03-19 07:32:29 +10:00
YoshiRulz 3dd03495e2 Copy enums from OpenTK 2021-03-19 07:32:29 +10:00
YoshiRulz 4a0e343c37 Copy DegreesToRadians method from OpenTK.MathHelper 2021-03-19 07:32:29 +10:00
YoshiRulz 7ff70de159 Split IGL.TexParameter2d into two methods 2021-03-19 07:32:29 +10:00
YoshiRulz 6fc43e9c22 Remove unused class BizwareGLExtensions 2021-03-19 07:32:29 +10:00
nattthebear 90d0e21863
Probably fix SNES core crash on load with CDL enabled, or formerly enabled. (#2662) 2021-03-12 23:33:59 +03:00
James Groom 43ba7f94dc
Fix SMSHawk's system ID (#2650) 2021-03-09 19:18:25 -06:00
YoshiRulz d524da3530
s/null/nil/ in all included Lua scripts 2021-03-07 22:19:40 +10:00
zeromus 6f04ff6252 partly fix #2656, I guess. This was a shortcoming in the architecture that allowed the joypad API developers to make a mistake. There will be other fallout from that, but this is the minimal fix. 2021-03-06 19:57:49 -05:00
YoshiRulz 3fb35b1599
Re-add enable/disable behaviour to background input config checkboxes
erroneously removed in 74ba28146 CBB linking the whole commit and revert history
2021-03-05 03:09:29 +10:00
YoshiRulz c28de357a2
Add comments for SAST to GitLab CI config
would use https://security-code-scan.github.io but currently there's no way to
limit it to one .sln so it tries to build cores and breaks
2021-03-04 21:42:37 +10:00
YoshiRulz 513dbcfe5c
Fix compilation of DBMan ext. tool 2021-03-04 20:14:59 +10:00
YoshiRulz 6afb3be98c
Rewrite some expressions to avoid type checker edge cases 2021-03-04 20:11:18 +10:00
TiKevin83 28241e3042 fix autodetection of console mode 2021-03-04 02:04:45 -05:00