mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
misc: fix formatting issues
This commit is contained in:
parent
641824b5b4
commit
5b2460c484
4 changed files with 16 additions and 13 deletions
|
@ -4,6 +4,8 @@ AllowShortFunctionsOnASingleLine: None
|
|||
AlwaysBreakAfterReturnType: None
|
||||
BasedOnStyle: Webkit
|
||||
BreakBeforeBinaryOperators: NonAssignment
|
||||
BreakAdjacentStringLiterals: true
|
||||
AlwaysBreakBeforeMultilineStrings: true
|
||||
ColumnLimit: 80
|
||||
IndentPPDirectives: BeforeHash
|
||||
NamespaceIndentation: None
|
||||
|
|
|
@ -1347,8 +1347,9 @@ bool Savegame_BSON_LoadFromFile(MYFILE *fp, GAME_INFO *game_info)
|
|||
if (!Savegame_BSON_LoadResumeInfo(
|
||||
json_object_get_array(root_obj, "current_info"),
|
||||
game_info->current)) {
|
||||
LOG_WARNING("Failed to load RESUME_INFO current properly. Checking if "
|
||||
"save is legacy.");
|
||||
LOG_WARNING(
|
||||
"Failed to load RESUME_INFO current properly. "
|
||||
"Checking if save is legacy.");
|
||||
// Check for 2.6 and 2.7 legacy start and end info.
|
||||
if (!Savegame_BSON_LoadDiscontinuedStartInfo(
|
||||
json_object_get_array(root_obj, "start_info"), game_info)) {
|
||||
|
@ -1433,7 +1434,8 @@ bool Savegame_BSON_LoadOnlyResumeInfo(MYFILE *fp, GAME_INFO *game_info)
|
|||
if (!Savegame_BSON_LoadResumeInfo(
|
||||
json_object_get_array(root_obj, "current_info"),
|
||||
game_info->current)) {
|
||||
LOG_WARNING("Failed to load RESUME_INFO current properly. Checking if "
|
||||
LOG_WARNING(
|
||||
"Failed to load RESUME_INFO current properly. Checking if "
|
||||
"save is legacy.");
|
||||
// Check for 2.6 and 2.7 legacy start and end info.
|
||||
if (!Savegame_BSON_LoadDiscontinuedStartInfo(
|
||||
|
|
|
@ -489,8 +489,8 @@ void Sound_ResetEffects(void)
|
|||
int32_t mode = s->flags & 3;
|
||||
if (mode == SOUND_MODE_AMBIENT) {
|
||||
if (m_AmbientLookupIdx >= MAX_AMBIENT_FX) {
|
||||
Shell_ExitSystem("Ran out of ambient fx slots in "
|
||||
"Sound_ResetEffects()");
|
||||
Shell_ExitSystem(
|
||||
"Ran out of ambient fx slots in Sound_ResetEffects()");
|
||||
}
|
||||
m_AmbientLookup[m_AmbientLookupIdx] = i;
|
||||
m_AmbientLookupIdx++;
|
||||
|
|
|
@ -575,16 +575,15 @@ static int S_FMV_DecoderDecodeFrame(Decoder *d, AVFrame *frame, AVSubtitle *sub)
|
|||
: (d->pkt->data ? AVERROR(EAGAIN) : AVERROR_EOF);
|
||||
}
|
||||
av_packet_unref(d->pkt);
|
||||
} else {
|
||||
if (avcodec_send_packet(d->avctx, d->pkt) == AVERROR(EAGAIN)) {
|
||||
LOG_ERROR("Receive_frame and send_packet both returned EAGAIN, "
|
||||
} else if (avcodec_send_packet(d->avctx, d->pkt) == AVERROR(EAGAIN)) {
|
||||
LOG_ERROR(
|
||||
"Receive_frame and send_packet both returned EAGAIN, "
|
||||
"which is an API violation.");
|
||||
d->packet_pending = true;
|
||||
} else {
|
||||
av_packet_unref(d->pkt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void S_FMV_DecoderShutdown(Decoder *d)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue