This commit is contained in:
Viačasłaŭ 2024-10-02 03:36:33 +03:00 committed by GitHub
parent ed574cd059
commit 3019b926c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
103 changed files with 382 additions and 382 deletions

View File

@ -6,7 +6,7 @@ good fbdev implementation. It is derived from the old Android GLES driver.
It was meant to be used on Cubieboard/Cubieboard2/Cubietruck, but it should not
be used on an Odroid X2/U2/U3 where a superior solution (RetroArch exynos video driver) is available.
Fbdev implementation on Odroid harware is missing WAITFORVSYNC ioctl, so use Exynos driver there.
Fbdev implementation on Odroid hardware is missing WAITFORVSYNC ioctl, so use Exynos driver there.
This driver requires MALI r4p0 binary blobs for fbdev, and a kernel compatible with r4p0 binaries.

View File

@ -611,7 +611,7 @@ bool audio_driver_init_internal(
#ifdef HAVE_REWIND
int16_t *rewind_buf = NULL;
#endif
/* Accomodate rewind since at some point we might have two full buffers. */
/* Accommodate rewind since at some point we might have two full buffers. */
size_t outsamples_max = AUDIO_CHUNK_SIZE_NONBLOCKING * 2 * AUDIO_MAX_RATIO * slowmotion_ratio;
int16_t *out_conv_buf = (int16_t*)memalign_alloc(64, outsamples_max * sizeof(int16_t));
size_t audio_buf_length = AUDIO_CHUNK_SIZE_NONBLOCKING * 2 * sizeof(float);

View File

@ -460,7 +460,7 @@ struct string_list *alsa_device_list_type_new(const char* type)
char *io = snd_device_name_get_hint(*n, "IOID");
char *desc = snd_device_name_get_hint(*n, "DESC");
/* description of device IOID - input / output identifcation
/* description of device IOID - input / output identification
* ("Input" or "Output"), NULL means both) */
if (!io || (string_is_equal(io, type)))

View File

@ -257,9 +257,9 @@ int rsd_set_param (rsound_t *rd, enum rsd_settings option, void* param);
void rsd_set_callback (rsound_t *rd, rsd_audio_callback_t callback, rsd_error_callback_t err_callback, size_t max_size, void *userdata);
/* Lock and unlock the callback. When the callback lock is aquired, the callback is guaranteed to not be executing.
/* Lock and unlock the callback. When the callback lock is acquired, the callback is guaranteed to not be executing.
The lock has to be unlocked afterwards.
Attemping to call several rsd_callback_lock() in succession might cause a deadlock.
Attempting to call several rsd_callback_lock() in succession might cause a deadlock.
The lock should be held for as short period as possible.
Try to avoid calling code that may block when holding the lock. */
void rsd_callback_lock (rsound_t *rd);
@ -294,10 +294,10 @@ size_t rsd_write (rsound_t *rd, const void* buf, size_t size);
*NOTE* This function is deprecated, it should not be used in new applications. */
size_t rsd_pointer (rsound_t *rd);
/* Aquires how much data can be written to the buffer without blocking */
/* Acquires how much data can be written to the buffer without blocking */
size_t rsd_get_avail (rsound_t *rd);
/* Aquires the latency at the moment for the audio stream. It is measured in bytes. Useful for syncing video and audio. */
/* Acquires the latency at the moment for the audio stream. It is measured in bytes. Useful for syncing video and audio. */
size_t rsd_delay (rsound_t *rd);
/* Utility for returning latency in milliseconds. */

View File

@ -121,8 +121,8 @@
*/
#define PCM_STATE_RUNNING 0x03
/** For inputs, this means an overrun occured.
* For outputs, this means an underrun occured.
/** For inputs, this means an overrun occurred.
* For outputs, this means an underrun occurred.
*/
#define PCM_STATE_XRUN 0x04
@ -755,13 +755,13 @@ struct pcm
unsigned int running:1;
/** Whether or not the PCM has been prepared */
unsigned int prepared:1;
/** The number of underruns that have occured */
/** The number of underruns that have occurred */
int underruns;
/** Size of the buffer */
unsigned int buffer_size;
/** The boundary for ring buffer pointers */
unsigned int boundary;
/** Description of the last error that occured */
/** Description of the last error that occurred */
char error[PCM_ERROR_MAX];
/** Configuration that was passed to @ref pcm_open */
struct pcm_config config;
@ -845,10 +845,10 @@ static int pcm_get_file_descriptor(const struct pcm *pcm)
return pcm->fd;
}
/** Gets the error message for the last error that occured.
* If no error occured and this function is called, the results are undefined.
/** Gets the error message for the last error that occurred.
* If no error occurred and this function is called, the results are undefined.
* @param pcm A PCM handle.
* @return The error message of the last error that occured.
* @return The error message of the last error that occurred.
* @ingroup libtinyalsa-pcm
*/
static const char* pcm_get_error(const struct pcm *pcm)
@ -1195,7 +1195,7 @@ static int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset,
avail = pcm->buffer_size;
continuous = pcm->buffer_size - *offset;
/* we can only copy frames if the are availabale and continuos */
/* we can only copy frames if the are available and continuous */
copy_frames = *frames;
if (copy_frames > avail)
copy_frames = avail;
@ -1939,8 +1939,8 @@ static int pcm_state(struct pcm *pcm)
* @param pcm A PCM handle.
* @param timeout The maximum amount of time to wait for, in terms of milliseconds.
* @returns If frames became available, one is returned.
* If a timeout occured, zero is returned.
* If an error occured, a negative number is returned.
* If a timeout occurred, zero is returned.
* If an error occurred, a negative number is returned.
* @ingroup libtinyalsa-pcm
*/
static int pcm_wait(struct pcm *pcm, int timeout)

View File

@ -33,7 +33,7 @@
* we approximate those with polynoms
*
* CC_RESAMPLER_PRECISION defines how accurate the approximation is
* a setting of 5 or more means full precison.
* a setting of 5 or more means full precision.
* setting 0 doesn't use a polynom
* setting 1 uses P(X) = X - (3/4)*X^3 + (1/4)*X^5
*

View File

@ -441,7 +441,7 @@ static int rsnd_send_header_info(rsound_t *rd)
return 0;
}
/* Recieves backend info from server that is of interest to the client. (This mini-protocol might be extended later on.) */
/* Receives backend info from server that is of interest to the client. (This mini-protocol might be extended later on.) */
static int rsnd_get_backend_info ( rsound_t *rd )
{
#define RSND_HEADER_SIZE 8
@ -563,7 +563,7 @@ static int rsnd_create_connection(rsound_t *rd)
{
/* Part of the uber simple protocol.
1. Send wave header.
2. Recieve backend info like latency and preferred packet size.
2. Receive backend info like latency and preferred packet size.
3. Starts the playback thread. */
rc = rsnd_send_header_info(rd);
@ -602,7 +602,7 @@ static int rsnd_create_connection(rsound_t *rd)
}
/* Sends a chunk over the network. Makes sure that everything is sent if blocking. Returns -1 if connection is lost, non-negative if success.
* If blocking, and not enough data is recieved, it will return -1. */
* If blocking, and not enough data is received, it will return -1. */
static ssize_t rsnd_send_chunk(int socket, const void* buf, size_t size, int blocking)
{
ssize_t rc = 0;
@ -652,8 +652,8 @@ static ssize_t rsnd_send_chunk(int socket, const void* buf, size_t size, int blo
return (ssize_t)wrote;
}
/* Recieved chunk. Makes sure that everything is recieved if blocking. Returns -1 if connection is lost, non-negative if success.
* If blocking, and not enough data is recieved, it will return -1. */
/* Received chunk. Makes sure that everything is received if blocking. Returns -1 if connection is lost, non-negative if success.
* If blocking, and not enough data is received, it will return -1. */
static ssize_t rsnd_recv_chunk(int socket, void *buf, size_t size, int blocking)
{
ssize_t rc = 0;
@ -1026,7 +1026,7 @@ static int rsnd_update_server_info(rsound_t *rd)
char *tmpstr;
memset(temp, 0, sizeof(temp));
/* We first recieve the small header. We just use the larger buffer as it is disposable. */
/* We first receive the small header. We just use the larger buffer as it is disposable. */
rc = rsnd_recv_chunk(rd->conn.ctl_socket, temp, RSD_PROTO_CHUNKSIZE, 0);
if ( rc == 0 )
break;
@ -1044,7 +1044,7 @@ static int rsnd_update_server_info(rsound_t *rd)
/* The length of the argument message is stored in the small 8 byte header. */
long int len = strtol(substr, NULL, 0);
/* Recieve the rest of the data. */
/* Receive the rest of the data. */
if ( rsnd_recv_chunk(rd->conn.ctl_socket, temp, len, 0) < len )
return -1;

View File

@ -53,7 +53,7 @@ void _init_vita_heap(void) {
goto failure;
}
// Always allocating the max avaliable USER_RW mem on the system
// Always allocating the max available USER_RW mem on the system
SceKernelFreeMemorySizeInfo info;
info.size = sizeof(SceKernelFreeMemorySizeInfo);
sceKernelGetFreeMemorySize(&info);

View File

@ -141,7 +141,7 @@ struct item_cheat
* repeat_add_to_address - every iteration of repeat_count will have this amount added to item_cheat.address
*
* Note that repeat_add_to_address represents the number of "memory_search_size" blocks to add to
* item_cheat.address. If memory_seach_size is 16-bits and repeat_add_to_address is 2, then item_cheat.address
* item_cheat.address. If memory_search_size is 16-bits and repeat_add_to_address is 2, then item_cheat.address
* will be increased by 4 bytes 2*(16-bits) for every iteration.
*
* This is a cheating structure used for codes like unlocking all levels, giving yourself 1 of every item,etc.

View File

@ -782,7 +782,7 @@ void rcheevos_award_achievement(rcheevos_locals_t* locals,
if (!cheevo)
return;
/* Deactivates the acheivement. */
/* Deactivates the achievement. */
rc_runtime_deactivate_achievement(&locals->runtime, cheevo->id);
cheevo->active &= ~RCHEEVOS_ACTIVE_SOFTCORE;

View File

@ -1552,7 +1552,7 @@ void rcheevos_client_initialize_runtime(unsigned game_id,
if (!data)
{
CHEEVOS_LOG(RCHEEVOS_TAG "Failed to allocate runtime initalization data\n");
CHEEVOS_LOG(RCHEEVOS_TAG "Failed to allocate runtime initialization data\n");
return;
}

View File

@ -1262,7 +1262,7 @@
#if defined(RETROFW) || defined(MIYOO)
/*RETROFW jz4760 has signficant slowdown with default settings */
/*RETROFW jz4760 has significant slowdown with default settings */
#define DEFAULT_REWIND_BUFFER_SIZE (1 << 20)
#define DEFAULT_REWIND_BUFFER_SIZE_STEP 1
#define DEFAULT_REWIND_GRANULARITY 6
@ -1517,7 +1517,7 @@
/* Show Menu start-up screen on boot. */
#define DEFAULT_MENU_SHOW_START_SCREEN true
/* Default scale factor for non-frambuffer-based display
/* Default scale factor for non-framebuffer-based display
* drivers and display widgets */
#if defined(VITA)
#define DEFAULT_MENU_SCALE_FACTOR 1.5f

View File

@ -2978,7 +2978,7 @@ void config_set_defaults(void *data)
for (i = 0; i < MAX_USERS; i++)
{
settings->uints.input_joypad_index[i] = (unsigned)i;
#ifdef SWITCH /* Switch prefered default dpad mode */
#ifdef SWITCH /* Switch preferred default dpad mode */
settings->uints.input_analog_dpad_mode[i] = ANALOG_DPAD_LSTICK;
#else
settings->uints.input_analog_dpad_mode[i] = ANALOG_DPAD_NONE;

View File

@ -982,7 +982,7 @@ void CORE_PREFIX(retro_run)(void)
#if ENABLE_HW_ACCEL
/*
* Try to initialize a specific HW decoder defined by type.
* Optionaly tests the pixel format list for a compatible pixel format.
* Optionally tests the pixel format list for a compatible pixel format.
*/
static enum AVPixelFormat init_hw_decoder(struct AVCodecContext *ctx,
const enum AVHWDeviceType type,

View File

@ -56,7 +56,7 @@ static mpv_render_context *mpv_gl;
/* Save the current playback time for context changes */
static int64_t playback_time = 0;
/* filepath required globaly as mpv is reopened on context change */
/* filepath required globally as mpv is reopened on context change */
static char *filepath = NULL;
static volatile int frame_queue = 0;

View File

@ -769,7 +769,7 @@ void processing_heal(uint8_t *src, int width, int height) {
int i;
for (i = 0; i < width * height; i+=1, src += 3, ++fp1) {
/* Tries to filter a bunch of blanked out scanline sections my capture cards spits out with this crazy hack
* Since the blanked out scanlines are set to a black value bellow anything that can be captued, it's quite
* Since the blanked out scanlines are set to a black value bellow anything that can be captured, it's quite
* easy to select the scanlines...
*/
if (src[0] <= 0 && src[1] <= 0 && src[2] <= 0 && i >= width && i <= width * height - width) {
@ -895,7 +895,7 @@ RETRO_API void VIDEOPROC_CORE_PREFIX(retro_run)(void)
VIDEOPROC_CORE_PREFIX(environment_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &outputmode);
VIDEOPROC_CORE_PREFIX(environment_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &frametimes);
/* Video or Audio device(s) has(ve) been changed
* TODO We may get away without reseting devices when changing output mode...
* TODO We may get away without resetting devices when changing output mode...
*/
if ((videodev.value && (strcmp(video_device, videodev.value) != 0)) ||\
(audiodev.value && (strcmp(audio_device, audiodev.value) != 0)) ||\
@ -915,7 +915,7 @@ RETRO_API void VIDEOPROC_CORE_PREFIX(retro_run)(void)
/* printf("%d %d %d %s\n", video_cap_width, video_cap_height, video_buf.field, video_output_mode);
* TODO pass frame_curr to source_* functions
* half_feed_rate allows interlaced intput to be fed at half the calls to this function
* half_feed_rate allows interlaced input to be fed at half the calls to this function
* where the same frame is then read by the deinterlacer twice, for each field
*/
if (video_half_feed_rate == 0) {
@ -943,7 +943,7 @@ RETRO_API void VIDEOPROC_CORE_PREFIX(retro_run)(void)
*/
if (strcmp(video_output_mode, "deinterlaced") == 0) {
processing_bgr_xrgb(frame_cap, frame_curr, video_cap_width, video_cap_height);
/* When deinterlacing a interlaced intput, we need to process both fields of a frame,
/* When deinterlacing a interlaced input, we need to process both fields of a frame,
* one at a time (retro_run needs to be called twice, vide_half_feed_rate prevents the
* source from being read twice...
*/
@ -1260,7 +1260,7 @@ RETRO_API bool VIDEOPROC_CORE_PREFIX(retro_load_game)(const struct retro_game_in
if (strcmp(video_capture_mode, "interlaced") == 0) {
video_out_height = video_cap_height;
} else {
printf("WARNING: Capture mode %s with output mode %s is not properly supported yet... (Is this even usefull?)\n", \
printf("WARNING: Capture mode %s with output mode %s is not properly supported yet... (Is this even useful?)\n", \
video_capture_mode, video_output_mode);
video_out_height = video_cap_height*2;
}

View File

@ -4,7 +4,7 @@
# This script will upload the packaged RetroArch cores to a WiiU running
# FTPiiU or FTPiiU Anywhere
#
# IMPORTANT: This script assumes the following structur
# IMPORTANT: This script assumes the following structure
#
# WARNING: I experienced corrupt uploads when using Dimok's FTPiiU. You
# probably want to use FIX94's FTPiiU Anywhere.

View File

@ -106,7 +106,7 @@ typedef enum
{
CFUserDomainMask = 1, /* user's home directory --- place to install user's personal items (~) */
CFLocalDomainMask = 2, /* local to the current machine --- place to install items available to everyone on this machine (/Library) */
CFNetworkDomainMask = 4, /* publically available location in the local area network --- place to install items available on the network (/Network) */
CFNetworkDomainMask = 4, /* publicly available location in the local area network --- place to install items available on the network (/Network) */
CFSystemDomainMask = 8, /* provided by Apple, unmodifiable (/System) */
CFAllDomainsMask = 0x0ffff /* All domains: all of the above and future items */
} CFDomainMask;

View File

@ -201,7 +201,7 @@ static void mount_partition(void)
if (getMountInfo(mount_path, mountString, mountPoint, new_cwd) != 1)
{
RARCH_WARN("Partition info not readed\n");
RARCH_WARN("Partition info not read\n");
return;
}

View File

@ -1599,7 +1599,7 @@ static void frontend_unix_get_env(int *argc,
sizeof(g_defaults.dirs[DEFAULT_DIR_WALLPAPERS]));
/* This switch tries to handle the different locations for devices with
weird write permissions. Should be largelly unnecesary nowadays. Most
weird write permissions. Should be largelly unnecessary nowadays. Most
devices I have tested are INTERNAL_STORAGE_WRITABLE but better safe than sorry */
switch (storage_permissions)

View File

@ -17,7 +17,7 @@
#define __ANGLE_COMMON_H
#ifdef HAVE_GBM
/* presense or absense of this include makes egl.h change NativeWindowType between gbm_device* and _XDisplay* */
/* presence or absence of this include makes egl.h change NativeWindowType between gbm_device* and _XDisplay* */
#include <gbm.h>
#endif
#include <EGL/egl.h>

View File

@ -232,8 +232,8 @@ typedef struct
D3D12RootSignature cs_rootSignature; /* descriptor layout */
D3D12RootSignature sl_rootSignature; /* descriptor layout */
D3D12RootSignature rootSignature; /* descriptor layout */
d3d12_descriptor_heap_t srv_heap; /* ShaderResouceView descritor heap */
d3d12_descriptor_heap_t rtv_heap; /* RenderTargetView descritor heap */
d3d12_descriptor_heap_t srv_heap; /* ShaderResourceView descriptor heap */
d3d12_descriptor_heap_t rtv_heap; /* RenderTargetView descriptor heap */
d3d12_descriptor_heap_t sampler_heap;
} desc;

View File

@ -542,7 +542,7 @@ bool egl_init_context_common(
if (i == *count)
{
RARCH_ERR("[EGL]: No EGL config found which satifies requirements.\n");
RARCH_ERR("[EGL]: No EGL config found which satisfies requirements.\n");
return false;
}

View File

@ -17,7 +17,7 @@
#define __EGL_COMMON_H
#ifdef HAVE_GBM
/* presense or absense of this include makes egl.h change NativeWindowType between gbm_device* and _XDisplay* */
/* presence or absence of this include makes egl.h change NativeWindowType between gbm_device* and _XDisplay* */
#include <gbm.h>
#endif
#include <EGL/egl.h>

View File

@ -210,7 +210,7 @@ static void vulkan_emulated_mailbox_loop(void *userdata)
/* VK_SUBOPTIMAL_KHR can be returned on Android 10
* when prerotate is not dealt with.
* It can also be returned by WSI when the surface
* is _temorarily_ suboptimal.
* is _temporarily_ suboptimal.
* This is not an error we need to care about,
* and we'll treat it as SUCCESS. */
if (mailbox->result == VK_SUBOPTIMAL_KHR)
@ -2218,7 +2218,7 @@ bool vulkan_create_swapchain(gfx_ctx_vulkan_data_t *vk,
/* We don't clamp the number of images requested to what is reported
* as supported by the implementation in surface_properties.minImageCount,
* because MESA always reports a minImageCount of 4, but 3 and 2 work
* pefectly well, even if it's out of spec. */
* perfectly well, even if it's out of spec. */
if ( (surface_properties.maxImageCount > 0)
&& (desired_swapchain_images > surface_properties.maxImageCount))
@ -2613,7 +2613,7 @@ void vulkan_present(gfx_ctx_vulkan_data_t *vk, unsigned index)
/* VK_SUBOPTIMAL_KHR can be returned on
* Android 10 when prerotate is not dealt with.
* It can also be returned by WSI when the surface
* is _temorarily_ suboptimal.
* is _temporarily_ suboptimal.
* This is not an error we need to care about,
* and we'll treat it as SUCCESS. */
if (result == VK_SUBOPTIMAL_KHR)

View File

@ -775,7 +775,7 @@ bool gfx_ctx_wl_init_common(
/* Bind SHM based wl_buffer to wl_surface until the vulkan surface is ready.
* This shows the window which assigns us a display (wl_output)
* which is usefull for HiDPI and auto selecting a display for fullscreen. */
* which is useful for HiDPI and auto selecting a display for fullscreen. */
if (video_monitor_index == 0 && wl_list_length (&wl->all_outputs) > 1)
{
if (!wl_draw_splash_screen(wl))

View File

@ -25,7 +25,7 @@
#define COBJMACROS
#define COBJMACROS_DEFINED
#endif
/* We really just want shobjidl.h, but there's no way to detect its existance at compile time (especially with mingw). however shlobj happens to include it for us when it's supported, which is easier. */
/* We really just want shobjidl.h, but there's no way to detect its existence at compile time (especially with mingw). however shlobj happens to include it for us when it's supported, which is easier. */
#include <shlobj.h>
#ifdef COBJMACROS_DEFINED
#undef COBJMACROS

View File

@ -55,7 +55,7 @@ struct dispmanx_surface
struct dispmanx_page *pages;
/* the page that's currently on screen */
struct dispmanx_page *current_page;
/*The page to wich we will dump the render. We need to know this
/* The page where we will dump the render. We need to know this
* already when we enter the surface update function. No time to wait
* for free pages before blitting and showing the just rendered frame! */
struct dispmanx_page *next_page;
@ -156,7 +156,7 @@ static struct dispmanx_page *dispmanx_get_free_page(struct dispmanx_video *_disp
}
}
/* We mark the choosen page as used */
/* We mark the chosen page as used */
slock_lock(page->page_used_mutex);
page->used = true;
slock_unlock(page->page_used_mutex);
@ -202,7 +202,7 @@ static void dispmanx_surface_free(struct dispmanx_video *_dispvars,
struct dispmanx_surface *surface = *sp;
/* What if we run into the vsync cb code after freeing the surface?
* We could be trying to get non-existant lock, signal non-existant condition..
* We could be trying to get non-existent lock, signal non-existent condition..
* So we wait for any pending flips to complete before freeing any surface. */
slock_lock(_dispvars->pending_mutex);
if (_dispvars->pageflip_pending > 0)
@ -276,7 +276,7 @@ static void dispmanx_surface_setup(struct dispmanx_video *_dispvars,
dst_height = _dispvars->dispmanx_height;
/* If we obtain a scaled image width that is bigger than the physical screen width,
* then we keep the physical screen width as our maximun width. */
* then we keep the physical screen width as our maximum width. */
if (dst_width > _dispvars->dispmanx_width)
dst_width = _dispvars->dispmanx_width;
@ -376,7 +376,7 @@ static void dispmanx_blank_console (struct dispmanx_video *_dispvars)
-1,
&_dispvars->back_surface);
/* Updating 1-page surface synchronously asks for truble, since the 1st CB will
/* Updating 1-page surface synchronously causes problems, since the 1st CB will
* signal but not free because the only page is on screen, so get_free will wait forever. */
dispmanx_surface_update_async(image, _dispvars->back_surface);
}

View File

@ -272,7 +272,7 @@ static void drm_surface_setup(void *data, int src_width, int src_height,
static void drm_page_flip(struct drm_surface *surface)
{
/* We alredy have the id of the FB_ID property of
/* We already have the id of the FB_ID property of
* the plane on which we are going to do a pageflip:
* we got it back in drm_plane_setup() */
static drmModeAtomicReqPtr req = NULL;
@ -517,7 +517,7 @@ static void drm_plane_setup(struct drm_surface *surface)
uint32_t plane_w = drm.current_mode->vdisplay * surface->aspect;
uint32_t plane_h = drm.current_mode->vdisplay;
/* If we obtain a scaled image width that is bigger than the physical screen width,
* then we keep the physical screen width as our maximun width. */
* then we keep the physical screen width as our maximum width. */
if (plane_w > drm.current_mode->hdisplay)
plane_w = drm.current_mode->hdisplay;
@ -796,7 +796,7 @@ static void drm_set_texture_enable(void *data, bool state, bool full_screen)
/* If menu was active but it's not anymore... */
if (!state && _drmvars->menu_active)
{
/* We tell ony the plane we have to read from the main surface again */
/* We tell only the plane we have to read from the main surface again */
drm_plane_setup(_drmvars->main_surface);
/* We free the menu surface buffers */
drm_surface_free(_drmvars, &_drmvars->menu_surface);

View File

@ -3447,7 +3447,7 @@ static bool gl2_frame(void *data, const void *frame,
if ( (img_width > fbo_rect->width)
|| (img_height > fbo_rect->height))
{
/* Check proactively since we might suddently
/* Check proactively since we might suddenly
* get sizes of tex_w width or tex_h height. */
unsigned max = img_width > img_height ? img_width : img_height;
unsigned pow2_size = next_pow2(max);

View File

@ -141,7 +141,7 @@ static bool oga_create_display(oga_video_t* vid)
vid->connector_id = connector->connector_id;
/* Find prefered mode */
/* Find preferred mode */
for (i = 0; i < connector->count_modes; i++)
{
drmModeModeInfo *current_mode = &connector->modes[i];

View File

@ -214,7 +214,7 @@ static void gfx_display_rsx_draw(gfx_display_ctx_draw_t *draw,
texture->wrap_t, GCM_TEXTURE_CLAMP_TO_EDGE, 0, GCM_TEXTURE_ZFUNC_LESS, 0);
#if RSX_MAX_TEXTURE_VERTICES > 0
/* Using preallocated texture vertices uses better memory managment but may cause more flickering */
/* Using preallocated texture vertices uses better memory management but may cause more flickering */
end_vert_idx = rsx->texture_vert_idx + draw->coords->vertices;
if (end_vert_idx > RSX_MAX_TEXTURE_VERTICES)
{
@ -1154,7 +1154,7 @@ static gcmContextData *rsx_init_screen(rsx_t* gcm)
if (!saved_context)
{
/* Allocate a 1MB buffer, alligned to a 1MB boundary
/* Allocate a 1MB buffer, aligned to a 1MB boundary
* to be our shared I/O memory with the RSX. */
void *host_addr = memalign(1024*1024, HOST_SIZE);

View File

@ -493,7 +493,7 @@ void pixman_composite_src_8888_8888_asm_neon(int width,
uint16_t *src,
int src_stride_pixels);
/* Pointer to the blitting function. Will be asigned
/* Pointer to the blitting function. Will be assigned
* when we find out what bpp the core uses. */
void (*pixman_blit) (int width,
int height,

View File

@ -471,7 +471,7 @@ static void gfx_cpy_dsp_buf(uint32_t *buffer, uint32_t *image, int w, int h, uin
}
}
/* needed to clear surface completely as hw scaling doesn't always scale to full resoution perflectly */
/* needed to clear surface completely as hw scaling doesn't always scale to full resolution perflectly */
static void clear_screen(switch_video_t *sw)
{
nwindowSetDimensions(sw->win, sw->vp.full_width, sw->vp.full_height);

View File

@ -122,7 +122,7 @@ const mat3 k2020toExpanded709 = mat3 (
* by normalizing the values using the defined nits for paper white. According to SDR specs, paper white
* is 80 nits, but that is paper white in a cinema with a dark environment, and is perceived as grey on
* a display in office and living room environments. This value should be tuned according to the nits
* that the consumer perceives as white in his living room, e.g. 200 nits. As refernce, PC monitors is
* that the consumer perceives as white in his living room, e.g. 200 nits. As reference, PC monitors is
* normally in the range 200-300 nits, SDR TVs 150-250 nits.
*/
vec3 NormalizeHDRSceneValue(vec3 hdrSceneValue)

View File

@ -21,7 +21,7 @@ vec3 rgb565_to_rgb888(uint word)
void main()
{
// We work on two horizonal pixels in parallel since we cannot rely on 16-bit storage.
// We work on two horizontal pixels in parallel since we cannot rely on 16-bit storage.
uvec2 first_input_pixel = gl_GlobalInvocationID.xy;
uvec2 first_output_pixel = first_input_pixel * uvec2(2, 1);

View File

@ -676,7 +676,7 @@ static void *xv_init(const video_info_t *video,
else if (ret == XvBadAlloc)
RARCH_ERR("[XVideo]: XvQueryAdaptors() failed to allocate memory.\n");
else
RARCH_ERR("[XVideo]: Unkown error in XvQueryAdaptors().\n");
RARCH_ERR("[XVideo]: Unknown error in XvQueryAdaptors().\n");
goto error;
}

View File

@ -320,7 +320,7 @@ static void *font_renderer_ft_init(const char *font_path, float font_size)
locale_boxed.type = FcTypeString;
locale_boxed.u.s = locale;
/* Override locale settins, since we are not using the system locale */
/* Override locale settings, since we are not using the system locale */
FcPatternAdd(pattern, FC_LANG, locale_boxed, false);
/* Let's find the best matching font given our search criteria */

View File

@ -1148,7 +1148,7 @@ bool gfx_animation_ticker(gfx_animation_ctx_ticker_t *ticker)
}
/* Note: If we reach this point then str_len > ticker->len
* (previously had an unecessary 'if (str_len > ticker->len)'
* (previously had an unnecessary 'if (str_len > ticker->len)'
* check here...) */
switch (ticker->type_enum)
{

View File

@ -677,8 +677,8 @@ void gfx_display_draw_texture_slice(
draw.x = 0;
draw.y = 0;
/* vertex coords are specfied bottom-up in this order: BL BR TL TR */
/* texture coords are specfied top-down in this order: BL BR TL TR */
/* vertex coords are specified bottom-up in this order: BL BR TL TR */
/* texture coords are specified top-down in this order: BL BR TL TR */
/* If someone wants to change this to not draw several times, the
* coordinates will need to be modified because of the triangle strip usage. */

View File

@ -576,7 +576,7 @@ typedef struct gfx_ctx_driver
gfx_ctx_proc_t (*get_proc_address)(const char*);
/* Returns true if this context supports EGLImage buffers for
* screen drawing and was initalized correctly. */
* screen drawing and was initialized correctly. */
bool (*image_buffer_init)(void*, const video_info_t*);
/* Writes the frame to the EGLImage and sets image_handle to it.

View File

@ -450,7 +450,7 @@ rarch_softfilter_t *rarch_softfilter_new(const char *filter_config,
#endif
if (!append_softfilter_plugs(filt, plugs))
{
RARCH_ERR("[SoftFitler]: Failed to append softfilter plugins...\n");
RARCH_ERR("[SoftFilter]: Failed to append softfilter plugins...\n");
goto error;
}
@ -461,7 +461,7 @@ rarch_softfilter_t *rarch_softfilter_new(const char *filter_config,
if (!create_softfilter_graph(filt, in_pixel_format,
max_width, max_height, cpu_features, threads))
{
RARCH_ERR("[SoftFitler]: Failed to create softfilter graph...\n");
RARCH_ERR("[SoftFilter]: Failed to create softfilter graph...\n");
goto error;
}

View File

@ -225,7 +225,7 @@ static void init( init_t* impl, snes_ntsc_setup_t const* setup )
(float) pow( i * to_float, gamma ) * impl->contrast + impl->brightness;
}
/* setup decoder matricies */
/* setup decoder matrices */
{
float hue = (float) setup->hue * PI + PI / 180 * ext_decoder_hue;
float sat = (float) setup->saturation + 1;

View File

@ -478,7 +478,7 @@ static void wl_touch_handle_frame(void *data, struct wl_touch *wl_touch) { }
static void wl_touch_handle_cancel(void *data, struct wl_touch *wl_touch)
{
/* If i understand the spec correctly we have to reset all touches here
* since they were not ment for us anyway */
* since they were not meant for us anyway */
int i;
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;

View File

@ -398,7 +398,7 @@ static int wiimote_handshake(struct connect_wii_wiimote_t* wm,
{
case 0:
/* no ha habido nunca handshake, debemos forzar un
* mensaje de staus para ver que pasa. */
* mensaje de status para ver que pasa. */
WIIMOTE_ENABLE_STATE(wm, WIIMOTE_STATE_HANDSHAKE);
wiimote_set_leds(wm, WIIMOTE_LED_NONE);
@ -439,7 +439,7 @@ static int wiimote_handshake(struct connect_wii_wiimote_t* wm,
WIIMOTE_DISABLE_STATE(wm, WIIMOTE_STATE_HANDSHAKE_COMPLETE);
/* forzamos un handshake por si venimos
* de un hanshake completo. */
* de un handshake completo. */
WIIMOTE_ENABLE_STATE(wm, WIIMOTE_STATE_HANDSHAKE);
}
@ -478,7 +478,7 @@ static int wiimote_handshake(struct connect_wii_wiimote_t* wm,
{
WIIMOTE_DISABLE_STATE(wm, WIIMOTE_STATE_HANDSHAKE_COMPLETE);
/* forzamos un handshake por si venimos
* de un hanshake completo. */
* de un handshake completo. */
WIIMOTE_ENABLE_STATE(wm, WIIMOTE_STATE_HANDSHAKE);
}
}

View File

@ -175,7 +175,7 @@ static void update_analog_state(gca_pad_data_t *pad)
int pad_axis;
/* GameCube analog axis are 8-bit unsigned, where 128/128 is center.
* So, we subtract 128 to get a signed, 0-based value and then mulitply
* So, we subtract 128 to get a signed, 0-based value and then multiply
* by 256 to get the 16-bit range RetroArch expects. */
for (pad_axis = 0; pad_axis < 4; pad_axis++)
{

View File

@ -81,7 +81,7 @@ typedef struct rwebinput_input
} rwebinput_input_t;
/* KeyboardEvent.keyCode has been deprecated for a while and doesn't have
* separate left/right modifer codes, so we have to map string labels from
* separate left/right modifier codes, so we have to map string labels from
* KeyboardEvent.code to retro keys */
static const rwebinput_key_to_code_map_entry_t rwebinput_key_to_code_map[] =
{

View File

@ -96,7 +96,7 @@
/* Define this to use direct printf debug messages. */
/*#define UDEV_TOUCH_PRINTF_DEBUG*/
/* Define this to add more deep debugging messages - performace will suffer... */
/* Define this to add more deep debugging messages - performance will suffer... */
/*#define UDEV_TOUCH_DEEP_DEBUG*/
/* TODO - Temporary debugging using direct printf */
@ -401,7 +401,7 @@ typedef struct
udev_slot_state_t *current;
uint16_t current_active;
/* Timestamp of when the last touch state update ocurred */
/* Timestamp of when the last touch state update occurred */
udev_touch_ts_t last_state_update;
/* Simulated pointer / touchscreen */
@ -1884,7 +1884,7 @@ static bool udev_translate_touch_pos(
/*
* TODO - This keeps the precision, but might result in +-1 pixel difference
* One way to fix this is to add or remove 0.5, but this needs floating
* point operations which might not be desireable.
* point operations which might not be desirable.
*/
int32_t ma_pos_x = (((((pointer_pos_x + src_touch->info_x_limits.min) * 0x7fff) / src_touch->info_x_limits.range) * target_vp->full_width) / 0x7fff);
int32_t ma_pos_y = (((((pointer_pos_y + src_touch->info_y_limits.min) * 0x7fff) / src_touch->info_y_limits.range) * target_vp->full_height) / 0x7fff);
@ -2420,10 +2420,10 @@ static void udev_report_touch(udev_input_t *udev, udev_input_device_t *dev)
RARCH_ERR("[udev] Cannot report touch up since there are no active points!\n");
}
/* Letting go of the primary gesture point -> Wait for full relese */
/* Letting go of the primary gesture point -> Wait for full release */
if (iii == touch->gest_primary_slot)
touch->gest_primary_slot = UDEV_INPUT_TOUCH_TRACKING_ID_NONE;
/* Letting go of the secondary gesture point -> Wait for full relese */
/* Letting go of the secondary gesture point -> Wait for full release */
if (iii == touch->gest_secondary_slot)
touch->gest_secondary_slot = UDEV_INPUT_TOUCH_TRACKING_ID_NONE;
@ -3237,7 +3237,7 @@ static int udev_input_add_device(udev_input_t *udev,
mouse = 1;
if (!test_bit(keycaps, BTN_MOUSE))
RARCH_DBG("[udev]: Waring REL pointer device (%s) has no mouse button\n",device->ident);
RARCH_DBG("[udev]: Warning REL pointer device (%s) has no mouse button\n",device->ident);
}
}

View File

@ -112,7 +112,7 @@ static int16_t wiiu_input_state(
case RETRO_DEVICE_POINTER:
case RARCH_DEVICE_POINTER_SCREEN:
/* TODO: Emulate a relative mouse.
* This is suprisingly hard to get working nicely.
* This is surprisingly hard to get working nicely.
*/
switch (id)
{

View File

@ -454,7 +454,7 @@ extern const hci_cmd_t rfcomm_register_service;
extern const hci_cmd_t rfcomm_register_service_with_initial_credits;
/* unregister rfcomm service, @param service_channel(16) */
extern const hci_cmd_t rfcomm_unregister_service;
/* request persisten rfcomm channel for service name: serive name (char*) */
/* request persistent rfcomm channel for service name: serive name (char*) */
extern const hci_cmd_t rfcomm_persistent_channel_for_service;
/* linked_list.h */

View File

@ -261,7 +261,7 @@ static int udev_add_pad(struct udev_device *dev, unsigned p, int fd, const char
by testing if the axis initial value is negative, allowing for
for some slop (1300 =~ 4%) in an axis centred around 0.
The actual work is done in udev_joypad_axis.
All bets are off if you're sitting on it. Reinitailise it by unpluging
All bets are off if you're sitting on it. Reinitialise it by unpluging
and plugging back in. */
if (udev_compute_axis(abs, abs->value) < -1300)
pad->neg_trigger[i] = true;

View File

@ -16,7 +16,7 @@
/* Support 360 controllers on Windows.
* Said controllers do show under DInput but they have limitations in this mode;
* The triggers are combined rather than seperate and it is not possible to use
* The triggers are combined rather than separate and it is not possible to use
* the guide button.
*
* Some wrappers for other controllers also simulate xinput (as it is easier to implement)
@ -94,7 +94,7 @@ static xinput_joypad_state g_xinput_states[4];
/* Buttons are provided by XInput as bits of a uint16.
* Map from rarch button index (0..10) to a mask to
* bitwise-& the buttons against.
* dpad is handled seperately. */
* dpad is handled separately. */
static const uint16_t button_index_to_bitmap_code[] = {
XINPUT_GAMEPAD_A,
XINPUT_GAMEPAD_B,

View File

@ -16,7 +16,7 @@
/* Support 360 controllers on Windows.
* Said controllers do show under DInput but they have limitations in this mode;
* The triggers are combined rather than seperate and it is not possible to use
* The triggers are combined rather than separate and it is not possible to use
* the guide button.
*
* Some wrappers for other controllers also simulate xinput (as it is easier to implement)
@ -75,7 +75,7 @@ static xinput_joypad_state g_xinput_states[4];
/* Buttons are provided by XInput as bits of a uint16.
* Map from rarch button index (0..10) to a mask to
* bitwise-& the buttons against.
* dpad is handled seperately. */
* dpad is handled separately. */
static const uint16_t button_index_to_bitmap_code[] = {
XINPUT_GAMEPAD_A,
XINPUT_GAMEPAD_B,

View File

@ -31,7 +31,7 @@ static bool load_xinput_dll(void)
* wrapper DLL (such as x360ce); support these by checking
* the working directory first.
*
* No need to check for existance as we will be checking dylib_load's
* No need to check for existence as we will be checking dylib_load's
* success anyway.
*/

View File

@ -121,7 +121,7 @@ enum {
};
/*
* Meta key / modifer state.
* Meta key / modifier state.
*/
enum {
AMETA_CTRL_ON = 0x1000,

View File

@ -4344,7 +4344,7 @@ bool input_set_rumble_state(unsigned port,
unsigned joy_idx = settings->uints.input_joypad_index[port];
uint16_t scaled_strength = strength;
/* If gain setting is not suported, do software gain control */
/* If gain setting is not supported, do software gain control */
if (input_driver_st.primary_joypad)
{
if (!input_driver_st.primary_joypad->set_rumble_gain)
@ -5700,7 +5700,7 @@ void bsv_movie_frame_rewind(void)
* However, playing back that frame caused us to read data, and push
* data to the ring buffer.
*
* Sucessively rewinding frames, we need to rewind past the read data,
* Successively rewinding frames, we need to rewind past the read data,
* plus another. */
uint8_t delta = handle->first_rewind ? 1 : 2;
if (handle->frame_counter >= delta)

View File

@ -333,7 +333,7 @@ struct input_driver
/**
* Queries state for a specified control on a specified input port. This
* function pointer can be set to NULL if not supported by the input driver,
* for example if a joypad driver is responsible for quering state for a
* for example if a joypad driver is responsible for querying state for a
* particular driver/platform.
*
* @param joypad_data Input state struct, defined by the input driver
@ -395,7 +395,7 @@ struct input_driver
/**
* Retrieves the sensor state associated with the provided port and ID. This
* function pointer may be set to NULL if retreiving sensor state is not
* function pointer may be set to NULL if retrieving sensor state is not
* supported.
*
* @param data

View File

@ -10274,7 +10274,7 @@ MSG_HASH(
)
MSG_HASH(
MENU_ENUM_LABEL_CHEEVOS_SERVER_RECONNECTED,
"All pending requests have succesfully been synced to the RetroAchievements server."
"All pending requests have successfully been synced to the RetroAchievements server."
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_CHEEVOS_IDENTIFYING_GAME,

View File

@ -222,7 +222,7 @@ static void create_filter(struct eq_data *eq, unsigned size_log2,
time_filter[i] = tmp;
}
/* Apply a window to smooth out the frequency repsonse. */
/* Apply a window to smooth out the frequency response. */
for (i = 0; i < (int)eq->block_size; i++)
{
/* Kaiser window. */

View File

@ -650,7 +650,7 @@ void path_parent_dir(char *path, size_t len)
/* We removed the only slash from what used to be an absolute path.
* On Linux, this goes from "/" to an empty string and everything works fine,
* but on Windows, we went from C:\ to C:, which is not a valid path and that later
* gets errornously treated as a relative one by path_basedir and returns "./".
* gets erroneously treated as a relative one by path_basedir and returns "./".
* What we really wanted is an empty string. */
path[0] = '\0';
return;
@ -722,8 +722,8 @@ bool path_is_absolute(const char *path)
|| string_starts_with_size(path + 1, ":\\", STRLEN_CONST(":\\")));
#elif defined(__wiiu__) || defined(VITA)
{
const char *seperator = strchr(path, ':');
return (seperator && (seperator[1] == '/'));
const char *separator = strchr(path, ':');
return (separator && (separator[1] == '/'));
}
#endif
}
@ -746,7 +746,7 @@ bool path_is_absolute(const char *path)
* Note: Symlinks are only resolved on Unix-likes
* Note: The current working dir might not be what you expect,
* e.g. on Android it is "/"
* Use of fill_pathname_resolve_relative() should be prefered
* Use of fill_pathname_resolve_relative() should be preferred
**/
char *path_resolve_realpath(char *buf, size_t size, bool resolve_symlinks)
{

View File

@ -1322,7 +1322,7 @@ static void rjpeg_jpeg_reset(rjpeg_jpeg *j)
j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff;
j->eob_run = 0;
/* no more than 1<<31 MCUs if no restart_interal? that's plenty safe,
/* no more than 1<<31 MCUs if no restart_interval? that's plenty safe,
* since we don't even allow 1<<30 pixels */
}

View File

@ -4,7 +4,7 @@
cdrom.c
Generic MAME CD-ROM utilties - build IDE and SCSI CD-ROMs on top of this
Generic MAME CD-ROM utilities - build IDE and SCSI CD-ROMs on top of this
****************************************************************************

View File

@ -485,7 +485,7 @@ typedef gz_header FAR *gz_headerp;
instead use raw inflate, see inflateInit2() below, or inflateBack() and
perform their own processing of the gzip header and trailer. When processing
gzip-wrapped deflate data, strm->adler32 is set to the CRC-32 of the output
producted so far. The CRC-32 is checked against the gzip trailer.
produced so far. The CRC-32 is checked against the gzip trailer.
inflate() returns Z_OK if some progress has been made (more input processed
or more output produced), Z_STREAM_END if the end of the compressed data has
@ -844,7 +844,7 @@ typedef gz_header FAR *gz_headerp;
to dictionary. dictionary must have enough space, where 32768 bytes is
always enough. If inflateGetDictionary() is called with dictionary equal to
Z_NULL, then only the dictionary length is returned, and nothing is copied.
Similary, if dictLength is Z_NULL, then it is not set.
Similarly, if dictLength is Z_NULL, then it is not set.
inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
stream state is inconsistent.
@ -1414,7 +1414,7 @@ typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
If the flush parameter is Z_FINISH, the remaining data is written and the
gzip stream is completed in the output. If gzwrite() is called again, a new
gzip stream will be started in the output. gzread() is able to read such
concatented gzip streams.
concatenated gzip streams.
gzflush should be called only when strictly necessary because it will
degrade compression if called too often.

View File

@ -222,7 +222,7 @@ void path_parent_dir(char *path, size_t len);
* Note: Symlinks are only resolved on Unix-likes
* Note: The current working dir might not be what you expect,
* e.g. on Android it is "/"
* Use of fill_pathname_resolve_relative() should be prefered
* Use of fill_pathname_resolve_relative() should be preferred
**/
char *path_resolve_realpath(char *buf, size_t size, bool resolve_symlinks);

View File

@ -106,7 +106,7 @@ const char *rjson_get_error(rjson_t *json);
void rjson_set_error(rjson_t *json, const char* error);
/* Functions to get the current position in the source stream as well as */
/* a bit of source json arround the current position for additional detail
/* a bit of source json around the current position for additional detail
* when parsing has failed with RJSON_ERROR.
* Intended to be used with printf style formatting like:
* printf("Invalid JSON at line %d, column %d - %s - Source: ...%.*s...\n",

View File

@ -219,7 +219,7 @@ extern "C" {
#define RETRO_DEVICE_KEYBOARD 3
/**
* An abstraction around a light gun, simular to the PlayStation's Guncon.
* An abstraction around a light gun, similar to the PlayStation's Guncon.
*
* When provided as the \c device argument to \c retro_input_state_t,
* the \c id argument denotes one of several possible inputs.
@ -1094,7 +1094,7 @@ enum retro_mod
* to write audio. The audio callbacks must be called from within the
* notification callback.
* The amount of audio data to write is up to the core.
* Generally, the audio callback will be called continously in a loop.
* Generally, the audio callback will be called continuously in a loop.
*
* A frontend may disable this callback in certain situations.
* The core must be able to render audio with the "normal" interface.
@ -1332,7 +1332,7 @@ enum retro_mod
* <li>Changing the emulated system's internal resolution,
* within the limits defined by the existing values of \c max_width and \c max_height.
* Use \c RETRO_ENVIRONMENT_SET_GEOMETRY instead,
* and adjust \c retro_get_system_av_info to account fo
* and adjust \c retro_get_system_av_info to account for
* supported scale factors and screen layouts
* when computing \c max_width and \c max_height.
* Only use this environment call if \c max_width or \c max_height needs to increase.
@ -5174,14 +5174,14 @@ struct retro_hw_render_callback
* character is the text character of the pressed key. (UTF-32).
* key_modifiers is a set of RETROKMOD values or'ed together.
*
* The pressed/keycode state can be indepedent of the character.
* The pressed/keycode state can be independent of the character.
* It is also possible that multiple characters are generated from a
* single keypress.
* Keycode events should be treated separately from character events.
* However, when possible, the frontend should try to synchronize these.
* If only a character is posted, keycode should be RETROK_UNKNOWN.
*
* Similarily if only a keycode event is generated with no corresponding
* Similarly if only a keycode event is generated with no corresponding
* character, character should be 0.
*/
typedef void (RETRO_CALLCONV *retro_keyboard_event_t)(bool down, unsigned keycode,
@ -5732,7 +5732,7 @@ struct retro_message
enum retro_message_target
{
/**
* Indicates that the frontent should display the given message
* Indicates that the frontend should display the given message
* using all other targets defined by \c retro_message_target at once.
*/
RETRO_MESSAGE_TARGET_ALL = 0,
@ -5923,7 +5923,7 @@ struct retro_message_ext
/**
* The progress of an asynchronous task.
*
* A value betwen 0 and 100 (inclusive) indicates the task's percentage,
* A value between 0 and 100 (inclusive) indicates the task's percentage,
* and a value of -1 indicates a task of unknown completion.
*
* @note Since message type is a hint, a frontend may ignore progress values.

View File

@ -172,8 +172,8 @@ struct retro_hw_render_context_negotiation_interface_vulkan
* of the frontend is destroyed if create_device was called successfully so that the core has a chance of
* tearing down its own device resources.
*
* Only auxillary resources should be freed here, i.e. resources which are not part of retro_vulkan_context.
* v2: Auxillary instance resources created during create_instance can also be freed here.
* Only auxiliary resources should be freed here, i.e. resources which are not part of retro_vulkan_context.
* v2: Auxiliary instance resources created during create_instance can also be freed here.
*/
retro_vulkan_destroy_device_t destroy_device;
@ -373,7 +373,7 @@ struct retro_hw_render_interface_vulkan
* The frontend will always release ownership back to src_queue_family.
* Waiting for frontend to complete with wait_sync_index() ensures that
* the frontend has released ownership back to the application.
* Note that in Vulkan, transfering ownership is a two-part process.
* Note that in Vulkan, transferring ownership is a two-part process.
*
* Example frame:
* - core releases ownership from src_queue_index to queue_index with VkImageMemoryBarrier.
@ -431,7 +431,7 @@ struct retro_hw_render_interface_vulkan
*
* While this value will typically remain constant throughout the
* applications lifecycle, it may for example change if the frontend
* suddently changes fullscreen state and/or latency.
* suddenly changes fullscreen state and/or latency.
*
* If this value ever changes, it is safe to assume that the device
* is completely idle and all synchronization objects can be deleted

View File

@ -285,7 +285,7 @@ void linked_list_iterator_free(linked_list_iterator_t *iterator);
/**
* @brief Apply the provided function to all values in the linked list
*
* Apply the provied function to all values in the linked list. The values are applied
* Apply the provided function to all values in the linked list. The values are applied
* in the forward direction. Does nothing if "list" is NULL.
*
* @param list linked list to apply the function to

View File

@ -125,7 +125,7 @@ or obscure compilers */
I would like to see retro_inline.h moved in here; possibly boolean too.
rationale: these are used in public APIs, and it is easier to find problems
and write code that works the first time portably when theyre included uniformly
and write code that works the first time portably when they are included uniformly
than to do the analysis from scratch each time you think you need it, for each feature.
Moreover it helps force you to make hard decisions: if you EVER bring in boolean.h,

View File

@ -63,9 +63,9 @@ tpool_t *tpool_create(size_t num);
* tpool_destroy:
* @tp : Thread pool.
*
* Destory a thread pool
* Destroy a thread pool
* The pool can be destroyed while there is outstanding work to process. All
* outstanding unprocessed work will be discareded. There may be a delay before
* outstanding unprocessed work will be discarded. There may be a delay before
* this function returns because it will block for work that is processing to
* complete.
**/

View File

@ -250,7 +250,7 @@ size_t word_wrap_wideglyph(
/**
* string_tokenize:
*
* Splits string into tokens seperated by @delim
* Splits string into tokens separated by @delim
* > Returned token string must be free()'d
* > Returns NULL if token is not found
* > After each call, @str is set to the position after the

View File

@ -389,7 +389,7 @@ bool addr_6to4(struct sockaddr_storage *addr)
{
#ifdef HAVE_INET6
/* ::ffff:a.b.c.d */
static const uint16_t preffix[] = {0,0,0,0,0,0xffff};
static const uint16_t prefix[] = {0,0,0,0,0,0xffff};
uint32_t address;
uint16_t port;
struct sockaddr_in6 *addr6 = (struct sockaddr_in6*)addr;
@ -402,14 +402,14 @@ bool addr_6to4(struct sockaddr_storage *addr)
return true;
case AF_INET6:
/* Is the address provided an IPv4? */
if (!memcmp(&addr6->sin6_addr, preffix, sizeof(preffix)))
if (!memcmp(&addr6->sin6_addr, prefix, sizeof(prefix)))
break;
default:
/* We don't know how to handle this. */
return false;
}
memcpy(&address, ((uint8_t*)&addr6->sin6_addr) + sizeof(preffix),
memcpy(&address, ((uint8_t*)&addr6->sin6_addr) + sizeof(prefix),
sizeof(address));
port = addr6->sin6_port;

View File

@ -684,7 +684,7 @@ bool scond_wait_timeout(scond_t *cond, slock_t *lock, int64_t timeout_us)
* of the minimum length */
/* The implementation of a 0 timeout here with pthreads is sketchy.
* It isn't clear what happens if pthread_cond_timedwait is called with NOW.
* Moreover, it is possible that this thread gets pre-empted after the
* Moreover, it is possible that this thread gets preempted after the
* clock_gettime but before the pthread_cond_timedwait.
* In order to help smoke out problems caused by this strange usage,
* let's treat a 0 timeout as always timing out.

View File

@ -410,7 +410,7 @@ if __name__ == '__main__':
print('Your file looks like it already is v2? (' + file + ')')
continue
if 0 > test:
print('An error occured! Please make sure to use the complete v1 struct! (' + file + ')')
print('An error occurred! Please make sure to use the complete v1 struct! (' + file + ')')
continue
else:
print(file + ' not found.')

View File

@ -453,7 +453,7 @@ if __name__ == '__main__':
print('Your file looks like it already is v2? (' + file + ')')
continue
if 0 > test:
print('An error occured! Please make sure to use the complete v1 struct! (' + file + ')')
print('An error occurred! Please make sure to use the complete v1 struct! (' + file + ')')
continue
else:
print(file + ' not found.')

View File

@ -47,7 +47,7 @@ SOURCES := \
ifneq ($(wildcard $(LIBRETRO_DEPS_DIR)/*),)
# If we are building from inside the RetroArch
# directory (i.e. if an 'external' deps directory
# is avaiable), bake in zlib support
# is available), bake in zlib support
SOURCES += \
$(LIBRETRO_DEPS_DIR)/libz/adler32.c \
$(LIBRETRO_DEPS_DIR)/libz/libz-crc32.c \

View File

@ -425,7 +425,7 @@ size_t word_wrap_wideglyph(char *dst, size_t dst_size,
/**
* string_tokenize:
*
* Splits string into tokens seperated by @delim
* Splits string into tokens separated by @delim
* > Returned token string must be free()'d
* > Returns NULL if token is not found
* > After each call, @str is set to the position after the

View File

@ -434,7 +434,7 @@ int retro_vfs_mkdir_impl(const char* dir)
return uwp_mkdir_impl(std::filesystem::path(dir));
}
/* The first run paramater is used to avoid error checking
/* The first run parameter is used to avoid error checking
* when doing recursion.
* Unlike the initial implementation, this can move folders
* even empty ones when you want to move a directory structure.

View File

@ -84,7 +84,7 @@ bool gx_init_mem2(void)
* reserve about 256KB for stuff like network and USB to work correctly.
* However, other sources says these functions need at least 0xE0000 bytes,
* 7/8 of a megabyte, of reserved memory to do this. My initial testing
* shows that we can work with only 128KB, but we use 256KB becuse testing
* shows that we can work with only 128KB, but we use 256KB because testing
* has shown some stuff being iffy with only 128KB, mainly Wiimote stuff.
* If some stuff mysteriously stops working, try fiddling with this size.
*/

View File

@ -5145,7 +5145,7 @@ void cb_generic_download(retro_task_t *task,
output_path[0] = '\0';
/* we have to determine dir_path at the time of writting or else
/* we have to determine dir_path at the time of writing or else
* we'd run into races when the user changes the setting during an
* http transfer. */
switch (transf->enum_idx)

View File

@ -3910,7 +3910,7 @@ static enum materialui_entry_value_type materialui_get_entry_value_type(
/* Note that we have to perform a backup check here,
* since the 'manual content scan - file extensions'
* setting may have a value of 'zip' or '7z' etc, which
* means it would otherwise get incorreclty identified as
* means it would otherwise get incorrectly identified as
* an archive file... */
if (entry_type != FILE_TYPE_CARCHIVE)
value_type = MUI_ENTRY_VALUE_TEXT;
@ -5637,14 +5637,14 @@ static void materialui_render_entry_touch_feedback(
* touch feedback highlight */
if (mui->touch_feedback_alpha > 0.0f)
{
float higlight_color[16];
float highlight_color[16];
float shadow_top_color[16];
float shadow_bottom_color[16];
/* Set highlight colour */
memcpy(higlight_color, mui->colors.list_highlighted_background,
sizeof(higlight_color));
gfx_display_set_alpha(higlight_color,
memcpy(highlight_color, mui->colors.list_highlighted_background,
sizeof(highlight_color));
gfx_display_set_alpha(highlight_color,
mui->transition_alpha * mui->touch_feedback_alpha);
/* Set shadow colour (if required) */
@ -5670,7 +5670,7 @@ static void materialui_render_entry_touch_feedback(
mui, p_disp, userdata, video_width, video_height,
header_height, x_offset,
mui->touch_feedback_selection,
higlight_color,
highlight_color,
shadow_top_color, shadow_bottom_color);
}
}

View File

@ -7906,7 +7906,7 @@ static bool ozone_is_current_entry_settings(size_t current_selection)
/* Note that we have to perform a backup check here,
* since the 'manual content scan - file extensions'
* setting may have a value of 'zip' or '7z' etc, which
* means it would otherwise get incorreclty identified as
* means it would otherwise get incorrectly identified as
* an archive file... */
if (entry_type != FILE_TYPE_CARCHIVE)
return true;
@ -10408,7 +10408,7 @@ static void ozone_draw_header(
unsigned logo_icon_size = 60 * scale_factor;
unsigned status_icon_size = 92 * scale_factor;
unsigned status_row_size = 160 * scale_factor;
unsigned seperator_margin = 30 * scale_factor;
unsigned separator_margin = 30 * scale_factor;
enum gfx_animation_ticker_type
menu_ticker_type = (enum gfx_animation_ticker_type)settings->uints.menu_ticker_type;
gfx_display_ctx_driver_t *dispctx = p_disp->dispctx;
@ -10436,9 +10436,9 @@ static void ozone_draw_header(
userdata,
video_width,
video_height,
seperator_margin,
separator_margin,
ozone->dimensions.header_height,
video_width - seperator_margin * 2,
video_width - separator_margin * 2,
ozone->dimensions.spacer_1px,
video_width,
video_height,
@ -10670,7 +10670,7 @@ static void ozone_draw_footer(
bool search_enabled = !settings->bools.menu_disable_search_button;
size_t selection = ozone->selection;
float scale_factor = ozone->last_scale_factor;
unsigned seperator_margin = 30 * scale_factor;
unsigned separator_margin = 30 * scale_factor;
float footer_margin = 42 * scale_factor;
float footer_text_y = (float)video_height
- (ozone->dimensions.footer_height / 2.0f)
@ -10766,9 +10766,9 @@ static void ozone_draw_footer(
userdata,
video_width,
video_height,
seperator_margin,
separator_margin,
video_height - ozone->dimensions.footer_height,
video_width - seperator_margin * 2,
video_width - separator_margin * 2,
ozone->dimensions.spacer_1px,
video_width,
video_height,

View File

@ -5487,7 +5487,7 @@ static void rgui_render(
/* Note:
* - 'Right' thumbnail is drawn at the top
* - 'Left' thumbnail is drawn at the bottom
* ...unless thumbnail postions are swapped.
* ...unless thumbnail positions are swapped.
* (legacy naming, unfortunately...) */
/* An annoyance - cannot assume terminal will have a
@ -6579,7 +6579,7 @@ static void *rgui_init(void **userdata, bool video_is_threaded)
rgui->prev_savestate_thumbnail_file_path[0] = '\0';
/* Ensure that pointer device starts with well defined
* values (shoult not be necessary, but some platforms may
* values (should not be necessary, but some platforms may
* not handle struct initialisation correctly...) */
memset(&rgui->pointer, 0, sizeof(menu_input_pointer_t));

View File

@ -628,7 +628,7 @@ static void xmb_free_node(xmb_node_t *node)
/**
* @brief frees all xmb_node_t in a file_list_t
*
* file_list_t asumes userdata holds a simple structure and
* file_list_t assumes userdata holds a simple structure and
* free()'s it. Can't change this at the time because other
* code depends on this behavior.
*
@ -5518,7 +5518,7 @@ static bool xmb_load_dynamic_icon(const char *icon_path,
gfx_thumbnail_t *icon)
{
unsigned width, height;
/* Wierd unwanted state */
/* Weird unwanted state */
if(icon->status == GFX_THUMBNAIL_STATUS_UNKNOWN &&
icon->texture > 0)
gfx_thumbnail_reset(icon);

View File

@ -6948,7 +6948,7 @@ clear:
* menu_shader_manager_append_preset:
* @shader : current shader
* @preset_path : path to the preset to append
* @dir_video_shader : temporary diretory
* @dir_video_shader : temporary directory
*
* combine current shader with a shader preset on disk
**/

View File

@ -1391,7 +1391,7 @@ static rarch_setting_t setting_action_setting(const char* name,
/**
* setting_group_setting:
* @type : type of settting.
* @type : type of setting.
* @name : name of setting.
*
* Initializes a setting of type ST_GROUP.
@ -1891,7 +1891,7 @@ static rarch_setting_t setting_string_setting(enum setting_type type,
/**
* setting_string_setting_options:
* @type : type of settting.
* @type : type of setting.
* @name : name of setting.
* @short_description : Short description of setting.
* @target : Target of bind setting.
@ -1930,7 +1930,7 @@ static rarch_setting_t setting_string_setting_options(enum setting_type type,
/**
* setting_subgroup_setting:
* @type : type of settting.
* @type : type of setting.
* @name : name of setting.
* @parent_name : group that the subgroup setting belongs to.
*
@ -3391,7 +3391,7 @@ static void setting_get_string_representation_uint_menu_icon_thumbnails(
}
}
static void setting_set_string_representation_timedate_date_seperator(char *s)
static void setting_set_string_representation_timedate_date_separator(char *s)
{
settings_t *settings = config_get_ptr();
unsigned menu_timedate_date_separator = settings ?
@ -3550,7 +3550,7 @@ static void setting_get_string_representation_uint_menu_timedate_style(
}
/* Change date separator, if required */
setting_set_string_representation_timedate_date_seperator(s);
setting_set_string_representation_timedate_date_separator(s);
}
static void setting_get_string_representation_uint_menu_timedate_date_separator(
@ -5248,7 +5248,7 @@ static void setting_get_string_representation_uint_playlist_sublabel_last_played
}
/* Change date separator, if required */
setting_set_string_representation_timedate_date_seperator(s);
setting_set_string_representation_timedate_date_separator(s);
}
static void setting_get_string_representation_uint_playlist_inline_core_display_type(
@ -21771,7 +21771,7 @@ static bool setting_append_list(
START_SUB_GROUP(list, list_info, "Playlist", &group_info, &subgroup_info, parent_group);
/* Favourites size is traditionally associtated with
/* Favourites size is traditionally associated with
* history size, but they are in fact unrelated. We
* therefore place this entry outside the "History"
* sub group. */

View File

@ -66,7 +66,7 @@ bool menu_shader_manager_set_preset(
* menu_shader_manager_append_preset:
* @shader : current shader
* @preset_path : path to the preset to append
* @dir_video_shader : temporary diretory
* @dir_video_shader : temporary directory
*
* combine current shader with a shader preset on disk
**/

View File

@ -148,7 +148,7 @@ static bool connmanctl_tether_status(connman_t *connman)
/* Following command lists 'technologies' of connman,
* greps the wifi + 10 following lines, then first
* occurance of 'Tethering', then 'True' and counts
* occurrence of 'Tethering', then 'True' and counts
* the matching lines.
* Expected result is either 1 (active) or 0 (not active)
*/

View File

@ -3232,10 +3232,10 @@ static int handle_connection(netplay_t *netplay, netplay_address_t *addr,
#define INET_TO_NETPLAY(in_addr, out_addr) \
{ \
uint16_t *preffix = (uint16_t*)&(out_addr)->addr[10]; \
uint16_t *prefix = (uint16_t*)&(out_addr)->addr[10]; \
uint32_t *addr4 = (uint32_t*)&(out_addr)->addr[12]; \
memset(&(out_addr)->addr[0], 0, 10); \
*preffix = 0xffff; \
*prefix = 0xffff; \
memcpy(addr4, &((struct sockaddr_in*)(in_addr))->sin_addr, \
sizeof(*addr4)); \
}

View File

@ -95,10 +95,10 @@ enum netplay_cmd
{
/* Basic commands */
/* Acknowlegement response */
/* Acknowledgement response */
NETPLAY_CMD_ACK = 0x0000,
/* Failed acknowlegement response */
/* Failed acknowledgement response */
NETPLAY_CMD_NAK = 0x0001,
/* Gracefully disconnects from host */

View File

@ -132,7 +132,7 @@ static void recording_driver_free_state(void)
recording_state.gpu_width = 0;
recording_state.gpu_height = 0;
recording_state.width = 0;
recording_stte.height = 0;
recording_state.height = 0;
}
#endif

View File

@ -4474,7 +4474,7 @@ bool command_event(enum event_command cmd, void *data)
playlist_config_set_path(&playlist_config, str_list->elems[6].data);
playlist = playlist_init(&playlist_config);
/* Check whether favourties playlist is at capacity */
/* Check whether favourites playlist is at capacity */
if (playlist_size(playlist) >=
playlist_capacity(playlist))
{
@ -6407,7 +6407,7 @@ static void retroarch_print_help(const char *arg0)
#ifdef HAVE_ACCESSIBILITY
_len += strlcpy(buf + _len,
" --accessibility "
"Enables accessibilty for blind users using text-to-speech.\n"
"Enables accessibility for blind users using text-to-speech.\n"
, sizeof(buf) - _len);
#endif
@ -8231,7 +8231,7 @@ bool retroarch_main_quit(void)
#if !defined(HAVE_DYNAMIC)
{
/* Salamander sets RUNLOOP_FLAG_SHUTDOWN_INITIATED prior, so we need to handle it seperately */
/* Salamander sets RUNLOOP_FLAG_SHUTDOWN_INITIATED prior, so we need to handle it separately */
/* config_save_file_salamander() must be called independent of config_save_on_exit */
config_save_file_salamander();
if (config_save_on_exit)

View File

@ -175,7 +175,7 @@ core_info_t* steam_find_core_info_for_dlc(const char* name)
}
/* Generate a list with core dlcs
* Needs to be called after initializion because it uses core info */
* Needs to be called after initialization because it uses core info */
MistResult steam_generate_core_dlcs_list(steam_core_dlc_list_t **list)
{
int count, i;

View File

@ -969,7 +969,7 @@ static RFILE *task_cloud_sync_write_updated_manifest(file_list_t *manifest, char
return NULL;
}
/* since we may be transfering files at the same time,
/* since we may be transferring files at the same time,
* the newly created manifest might be out of order */
file_list_sort_on_alt(manifest);

View File

@ -272,7 +272,7 @@ static void free_core_updater_list_handle(
{
if (list_handle->http_data)
{
/* since we took onwership, we have to destroy it ourself */
/* since we took ownership, we have to destroy it ourself */
if (list_handle->http_data->data)
free(list_handle->http_data->data);

View File

@ -493,7 +493,7 @@ int detect_gc_game(intfstream_t *fd, char *s, size_t len, const char *filename)
/** convert raw gamecube serial to redump serial.
not enough is known about the disc data to properly
convert every raw serial to redump serial. it will
only fail with the following excpetions: the
only fail with the following exceptions: the
subregions of europe P-UKV, P-AUS, X-UKV, X-EUU
will not match redump.**/

View File

@ -1067,7 +1067,7 @@ bool task_push_overlay_load_default(
if (!config_get_uint(conf, "overlays", &loader->size))
{
/* Error - overlays varaible not defined in config. */
/* Error - overlays variable not defined in config. */
config_file_free(conf);
free(loader);
return false;

View File

@ -1088,7 +1088,7 @@ bool run_translation_service(settings_t *settings, bool paused)
/* mode */
{
unsigned ai_service_mode = settings->uints.ai_service_mode;
/*"image" is included for backwards compatability with
/*"image" is included for backwards compatibility with
* vgtranslate < 1.04 */
new_ai_service_url[ _len] = separator;

View File

@ -29,8 +29,8 @@ AstBase<Annotation> AstBase<Annotation>::empty = AstBase<Annotation>("", 0, 0, "
//bool use_typedefs = false;
bool use_typedefs = true;
//const char* prefix_seperator = "_";
const char* prefix_seperator = "";
//const char* prefix_separator = "_";
const char* prefix_separator = "";
vector<string> ignored_fn_prefixes_list =
{
@ -452,7 +452,7 @@ public:
}
name = prefix + prefix_seperator;
name = prefix + prefix_separator;
if(overloaded && !this_.base)
{
@ -676,7 +676,7 @@ public:
break;
else
{
// cout << "Unexcpected node " << node->name << endl;
// cout << "Unexpected node " << node->name << endl;
}
}

View File

@ -289,7 +289,7 @@ sub expand_macros {
# parameters can be blank
my @arglist = split(/,/, $3);
my @args;
my @args_seperator;
my @args_separator;
my $comma_sep_required = 0;
foreach (@arglist) {
@ -299,14 +299,14 @@ sub expand_macros {
my @whitespace_split = split(/\s+/, $_);
if (!@whitespace_split) {
push(@args, '');
push(@args_seperator, '');
push(@args_separator, '');
} else {
foreach (@whitespace_split) {
#print ("arglist = \"$_\"\n");
if (length($_)) {
push(@args, $_);
my $sep = $comma_sep_required ? "," : " ";
push(@args_seperator, $sep);
push(@args_separator, $sep);
#print ("sep = \"$sep\", arg = \"$_\"\n");
$comma_sep_required = 0;
}
@ -336,9 +336,9 @@ sub expand_macros {
# XXX: is vararg allowed on arguments before the last?
$argname = $macro_args{$macro}[-1];
if ($argname =~ s/:vararg$//) {
#print "macro = $macro, args[$i] = $args[$i], args_seperator=@args_seperator, argname = $argname, arglist[$i] = $arglist[$i], arglist = @arglist, args=@args, macro_args=@macro_args\n";
#print "macro = $macro, args[$i] = $args[$i], args_separator=@args_separator, argname = $argname, arglist[$i] = $arglist[$i], arglist = @arglist, args=@args, macro_args=@macro_args\n";
#$replacements{$argname} .= ", $args[$i]";
$replacements{$argname} .= "$args_seperator[$i] $args[$i]";
$replacements{$argname} .= "$args_separator[$i] $args[$i]";
} else {
die "Too many arguments to macro $macro";
}

Some files were not shown because too many files have changed in this diff Show More