Commit Graph

83 Commits

Author SHA1 Message Date
harry 7b79d9db4c Partial cleanup of sprintf usage in favor of snprintf. This is to resolve deprecation warnings on Mac OSX 2024-02-23 20:53:01 -05:00
harry 0a19794cec Fixed a few warnings for -Wunused-result with fread usage. 2023-01-29 12:32:47 -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 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
zeromus 069727c191 fix a bug in applying some IPS files 2022-08-28 04:41:45 -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
Alexey 'Cluster' Avdyukhin 701541432c More achive improvements/fixes 2021-06-18 02:50:15 +03:00
mjbudd77 b71630379a Added game pad button mapping profile logic. 2020-07-24 16:56:48 -04:00
mjbudd77 d38f1b0c1b Build fix for minizip include in MAC OS 2020-06-30 20:00:29 -04:00
Matthew Budd 7919071a25 Cleaned up gcc compiler warning : ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 2020-06-19 23:58:12 -04:00
Matthew Budd 70a804e90f Fixed a few code errors identified by cppcheck static code analyzer.
Fixed incorrect error handling of realloc function to prevent memory leak.
Fixed a few uninitialized local stack variables.
Changed (1 << 31) to (1u << 31) to fix error stating that a signed 32 bit integer shifted by 31 bits can result in undefined behavior.
2020-05-08 23:30:31 -04:00
owomomo d87970f4ad ... 2019-06-10 17:25:37 +08:00
owomomo 959c94fcdf Attempt to fix Issue #52 2019-05-23 18:59:30 +08:00
owomomo a3280d664d 1. New cheat list box 0.0.0.1 alpha, changed the toggle cheat from double click to selecting checkboxes in the item. It can show the code and name in the same time.
2. Fixed an ancient bug of cheat dialog that importing new cheats makes old existing cheats uneffective.
3. Restructured some cheat searching type to macros since the meaning of the mysterious number is unclear. Maybe the switch case was more efficient than if else... or not?
4. Use a temporary variable rather than a global one to indicate whether the null file pointer is cased by user clicking the cancel or close button of the open archive dialog or a loading error.
5. When recording a movie with cheats, show warning to the user and asking for disabling them.
6. Removed some seems like unused variables, hope this didn't break compiling crossing platforms.
2019-05-02 03:13:05 +08:00
aquanull 2d81852e81 Fixes for some file handles and memory leaks. 2018-04-04 18:28:42 +08:00
zeromus 0307e3b827 migration tidying (build master from trunk) 2018-04-08 17:35:15 -05:00
punkrockguy318 2be5084a7b create new subversion repo structure (trunk, tags, branches)
[[Split portion of a mixed commit.]]
2013-03-15 19:00:14 +00:00
punkrockguy318 427c868add sdl: added option to use system minizip 2013-03-10 20:10:39 +00:00
ansstuff 07a21643d6 fixed GetPath when opening Cheats 2012-12-29 16:32:21 +00:00
ansstuff 00b4304241 win32: added Config->Enable->Auto-resume old play session 2012-12-15 17:42:53 +00:00
CaH4e3 43ee931dec cleanup and version bum... hmmm (not no mention something else) 2012-10-21 16:40:04 +00:00
ansstuff 96de43061d * fixed savestates filenaming bug when working with a movie
* updated docs

[[Split portion of a mixed commit.]]
2012-08-30 15:51:19 +00:00
punkrockguy318 449ac4352f updated FSF license in COPYING license file and source and header files 2012-08-04 22:33:16 +00:00
ansstuff e267095bd1 * Changed some checkboxes to radiobuttons in menu
* Taseditor: "Marker Rename" shows Note text in History; added "Marker Move" modtype
* Taseditor: "Frame#" lights when Alt key is being held, not entering menu by Alt
* Taseditor: PATTERNS menu, loading data from "tools\taseditor_patterns.txt"
* Taseditor: ColumnSet (Input and Markers) with Alt key = set pattern
* Taseditor: "Use pattern" checkbox in Recorder; Config->ColumnSet Pattern skips Lag
2012-02-18 16:43:40 +00:00
punkrockguy318 afcda92ecb sdl bugfix: compile with gcc 4.6.2 2012-02-02 06:56:04 +00:00
punkrockguy318 3fcec22d2b sdl: revert previous commit 2011-10-21 02:13:33 +00:00
punkrockguy318 79b3a337c9 sdl: attempt to resolve ubuntu compile error 2011-10-21 01:05:17 +00:00
qeed 26d249ed91 some more malloc to fceu_dmalloc wrapper change 2010-09-19 00:05:09 +00:00
qeed 90695b00ac fixed proper file opening for opening files that dont exist 2010-09-18 14:20:12 +00:00
mart0258 b33b01febd Prevent .zip files containing no valid files from causing crash 2010-05-25 03:20:48 +00:00
zeromus 4e66aaef9c replace most of the crappy iostream stuff with EMUFILE 2010-05-17 21:02:38 +00:00
adelikat 6411ba535a Fixed bug that caused new movies be created in /movie instead of /movies 2009-08-11 00:43:27 +00:00
qeed 726c838ead Fix warning errors in file.cpp line 245 and 262 2009-06-13 16:42:21 +00:00
adelikat 32dd904dab Win32 - Directory overrides - oops, commented out the wrong code in a previous commit 2009-03-09 19:42:04 +00:00
adelikat e75d9e52dc Win32 - Changes to how directory overrides work. Fixed logic problems that were resulting in directory assignment rather than override.
FCEU_GetPath - changed lua, memw, avi, roms to return null rather than base directory if no overrides are set.
2009-03-02 17:37:31 +00:00
adelikat 3f1ad16e21 removed debug command that was unintentionally committed 2009-03-02 15:40:34 +00:00
adelikat 98fbe2d85e Win32 - Memwatch - Drag & Drop for .txt (memwatch) files 2009-03-02 15:39:30 +00:00
adelikat 6fb09465ca Moved around movie options variables and make movie backup functions 2008-12-23 00:10:15 +00:00
adelikat ffe25288cc Win32 - created movie options dialog box 2008-12-22 23:31:39 +00:00
adelikat 79a6391a7d Win32 - fixed a couple of booboo's in the AVI filename + directory selection code 2008-11-24 02:55:55 +00:00
adelikat 3be6963245 Win32 - avi output directory override implemented. 2008-11-08 00:27:05 +00:00
adelikat 5b0e6d5ee7 added avi output directory override (not yet used by FCEUX, however) 2008-11-07 14:53:05 +00:00
adelikat ed0a6e5753 win32 - added toggle for binding savestates to movies 2008-10-19 14:06:10 +00:00
adelikat de92a9a9ba limited number of characters the movie filename can be when including in savestate filenames. (To help prevent insanely long savestate filenames) 2008-10-19 04:01:21 +00:00
zeromus 2cba0fd439 support autoloading from archives in cases where there is only one useful file in an archive.
add experimental ram-only emulua savestate code. now call savestate_persist(ss) if you want to cause it to go to disk. otherwise it will stay in memory. this might speed things up. also add experimental new ppu which can be enabled by newppu 1 in configfile. there is no reason to use it yet but i needed to do a checkin
2008-08-18 03:11:42 +00:00
zeromus 8217d5ceea fix 2008-08-13 08:45:45 +00:00
zeromus b67554f47b restore unzipping for sdl, also 2008-08-13 08:40:12 +00:00
zeromus 4d0086e899 fix gzip in windows... 2008-08-13 08:24:04 +00:00
zeromus 73388b53f5 cleanup. IPS support in sdl repaired and verified. 2008-08-13 08:01:58 +00:00