Commit Graph

6000 Commits

Author SHA1 Message Date
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 9a969edf99 Another Qt batch change to try to catch error. 2023-01-15 00:31:57 -05:00
harry ba73c0b2f8 Changed error check command for Qt auto build batch file. 2023-01-15 00:05:05 -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
harry 293fc7b672 Upgrade mac OS build image to 'Big Sur' for appveyor builds. Homebrew has dropped pre-build support for Catalina. 2023-01-07 17:52:36 -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