mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
EggTVData::cache_favorites: silently fail if favorites file does not exist
This commit is contained in:
parent
f94aef4811
commit
5baa7c14fb
1 changed files with 6 additions and 1 deletions
|
|
@ -96,7 +96,12 @@ json EggTVData::cache_favorites() const
|
|||
|
||||
try
|
||||
{
|
||||
std::ifstream(favoritesPath_) >> object;
|
||||
std::ifstream f(favoritesPath_);
|
||||
|
||||
if (f.is_open())
|
||||
{
|
||||
f >> object;
|
||||
}
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue