{"id":398571,"date":"2024-06-29T14:09:05","date_gmt":"2024-06-29T14:09:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=398571"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=398571","title":{"rendered":"<span>\u042d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 PS2 \u043d\u0430 Android \u2014 \u0451\u0436\u0438\u043a \u043f\u043b\u0430\u043a\u0430\u043b \u0438 \u043a\u043e\u043b\u043e\u043b\u0441\u044f, \u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u0442\u0443\u0441<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c!<\/p>\n<p>  \u042f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0442\u0435\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0434\u043b\u044f PlayStation 1, PlayStation 2 \u0438 PlayStation Portable \u2014 Omega Red. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e:<\/p>\n<ul>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/517150\/\">\u0420\u0435\u0434\u0438\u0437\u0430\u0439\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red (\u0412\u0442\u043e\u0440\u0430\u044f \u0441\u0435\u0440\u0438\u044f)<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/514392\/\">\u0420\u0435\u0434\u0438\u0437\u0430\u0439\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/512914\/\">4\u041a (2160\u0440) \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u0433\u0440 PS1, PS2, PSP \u0432 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/510598\/\">\u0412\u0438\u0434\u0435\u043e \u0433\u0438\u0434 \u043f\u043e \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0443 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/498990\/\">\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0433\u0435\u0439\u043c\u043f\u0430\u0434\u0430 \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/484620\/\">\u041d\u043e\u0432\u044b\u0439 PS1 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0435\u0440 \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/476958\/\">Omega Red + PS1 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 = \u041a\u043e\u0434\u0437\u0438\u043c\u0430 \u0433\u0435\u043d\u0438\u0439<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/456842\/\">PS2\/PSP \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 + game play streaming (YouTube, Facebook, Twitch) = \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/450648\/\">PS2\/PSP \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 + Google Drive + YouTube = \u00ab\u0431\u0435\u0437\u0443\u043c\u0438\u0435\u00bb \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/445022\/\">\u041a\u0430\u043a \u044f \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u043b PlayStation 2 \u0438 PlayStation Portable (\u0441\u043f\u043e\u0439\u043b\u0435\u0440 \u2014 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b \u0432 \u043e\u0434\u0438\u043d \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440)<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/415851\/\">\u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u041e\u043c\u0435\u0433\u0430 PS2 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440<\/a><\/li>\n<\/ul>\n<p>  \u0414\u0430\u043d\u043d\u0443\u044e \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u043c\u043d\u043e\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u043d\u0430 Android \u2014 ARM64 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443. \u041f\u043e\u0441\u043f\u0435\u0448\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f. \u041e\u0434\u043d\u0430\u043a\u043e, \u0434\u043b\u044f \u0442\u0435\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u0442\u043e \u043d\u0435 \u043b\u0438\u0448\u0451\u043d \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p>  P.S. \u041d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0434\u043b\u044f Windows OS (\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0433\u0435\u043c\u043f\u0430\u0434\u043e\u0432 \u043f\u043e \u0441\u0442\u0430\u0440\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 \u2014 DirectInput8) \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/www.buymeacoffee.com\/omegared\" rel=\"nofollow\">Omega Red<\/a>.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u043b\u044f \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0438 \u043c\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043a \u043d\u0435\u043c\u0443 \u0432\u043e\u0437\u0433\u0430\u0440\u0430\u043b\u0441\u044f \u0438 \u0437\u0430\u0442\u0443\u0445\u0430\u043b \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438. \u041d\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u0442\u0430\u043f \u2014 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0438 \u043a\u043e\u0434\u0430. <\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u0437\u044f\u0442\u044c \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0434\u0440\u043e \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 PCSX2, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0439 \u0432 \u0444\u043e\u0440\u043c\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/post\/415851\/\">\u00ab\u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u041e\u043c\u0435\u0433\u0430 PS2 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u00bb<\/a>). \u0421\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f Windows OS \u043d\u0430 Microsoft Visual Studio \u2014 \u043a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u044f\u0434\u0440\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 API. <\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043d\u0430 Java \u0434\u043b\u044f Android. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u0435\u043d \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u00ab\u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e\u00bb \u0432\u044b\u0437\u043e\u0432\u0430 \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u044f\u0434\u0440\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u043f\u043e\u0442\u043e\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438 \u043e\u043d\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u2014 \u0411\u0418\u041e\u0421\u0430, \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u0435\u0439\u043c\u043f\u0430\u0434\u043e\u0432, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432. \u0412 \u043a\u043e\u0434\u0435 \u0434\u043b\u044f Windows OS \u043d\u0430 WPF C# \u0437\u0430\u0434\u0430\u0447\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u00ab\u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e\u00bb \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043c\u0430\u0440\u0448\u0430\u043b\u0438\u043d\u0433\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u043e \u0434\u043b\u044f Java \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u043c\u0430\u0440\u0448\u0430\u043b\u0438\u043d\u0433 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0421++ \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043a\u0440\u0443\u043f\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0421++ \u0444\u0430\u0439\u043b AndroidInterface.cpp \u0432 PCSX2Lib \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c Java Native \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0432\u0438\u0434\u0435:<\/p>\n<pre><code class=\"cpp\">extern \"C\" JNIEXPORT void JNICALL Java_com_xirexel_omegared_PCSX2_PCSX2LibNative_NativeSetElfPathFunc(JNIEnv *env,    jobject instance,    jstring a_config_) { const char *a_config = env->GetStringUTFChars(a_config_, 0);  PCSX2_Hle_SetElfPathFunc(a_config);  env->ReleaseStringUTFChars(a_config_, a_config); }<\/code><\/pre>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"java\">public final class PCSX2LibNative {      static {         System.loadLibrary(\"PCSX2Lib\");     }<\/code><\/pre>\n<p>  \u0412\u044b\u0437\u043e\u0432 Java \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438\u0437 \u0421++ \u043a\u043e\u0434\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434:<\/p>\n<pre><code class=\"cpp\">static void callOnePtrTwoIntBoolean(const std::string&amp; aMethodCallback, unsigned char* arg1, int arg2, int arg3, bool arg4) { if(s_JavaVM == nullptr) return;  JNIEnv* l_Env = nullptr;   const jint get_res = s_JavaVM->GetEnv(reinterpret_cast&lt;void**>(&amp;l_Env), JNI_VERSION_1_6);  if (get_res == JNI_EDETACHED) { if (s_JavaVM->AttachCurrentThread(&amp;l_Env, NULL) != 0) { return; } } else if (get_res != JNI_OK) { return; }  jclass l_PCSX2LibNative = l_Env->GetObjectClass(g_PCSX2LibNative);  jmethodID methodId=l_Env->GetMethodID(l_PCSX2LibNative, aMethodCallback.data(), \"(Ljava\/nio\/ByteBuffer;IZ)V\");  jobject l_buffer = l_Env->NewDirectByteBuffer(arg1, arg3);  l_Env->CallVoidMethod(g_PCSX2LibNative, methodId, l_buffer, arg2, arg4); } <\/code><\/pre>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 CMake \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f Android \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"cmake\"># For more information about using CMake with Android Studio, read the # documentation: https:\/\/d.android.com\/studio\/projects\/add-native-code.html  # Sets the minimum version of CMake required to build the native library.  cmake_minimum_required(VERSION 3.4.1)   set (EXTEND_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/Extend) set (PCSX2LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/PCSX2Lib) set (PCSX2_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/..\/pcsx2) set (FRAMEWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Common\/Framework) set (UTILITIES_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Common\/Utilities) set (MEMORYMANAGER_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Common\/MemoryManager) set (PUGIXML_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Common\/PugiXML) set (FRAMEWORK_UTILITIES_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Common\/Framework\/Utilities) set (PCSX2_UTILITIES_SRC_DIR ${PCSX2_DIR}\/..\/common\/src\/Utilities) set (PTHREADS_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Common\/pthreads4w\/include) set (LIBAIO_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/libaio\/src) set (MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}\/..\/..\/..\/..\/..\/..\/Modules)   add_definitions(-DDISABLE_RECORDING -DPUGIXML_WCHAR_MODE)  if(${ANDROID_ABI} STREQUAL \"x86\")     add_definitions(-DANDROID_ABI_X86) endif()  if( (${ANDROID_ABI} STREQUAL \"x86\") )      message(ANDROID_ABI = ${ANDROID_ABI})      set(SVU_ZEROREC_SRC             ${CMAKE_CURRENT_SOURCE_DIR}\/CPU\/x86\/aVUzerorec.S             )        add_subdirectory(libaio)     add_subdirectory(Framework)     add_subdirectory(Utilities)     add_subdirectory(Emitters)     add_subdirectory(MemoryManager)     add_subdirectory(PugiXML)     add_subdirectory(PCSX2Lib)     add_subdirectory(Modules)     add_subdirectory(BiosControl) endif() <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0430\u0433\u0430\u044e \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u043b\u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0443, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u2014 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 \u044586 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. <\/p>\n<p>  \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u2014 \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0447\u0442\u0438. \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ol>\n<li>\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f PCSX2 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u044b\u043b\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0432\u0448\u0435\u043c \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443;<\/li>\n<li>\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0430 \u043a\u043e\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430 PCSX2 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 Android NDK. <\/li>\n<\/ol>\n<p>  \u041a\u0430\u043a \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f ARM64 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 \u2014 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f, \u043d\u043e \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0440\u0435\u0448\u0430\u0435\u043c\u0430\u044f. \u0414\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u0434\u043e\u043c \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043b\u044f \u0441\u0440\u0435\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Android Studio \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 GitHub: <a href=\"https:\/\/github.com\/Xirexel\/OmegaRed\/tree\/AndroidStudio\" rel=\"nofollow\">AndroidStudio<\/a>.<\/p>\n<p>  \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 Windows OS \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/www.buymeacoffee.com\/omegared\" rel=\"nofollow\">Omega Red<\/a> \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 GitHub: <a href=\"https:\/\/github.com\/Xirexel\/OmegaRed\" rel=\"nofollow\">OmegaRed<\/a>.<\/p>\n<p>  <a href=\"https:\/\/www.buymeacoffee.com\/omegared\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/cd5\/ccf\/8ec\/cd5ccf8ec947d62d1a6a8c891ff6c4f8.png\" alt=\"Buy Me A Coffee\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/cd5\/ccf\/8ec\/cd5ccf8ec947d62d1a6a8c891ff6c4f8.png\"\/><\/a>.<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/520744\/\"> https:\/\/habr.com\/ru\/articles\/520744\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c!<\/p>\n<p>  \u042f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0442\u0435\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0434\u043b\u044f PlayStation 1, PlayStation 2 \u0438 PlayStation Portable \u2014 Omega Red. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e:<\/p>\n<ul>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/517150\/\">\u0420\u0435\u0434\u0438\u0437\u0430\u0439\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red (\u0412\u0442\u043e\u0440\u0430\u044f \u0441\u0435\u0440\u0438\u044f)<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/514392\/\">\u0420\u0435\u0434\u0438\u0437\u0430\u0439\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/512914\/\">4\u041a (2160\u0440) \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u0433\u0440 PS1, PS2, PSP \u0432 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/510598\/\">\u0412\u0438\u0434\u0435\u043e \u0433\u0438\u0434 \u043f\u043e \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0443 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/498990\/\">\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0433\u0435\u0439\u043c\u043f\u0430\u0434\u0430 \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/484620\/\">\u041d\u043e\u0432\u044b\u0439 PS1 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0435\u0440 \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/476958\/\">Omega Red + PS1 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 = \u041a\u043e\u0434\u0437\u0438\u043c\u0430 \u0433\u0435\u043d\u0438\u0439<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/456842\/\">PS2\/PSP \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 + game play streaming (YouTube, Facebook, Twitch) = \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Omega Red<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/450648\/\">PS2\/PSP \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 + Google Drive + YouTube = \u00ab\u0431\u0435\u0437\u0443\u043c\u0438\u0435\u00bb \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/445022\/\">\u041a\u0430\u043a \u044f \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u043b PlayStation 2 \u0438 PlayStation Portable (\u0441\u043f\u043e\u0439\u043b\u0435\u0440 \u2014 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b \u0432 \u043e\u0434\u0438\u043d \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440)<\/a><\/li>\n<li> <a href=\"https:\/\/habr.com\/ru\/post\/415851\/\">\u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u041e\u043c\u0435\u0433\u0430 PS2 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440<\/a><\/li>\n<\/ul>\n<p>  \u0414\u0430\u043d\u043d\u0443\u044e \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u043c\u043d\u043e\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u043d\u0430 Android \u2014 ARM64 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443. \u041f\u043e\u0441\u043f\u0435\u0448\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f. \u041e\u0434\u043d\u0430\u043a\u043e, \u0434\u043b\u044f \u0442\u0435\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u0442\u043e \u043d\u0435 \u043b\u0438\u0448\u0451\u043d \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p>  P.S. \u041d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0434\u043b\u044f Windows OS (\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0433\u0435\u043c\u043f\u0430\u0434\u043e\u0432 \u043f\u043e \u0441\u0442\u0430\u0440\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 \u2014 DirectInput8) \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/www.buymeacoffee.com\/omegared\" rel=\"nofollow\">Omega Red<\/a>.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-398571","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/398571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398571"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/398571\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=398571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=398571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}