harry
4a54f43246
Updated state.cpp so that .luasav file paths use std::string so that they aren't limited in size.
2023-01-31 00:27:01 -05:00
harry
5ed3463c01
Cleaned up -Wunused-result compiler warnings in lua-engine.cpp
2023-01-31 00:03:16 -05:00
harry
be9ad4ccf2
Fix small memory leak that occurred when loading a ROM with auto-resume enabled and now resume save file currently exists. Created fceuScopedPtr class type to help prevent memory leaks on temporary memory allocations in functions with early outs.
2023-01-30 23:10:03 -05:00
harry
d4c2a7e2d9
Fix for Qt ram watch window save file symbol type parameter sometimes being undefined.
2023-01-30 22:13:28 -05:00
harry
6a2e384469
Fix for Qt Ram Watch window save files to allow for max path.
2023-01-30 21:41:03 -05:00
zeromus
8ea0a3e7e3
fix msvc building
2023-01-30 18:04:34 -05:00
tsone
d5a3cecea0
Moved debug symbol table (.nl file) related code to own file and added symbol name -> address lookup. Example uses in Lua and Debugger breakpoint.
2023-01-30 17:00:10 -06:00
harry
d061ba2bfa
Fixes for -Wformat compiler warnings when using custom printf style functions.
2023-01-30 09:24:49 -05:00
harry
3266a20970
Changed printf attribute check to look for gcc and clang compilers specifically.
2023-01-29 20:46:16 -05:00
harry
f815c849c2
Added FCEU printf format specifier macros to enable compiler checking of format strings for custom printf style functions.
2023-01-29 19:38:30 -05:00
harry
0a19794cec
Fixed a few warnings for -Wunused-result with fread usage.
2023-01-29 12:32:47 -05:00
harry
4944faf618
Cleaned up -Wunused-result warnings for usage of fgets. fgets from stdin should really never fail so just added nullptr return handling to silence warning.
2023-01-29 11:42:32 -05:00
harry
421c7b35e7
Resolved strncpy -Wstringop-truncation warning in Qt NES header editor.
2023-01-29 11:28:58 -05:00
harry
727e403917
A couple more int compare sign warning fixes.
2023-01-28 22:51:33 -05:00
harry
5a98a7fc0d
Re-enable int comparison sign mismatch compiler warnings.
2023-01-28 20:28:51 -05:00
harry
7c3c3caf93
More int comparison sign mismatch compiler warning fixes.
2023-01-28 20:24:17 -05:00
harry
213f4e2579
More fixes for int compare sign mismatch warnings in Qt TAS Editor.
2023-01-28 16:24:04 -05:00
harry
7910da7805
More int comparison sign mismatch compiler warning fixes.
2023-01-28 16:03:05 -05:00
harry
7a40075f3e
Build fix for ssize_t not being available in windows.
2023-01-28 15:05:58 -05:00
harry
c075cdca4f
More int comparison sign mismatch compiler warning fixes.
2023-01-28 14:05:21 -05:00
harry
4434974350
Cleaned up int comparison sign mismatches in Qt TasEditor markers.
2023-01-28 13:49:09 -05:00
harry
d530bab2e7
Resolved gcc -Wsign-compare compiler warnings in state.cpp.
2023-01-28 09:11:42 -05:00
harry
5b9385b2c8
Resolved int comparison compiler warning.
2023-01-28 09:09:58 -05:00
harry
a45aa73a4a
Fix for int conversion compiler warning.
2023-01-28 08:04:05 -05:00
harry
5582df13d7
A few signed/unsigned int comparison mismatch compiler warning fixes.
2023-01-28 07:54:31 -05:00
harry
c2dc8cd25b
A few more int conversion compiler warning fixes.
2023-01-28 07:49:24 -05:00
harry
2d158a8298
Updated a few types to size_t to match std.
2023-01-27 21:01:51 -05:00
harry
a81632b7e1
Changed compiler attribute checking to play nice with older compilers.
2023-01-27 20:38:47 -05:00
harry
d4d4001d32
Added a guard to not double define __WIN_DRIVER__ macro.
2023-01-27 08:14:58 -05:00
harry
85dfcef243
One more compiler warning fix for size_t to long conversion.
2023-01-27 08:06:28 -05:00
harry
a9562cd655
Cleaned up a few compiler warnings caused by last commit.
2023-01-26 08:03:18 -05:00
harry
5e9e80eddc
Change EMUFILE fseek,ftell, and other related functions to use types that follow the C standard (long int for position offsets and size_t for sizes). This allows for larger max file sizes on unix platforms and cleaner code that better maps to the C standard.
2023-01-25 21:46:30 -05:00
harry
b338d4a037
Fix for UBSAN error: left shift of negative value
2023-01-25 20:36:32 -05:00
harry
01821d89b5
Fix for Qt GUI Avi codec save settings to support max file path.
2023-01-23 22:26:56 -05:00
harry
41878d95ef
Added Qt empty scan code to Qt Key map for Mac OS platform. QKeyEvent::nativeScanCode() does not return valid codes on Mac OS, so this backup conversion method will not work on that platform.
2023-01-23 21:40:59 -05:00
harry
53288c0a75
Cleaned up native scan code to Qt key conversion code for windows. Use known key definitions instead of hardcoded values when possible.
2023-01-23 21:20:19 -05:00
harry
f4a9fa6898
Comment out debug print statements for Qt keyscan code.
2023-01-22 21:51:29 -05:00
harry
39aafe7a88
Cleaned up native scan code to Qt key conversion code for linux. Use known key definitions instead of hardcoded values when possible.
2023-01-22 21:15:56 -05:00
Alexey 'Cluster' Avdyukhin
9a74d64b2c
Fix for #510 , for Windows
2023-01-22 21:32:13 +04:00
Alexey 'Cluster' Avdyukhin
99dc99831c
Fix for #510
2023-01-22 20:43:30 +04:00
harry
a4a799feef
Changed Qt GUI TAS editor recent menu to show file name separated by some space and then full path to file. This is so that the file name can still be read when the full path is ridiculusly long.
2023-01-22 10:00:00 -05:00
harry
6d622cc787
Fix for Qt GUI TAS editor to support max file path for fm3 files.
2023-01-22 09:55:20 -05:00
harry
93c0e13572
Fix for Qt GUI wave file recording to support max file path length.
2023-01-22 09:45:22 -05:00
harry
44a5c58e44
Added realloc error checking in convert_fcm function to fix cppcheck warning.
2023-01-21 12:32:52 -05:00
harry
b9385118bd
Further protect against overlapping string copy by checking if pointers are different... just to be sure it is safe.
2023-01-21 12:11:41 -05:00
harry
26f623f5ea
Fix crash in Qt GUI for movie player file path parser.
2023-01-21 11:59:56 -05:00
harry
821e82a069
Fix indentation and add braces to silence empty while loop body compiler warning.
2023-01-21 11:41:55 -05:00
harry
aad52488ac
Bug fix for ASAN error overlapping strcpy source and destination caused curMovieFilename being passed to openRecordingMovie which copies over itself. Changed type from char array to std::string whose assign function will allocate new memory to copy to before deleting the old string buffer.
2023-01-21 09:59:50 -05:00
harry
2b468be264
Changed temp save/load state file path variables to be std::string.
2023-01-20 23:53:29 -05:00
harry
2f7b4abab2
Reset std::strings lastSavestateMade and lastLoadstateMade using clear method.
2023-01-20 23:42:05 -05:00
harry
47435295ff
Fixed if conditionals using lastSavestateMade address that always evaluates to true. Changed lastSavestateMade and lastLoadstateMade to std::string instead of char buffer, ensures proper initialization at startup and allows for unix max path.
2023-01-20 22:37:17 -05:00
harry
f0a4e8bd11
Added a proper contructor to CHEATF_SUBFAST struct to fix clang compiler initializer warning.
2023-01-20 22:02:32 -05:00
harry
8fc3ea8ba2
Added FCEU_UNUSED and FCEU_MAYBE_UNUSED macros to help silence certain unused variable and function warnings. Used FCEU_MAYBE_UNUSED to silence unused static function warnings (until it can be deemed that these functions will never be needed). Also, cleaned up a few other unused variable warnings.
2023-01-20 21:50:26 -05:00
harry
5f44e8f374
For Qt GUI, fixed http references to https://fceux.com to avoid redirection.
2023-01-19 06:45:15 -05:00
zeromus
ebf0c2c737
update 225 from fceumm to get 255 support too.
2023-01-18 11:05:43 -06:00
Alexey 'Cluster' Avdyukhin
b40cb9bcf1
Added separator to the menu (win)
2023-01-17 16:55:00 +04:00
harry
5c1c71be67
For Qt GUI, added feature that allows for lua script loading via file drag and drop operations.
2023-01-17 07:02:03 -05:00
harry
dd77569621
More large filepath parsing updates for Qt GUI.
2023-01-16 21:11:09 -05:00
harry
1adffbdf00
Modified Qt GUI recent ROM menu items to show the ROM base name following by a tab space and then the full path. This allows for the ROM file name to be in view in the event that the full path is excessively long.
2023-01-16 20:57:26 -05:00
harry
38089b62c0
Fix for Qt GUI compiler warnings in iNesHeaderEditor for potential stack buffer overflows on snprintf usage.
2023-01-16 20:34:00 -05:00
harry
f589dfed05
Merge branch 'master' of github.com:TASEmulators/fceux
2023-01-16 20:21:16 -05:00
harry
42039004b5
Fix for Qt GUI symbolic debug filename widget size exploding when the ROM file path is large.
2023-01-16 20:21:10 -05:00
zeromus
3501ab9a40
add mapper 354 from fceu-mm
2023-01-16 10:34:13 -06:00
harry
50a7bb70c8
Changed Qt symbolic debugger file save function to use std::string for filepath.
2023-01-16 09:50:38 -05:00
harry
ba47f169ca
Fixed stack buffer overflow in Qt GUI loading a ROM with a large filepath from file dialog.
2023-01-16 09:44:32 -05:00
harry
3564f61849
Changed Qt GUI NL filename utility functions to operate on std::string arguments instead of char buffers to better allow for large file paths.
2023-01-16 09:35:22 -05:00
harry
097c8dc79d
Increase configSys file parsing line buffer to be able to handle 4096 characters. This allows for unix max file path accomodation.
2023-01-16 09:33:55 -05:00
harry
5760a26863
Add include cart.h to ines.h for CartInfo definition.
2023-01-16 09:09:59 -05:00
harry
4c9a0ad7cf
Increased array size of LoadedRomFName buffer to allow for max unix filepath length. Remove duplicate extern definitions in cpp and instead include ines.h header which contains official extern definition.
2023-01-16 08:42:33 -05:00
harry
600588910f
Another build fix for Qt GUI.
2023-01-15 04:38:53 -05:00
harry
2be7794ab5
Build fix for Qt GUI.
2023-01-15 01:44:34 -05:00
harry
8a59bd3191
Qt GUI build fix for new ffmpeg macro that expands to a C++20 designated initializer that is not supported by earlier compiler standards.
2023-01-15 01:04:39 -05:00
harry
210069b78a
Change temp stack variable that holds full ROM path from fixed char array to std::string. This will allow for larger file paths.
2023-01-14 22:43:45 -05:00
harry
c837c8981c
For QT GUI added logic to check for an FCEUX_CONFIG_DIR environment variable to specify the folder where fceux data resides. This allows users to specify there own data folder that doesn't have a .fceux hidden folder get auto created.
2023-01-14 18:34:03 -05:00
harry
90d03a6374
For Qt GUI, add libav version preprocessor guard to make sure that AV_OPT_TYPE_UINT64 definition exists before using it in source. Fixes issue #578
2023-01-13 01:18:58 -05:00
harry
a3240e9c2e
Qt GUI deprecation usage fixes for ffmpeg 5.1.x libavutil. Code is now compatible with new AVChannelLayout data structure. Used proper version macros so that code is still setup to be backwards compatible with ffmpeg 4.x
2023-01-13 00:45:44 -05:00
harry
ff24dd7a68
For win64 Qt GUI build, disable annoying data type conversion/comparison warnings.
2023-01-12 21:33:05 -05:00
harry
ec4d76707c
Reset Qt GUI audio buffer samples to zero when killing SDL sound.
2023-01-11 21:57:51 -05:00
harry
37bf5c9bf2
Added logic to Qt GUI to protect against invalid audio sample rates or buffer sizes being fed from the command line to the sound system. Sound will use default values if inputs are deemed invalid. Fixes issue #603
2023-01-11 21:38:29 -05:00
harry
cc1e6a8f8b
Minor change to Qt GUI window focus audio mute logic. Ensure that it is always re-computed on a window active change event.
2023-01-11 21:08:55 -05:00
harry
739c01f051
Added Qt GUI sound mute function. This function is accessible either via hot key or checkbox on sound config window. Mute state is a config parameter and will persist between application boots. Fixes issue #591
2023-01-11 20:47:11 -05:00
harry
e06d1cd506
Modified Qt GUI parseFilepath to output std::string types instead of char * buffers to remove file path length limitations.
2023-01-10 21:14:10 -05:00
harry
4dd8943724
Added negative index protections into GetCHRAddress to protect against a large unsigned number being passed and interpretted as a negative number. Caught by gcc UBSAN.
2023-01-10 17:42:45 -05:00
Alexey 'Cluster' Avdyukhin
d1368c8213
Debugger and hex editor fix for Vs. System ROMs
2023-01-07 19:46:10 +04:00
Alexey 'Cluster' Avdyukhin
c9cdca11c4
Comments for mapper 342
2023-01-07 19:40:59 +04:00
Alexey 'Cluster' Avdyukhin
e1c20e4928
Removed some warnings
2023-01-07 19:27:04 +04:00
harry
2c5c3a9fe4
Fix for compiler sprintf usage warning: too many arguments for format.
2023-01-07 02:52:55 -05:00
harry
4c71af3212
Fix for apparent logic error of self-comparison always evaluates to true. Resolves g++ compiler warning.
2023-01-07 02:51:34 -05:00
harry
6ae834a1df
Changed interface to Qt GUI function getDirFromFile to pass reference to std::string so that returned string will not have string length limitations. Buffer size will grow as needed for the path and will not be allocated on the stack.
2023-01-07 01:47:45 -05:00
harry
4e54ea54ac
Refactor Qt GUI function fceuExecutablePath to be more efficient. Since the path to the executable never changes during the lifetime of the process, save it off the first time this function is called for later use. Function interface changed to just pass back a pointer to the saved string. Saves on stack memory and is more efficient since it does not have to continually copy data onto the stack.
2023-01-07 01:19:29 -05:00
harry
b3717c008b
Refactor Qt GUI function getDirFromFile to use QFileInfo to get absolute directory path. Also, added a input buffer size argument to prevent string copy buffer overflows. Fixes issue #598 .
2023-01-07 00:43:35 -05:00
harry
77b894df0e
Changed Qt debugger data save file extension to be .fdb instead of .dbg so that it does not conflict/overwrite ld65 debug symbol files. Fixes issue #600 .
2023-01-06 23:27:06 -05:00
Alexey 'Cluster' Avdyukhin
552be94c1a
Merge pull request #596 from Kagamiin/feature/vrc-irq-cycle-mode
...
Implementing cycle IRQ mode for Konami VRC mappers
2023-01-06 18:18:50 +04:00
Alexey 'Cluster' Avdyukhin
04e1b32675
Linux build fix
2023-01-06 18:04:45 +04:00
Alexey 'Cluster' Avdyukhin
ac18eb3c37
Vs. System - unused DIP switches replaced with second coin and service buttons
2023-01-06 17:58:02 +04:00
Alexey 'Cluster' Avdyukhin
598a291daf
Vs. System error messages and DIP switch visualization
2023-01-06 16:50:33 +04:00
Alexey 'Cluster' Avdyukhin
2c35a6dfae
Allow to open HEX editor when emulation is not paused + minor fix
2023-01-06 16:37:47 +04:00
Alexey 'Cluster' Avdyukhin
e6e17ded38
Linux build fix
2023-01-06 16:34:46 +04:00
Alexey 'Cluster' Avdyukhin
4c215246fe
Minor GUI fix
2023-01-06 16:31:31 +04:00
Alexey 'Cluster' Avdyukhin
d2aed113b8
More NES 2.0 header fields: Vs. System settings, expansion type
2023-01-06 16:03:34 +04:00
Alexey 'Cluster' Avdyukhin
88ad9ceca9
Mapper 342 update
2022-12-23 20:35:35 +04:00
Kagamiin~
77b252bf50
Implementing cycle IRQ mode for Konami VRC mappers
2022-12-21 15:16:29 -03:00
Alexey 'Cluster' Avdyukhin
a04df761a9
Mapper 470
2022-12-21 12:30:04 +04:00
Alexey 'Cluster' Avdyukhin
f3675320d8
Fixed IPS loader to prevent double archive browser
2022-12-19 14:55:53 +04:00
Alexey 'Cluster' Avdyukhin
f53c2470fc
Submappers 268.8 and 268.9
2022-12-16 20:10:21 +04:00
Alexey 'Cluster' Avdyukhin
9ae27c7ded
Mapper 268, submappers 6 and 7
2022-12-12 23:38:56 +04:00
Alexey 'Cluster' Avdyukhin
47c2ce5a38
Mapper 268, support for ROMs with 1 MiB CHR-ROM
2022-12-12 23:13:42 +04:00
Alexey 'Cluster' Avdyukhin
773eaa868c
Mapper 268, submappers 8,9 merged into 2,3 and fixed ( https://www.nesdev.org/wiki/Talk:NES_2.0_Mapper_268 ) + refactoring
2022-12-12 17:48:56 +04:00
Alexey 'Cluster' Avdyukhin
0fb86b9740
Fixed broken UNROM-512 emulation + some refactoring
2022-12-07 20:04:27 +04:00
Alexey 'Cluster' Avdyukhin
853b2718b7
Removed debug messages
2022-12-06 22:51:41 +04:00
Alexey 'Cluster' Avdyukhin
b6bf83db7f
Mapper 268, submappers 8,9
2022-12-06 17:59:26 +04:00
Alexey 'Cluster' Avdyukhin
a70bc4c72c
Mapper 268, submappers 4,5
2022-12-05 23:25:49 +04:00
Alexey 'Cluster' Avdyukhin
92c0417783
Mapper 268 refactoring
2022-12-05 23:15:09 +04:00
Alexey 'Cluster' Avdyukhin
d6d5b44a35
Mapper 268, submappers 2,3 fix
2022-12-05 21:56:50 +04:00
Alexey 'Cluster' Avdyukhin
7a64e06b88
Mapper 268, submappers 1,2,3
2022-12-05 21:55:38 +04:00
Alexey 'Cluster' Avdyukhin
856a19352f
Forgot to update CMakeLists.txt
2022-12-05 17:50:11 +04:00
Alexey 'Cluster' Avdyukhin
90aecc0543
COOLGIRL mapper (mapper 342)
2022-12-05 14:56:31 +04:00
Alexey 'Cluster' Avdyukhin
328e351255
Typo fix
2022-12-05 14:09:21 +04:00
Alexey 'Cluster' Avdyukhin
d075c2b46a
COOLBOY fixes and self-writable feature
2022-12-05 13:54:50 +04:00
harry
900305b587
For Qt GUI, added option to use palette background color as video background color. This option can be accessed from via main menu -> option submenu.
2022-10-09 21:09:52 -04:00
harry
06467ce73a
Fix for Qt GUI OpenGL blending parameters.
2022-10-09 20:11:54 -04:00
harry
1ad9a3d857
For Qt GUI, added logic to prevent controller buttons that are bound to the keyboard from being active when family keyboard is enabled. Controller buttons that are mapped to physical gamepad or joystick are unaffected. For issue #572 .
2022-10-08 09:56:49 -04:00
mjbudd77
99eb406b1a
Added appveyor github release functionality. Master auto builds are now uploaded to a rolling interim-build pre-release. Release tag builds will upload official release builds from appveyor automatically.
2022-10-01 16:29:02 -04:00
zeromus
06b53e912e
fix initialization of xdbuf and xdbackbuf
2022-09-10 15:31:48 -04:00
harry
eaa5d6f88f
For Qt GUI, added code to update debugger window ASM view when RAM or ROM edits are made from the hex editor. Fixes #508 .
2022-09-01 20:32:51 -04:00
zeromus
6b0d1a52ca
winport - apply ROM file pasting as a single undoable action using the multi-byte capability already in ApplyPatch. Fixes #394
2022-08-28 17:15:05 -04:00
zeromus
069727c191
fix a bug in applying some IPS files
2022-08-28 04:41:45 -04:00
zeromus
60f7b875f8
winport - support loading ips files on top of already loaded roms. I guess this could be factored to an FCEUI_TestFileIsPatch and an FCEUI_ReloadWithPatch?? well, that's for whoever does this on other platforms to do.
2022-08-28 04:33:38 -04:00
zeromus
20d03d4434
minimum framework to support loading ips files on top of already loaded roms
2022-08-28 04:32:23 -04:00
zeromus
9d831d8b8b
ok, I realized we need to realloc buffers allocated by FCEU_malloc (why didn't I guess that..) which makes the fact that they're aligned be horrible. so I added FCEU_amalloc and FCEU_afree instead to do aligned allocs and frees.
2022-08-28 04:31:34 -04:00
zeromus
1798fca76a
proper deemph handling for win32 aviout. used 57ec344b1f
from 7 years ago as a reference (when the png writing was fixed). fixes #429
2022-08-23 22:58:18 -04:00
zeromus
d5a073741a
ModernDeemphColorMap const args
2022-08-23 22:56:47 -04:00
zeromus
ff633d5acd
add new function FCEU_abort() for calling abort() with a message; use it when memory allocation fails instead of exit()
2022-08-23 22:01:29 -04:00
zeromus
96e570ae44
don't doubly memzero new allocations
2022-08-23 21:48:32 -04:00
zeromus
179a5f0ffa
fix the size parameter of newly-introduced aligned_alloc call to be properly aligned (as the api requires)
2022-08-23 21:28:15 -04:00
harry
d0add7a609
For Qt GUI added separate hot keys for soft and hard reset functions. Changed soft reset to be default Ctrl+R and hard reset to Ctrl+Shift+R.
2022-08-23 18:36:39 -04:00
harry
b97b24a5e9
Fix for unix build, aligned_free does not exist in unix should use plain free instead.
2022-08-23 18:18:25 -04:00
zeromus
892e7cb5f5
change how memory is allocated to clean up a lot of messed up junk (mainly strange alignment adjustments which didnt completely make sense and frees which didnt match the allocation function that was used).
...
In case there are problems on other platforms (a few seems probable), here's the idea
1. Get rid of all manual alignment adjustments
2. use FCEU_malloc or malloc, as you see fit
3. use FCEU_free (or FCEU_gfree) if you use FCEU_malloc or FCEU_gmalloc. There's no real reason to need FCEU_gfree; this rule might be eliminated in the future (at which time FCEU_gfree will be removed)
4. If you need more alignment, increase it in FCEU_malloc. It's unlikely more alignment will ever be needed.
On windows, since the FCEU_*malloc functions now use aligned_alloc, we will catch instances where free() is used to free them (which happens frequently). allocates and frees should be matched. fix the free call if you ever observe this happening.
also
5. In general, remove crufty error handling for allocation failures. This just gunks up the code. If allocation fails, the application terminates.
2022-08-22 22:53:09 -04:00
zeromus
41feba2074
newppu - process grayscale (and maybe deemph, not sure) on a per-pixel basis to fix the FF1 polygon effect ( fixes #529 )
2022-08-22 22:53:09 -04:00
harry
77b18ba989
Added keyboard state feedback to lua input.get() function for Qt GUI. Returned key codes are slightly different but at least it does something. Issue #536 .
2022-08-21 22:43:35 -04:00
zeromus
7806b24388
winport - fix prefix checking on memwatch addresses ( fixes #496 )
2022-08-21 15:40:03 -04:00
zeromus
5230d2eacd
winport - change memwatch addresses to support lower case (partial revert of f0396ef980
)
2022-08-21 15:40:03 -04:00
zeromus
f6f13d6843
winport - change input filter functions to take an index so they can search for a prefix (at index 0 perhaps) and use it on the memwatch. it's better to do these things based on strings and not chars but that's just how we have it setup for now
2022-08-21 15:40:03 -04:00
zeromus
26c3919358
winport: tidy edit control sanitization
2022-08-21 15:40:03 -04:00
harry
319b365787
Cheats config improvements for Qt GUI. Added global cheat enable/disable hotkey functionality. Added code to raise and set focus on cheat dialog when attempting to open it when it is already opened. Add code to update/refresh cheat dialog when loading a new ROM.
2022-08-21 14:57:03 -04:00
zeromus
6b8387b849
fix compile errors on linux, probably
2022-08-20 21:49:30 -04:00
zeromus
f7e7773b5a
add a hotkey to disable active cheats (windows port only, but adding elsewhere would be easy now). fixes #504
2022-08-20 20:19:10 -04:00
harry
f3b33a628f
Minor fixes for warnings found by gcc undefined behavior sanitizer.
2022-08-19 22:33:09 -04:00
harry
f4ea336349
Qt GUI fixes for recent changes to fceu core cheats API.
2022-08-19 19:57:27 -04:00
zeromus
c37f86dbd1
change cheat system name buffer management to use std::string to avoid issues caused by returning the name buffer to the user who could then use it in ways the cheat system didn't expect ultimately leading to invalid strcpy(X,X) calls and possible use of buffers after freeing. this will break all frontends probably (except for windows which I fixed at this time). fixes #512
2022-08-19 12:41:28 -04:00
harry
3eddaf8052
Fixed Qt GUI --help command line option when no window system is present (X11/wayland). There is now a pre-gui initialization sweep of command line options. Also added a --version command line option and a warning that the --no-gui option is not supported (should someone try to use it). Fixes issue #528 .
2022-08-17 21:59:48 -04:00
zeromus
32bd9a7f49
supper mapper218 ( fixes #447 )
2022-08-11 23:16:39 -04:00
harry
d834ac4e53
Qt trace logger optimization. Added code to flush data to disk when emulation is paused. This allows the file to updated with latest data when hitting breakpoints during debugging.
2022-08-09 21:28:58 -04:00
zeromus
11f903d363
change built-in palettes to be bit-shifted properly so that whites are pure FF. fixes #540
2022-08-07 20:54:11 -04:00
zeromus
bb1fc08d8e
rename all iNES Header Editor to NES Header Editor (re #519 )
2022-08-04 21:23:34 -04:00
harry
0e9ad2f400
Bug fix for mismatched allocation/deallocation calls. Memory allocated with malloc should use free (not delete) to deallocate memory.
2022-08-04 21:15:59 -04:00
harry
0c36a3575e
Bug fix for missing va_end on stdarg list. According to online documentation, vfprintf does not call va_end. This was caught by cppcheck.
2022-08-04 21:15:59 -04:00
harry
44c8e15503
Fix for small memory leak in GetBackupFileName(). strdup allocates memory and returns a char pointer to it. However std::string allocates its own memory already. Since FCEU_MakeFName returns a std::string already, there is no reason to use strdup in between the assignment of one std::string to another.
2022-08-04 21:15:59 -04:00
harry
02bf3dbb4d
Added cmake command line option to build with clang/gcc address sanitizer enabled.
2022-08-04 21:15:59 -04:00
harry
1b32752800
Removed redundant chunk size field from auds header in Avi RIFF viewer.
2022-08-04 21:15:59 -04:00
harry
9d18523731
Fix for heap read overflow in Qt Avi Riff viewer when reading avi files created by ffmpeg. Caught by running with clang/gcc address sanitizer.
2022-08-04 21:15:59 -04:00
harry
3fed0331cc
Fix for global variable SFCPU read overflow error when running with clang/gcc address sanitizer. The code that writes the save state to disk expects the parameter description to at least be 4 bytes.
2022-08-04 21:15:59 -04:00
negative
14c215208e
Fix Apple Town Story (FDS) crash
...
Fix https://github.com/TASEmulators/fceux/issues/487
fceumm and mednafen-nes has similar placement for SIRQStat
2022-06-05 16:18:07 -04:00
negative
2c85cc53c5
FDS: Update IRQ based on latest hardware notes
...
- IRQ updates based on latest notes. Verified with test rom.
https://www.nesdev.org/wiki/Family_Computer_Disk_System#IRQ_control_($4022)
Discussion and test rom file:
https://forums.nesdev.org/viewtopic.php?f=3&t=16507
test rom: https://forums.nesdev.org/viewtopic.php?p=205052#p205052
- Puff Puff Golf is still problematic and unplayable. added notes for
it.
- Fix typo for a previous commit.
2022-06-05 16:18:07 -04:00
Dwedit
dd35f4b12a
Add size limit of 32768 to strings to guard against corrupt files
...
Add count limit for bookmarks and bookmark shortcuts
2022-06-03 16:18:06 -04:00
negative
2e70e27ba0
Mapper 235: Update support for 260-in-1 and add UNROM mode
...
- Using Soft-reset with switch between multicarts or the extra PRG rom
which loads Contra game.
Fix: https://github.com/TASEmulators/fceux/issues/489
2022-06-03 16:16:57 -04:00
harry
971d7212ee
Minor optimization of openGL alpha blending for Qt GUI.
2022-05-31 22:56:52 -04:00
harry
0287395bee
For Qt GUI, added logic to raise and shift focus to hex editor window when opening from debugger. Fixes issue #509 .
2022-05-31 22:56:52 -04:00
harry
fc9f89dafc
For Qt GUI build, make timestamp UTC based for reproducible builds. Patch from debian.
2022-05-31 22:56:52 -04:00
harry
a87902b427
For Qt GUI, enable openGL GL_BLEND and set blend function to GL_ONE_MINUS_SRC_ALPHA. Fixes openGL driver issue #513 for running on wayland.
2022-05-31 22:56:52 -04:00
zeromus
b912004f69
oops, we've got to stub FCEUD_FlushTrace on these other platforms
2022-04-26 14:08:37 -04:00
zeromus
def5768b9e
remove fflush call on every single instruction trace, which can make modern SSD go totally dysfunctional. attempt to recover from this by flushing once a frame and whenever emulation pauses, so that you have a flushed trace file while debugging or whenever the main menu is interactive.
2022-04-26 13:22:22 -04:00
mjbudd77
9ce4b081e3
Fix for Qt iNES header editor mapper index. Account for mapper array not being continuously sequential. For issue #480 .
2022-03-14 07:28:40 -04:00
mjbudd77
9b6ab85424
Minor compiler warning cleanup
2022-03-11 06:58:16 -05:00
mjbudd77
a4dbabfcc5
More debug print clean up for Qt.
2022-03-11 06:38:13 -05:00
mjbudd77
49590c40bb
Commented out more debug print statements in Qt GUI.
2022-03-11 06:29:32 -05:00
mjbudd77
97465f0266
Commented out debug print statements for Qt window closure.
2022-03-10 20:59:47 -05:00
mjbudd77
2ded6783f3
Bump version number to next patch level to differentiate from previous release.
2022-03-10 20:00:44 -05:00
mjbudd77
93a084caad
Updated about text.
2022-03-10 19:55:33 -05:00
mjbudd77
f57ea9cf49
Commented out a couple unused variables for Qt GUI.
2022-03-09 20:51:14 -05:00
mjbudd77
795173b662
Added logic to force raise of Qt family keyboard dialog to top of window stack after key map dialog closes. Fixes irregular window focus issue on mac OS.
2022-03-09 19:42:30 -05:00
mjbudd77
3bc0af149b
Changed family keyboard key map dialog logic to prevent premature deletion of object during close.
2022-03-08 20:08:03 -05:00
mjbudd77
c175086cbf
Added logic to limit maximum font point size for Qt Family Keyboard Text. Prevents crash if user enters an excessive value.
2022-03-06 22:06:29 -05:00
mjbudd77
2b26c041d5
Added logic to allow resizing of Qt Family Keyboard Dialog to minimum size via GUI
2022-03-06 22:02:19 -05:00
mjbudd77
3acbdc1c5a
Merge pull request #473 from negativeExponent/m225_extra_ram
...
Mapper 225: Implement extra RAM
2022-03-06 21:49:01 -05:00
mjbudd77
3e7dc3474a
Added enable/disable button for Qt family keyboard dialog. Added button mapping save, recall and reset to default functions for Qt FKB.
2022-03-06 21:47:36 -05:00
negative
7f4eb7e14f
Mapper 225: Implement extra RAM
...
Some multicarts are buggy without extra ram implemented,
Fix https://github.com/TASEmulators/fceux/issues/467
2022-03-07 09:11:52 +08:00
mjbudd77
bef4e80e08
Merge branch 'master' of github.com:TASEmulators/fceux
2022-03-06 12:47:59 -05:00
mjbudd77
3510b5801c
Added logic to save/load key bindings for family keyboard for Qt GUI.
2022-03-06 12:47:46 -05:00
negativeExponent
3bd6da8e83
FDS: Improve IRQ emulation ( #469 )
...
Fix https://github.com/TASEmulators/fceux/issues/468
Co-authored-by: negative <negativeExponent@users.noreply.github.com>
2022-03-06 19:39:17 +02:00
mjbudd77
aaa66388de
Minor tweaks to key names and labels for Qt virtual family keyboard.
2022-03-06 07:41:25 -05:00
mjbudd77
a9a8898677
Added logic to display family keyboard key binding tree view for Qt GUI.
2022-03-06 07:17:24 -05:00
mjbudd77
0f25a40b93
Added logic to show shifted key characters on Qt virtual keyboard when shift is held down.
2022-03-06 05:46:20 -05:00
mjbudd77
540b62f487
Added logic to save/recall Qt family keyboard window location and size.
2022-03-06 04:59:13 -05:00
mjbudd77
6c42f9588c
Qt virtual family keyboard is now functional.
2022-03-05 22:08:40 -05:00
mjbudd77
a6c6dd048c
Successful test of virtual family keyboard.
2022-03-05 19:15:20 -05:00
mjbudd77
db10fcb6bc
Virtual family keyboard in work.
2022-03-05 18:28:56 -05:00
mjbudd77
7d3f0690e6
Virtual family keyboard in work for Qt GUI.
2022-03-05 15:18:30 -05:00
mjbudd77
96f4c6a712
Added additional windows modifier key checks for windows Qt GUI.
2022-03-02 22:22:38 -05:00
mjbudd77
ddaa20f171
Bug fix for windows Qt GUI left/right modifier key determination.
2022-03-02 21:42:51 -05:00