mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-22 06:02:04 +02:00
Catch exceptions for movie playback
This commit is contained in:
parent
86a6c93d58
commit
e874f554b3
1 changed files with 3 additions and 1 deletions
|
@ -269,7 +269,9 @@ RB_METHOD(graphicsPlayMovie)
|
||||||
SafeStringValue(filename);
|
SafeStringValue(filename);
|
||||||
int volume = (volumeArg == Qnil) ? 100 : NUM2INT(volumeArg);
|
int volume = (volumeArg == Qnil) ? 100 : NUM2INT(volumeArg);
|
||||||
|
|
||||||
shState->graphics().playMovie(RSTRING_PTR(filename), volume);
|
// TODO: Video control inputs (e.g. skip, pause)
|
||||||
|
|
||||||
|
GUARD_EXC(shState->graphics().playMovie(RSTRING_PTR(filename), volume););
|
||||||
|
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue