Skip to content

Commit

Permalink
Downstream (#1)
Browse files Browse the repository at this point in the history
* (libretro-common) Some functions now return len

* More string_list removal in menu_displaylist.c

* (menu_displaylist.c) Get rid of more string_list usage

* (playlist.c) Get rid of string_list usage

* (menu) More string_list removal

* file_archive_get_file_list_cb - remove string_list usage

* (menu_cbs_title.c) Remove string_list usage

* Include <compat/posix_string.h> for strtok_r MSVC compatibility

* Slight change in header include

* (archive_file) Don't know why this won't compile for MSVC -
<compat/posix_string.h> gets included which should redefine strtok_r
for MSVC usage but it just doesn't work and fails at linking stage, will have to figure this out
later

* Remove unused variables

* (audio/common) Fix header includes

* (menu_displaylist.c) More string_list removal

* More string_list removal

* Fetch translations from Crowdin

* generic_action_ok_dropdown_setting - don't use string_list for
ST_STRING_OPTIONS

* Fix ST_STRING_OPTIONS 'selected' dropdown item - was off by one

* Rewrite action_ok_rdb_entry_submenu - no more string_list usage

* Rewrite 2 of action_ok_rdb_entry_submenu - now with less
allocations

* (gfx_animation.c) Small cleanups

* (task_overlay.c) No more string_list usage

* (task_overlay) remove unused variable

* Replace some strlcat usage with strlcpy

* Get rid of some unnecessary strlcat usage

* (dylib.c) Avoid strlcat usage, camelcase variable name removal
and C comments

* (gfx_animation.c) Use strlcpy

* Buildfix

* iOS/tvOS: Add ardens and anarch cores to app store build

* (RGUI) rgui_update_menu_sublabel - use strtok_r instead of string_list

* (ozone) ozone_draw_osk - use strtok_r instead of string_list

* (task_content.c) content_file_override_set - use strtok_r instead
of string_list

* Put comment back

* (core_updater_list) replace string_list usage with strtok_r

* (core_updater_list) Remove more string_list usage

* Simplifications

* input_config_get_bind_string - do proper character
counting now, avoid strlcats, and have functions return
size_t value indicating how many chars were written

* (steam) avoid strlcat usage

* task_save_handler - rewrite code - put string on stack instead
of heap, avoid using strlcat

* Cut down on strlcats

* CI: add github workflow to create source-only release tarball

closes libretro#16645

* Replace more strlcats

* x11: add support for Xss screensaver disabling

in case xdg-screensaver isn't installed.

* Remove some header includes

* (cheevos) Cleanups - only use snprintf for formatting

* Fetch translations from Crowdin

* Fullscreen refresh rate improvements

Handle refresh rate as float in general, and add also extra
attributes (interlaced, doublescan) for video modes.

Make it possible to select exact mode (interlaced / doublescan modes
will not be selected), and allow close matches such as 49.5 Hz
for PAL 50 Hz.

* Fix MSVC05 compilation failure

* Fetch translations from Crowdin

* (menu_cbs_deferred_push) Get rid of string_list usage

* Simplify gfx_animation_line_ticker_smooth

* add intfstream_truncate for file streams

Will return 0 for non-file streams.  I didn't want to mess around with
memory_stream (which could in theory have a truncate impl that sets
size) because there were globals and stuff and I got nervous (also
truncate might *grow* a file if the new length is longer than the old
one and then I'd have to think about realloc, etc).

* change some replay file seeks to seek+truncates in record mode

* tidy up intfstream_truncate ifdefs.

* Fetch translations from Crowdin

* [Wayland] Support for mouse buttons 4&5 and horizontal wheel

* Fetch translations from Crowdin

* Fetch translations from Crowdin

* Fetch translations from Crowdin

* (libretro-common) Use inline assembly for PowerPC libco

This puts the code into the binary's .text section, which is needed
for platforms without the ability to map it as RWX (WiiU). Using
GNU/AT&T syntax for the assembly here.

* Fix exclusive fullscreen condition

Spotted in Android compilation:
warning: bitwise or with non-zero value always evaluates to true [-Wtautological-bitwise-compare]

* Fix keyboard events missing RETROKMOD_NUMLOCK or RETROKMOD_SCROLLOCK
- Add missing numlock mod to dinput
- Add missing scrolllock mod to x11
- Add missing capslock, numlock, scrolllock and meta mods to android
- Add missing scrolllock mod to sdl
- Add missing capslock, numlock, scrolllock and meta mods to switch
- Add missing numlock mod to winraw
- Add missing numlock mod to uwp

* Add config values and menu items for viewport bias x/y

* Refactor viewport handling/aspect ratio scaling.

This mirrors the use of video_viewport_get_scaled_integer for
non-integer scaling at various aspect ratios.  Two variants are
provided, one with implicit device and desired ratios and one with
explicit ratios.

Also added a flag to video_viewport_get_scaled_integer to indicate the
direction of positive y.

* Fix build errors on wiiu, directx

* [X11] Support for mouse buttons 4 and 5

Support added for extra mouse buttons. Since these buttons were
not returned by XQueryPointer(), some additional logic was needed
which fit best to scroll wheel handling.

* allow saves and configs to be optionally synced to cloud

* ensure that all folders are enabled by default.

* Fetch translations from Crowdin

* (D3D8) Fix build

* Silence warnings

* (menu_cbs_ok.c) Some cleanups, warning fixes, use strtok_r instead
of strtok

* (glslang) use strtok_r instead of strtok

* strtok_r - small syntactic cleanup

* Add missing header

* Flip default y positive direction for viewport calc

This should fix metal and maybe some directx resizes

* Use device ratio when determining portrait orientation

* Fetch translations from Crowdin

* Skip core unload when Quit on Close Content is set

* Fix libretro#16562 support bluetooth keyboards on tvos

* Fetch translations from Crowdin

* Add header include for rhmap.h

* Try to avoid strdup to avoid portability issues

* Buildfix

* Fetch translations from Crowdin

* Android: Improvements to DocumentProvider
Added move and rename methods
Provider notifies viewer to refresh view when files are changed
Bumped up TargetApi annotation for DocumentsContract.buildTreeDocumentUri. Could alternatively use androidx compat class.

* Android: Remove External Storage permission

* Android: Add function to migrate RetroArch folder from sdcard.

* Improvements to migration code
Will be squashed before commit

* Revert "Improvements to migration code Will be squashed before commit"

This reverts commit 3dab003.

* Revert "Android: Add function to migrate RetroArch folder from sdcard."

This reverts commit b7235e4.

* Revert "Android: Remove External Storage permission"

This reverts commit 850560d.

* Revert "Android: Improvements to DocumentProvider Added move and rename methods Provider notifies viewer to refresh view when files are changed Bumped up TargetApi annotation for DocumentsContract.buildTreeDocumentUri. Could alternatively use androidx compat class."

This reverts commit 72db301.

* Fetch translations from Crowdin

* Fetch translations from Crowdin

* Fetch translations from Crowdin

* (rhmap) use custom strdup

* Fetch translations from Crowdin

* Bump robinraju/release-downloader from 1.9 to 1.11

Bumps [robinraju/release-downloader](https://github.com/robinraju/release-downloader) from 1.9 to 1.11.
- [Release notes](https://github.com/robinraju/release-downloader/releases)
- [Commits](robinraju/release-downloader@v1.9...v1.11)

---
updated-dependencies:
- dependency-name: robinraju/release-downloader
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump actions/setup-java from 3 to 4

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump actions/setup-python from 4 to 5

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: libretroadmin <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Eric Warmenhoven <[email protected]>
Co-authored-by: rofl0r <[email protected]>
Co-authored-by: zoltanvb <[email protected]>
Co-authored-by: zoltanvb <[email protected]>
Co-authored-by: Joseph C. Osborn <[email protected]>
Co-authored-by: Ash Logan <[email protected]>
Co-authored-by: schellingb <[email protected]>
Co-authored-by: Jay Paul <[email protected]>
Co-authored-by: Jonathan Rascher <[email protected]>
Co-authored-by: cwyc <[email protected]>
Co-authored-by: LibretroAdmin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
15 people authored Jul 6, 2024
1 parent d11e60b commit 4ab91b0
Show file tree
Hide file tree
Showing 150 changed files with 4,009 additions and 2,637 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/SourceRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI Generate Source Only Tarball

# Trigger whenever a release and/or is created
on:
release:
types:
- created
push:
tags:
- "v*.*"

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
with:
submodules: recursive

- name: archive
id: archive
run: |
VERSION=${GITHUB_REF##*/}
test -z "$VERSION" && VERSION=${{ github.event.release.tag_name }}
VERSION=$(printf "%s\n" "$VERSION" | sed 's/^v//')
PKGNAME="retroarch-sourceonly-$VERSION"
mkdir -p /tmp/$PKGNAME
mv * /tmp/$PKGNAME
mv /tmp/$PKGNAME .
rm -rf $PKGNAME/pkg || true
rm -rf $PKGNAME/wii/libogc || true
rm -rf $PKGNAME/deps/glslang/glslang/Test || true
rm -rf $PKGNAME/deps/SPIRV-Cross/reference || true
rm -rf $PKGNAME/gfx/include/userland || true
find $PKGNAME/ -type f -name '*.a' -delete || true
find $PKGNAME/ -type f -name '*.lib' -delete || true
find $PKGNAME/ -type f -name '*.dylib' -delete || true
find $PKGNAME/ -type f -name '*.so.*' -delete || true
find $PKGNAME/ -type f -name '*.dll' -delete || true
TARBALL=$PKGNAME.tar.xz
tar cJf $TARBALL $PKGNAME
echo "tarball=$TARBALL" >> $GITHUB_OUTPUT
- name: upload tarball
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.archive.outputs.tarball }}
4 changes: 2 additions & 2 deletions .github/workflows/crowdin-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 18
distribution: zulu
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 18
distribution: zulu
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/webOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Download ares-cli-rs
uses: robinraju/release-downloader@v1.9
uses: robinraju/release-downloader@v1.11
with:
repository: "webosbrew/ares-cli-rs"
latest: true
Expand All @@ -32,7 +32,7 @@ jobs:
run: sudo apt-get -yq install ./temp/*.deb

- name: Download webOS NDK
uses: robinraju/release-downloader@v1.9
uses: robinraju/release-downloader@v1.11
with:
repository: "openlgtv/buildroot-nc4"
latest: true
Expand Down
3 changes: 3 additions & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,9 @@ ifeq ($(HAVE_X11), 1)
ifeq ($(HAVE_XCB),1)
LIBS += -lX11-xcb
endif
ifeq ($(HAVE_XSCRNSAVER),1)
LIBS += -lXss
endif
ifneq ($(HAVE_OPENGLES), 1)
OBJ += gfx/drivers_context/x_ctx.o
endif
Expand Down
3 changes: 2 additions & 1 deletion audio/common/alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
#include <alsa/asoundlib.h>
#include <asm-generic/errno.h>

#include "alsa.h"

#include "../audio_driver.h"
#include "../common/alsa.h"
#include "../../verbosity.h"

int alsa_init_pcm(snd_pcm_t **pcm,
Expand Down
5 changes: 3 additions & 2 deletions audio/common/alsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
#define _RETROARCH_ALSA

#include <boolean.h>
#include "queues/fifo_queue.h"
#include "rthreads/rthreads.h"
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>

/* Header file for common functions that are used by alsa and alsathread. */

/**
Expand Down
6 changes: 3 additions & 3 deletions audio/common/alsathread.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

#include <alsa/asoundlib.h>
#include <boolean.h>
#include "queues/fifo_queue.h"
#include "rthreads/rthreads.h"
#include "./alsa.h"
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include "alsa.h"

typedef struct alsa_thread_info
{
Expand Down
1 change: 0 additions & 1 deletion audio/common/mmdevice_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "mmdevice_common.h"
#include "mmdevice_common_inline.h"


char* mmdevice_name(IMMDevice *device)
{
HRESULT hr;
Expand Down
15 changes: 8 additions & 7 deletions audio/common/wasapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@
*/

#include "wasapi.h"
#include <stdio.h>
#ifdef HAVE_MICROPHONE
#include "audio/microphone_driver.h"
#include "../microphone_driver.h"
#endif
#include "queues/fifo_queue.h"
#include "lists/string_list.h"
#include "configuration.h"
#include "verbosity.h"
#include "string/stdstring.h"
#include <string/stdstring.h>
#include <queues/fifo_queue.h>
#include <lists/string_list.h>

#include "mmdevice_common.h"

#include "../../configuration.h"
#include "../../verbosity.h"

const char *hresult_name(HRESULT hr)
{
switch (hr)
Expand Down
6 changes: 3 additions & 3 deletions audio/common/wasapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#ifndef RETROARCH_COMMON_WASAPI_H
#define RETROARCH_COMMON_WASAPI_H

#include "../common/mmdevice_common_inline.h"
#include "boolean.h"
#include "mmdevice_common_inline.h"
#include <boolean.h>

/* Shared buffer size replacement placeholders */
#define WASAPI_SH_BUFFER_AUDIO_LATENCY 0
Expand All @@ -37,4 +37,4 @@ IMMDevice *wasapi_init_device(const char *id, EDataFlow data_flow);
IAudioClient *wasapi_init_client(IMMDevice *device, bool *exclusive,
bool *float_fmt, unsigned *rate, unsigned latency, unsigned channels);

#endif /* RETROARCH_COMMON_WASAPI_H */
#endif /* RETROARCH_COMMON_WASAPI_H */
1 change: 1 addition & 0 deletions audio/microphone_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <audio/conversion/float_to_s16.h>
#include <retro_assert.h>
#include <string/stdstring.h>
#include <lists/string_list.h>
#include <audio/conversion/dual_mono.h>

#include "microphone_driver.h"
Expand Down
Loading

0 comments on commit 4ab91b0

Please sign in to comment.