mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Cleanups/style nits
This commit is contained in:
parent
69ceb95ddc
commit
fce755127c
@ -238,7 +238,8 @@ static int libretrodb_find_index(libretrodb_t *db, const char *index_name,
|
|||||||
"key_size", &idx->key_size,
|
"key_size", &idx->key_size,
|
||||||
"next", &idx->next,
|
"next", &idx->next,
|
||||||
"count", &idx->count,
|
"count", &idx->count,
|
||||||
NULL) < 0) {
|
NULL) < 0)
|
||||||
|
{
|
||||||
printf("Invalid index header\n");
|
printf("Invalid index header\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -309,13 +310,13 @@ int libretrodb_find_entry(libretrodb_t *db, const char *index_name,
|
|||||||
rv = binsearch(buff, key, idx.count, (ssize_t)idx.key_size, &offset);
|
rv = binsearch(buff, key, idx.count, (ssize_t)idx.key_size, &offset);
|
||||||
free(buff);
|
free(buff);
|
||||||
|
|
||||||
if (rv == 0) {
|
if (rv == 0)
|
||||||
|
{
|
||||||
filestream_seek(db->fd, (ssize_t)offset, RETRO_VFS_SEEK_POSITION_START);
|
filestream_seek(db->fd, (ssize_t)offset, RETRO_VFS_SEEK_POSITION_START);
|
||||||
rmsgpack_dom_read(db->fd, out);
|
rmsgpack_dom_read(db->fd, out);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -513,7 +513,8 @@ static void state_manager_push_do(state_manager_t *state)
|
|||||||
uint8_t *compressed;
|
uint8_t *compressed;
|
||||||
const uint8_t *oldb, *newb;
|
const uint8_t *oldb, *newb;
|
||||||
size_t headpos, tailpos, remaining;
|
size_t headpos, tailpos, remaining;
|
||||||
if (state->capacity < sizeof(size_t) + state->maxcompsize) {
|
if (state->capacity < sizeof(size_t) + state->maxcompsize)
|
||||||
|
{
|
||||||
RARCH_ERR("State capacity insufficient\n");
|
RARCH_ERR("State capacity insufficient\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -911,10 +911,11 @@ static bool content_load_rastate1(unsigned char* input, size_t len)
|
|||||||
input += CONTENT_ALIGN_SIZE(block_size);
|
input += CONTENT_ALIGN_SIZE(block_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!seen_core) {
|
if (!seen_core)
|
||||||
|
{
|
||||||
RARCH_LOG("[State] no core\n");
|
RARCH_LOG("[State] no core\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CHEEVOS
|
#ifdef HAVE_CHEEVOS
|
||||||
if (!seen_cheevos)
|
if (!seen_cheevos)
|
||||||
|
@ -59,9 +59,8 @@ namespace
|
|||||||
Windows::UI::Core::CoreWindow^ corewindow = Windows::UI::Core::CoreWindow::GetForCurrentThread();
|
Windows::UI::Core::CoreWindow^ corewindow = Windows::UI::Core::CoreWindow::GetForCurrentThread();
|
||||||
while (!finished)
|
while (!finished)
|
||||||
{
|
{
|
||||||
if (corewindow) {
|
if (corewindow)
|
||||||
corewindow->Dispatcher->ProcessEvents(Windows::UI::Core::CoreProcessEventsOption::ProcessAllIfPresent);
|
corewindow->Dispatcher->ProcessEvents(Windows::UI::Core::CoreProcessEventsOption::ProcessAllIfPresent);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exception != nullptr)
|
if (exception != nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user