Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
viachaslavic committed Oct 1, 2024
1 parent 1d2c9a8 commit 4595ea4
Show file tree
Hide file tree
Showing 103 changed files with 382 additions and 382 deletions.
2 changes: 1 addition & 1 deletion README-mali_fbdev_r4p0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion audio/audio_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion audio/common/alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
8 changes: 4 additions & 4 deletions audio/drivers/rsound.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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. */
Expand Down
20 changes: 10 additions & 10 deletions audio/drivers/tinyalsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion audio/drivers_resampler/cc_resampler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
18 changes: 9 additions & 9 deletions audio/librsound.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -960,7 +960,7 @@ static int rsnd_close_ctl(rsound_t *rd)
if (fd.revents & POLLIN)
{
const char *subchar;
/* We just read everything in large chunks until we find
/* We just read everything in large chunks until we find
* what we're looking for */
int rc = net_recv(rd->conn.ctl_socket, buf + index, RSD_PROTO_MAXSIZE*2 - 1 - index, 0);

Expand Down Expand Up @@ -991,7 +991,7 @@ static int rsnd_close_ctl(rsound_t *rd)
return 0;
}

/* Sends delay info request to server on the ctl socket.
/* Sends delay info request to server on the ctl socket.
* This code section isn't critical, and will work if it works.
* It will never block. */
static int rsnd_send_info_query(rsound_t *rd)
Expand Down Expand Up @@ -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;
Expand All @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions bootstrap/vita/sbrk.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void _init_vita_heap(void) {
if (sceKernelCreateLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, "sbrk mutex", 0, 0, 0) < 0) {
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);
Expand Down
8 changes: 4 additions & 4 deletions cheat_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ enum cheat_rumble_type
struct item_cheat
{
/* Clock value for when rumbling should stop */
retro_time_t rumble_primary_end_time;
retro_time_t rumble_secondary_end_time;
retro_time_t rumble_primary_end_time;
retro_time_t rumble_secondary_end_time;

char *desc;
char *code;
Expand Down Expand Up @@ -128,7 +128,7 @@ struct item_cheat
unsigned int rumble_prev_value;
unsigned int rumble_initialized;
/* 0-15 for specific port, anything else means "all ports" */
unsigned int rumble_port;
unsigned int rumble_port;
unsigned int rumble_primary_strength; /* 0-65535 */
unsigned int rumble_primary_duration; /* in milliseconds */
unsigned int rumble_secondary_strength; /* 0-65535 */
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion cheevos/cheevos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cheevos/cheevos_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
24 changes: 12 additions & 12 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@
/* Do not use windowed mode for WinRT and Winapi Family builds on the Xbox UWP with fixed resolution shrinks the image into the left top corner of the screen with some libretro cores */
#define DEFAULT_WINDOWED_FULLSCREEN false
#else
#define DEFAULT_WINDOWED_FULLSCREEN true
#endif
#define DEFAULT_WINDOWED_FULLSCREEN true
#endif

/* Enable automatic switching of the screen refresh rate when using the specified screen mode(s),
* based on running core/content */
Expand Down Expand Up @@ -410,20 +410,20 @@
*/
#define DEFAULT_SHADER_SUBFRAMES 1

/* Divides implements basic rolling scanning of sub frames - does this simply by scrolling a
* a scissor rect down the screen according to how many sub frames there are
/* Divides implements basic rolling scanning of sub frames - does this simply by scrolling a
* a scissor rect down the screen according to how many sub frames there are
*/
#define DEFAULT_SCAN_SUBFRAMES false

/* Inserts black frame(s) inbetween frames.
* Useful for Higher Hz monitors (set to multiples of 60 Hz) who want to play 60 Hz
* Useful for Higher Hz monitors (set to multiples of 60 Hz) who want to play 60 Hz
* material with CRT-like motion clarity.
*/
#define DEFAULT_BLACK_FRAME_INSERTION 0

/* Black Frame Insertion Dark Frames.
* Increase for more clarity at the cost of lower brightness. Adjusting can also eliminate
* any temporary image retention if noticed. Only useful at 180hz or higher 60hz multiples,
* any temporary image retention if noticed. Only useful at 180hz or higher 60hz multiples,
* as 120hz only has one total extra frame for BFI to work with.
*/
#define DEFAULT_BFI_DARK_FRAMES 1
Expand Down Expand Up @@ -508,7 +508,7 @@
/* Should we expand the colour gamut when using hdr */
#define DEFAULT_VIDEO_HDR_EXPAND_GAMUT true

/* When presets are saved they will be saved using the #reference
/* When presets are saved they will be saved using the #reference
* directive by default */
#define DEFAULT_VIDEO_SHADER_PRESET_SAVE_REFERENCE_ENABLE true

Expand Down Expand Up @@ -1121,7 +1121,7 @@
/*Desired duration of the screenshot notification*/
#define DEFAULT_NOTIFICATION_SHOW_SCREENSHOT_DURATION 0

/* Display a white flashing effect with the desired
/* Display a white flashing effect with the desired
* duration when taking a screenshot*/
#define DEFAULT_NOTIFICATION_SHOW_SCREENSHOT_FLASH 0
#endif
Expand Down Expand Up @@ -1262,9 +1262,9 @@


#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_BUFFER_SIZE_STEP 1
#define DEFAULT_REWIND_GRANULARITY 6
#else
/* The buffer size for the rewind buffer. This needs to be about
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1666,7 +1666,7 @@
#define DEFAULT_CONTENT_RUNTIME_LOG true
#endif

/* Keep track of how long each content has been running
/* Keep track of how long each content has been running
* for over time (ignores core) */
#define DEFAULT_CONTENT_RUNTIME_LOG_AGGREGATE false

Expand Down
12 changes: 6 additions & 6 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -4645,13 +4645,13 @@ bool config_load_remap(const char *directory_input_remapping,
|| string_is_empty(directory_input_remapping))
return false;

if ( sort_remaps_by_controller
&& input_device_name != NULL
if ( sort_remaps_by_controller
&& input_device_name != NULL
&& !string_is_empty(input_device_name))
{
/* Ensure directory does not contain special chars */
/* Ensure directory does not contain special chars */
input_device_dir = sanitize_path_part(input_device_name, strlen(input_device_name));

/* Allocate memory for the new path */
remap_path_total_len = strlen(core_name) + strlen(input_device_dir) + 2;
remap_path = (char *)malloc(remap_path_total_len);
Expand All @@ -4661,7 +4661,7 @@ bool config_load_remap(const char *directory_input_remapping,
_len += strlcpy(remap_path + _len, PATH_DEFAULT_SLASH(), remap_path_total_len - _len);
_len += strlcpy(remap_path + _len, input_device_dir, remap_path_total_len - _len);

/* Deallocate as we no longer this */
/* Deallocate as we no longer this */
free((char*)input_device_dir);
input_device_dir = NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion cores/libretro-ffmpeg/ffmpeg_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cores/libretro-mpv/mpv-libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 4595ea4

Please sign in to comment.