mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-27 21:35:19 +00:00
cellCamera: start camera when loading savestates
This commit is contained in:
parent
85de7432a2
commit
ade2698bb4
@ -151,6 +151,21 @@ void camera_context::save(utils::serial& ar)
|
||||
GET_OR_USE_SERIALIZATION_VERSION(ar.is_writing(), cellCamera);
|
||||
|
||||
ar(notify_data_map, start_timestamp_us, read_mode, is_streaming, is_attached, is_open, info, attr, frame_num);
|
||||
|
||||
if (!ar.is_writing())
|
||||
{
|
||||
if (is_open)
|
||||
{
|
||||
if (!open_camera())
|
||||
{
|
||||
cellCamera.error("Failed to open camera while loading savestate");
|
||||
}
|
||||
else if (is_streaming && !start_camera())
|
||||
{
|
||||
cellCamera.error("Failed to start camera while loading savestate");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static bool check_dev_num(s32 dev_num)
|
||||
|
Loading…
x
Reference in New Issue
Block a user