aboutsummaryrefslogtreecommitdiff
path: root/src/Config.cpp
Commit message (Collapse)AuthorAge
* Add support for macOS (#771)WaluigiWare642020-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use shm_open() instead of memfd_create() on macOS malloc.h isn't a header on macOS * Change OpenGL headers + create ifdef for DO_PROCLIST macOS seems to already have the OpenGL functions defined, without the ifdef, it gives "ambiguous references" errors. * macOS doesn't have ->gregs in uc_mcontext and it doesn't have REG_RIP either https://github.com/gperftools/gperftools/blob/master/m4/pc_from_ucontext.m4 * use getpid() to make memory file name unique * #ifndef __APPLE__ for AF_PACKET and linux/if_packet.h * Add include and link directories for macOS and link the OpenGL framework * Add macOS CI * Use newly added libslirp package from Homebrew https://github.com/Homebrew/homebrew-core/pull/63412 * Use Apple's Clang instead of GNU GCC on macOS * Add macOS build instructions to README * Try to fix macOS undefined symbol * snprintf doesn't take null terminator into account * Map new memory on macOS for JIT * Only use gcc-ar if using GNU Compiler * re-add fastmem code - whoops! * Fix style issue - use camelCase not snake_case * Set Minimum macOS version * Switch Minimum OS X version to 10.9 * Add macOS libpcap library name * fix memory leak * Fix binding keys in macOS * Allow getting MAC address on macOS melonDS on Linux uses AF_PACKET, which doesn't exist on macOS. Instead, this commit uses AF_LINK on macOS to get the MAC address. * Remove unneeded macOS CI dependencies * Build melonDS app bundle on macOS Now it is no longer required to install the libraries on macOS, they come with the app bundle. * fix macOS CI not being able to find macdeployqt * copy melonDS.app with recursive because it's a folder * Disable fastmem checkbox on macOS * Disable fastmem by default in config * forgot a semicolon * Don't bundle libraries, causes issues on macOS <10.15 * Update README + allow finding version in Finder on macOS * Make sure fastmem checkbox stays uncheckable
* change JIT branch optimisations default to 1RSDuck2020-10-15
| | | | branch linking is dead
* Random minor fixes (#757)Valeri2020-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix incorrect/questionable assert() usage Originally reported by https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2159000700, but also includes a bunch of other fixes. * Fix some `printf` warnings Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2160310550 * Remove useless check It is never passed thanks to `if (num_in < 1) {...; return}` before Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2154840804 * Add missing header guard, rename other to avoid conflicts Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2163210746 * Make DSi_SDDevice destructor virtual Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2158670642 * Use thread-safe localtime_r, assign `time` result directly Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2154840805 * Fix MinGW build It needs _POSIX_THREAD_SAFE_FUNCTIONS to export `localtime_r`
* actually add DLDI. bahahahhhArisotura2020-09-03
|
* make SD support actually be a thingArisotura2020-08-25
|
* * fix build errorArisotura2020-08-24
| | | | | * make betterer polygon splitting an option * add GL_LEQUAL depth test for 'equal' mode, might help
* make MAC randomization optionalArisotura2020-08-24
|
* (finally) build the goddamn cheat interfaceArisotura2020-08-15
|
* reconcile DSi and JIT, fastmem for x64 and WindowsRSDuck2020-06-30
|
* first steps in bringing over the JIT refactor/fastmemRSDuck2020-06-16
|
* Merge branch 'generic_jit' of https://github.com/Arisotura/melonDS into ↵RSDuck2020-06-16
|\ | | | | | | generic_jit
| * fix build with JIT disabled and set default JIT maxblock size to 32RSDuck2020-06-16
| |
| * implement block linking + some refactoringRSDuck2020-06-16
| | | | | | | | currently only supported for x64
| * fix config key for jit literal optimisationsRSDuck2020-06-16
| |
| * integrate changes from ARM64 backend and moreRSDuck2020-06-16
| | | | | | | | | | | | | | | | | | - better handle LDM/STM in reg alloc - unify Halted and IRQ in anticipation for branch inlining - literal optimisations can be disabled in gui - jit blocks follow simple returns - fix idle loop detection - break jit blocks on IRQ (fixes saving in Pokemon White)
| * new block cache and much more...RSDuck2020-06-16
| | | | | | | | | | | | | | | | | | - more reliable code invalidation detection - blocks aren't stopped at any branch, but are being followed if possible to get larger blocks - idle loop recognition - optimised literal loads, load/store cycle counting and loads/stores from constant addresses
| * jit: add compile optionRSDuck2020-06-16
| |
| * jit: make everything configurableRSDuck2020-06-16
| |
| * add DSi-mode settingsArisotura2020-06-01
| |
| * blargArisotura2020-05-19
| |
| * actually hook this upArisotura2020-05-17
| |
* | fix build with JIT disabled and set default JIT maxblock size to 32RSDuck2020-04-26
| |
* | implement block linking + some refactoringRSDuck2020-04-26
| | | | | | | | currently only supported for x64
* | fix config key for jit literal optimisationsRSDuck2020-04-26
| |
* | integrate changes from ARM64 backend and moreRSDuck2020-04-26
| | | | | | | | | | | | | | | | | | - better handle LDM/STM in reg alloc - unify Halted and IRQ in anticipation for branch inlining - literal optimisations can be disabled in gui - jit blocks follow simple returns - fix idle loop detection - break jit blocks on IRQ (fixes saving in Pokemon White)
* | new block cache and much more...RSDuck2020-04-26
| | | | | | | | | | | | | | | | | | - more reliable code invalidation detection - blocks aren't stopped at any branch, but are being followed if possible to get larger blocks - idle loop recognition - optimised literal loads, load/store cycle counting and loads/stores from constant addresses
* | jit: add compile optionRSDuck2020-04-26
| |
* | jit: make everything configurableRSDuck2020-04-26
|/
* update copyright yearsArisotura2020-02-14
|
* stop fast-forward hotkeys from getting lost every damn timeArisotura2019-06-12
|
* welp.Arisotura2019-05-21
| | | | progress
* add relevant config entriesArisotura2019-05-12
|
* * remove EmuDirectory from the coreArisotura2019-03-27
| | | | * rework OpenLocalFile(), make the code more elegant, also fixes #352
* * move melon_fopen_local() to Platform.cppArisotura2019-03-27
| | | | | * make it require that the file already exist (hopefully fixing config saving bug) * finally axe melon_fopen.cpp
* move melon_fopen() to Platform.cppArisotura2019-03-27
| | | | melon_fopen_local() will need fixoring
* extra safety for the case of an empty platform config fileArisotura2019-03-26
|
* move platform specific config to platform specif ffile ayyyyyyyyyyygfghj;,gnxbfArisotura2019-03-15
|
* save LAN settingsArisotura2019-02-21
|
* also, update copyright nameArisotura2019-01-22
|
* * make savestate SRAM reloc disabled by default (confusing behavior)StapleButter2018-12-30
| | | | * add config entry for keeping track of whether the main window is maximized
* fix oversight regarding hotkey joystick buttons. also prevent triggering the ↵StapleButter2018-12-16
| | | | lid command a billion times in a row with a joystick button.
* Merge pull request #285 from abcdjdj/limit_fpsStapleButter2018-12-15
|\ | | | | Add option to limit framerate from UI
| * Add option to limit framerate from UIMadhav Kanbur2018-11-21
| | | | | | | | Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
* | libui/GTK: remember directory in which the latest loaded ROM was, point file ↵StapleButter2018-12-14
| | | | | | | | picker to it. behavior under Windows will likely stay unchanged as the Windows file picker already does that.
* | actually save shitStapleButter2018-12-14
| |
* | add hotkey config values.StapleButter2018-12-14
| | | | | | | | | | duplicate DlgInputConfig so that it can also do hotkey config. also prevent from opening those config dialogs a billion times.
* | move config-file seeking code to its own thing.StapleButter2018-12-11
|/ | | | | look also into the same directory as melonDS. make it the preferred place for storing melonDS.ini. rewrite WinMain() wrapper.
* fix implementation of CoTaskMemRealloc, as it can decide to move the buffer ↵StapleButter2018-10-27
| | | | elsewhere, we have to account for that
* oops! don't hardcode a 9StapleButter2018-10-27
|
* fix configfile loading under Windows, for when it checks AppDataStapleButter2018-10-27
| | | | | | by making it actually, you know, build the complete file path hopefully that fixes that crash bug, but I couldn't reproduce it after touching the code some. heisenbugs are lots of fun