mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
EggTVData::Folder::Cache::Cache: move is_regular_file call within try-catch
This commit is contained in:
parent
2a863ab985
commit
7b67a69754
1 changed files with 5 additions and 5 deletions
|
|
@ -112,13 +112,13 @@ EggTVData::Folder::Cache::Cache(Folder& folder) : folder_(folder)
|
||||||
{
|
{
|
||||||
for (const fs::directory_entry& entry : fs::directory_iterator(folder_.path()))
|
for (const fs::directory_entry& entry : fs::directory_iterator(folder_.path()))
|
||||||
{
|
{
|
||||||
if (!entry.is_regular_file())
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (!entry.is_regular_file())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
replays_.emplace_back(
|
replays_.emplace_back(
|
||||||
*this,
|
*this,
|
||||||
entry.path().filename(),
|
entry.path().filename(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue