| 1 | var trophy_id = argument0; |
| 2 | if (is_undefined(ds_map_find_value(global.trophy_state, trophy_id))) |
| 3 | exit; |
| 4 | if (os_type == os_psvita && ds_map_find_value(global.trophy_state, trophy_id)) |
| 5 | exit; |
| 6 | var sysid = ds_map_find_value(global.trophy_sysid, trophy_id); |
| 7 | if (os_type == os_ps4 || os_type == os_psvita) |
| 8 | psn_unlock_trophy(obj_time.j_ch - 1, real(sysid)); |
| 9 | ds_map_set(global.trophy_state, trophy_id, 1); |