Commit Graph

958 Commits

Author SHA1 Message Date
Jesse Talavera-Greenberg
5cf8d07dea Fix FlushFirmware 2023-08-27 23:31:25 -04:00
Jesse Talavera-Greenberg
e62bf07504 Unmark EffectiveFirmwarePath as inline 2023-08-27 23:30:58 -04:00
Jesse Talavera-Greenberg
ae6d26f63f Remove dynamic.cpp from CMakeLists.txt 2023-08-27 23:30:16 -04:00
Jesse Talavera-Greenberg
c9de6e33c5 Cast firmware length to int to be safe 2023-08-27 23:04:36 -04:00
Jesse Talavera-Greenberg
a1bff8d0ba Remove retro::get_system_fallback_subdirectory 2023-08-27 23:04:15 -04:00
Jesse Talavera-Greenberg
c0f83f5200 Don't search for firmware files in the "melonDS" directory 2023-08-27 22:59:56 -04:00
Jesse Talavera-Greenberg
2060faec7d Configure the firmware paths 2023-08-27 22:58:25 -04:00
Jesse Talavera-Greenberg
6f5f9d590c Include <codecvt> 2023-08-27 19:21:25 -04:00
Jesse Talavera-Greenberg
f5d24fc5bd Simplify dynamic options handling 2023-08-26 19:13:24 -04:00
Jesse Talavera-Greenberg
cd12b5d4cc Remove an unused constant 2023-08-26 19:12:21 -04:00
Jesse Talavera-Greenberg
c8b0d8c710 Add a comment 2023-08-26 19:11:57 -04:00
Jesse Talavera-Greenberg
96a7713e7f Fix language parsing 2023-08-26 19:11:48 -04:00
Jesse Talavera-Greenberg
401c30b26d Add settings for firmware paths 2023-08-26 15:03:38 -04:00
Jesse Talavera-Greenberg
561fdf2102 Return nullopt for negative languages 2023-08-26 14:33:12 -04:00
Jesse Talavera-Greenberg
cde622ba56 Apply firmware overrides 2023-08-26 14:32:47 -04:00
Jesse Talavera-Greenberg
23d4e6eb0d Update descriptions for some firmware options 2023-08-26 14:31:49 -04:00
Jesse Talavera-Greenberg
40ffaf737b Parse the new firmware options 2023-08-26 13:21:38 -04:00
Jesse Talavera-Greenberg
427fe29dd6 Add a new firmware options category 2023-08-26 13:20:22 -04:00
Jesse Talavera-Greenberg
e6d53843ee Move firmware validation out of libretro.cpp 2023-08-26 09:46:18 -04:00
Jesse Talavera-Greenberg
2e40b016c4 Don't clear the firmwarePath 2023-08-24 22:36:09 -04:00
Jesse Talavera-Greenberg
3046d1eb1f Give SPI_Firmware the unique_ptr instead 2023-08-24 22:35:56 -04:00
Jesse Talavera-Greenberg
40dad4f076 Remove an exception 2023-08-24 22:35:28 -04:00
Jesse Talavera-Greenberg
e27f219e47 Fix a potential lifetime problem with std::initializer_list 2023-08-24 22:35:13 -04:00
Jesse Talavera-Greenberg
49bf6bc9b1 Install the firmware in config.cpp 2023-08-24 22:23:00 -04:00
Jesse Talavera-Greenberg
1c83835918 Add some FirmwareLanguage flags 2023-08-24 22:22:18 -04:00
Jesse Talavera-Greenberg
c18ae42d39 Add Color::Default 2023-08-24 22:22:08 -04:00
Jesse Talavera-Greenberg
9f8633e2e9 Mark EffectiveFirmwarePath as inline 2023-08-24 22:21:54 -04:00
Jesse Talavera-Greenberg
c531e7f810 Add an attribute to retro::log 2023-08-24 22:20:01 -04:00
Jesse Talavera-Greenberg
a3c05f19be Fix incorrect condition in retro::get_system_path
- string_views don't include the null terminator if they're constructed from an existing string
2023-08-24 22:19:26 -04:00
Jesse Talavera-Greenberg
e7af37cccd Add retro::username 2023-08-24 22:18:44 -04:00
Jesse Talavera-Greenberg
0dc65bf435 Split up retro::task::deinit into wait and reset 2023-08-24 22:18:30 -04:00
Jesse Talavera-Greenberg
f4a9887e79 Set the default name to melonDS DS 2023-08-24 21:55:11 -04:00
Jesse Talavera-Greenberg
0bfa741874 Use ParseLanguage 2023-08-24 21:54:49 -04:00
Jesse Talavera-Greenberg
1c366f7efb Add ParseLanguage 2023-08-24 21:53:01 -04:00
Jesse Talavera-Greenberg
690f22f977 Add some constants 2023-08-24 21:52:38 -04:00
Jesse Talavera-Greenberg
b1c96b5fd3 Add some attributes to environment functions 2023-08-24 19:50:36 -04:00
Jesse Talavera-Greenberg
e0c641a13d Mark retro_run as hot 2023-08-24 19:49:21 -04:00
Jesse Talavera-Greenberg
2c511a78ac Implement Platform::WriteFirmware 2023-08-22 22:18:28 -04:00
Jesse Talavera-Greenberg
ca02bf20b7 Implement retro::get_system_path 2023-08-22 22:17:14 -04:00
Jesse Talavera-Greenberg
2bdfd77669 Unset task->user_data after deleting it 2023-08-22 21:41:31 -04:00
Jesse Talavera-Greenberg
ddbafb5ceb Remove old FlushGbaSramTask declaration 2023-08-22 21:35:22 -04:00
Jesse Talavera-Greenberg
d2d0087695 Refactor some tasks
- Tasks no longer need to finish if cancelled, the task queue will do it
- Add cleanup handlers so tasks will clean up after themselves
- Pass save info to the GBA SRAM flush task instead of querying global state
- Mark tasks as noexcept
2023-08-22 21:33:52 -04:00
Jesse Talavera-Greenberg
0dd5e45ee6 Deprecate melonds::file::FlushTask 2023-08-22 21:22:25 -04:00
Jesse Talavera-Greenberg
edd2fe7ea4 Implement TaskHandle::GetError/SetError 2023-08-22 21:12:22 -04:00
Jesse Talavera-Greenberg
36deb4a30b Don't run any task if it's cancelled
- Cleanup should be handled in the callback or the cleanup handler
2023-08-22 21:11:44 -04:00
Jesse Talavera-Greenberg
f042d35c1b If the task title is empty, don't clone it 2023-08-22 20:58:00 -04:00
Jesse Talavera-Greenberg
91dfc17d40 Ensure the handler is valid before allocating the task 2023-08-22 20:57:36 -04:00
Jesse Talavera-Greenberg
372b99eac6 Add TaskHandle::IsFinished 2023-08-22 20:57:14 -04:00
Jesse Talavera-Greenberg
94de2995cd Add task callback support to retro::task 2023-08-22 20:21:07 -04:00
Jesse Talavera-Greenberg
0bf34ec710 Deprecate SaveManager 2023-08-22 19:36:51 -04:00