Commit graph

275 commits

Author SHA1 Message Date
Rosalie Wanders
c305a56696 RMG-Core: add RomHeaderAndSettings cache limit & misc improvements 2022-03-07 14:41:26 +01:00
Rosalie Wanders
e00a24ae3e RMG-Core: introduce Core*RomHeaderAndSettingsCache() functions 2022-03-06 17:21:10 +01:00
Rosalie Wanders
ae84644085 RMG-Core: use ... instead of std::exception in Settings.cpp 2022-02-03 13:01:43 +01:00
Rosalie Wanders
b3028c6093 RMG-Core: add GUI_HideCursorInFullscreenEmulation to Settings 2022-02-02 19:26:26 +01:00
Rosalie Wanders
742fddff2e RMG-Core: add missing CoreSetError() call in config_section_exists() 2022-02-02 19:11:30 +01:00
Rosalie Wanders
cf5e7b1e77 RMG-Core: add missing CoreSetError() call in config_override_user_dirs() 2022-02-02 19:10:17 +01:00
Rosalie Wanders
b25463585b RMG-Core: add missing comments in Directories.cpp 2022-02-02 19:09:50 +01:00
Rosalie Wanders
c3dbbdf0e4 RMG-Core: fix wrong function order in CoreInit() 2022-02-02 19:09:34 +01:00
Rosalie Wanders
b1597e021c RMG-Core: correct CoreGetUser{Data,Cache}Directory 2022-02-02 19:08:50 +01:00
Rosalie Wanders
da4319bcab RMG-Core: convert to int when using M64TYPE_BOOL in Settings functions
This is needed for windows, if we don't do this, it seems like there's
some undefined behavior going on, so let's be as explicit as possible.

Weirdly enough the code before this commit works fine on linux, so maybe
some weird platform differences caused this? I'm not sure but being
explicit won't break anything so this should be fine :)
2022-02-02 14:35:16 +01:00
Rosalie Wanders
bbd0b4df1d RMG-Core: remove unneeded settings overrides in Emulation.cpp
CoreApplyRomSettingsOverlay() already applies these, so there's no need
to do it in apply_game_coresettings_overlay()
2022-01-25 14:19:48 +01:00
Rosalie Wanders
aea147bf20 RMG-Core: apply core settings & game core settings 2022-01-25 13:55:39 +01:00
Rosalie Wanders
6c1b04c6ab RMG-Core: use CoreSetError() in CoreSetupMediaLoader() 2022-01-24 16:53:42 +01:00
Rosalie Wanders
5fe22f86eb RMG-Core: use MediaLoader functions 2022-01-24 16:40:32 +01:00
Rosalie Wanders
e680f80e47 RMG-Core: introduce MediaLoader.{cpp,hpp} 2022-01-24 16:40:08 +01:00
Rosalie Wanders
cf579f1fde RMG-Core: update mupen64plus headers 2022-01-24 16:39:33 +01:00
Rosalie Wanders
ccede240bd RMG-Core: introduce 64DD settings 2022-01-24 16:39:09 +01:00
Rosalie Wanders
2af19a57ca RMG-Core: don't use settings in CoreGetSharedDataDirectory()
CoreGetSharedDataDirectory() is called in CoreInit() before mupen64plus
has started, so the settings function will return an empty string, which
is not expected.
2022-01-19 15:43:38 +01:00
Rosalie Wanders
3e12c8c928 RMG-Core: introduce & use Config.hpp 2022-01-16 18:18:50 +01:00
Rosalie Wanders
cabfcc9f75 RMG-Core: introduce CoreGetDefault*Directory() 2022-01-14 18:18:19 +01:00
Rosalie Wanders
cd26941059 RMG-Core: remove support for non-portable builds on windows 2022-01-14 18:10:25 +01:00
Rosalie Wanders
94651bab91 RMG-Core: use CoreGetPluginDirectory() in Settings.cpp for plugins 2022-01-13 16:01:45 +01:00
Rosalie Wanders
9b589c50e1 RMG-Core: remove trailing slash in Directories.cpp 2022-01-13 16:01:05 +01:00
Rosalie Wanders
f7f41d330d RMG-Core: introduce CoreGetSave{,State}Directory() 2022-01-13 15:33:39 +01:00
Rosalie Wanders
ba015b6698 RMG-Core: use CoreGet*Directory() for m64p::Core.Startup() 2022-01-13 14:49:38 +01:00
Rosalie Wanders
7e79aa0fff RMG-Core: introduce & use CoreGet*Directory functions 2022-01-13 14:25:12 +01:00
Rosalie Wanders
93c7ef1de8 RMG-Core: link to winsock2 & correct included header 2022-01-09 13:55:19 +01:00
Rosalie Wanders
98ab96db6a RMG-Core: swap byteorder of CRC1 & CRC2 in CoreGetCurrentRomHeader() 2022-01-09 13:38:07 +01:00
Rosalie Wanders
a4111f2efa RMG-Core: minor fixes in Plugins.cpp 2022-01-06 14:52:00 +01:00
Rosalie Wanders
972e88b74f RMG-Core: restore plugin settings during failure in CoreStartEmulation() 2022-01-06 14:51:38 +01:00
Rosalie Wanders
f2d89bd1c9 RMG-Core: Shutdown() plugins before Unhook() 2022-01-06 14:29:39 +01:00
Rosalie Wanders
a96bc6e748 RMG-Core: improve error handling in Plugins.cpp 2022-01-06 14:18:39 +01:00
Rosalie Wanders
7147dfa858 RMG-Core: don't call CoreApplyPluginSettings() in CoreInit()
This allows for better plugin failure handling
2022-01-06 14:17:13 +01:00
Rosalie Wanders
b5cec10f97 RMG-Core: add GUI_{Pause,Resume}EmulationOnFocus settings 2022-01-05 17:50:19 +01:00
Rosalie Wanders
f1b8401ecb RMG-Core: include Rom.hpp in Core.hpp 2022-01-05 16:48:29 +01:00
Rosalie Wanders
e9ebc5ecd0 RMG-Core: close ROM on failure in CoreStartEmulation() 2022-01-05 16:40:36 +01:00
Rosalie Wanders
e7b0147eb4 RMG-Core: add audio plugin settings 2021-12-26 16:52:11 +01:00
Rosalie Wanders
4227469427 RMG-Core: turn on CMAKE_POSITION_INDEPENDENT_CODE 2021-12-26 16:51:53 +01:00
Rosalie Wanders
802fd2ca12 RMG-Core: add a version of CoreInit() for plugins 2021-12-26 16:51:33 +01:00
Rosalie Wanders
b5990826df RMG-Core: pause & resume emulation in CorePluginsOpenConfig() 2021-12-26 15:56:40 +01:00
Rosalie Wanders
e063e8745f RMG-Core: correct some comments in Plugins.cpp 2021-12-25 12:48:28 +01:00
Rosalie Wanders
e1464d2d30 RMG-Core: attempt to fix read_raw_file in Rom.cpp (again)
For some reason, some users are experiencing issues when using gcount()
here, so just use fileStreamLen instead, which fixes it for them weirdly
enough.
2021-12-24 15:20:32 +01:00
Rosalie Wanders
b66dbd7544 RMG-Core: introduce & use Settings_HasForceUsedSetOnce in Settings
This fixes some core settings reverting on each launch, like the
screenshot directory and save state/sram directory settings.
2021-12-24 13:20:20 +01:00
Rosalie Wanders
d42f770e06 RMG-Core: improve read_raw_file in Rom.cpp 2021-12-23 16:36:11 +01:00
Rosalie Wanders
43f04d83fe RMG-Core: use backslashes for default plugin settings on windows 2021-12-23 14:49:00 +01:00
Rosalie Wanders
a3f34da788 RMG-Core: implement SpeedLimiter functions 2021-12-23 14:16:33 +01:00
Rosalie Wanders
4f33c21130 RMG-Core: partially implement Callback functions 2021-12-23 13:17:28 +01:00
Rosalie Wanders
25250dd0e3 RMG-Core: set default plugin settings value 2021-11-21 23:04:58 +01:00
Rosalie Wanders
f25da945a4 RMG-Core: link to dl on unix platforms 2021-11-21 22:46:34 +01:00
Rosalie Wanders
346e023806 RMG-Core: startup m64p core lib in CoreInit() 2021-11-21 22:38:17 +01:00