Skip to content

Commit

Permalink
Merge branch 'libretro:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRhysWyrill authored Aug 13, 2024
2 parents e135a1d + 5a57644 commit dd4edc4
Show file tree
Hide file tree
Showing 61 changed files with 341 additions and 303 deletions.
2 changes: 2 additions & 0 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,8 @@ static struct config_bool_setting *populate_settings_bool(
SETTING_BOOL("cloud_sync_destructive", &settings->bools.cloud_sync_destructive, true, false, false);
SETTING_BOOL("cloud_sync_sync_saves", &settings->bools.cloud_sync_sync_saves, true, true, false);
SETTING_BOOL("cloud_sync_sync_configs", &settings->bools.cloud_sync_sync_configs, true, true, false);
SETTING_BOOL("cloud_sync_sync_thumbs", &settings->bools.cloud_sync_sync_thumbs, true, false, false);
SETTING_BOOL("cloud_sync_sync_system", &settings->bools.cloud_sync_sync_system, true, false, false);
SETTING_BOOL("discord_allow", &settings->bools.discord_enable, true, false, false);
#ifdef HAVE_MIST
SETTING_BOOL("steam_rich_presence_enable", &settings->bools.steam_rich_presence_enable, true, false, false);
Expand Down
2 changes: 2 additions & 0 deletions configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,8 @@ typedef struct settings
bool cloud_sync_destructive;
bool cloud_sync_sync_saves;
bool cloud_sync_sync_configs;
bool cloud_sync_sync_thumbs;
bool cloud_sync_sync_system;

/* Misc. */
bool discord_enable;
Expand Down
6 changes: 3 additions & 3 deletions frontend/drivers/platform_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static char unix_cpu_model_name[64] = {0};
#define PROC_MEMINFO_CACHED_TAG "Cached:"
#define PROC_MEMINFO_SHMEM_TAG "Shmem:"

#if (defined(__linux__) || defined(__unix__)) && !defined(ANDROID)
#if (defined(__linux__) || defined(__HAIKU__) || defined(__unix__)) && !defined(ANDROID)
static int speak_pid = 0;
#endif

Expand Down Expand Up @@ -2793,7 +2793,7 @@ enum retro_language frontend_unix_get_user_language(void)
return lang;
}

#if (defined(__linux__) || defined(__unix__)) && !defined(ANDROID)
#if (defined(__linux__) || defined(__HAIKU__) || defined(__unix__)) && !defined(ANDROID)
static bool is_narrator_running_unix(void)
{
return (kill(speak_pid, 0) == 0);
Expand Down Expand Up @@ -3057,7 +3057,7 @@ frontend_ctx_driver_t frontend_ctx_unix = {
frontend_unix_set_sustained_performance_mode,
frontend_unix_get_cpu_model_name,
frontend_unix_get_user_language,
#if (defined(__linux__) || defined(__unix__)) && !defined(ANDROID)
#if (defined(__linux__) || defined(__HAIKU__) || defined(__unix__)) && !defined(ANDROID)
is_narrator_running_unix, /* is_narrator_running */
accessibility_speak_unix, /* accessibility_speak */
#else
Expand Down
4 changes: 2 additions & 2 deletions gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static const gfx_ctx_driver_t *gfx_ctx_gl_drivers[] = {
&gfx_ctx_cocoagl,
#endif
#endif
#if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && (defined(HAVE_OPENGL) || defined(HAVE_OPENGL1) || defined(HAVE_OPENGL_CORE))
#if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && (defined(HAVE_OPENGL) || defined(HAVE_OPENGL1) || defined(HAVE_OPENGL_CORE)) && !defined(HAVE_COCOA)
&gfx_ctx_sdl_gl,
#endif
#ifdef HAVE_OSMESA
Expand Down Expand Up @@ -406,7 +406,7 @@ const video_driver_t *video_drivers[] = {
#if defined(HAVE_SDL) && !defined(HAVE_SDL_DINGUX)
&video_sdl,
#endif
#ifdef HAVE_SDL2
#if defined(HAVE_SDL2) && !(defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL))
&video_sdl2,
#endif
#ifdef HAVE_SDL_DINGUX
Expand Down
10 changes: 10 additions & 0 deletions griffin/griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,16 @@ ANDROID PLAY FEATURE DELIVERY
#include "../play_feature_delivery/play_feature_delivery.c"
#endif


/*============================================================
FFMPEG
============================================================ */
#ifdef HAVE_FFMPEG
#include "../cores/libretro-ffmpeg/packet_buffer.c"
#include "../cores/libretro-ffmpeg/video_buffer.c"
#include "../libretro-common/rthreads/tpool.c"
#endif

/*============================================================
STEAM INTEGRATION USING MIST
============================================================ */
Expand Down
3 changes: 2 additions & 1 deletion input/drivers_hid/iohidmanager_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ static void iohidmanager_hid_device_remove(IOHIDDeviceRef device, iohidmanager_h
for (i=0; i<MAX_USERS; i++)
{
struct iohidmanager_hid_adapter *a = (struct iohidmanager_hid_adapter*)hid->slots[i].data;
if (!a)
if (!a || !hid->slots[i].connected)
continue;
if (a->handle == device)
{
Expand All @@ -517,6 +517,7 @@ static void iohidmanager_hid_device_remove(IOHIDDeviceRef device, iohidmanager_h

hid->buttons[adapter->slot] = 0;
memset(hid->axes[adapter->slot], 0, sizeof(hid->axes));
hid->slots[adapter->slot].data = NULL;

pad_connection_pad_deinit(&hid->slots[adapter->slot], adapter->slot);
}
Expand Down
2 changes: 1 addition & 1 deletion input/input_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ input_driver_t *input_drivers[] = {
#ifdef HAVE_DINPUT
&input_dinput,
#endif
#if defined(HAVE_SDL) || defined(HAVE_SDL2)
#if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && !(defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL))
&input_sdl,
#endif
#if defined(DINGUX) && defined(HAVE_SDL_DINGUX)
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_ar.h
Original file line number Diff line number Diff line change
Expand Up @@ -1148,14 +1148,6 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_SAVING_SETTINGS,
"تغيير اعدادات النواة."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_USERNAME,
"اسم المستخدم"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -868,14 +868,6 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_ENABLE,
"Activar la sincronización na nube"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_USERNAME,
"Nome d'usuariu"
Expand Down
46 changes: 43 additions & 3 deletions intl/msg_hash_be.h
Original file line number Diff line number Diff line change
Expand Up @@ -1228,14 +1228,42 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DESTRUCTIVE,
"Дэструктыўная воблачная сінхранізацыя"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_SAVES,
"Сінхранізацыя: захаванні/станы"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
"Сінхранізацыя: файлы канфігурацыі"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_THUMBS,
"Сінхранізацыя: эскізы мініяцюр"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_SYSTEM,
"Сінхранізацыя: сістэмныя файлы"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_SAVES,
"Калі ўключана, захаванні/станы будуць сінхранізавацца з воблакам."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_CONFIGS,
"Калі ўключана, файлы канфігурацыі будуць сінхранізавацца з воблакам."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_THUMBS,
"Калі ўключана, эскізы мініяцюр будуць сінхранізавацца з воблакам. У большасці выпадкаў не рэкамендуецца, апрача багатых калекцый уласных эскізаў мініяцюр; інакш спампоўванне мініяцюр - лепшы выбар."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_SYSTEM,
"Калі ўключана, сістэмныя файлы будуць сінхранізавацца з воблакам. Гэта можа значна павялічыць час, неабходны для сінхранізацыі; выкарыстоўвайце ўсвядомлена."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"Калі адключана, файлы будуць перасунутыя ў тэчку рэзервовай копіі перад іх перазапісам ці выдаленнем."
)
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DRIVER,
"Бэкенд воблачнай сінхранізацыі"
Expand Down Expand Up @@ -5039,6 +5067,14 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_SETTINGS_SHOW_USER,
"Паказ 'Карыстальнік'"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_ICON_THUMBNAILS,
"Значкі плэй-ліста"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_ICON_THUMBNAILS,
"Тып мініяцюры для адлюстравання значкоў плэй-ліста."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_SETTINGS_SHOW_USER,
"Паказваць налады 'Карыстальнік'."
Expand Down Expand Up @@ -7081,6 +7117,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_SCREENSHOTS,
"Здымак экрана"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_LOGOS,
"Лагатып змесціва"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_ON,
"УКЛ"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_bg.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,6 @@ MSG_HASH(

/* Settings */

MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_PLAYLIST_SETTINGS,
"Плейлисти"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_ca.h
Original file line number Diff line number Diff line change
Expand Up @@ -1132,14 +1132,6 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_SAVING_SETTINGS,
"Canvia les configuracions de desament."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_USERNAME,
"Nom d’usuari"
Expand Down
6 changes: 1 addition & 5 deletions intl/msg_hash_chs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1232,14 +1232,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DESTRUCTIVE,
"破坏性云同步"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"禁用后,文件会在被覆盖或删除之前移至备份文件夹。"
)
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DRIVER,
"云同步后端"
Expand Down
6 changes: 1 addition & 5 deletions intl/msg_hash_cht.h
Original file line number Diff line number Diff line change
Expand Up @@ -1188,14 +1188,10 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_ENABLE,
"嘗試將雲端設定檔、記憶存檔與狀態同步到雲端儲存供應商。"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"若未啟用,覆蓋或刪除前檔案將會移動到備份資料夾。"
)
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DRIVER,
"雲端同步後端"
Expand Down
6 changes: 1 addition & 5 deletions intl/msg_hash_cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1200,14 +1200,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DESTRUCTIVE,
"Destruktivní cloudová synchronizace"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"Pokud je tato funkce vypnuta, jsou soubory před přepsáním nebo odstraněním přesunuty do záložní složky."
)
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DRIVER,
"Backend cloudové synchronizace"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_cy.h
Original file line number Diff line number Diff line change
Expand Up @@ -880,14 +880,6 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_SAVING_SETTINGS,
"Newid gosodiadau arbed."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS,
"Logio"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_da.h
Original file line number Diff line number Diff line change
Expand Up @@ -752,14 +752,6 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_SAVING_SETTINGS,
"Skift gemmeindstillinger."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS,
"Logning"
Expand Down
20 changes: 18 additions & 2 deletions intl/msg_hash_de.h
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,15 @@ MSG_HASH(
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Synchronisieren: Konfigurationsdateien"
)
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_THUMBS,
"Sync: Vorschaubilder"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_SYSTEM,
"Sync: Systemdateien"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_SAVES,
"Wenn aktiviert, werden Speicherdaten/Savestates mit der Cloud synchronisiert."
Expand All @@ -1176,10 +1184,18 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_CONFIGS,
"Wenn aktiviert, werden Konfigurationsdateien mit der Cloud synchronisiert."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_THUMBS,
"Wenn aktiviert, werden Miniaturbilder mit der Cloud synchronisiert. Allgemein nicht empfohlen, außer für große Sammlungen benutzerdefinierter Miniaturbilder. Andernfalls ist der Downloader eine bessere Wahl."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_SYNC_SYSTEM,
"Wenn aktiviert, werden die Systemdateien mit der Cloud synchronisiert. Dadurch kann sich die Zeit zum Synchronisieren erheblich verlängern; daher mit Vorsicht verwenden."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"Wenn deaktiviert, werden die Dateien in einen Sicherungsordner verschoben, bevor sie überschrieben oder gelöscht werden."
)
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_DRIVER,
"Cloud-Sync-Backend"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_el.h
Original file line number Diff line number Diff line change
Expand Up @@ -1148,14 +1148,6 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_SAVING_SETTINGS,
"Αλλαγή ρυθμίσεων αποθήκευσης."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_USERNAME,
"Όνομα Χρήστη"
Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@ MSG_HASH(

/* Settings */

MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)

/* Core option category placeholders for icons */

Expand Down
8 changes: 0 additions & 8 deletions intl/msg_hash_eo.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,6 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_SAVING_SETTINGS,
"Change settings for the saving."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CLOUD_SYNC_SYNC_CONFIGS,
"Sync: Configuration Files"
)
MSG_HASH(
MENU_ENUM_SUBLABEL_CLOUD_SYNC_DESTRUCTIVE,
"When disabled, files are moved to a backup folder before being overwritten or deleted."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_LOGGING_SETTINGS,
"Change settings for the logging."
Expand Down
Loading

0 comments on commit dd4edc4

Please sign in to comment.