mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-xmp-resume' into 'master'
Only throw XmpException on negative seek pos Closes #449 See merge request KartKrew/Kart!1364
This commit is contained in:
commit
cd6925538e
1 changed files with 5 additions and 3 deletions
|
|
@ -145,9 +145,11 @@ void Xmp<C>::seek(int position_ms)
|
|||
SRB2_ASSERT(instance_ != nullptr);
|
||||
SRB2_ASSERT(module_loaded_ == true);
|
||||
|
||||
int err = xmp_seek_time(instance_, position_ms);
|
||||
if (err != 0)
|
||||
throw XmpException(err);
|
||||
int pos = xmp_seek_time(instance_, position_ms);
|
||||
if (pos < 0)
|
||||
{
|
||||
throw XmpException(pos);
|
||||
}
|
||||
}
|
||||
|
||||
template <size_t C>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue