mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
fixed_typemap.hpp: make it a bit fool-proof
Require objects to be non-copyable (move is still allowed).
This commit is contained in:
parent
004ebfdaee
commit
52fe86b56c
19 changed files with 121 additions and 57 deletions
|
@ -481,11 +481,11 @@ void gs_frame::take_screenshot(const std::vector<u8> sshot_data, const u32 sshot
|
|||
}
|
||||
}
|
||||
|
||||
screenshot_manager manager;
|
||||
screenshot_info manager;
|
||||
{
|
||||
auto& fxo = g_fxo->get<screenshot_manager>();
|
||||
std::lock_guard lock(screenshot_mtx);
|
||||
manager = fxo;
|
||||
auto& s = g_fxo->get<screenshot_manager>();
|
||||
std::lock_guard lock(s.mutex);
|
||||
manager = s;
|
||||
}
|
||||
|
||||
struct scoped_png_ptrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue