Commit Graph

734 Commits

Author SHA1 Message Date
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
alyosha-tas 12ad2d5b36 GBHawk: Link Cable work 2019-01-03 17:31:35 -06: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
upthorn bc4330a9d1 External tools no longer crash on loading new ROM 2019-01-03 05:53:26 -08: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 aba1da071d Completely refactored PluginAPI to extend ApiHawk. Ecco2AssistantPlugin is now an external tool. 2018-12-22 10:40:30 -08:00
upthorn 05f9939ddf Merge branch 'master' into PluginDev 2018-12-06 12:29:58 -08:00
Asnivor bcd34246ac EmuHawk: fix typos in MainForm.RomFilter and FileLoader.KnownRomExtensions - fixes #1392 2018-12-06 09:48:28 +00:00
alyosha-tas 59f43b144e Core Code Cleanup 2018-12-05 09:01:25 -06:00
feos 07dec3f7bf allow to rewind to frame 0
see #1371

- If we're at frame == 0, there's nowhere to rewind to, so the button is properly ignored.
- If we're at frame > 1, the logic is sending us to the previous frame, but it seems to be forcing emulation of that frame rather than just loading the state and stopping, and that is by design.
- If we're at frame 2, we want to arrive to frame 1, the logic will load state 0 and fastforward from that to 1. That way we don't have to store framebuffer in rewind states.
- If we're exactly at frame 1, we know we want to arrive to frame 0, but the logic implies emulating to frame 0, which is impossible. So instead it loads state 0 and emulates one frame as it's used to.
2018-11-28 22:10:16 +03: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 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
zeromus e368f42254 probably should not try to set last rom directory when opening al ibretro core 2018-11-18 10:58:28 -05:00
zeromus 63e1bc5511 fix loading archive from recent roms (broke in 7a72bf72e6) 2018-11-18 10:55:19 -05:00
alyosha-tas b65d87f40c
Add files via upload 2018-11-18 09:03:03 -06:00
adelikat 8582023346
Merge pull request #1291 from TASVideos/force_DE_onMovieRecord
EmuHawk: Movies and DeterministicEmulation - ensure this is enforced …
2018-11-18 08:06:34 -06:00
zeromus 7a72bf72e6 experimental: add %rom% to path manager, so files related to a rom can be located relative to the rom
also refactored how %exe% worked because it blew my mind
2018-11-14 19:04:02 -05:00
zeromus 4e76bd97d1 fix regression from 2948d7597a loading archive roms 2018-11-04 05:25:24 -05:00
zeromus 2948d7597a fix breakage from june of opening libretro cores (fixes #1357)
@asnivor please check loading bundler XMLs
2018-11-02 15:48:30 -04:00
Asnivor 2565f49c89
Merge branch 'AmstradCPC' into master 2018-09-19 14:56:41 +01:00
Asnivor 16d68ea813 ZXHawk: debug only zx-state snapshot export 2018-09-10 10:05:49 +01:00
upthorn 6eed08f965 An example plugin. Hard-coded for now. 2018-09-03 19:31:43 -07:00
feos 0b36d49bf2
Revert "Resize unattended video if zoom factor >1" (#1295)
Using unchangeable hardcoded magic numbers that aren't used anywhere is bad.
2018-08-23 20:51:23 +03:00
Asnivor 25347dd344 EmuHawk: Handle SaveRAM IO errors - #1241 2018-08-21 16:09:56 +01:00
Asnivor c1c34d3794 EmuHawk: Movies and DeterministicEmulation - ensure this is enforced whenever a movie is queued - #1290 2018-08-21 14:36:07 +01:00
Asnivor 1268b09849 Emulation.Common: Additional method added to inspect *.dsk images in order to work out whether they are ZX, CPC or AppleII 2018-07-19 13:46:37 +01:00
Asnivor ac0aae4afb CPCHawk: UI menus 2018-07-18 13:53:08 +01:00
Asnivor 531833c7b0 CPCHawk: Initial project outline (may or may not come to something eventually) 2018-07-03 14:53:09 +01:00
Asnivor 8979b0abe1 EmuHawk: fix exception on multidiskbundler xml check when file is within an archive 2018-06-22 17:42:17 +01:00
Asnivor 1ade5d0b49 ZXHawk: Prep for release 2018-06-22 16:55:57 +01:00
adelikat 25c6639aa2
Merge pull request #1152 from Asnivor/master
Partial fix for issue #1075
2018-06-22 10:47:48 -05:00
Asnivor 625f063861 ZXHawk: Added wav tape image support 2018-06-22 14:40:40 +01:00
Asnivor b81a7539cf ZXHawk: Added Compressed Square Wave (CSW) tape image support 2018-06-22 13:23:33 +01:00
Asnivor 50123bf8e2 ZXHawk: Experimental PZX tape image support 2018-06-20 15:03:11 +01:00
alyosha-tas a992e988b2
Merge pull request #1218 from TASVideos/ZXHawk-new-ULA
Zx hawk new ula
2018-06-13 08:40:26 -04:00
Asnivor 651ec7f122 ZXHawk: CoreNameStatusBarButton tooltip shows emulated spectrum model 2018-06-12 11:08:03 +01:00
Asnivor 13a9c5bdc4 ZXHawk: Added POKE memory menu option 2018-06-12 10:16:43 +01:00
Vilsol db8b051b00 Resize unattended video if zoom factor >1 2018-06-02 23:18:45 +03:00
Asnivor 7aaa5e8a52 ZXHawk: +3 disk ready for testing 2018-04-26 12:57:21 +01:00
zeromus a7197b348e fix bug where autodump (and maybe lua-instructed client exits) would vanish the window but linger the process 2018-04-08 01:48:47 -05:00
Asnvior 2be76a405a Fix: rom status icon 2018-03-22 14:41:21 +00:00
Asnivor e2eac983a1
Merge pull request #1149 from TASVideos/master
Bringing ZXSpectrum branch up to date with master
2018-03-19 15:52:55 +00:00
Asnivor 0ac17f2d1e UI - added Core Emulation Settings menu 2018-03-16 14:33:18 +00:00
Asnivor 7c9c39417b UI - added joystick settings menu 2018-03-16 11:58:02 +00:00
zeromus b179a30d99 Merge remote-tracking branch 'remotes/origin/pr/1080'
# Conflicts:
#	BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj

merges PR #1080
closes PR #1080
(let's see if either of these can do it)
2018-03-13 16:33:53 -04:00
feos 7fedbac9c3 lua: fix #1119 2018-03-09 13:35:42 +03:00
Asnivor 7c82d6d526
Merge pull request #1106 from TASVideos/master
Bring ZXSpectrum branch up to date with master
2018-02-06 08:45:48 +00:00
vadosnaprimer eea6740722 lua: client.isturbo() and client.isseeking() 2018-01-06 13:30:47 +03:00
vadosnaprimer 68a0fcf408 move avi writer call so it captures lua messages
I think it doesn't outrun anything critical this way
2018-01-03 19:35:37 +03:00
Ashafix 4d063f6061 new library for communicating with other programs via Lua 2017-12-24 00:24:22 +01:00
Asnivor f92269657d Added core UI menu and fixed up settings / syncsettings 2017-12-04 15:40:27 +00:00
alyosha-tas dab3b85599
Merge pull request #1071 from Asnivor/speccy
ZXHawk Initial
2017-11-28 18:08:48 -05:00
Asnivor d012472999 Initial commit. 48K spectrum only. 2017-11-23 17:26:15 +00:00
Tastyfish 5a0cf817ee Make Reboot Core not crash after Close ROM 2017-11-20 21:50:44 -05:00
Asnivor 166edd7cba Added mds to file filters 2017-10-25 17:10:26 +01:00
Asnivor 6d87be1396 Experiemental MDS/MDF Support 2017-10-25 17:06:16 +01:00
zeromus 74d1eba368 fix Broken Jump List #1015 2017-10-03 15:26:36 -05:00
zeromus 1250b72bce tidy autoflushing stuff 2017-08-23 10:32:17 -04:00
shanehoman 85575eae82 Standardize as AutoSaveRAM
- Rename files
- Add path to PathManager
- Alter config UI
Set default settings
- ASR disabled
- 5m preselected
Display OSD messages when ASR enabled
- SaveRAM is older than ASR
- SaveRAM doesn't exist but ASR does
2017-08-19 23:14:08 -07:00
shanehoman bdb197ac23 Rewrite FlushSaveRAM to write the newest sram to disk first, then move older data.
Moved autosave timer sets to save/load sram methods
Manual saves won't reset the autosave timer
Remove excess ticks when lowering the autosave timer
2017-08-18 22:42:28 -07:00
shanehoman 89059673f0 Configure autosave in Config -> Customize... -> Advanced under the SaveRAM backup option
reduced options to 5s for HUDs or other RAM watchers or 5m, typical backup save timing in visual studio and office.
Added option for custom autosave interval
Split Autosave enable/disable and time settings
Fixed hotkey display for Flush SaveRAM (menu was reading the wrong key in HotkeyBindings)
2017-08-18 21:02:51 -07:00
shanehoman fce06a7b5b don't overwrite the orderly shutdown SaveRAM files, keep a separate autosave channel 2017-08-18 17:15:48 -07:00
shanehoman acd194128e automatically save saveram every 1/5/15/30/60/300s
fun fact: a 1 frame flush timer is workable on a RAM disk
2017-08-18 15:36:26 -07:00
adelikat cd5f6e66e1 Atari 7800 - sort out system id stuff 2017-08-04 17:17:14 -05:00
zeromus 94e2fe2a10 fix displaymanager crashes when rebooting snes9x (and maybe others) while paused (due to unset virtualsize). 2017-07-27 22:42:13 -05:00
nattthebear 569730a61b picodrive: region select. closes #929 2017-07-22 10:55:17 -04:00
nattthebear cf8013af4a sameboy: Add more features for the merciless slave driver 2017-07-19 18:48:11 -04:00
Ashafix d42962a1b4 removed unnecessary code duplication 2017-07-17 08:23:58 +02:00
Ashafix a71255b4b2 updated arg parser 2017-07-17 01:28:22 +02:00
zeromus 60b9825f64 fix race condition in test of active window from input thread (which was a bad idea in the first place) which can throw null references in unlucky cases (fixes #917) 2017-07-15 22:09:50 -05:00
Ashafix e2e278eea9 added command line arguments parser 2017-07-14 13:04:43 +02:00
adelikat 1990c4f8c2 disable Genesis menu when picodrive is the GEN core, since it doesn't currently support anything in the menu 2017-07-13 11:56:26 -05:00
adelikat d65368d397 add .the 32x file extension to the Open Rom dialog 2017-07-13 11:53:19 -05:00
nattthebear ff58de56a1 TSTHawk: Settings? 2017-07-11 18:12:03 -04:00
Maximilian Peters bbcea298d7 Added support for Lua scripts via the command line 2017-07-06 01:06:31 +02:00
adelikat 4982af7521 Merge branch 'master' into waterbox2
# Conflicts:
#	BizHawk.Emulation.Cores/Consoles/Nintendo/SNES/LibsnesCore.ISaveRam.cs
2017-06-19 10:04:46 -05:00
nattthebear aac25082d0 Video dumping: Store the audiosync option in configuration, and default it to true. If the emulator's av output is perfect, the two will produce identical results. In every instance I'm aware of where the emulator's av output is not perfect, the audio sync mode will produce better results. 2017-06-16 14:11:43 -04:00
alyosha-tas 5a44c10a79 Update MainForm.cs 2017-06-16 10:34:35 -04:00
nattthebear 803190e6b4 protip: When refactoring, it's not OK to just make it not work. Fixes #873 2017-06-15 20:40:38 -04:00
adelikat 796f9ddaa7 snes9x - support snes obj toggle hotkeys 2017-06-14 17:28:02 -05:00
adelikat 6660223459 snes - support bg toggling hotkeys on snes9x. snes9x doesn't support individual obj setting so those hotkeys just do nothing for now.. That probably needs to be addressed better. 2017-06-13 20:56:47 -05:00
adelikat 97d7dd7f42 merging master into waterbox2 this one was messy may be regressions 2017-06-13 08:16:25 -05:00
alyosha-tas ad1e222cbd Create MainForm.cs 2017-06-11 18:29:12 -04:00
alyosha-tas 16163d959e Add files via upload 2017-06-11 18:17:34 -04:00
adelikat 4ae0b2cd22 Merge branch 'master' into waterbox2
Conflicts:
	BizHawk.Client.EmuHawk/MainForm.Events.cs
	BizHawk.Client.EmuHawk/MainForm.cs
2017-06-04 18:18:11 -05:00
adelikat cd7e6f4f67 add c64 file extensions to open file dialog for release builds 2017-06-03 14:20:12 -05:00
nattthebear f96a7abb94 ngp: connect saveram. due to the way this is implemented in neopop, connecting it greatly increased the size of savestates, which may or may not be worth fixing. 2017-06-03 07:58:14 -04:00
adelikat 4a088ba3ff NGP - file extensions for Open Rom dialog 2017-05-31 20:47:27 -05:00
nattthebear 051382450e ngp: settings that theoretically work 2017-05-31 17:29:45 -04:00
adelikat 55edb3e37b add .vb to open file dialog 2017-05-29 13:42:30 -05:00
nattthebear f99a080e60 Merge remote-tracking branch 'origin/master' into waterbox2
# Conflicts:
#	BizHawk.Client.EmuHawk/MainForm.Designer.cs
#	BizHawk.Client.EmuHawk/MainForm.cs
2017-05-29 14:35:30 -04:00
nattthebear 391160ebf9 vboyEE: settings and syncsettings 2017-05-29 13:50:40 -04:00
nattthebear 61aa4f5df3 Connect Snes9x controllers, syncsettings, and regular settings 2017-05-28 10:18:20 -04:00
adelikat fd1338a46f Mainform - restore Autohawk click event, remove some unused methods 2017-05-22 14:23:13 -05:00
adelikat a6414ff05c Mainform cleanup round 2 2017-05-22 14:23:13 -05:00
adelikat 0796c14046 Misc mainform cleanups 2017-05-22 14:23:13 -05:00
adelikat 8062faf40b organize mainform menu item event methods 2017-05-22 09:04:47 -05:00
adelikat c8d6ef0628 since Global.AutofireNullControlls was only being used by Mainform, move it there instead of having in Globals 2017-05-22 07:30:34 -05:00