Skip to content

Commit

Permalink
partial revert of c09fd38 (#17363)
Browse files Browse the repository at this point in the history
which was causing softpatching to break on games with periods/dots in the filename. This restores the previous patch-matching behavior
  • Loading branch information
hizzlekizzle authored Jan 7, 2025
1 parent 3ba7d88 commit 8a3f253
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -4849,28 +4849,44 @@ void runloop_path_fill_names(void)
return;

if (string_is_empty(runloop_st->name.ups))
fill_pathname(runloop_st->name.ups,
{
size_t len = strlcpy(runloop_st->name.ups,
runloop_st->runtime_content_path_basename,
".ups",
sizeof(runloop_st->name.ups));
strlcpy(runloop_st->name.ups + len,
".ups",
sizeof(runloop_st->name.ups) - len);
}

if (string_is_empty(runloop_st->name.bps))
fill_pathname(runloop_st->name.bps,
{
size_t len = strlcpy(runloop_st->name.bps,
runloop_st->runtime_content_path_basename,
".bps",
sizeof(runloop_st->name.bps));
strlcpy(runloop_st->name.bps + len,
".bps",
sizeof(runloop_st->name.bps) - len);
}

if (string_is_empty(runloop_st->name.ips))
fill_pathname(runloop_st->name.ips,
{
size_t len = strlcpy(runloop_st->name.ips,
runloop_st->runtime_content_path_basename,
".ips",
sizeof(runloop_st->name.ips));
strlcpy(runloop_st->name.ips + len,
".ips",
sizeof(runloop_st->name.ips) - len);
}

if (string_is_empty(runloop_st->name.xdelta))
fill_pathname(runloop_st->name.xdelta,
{
size_t len = strlcpy(runloop_st->name.xdelta,
runloop_st->runtime_content_path_basename,
".xdelta",
sizeof(runloop_st->name.xdelta));
strlcpy(runloop_st->name.xdelta + len,
".xdelta",
sizeof(runloop_st->name.xdelta) - len);
}
}


Expand Down

0 comments on commit 8a3f253

Please sign in to comment.