From 15e6fdadbcb3b99d3ad1162b4d934c794c1ceb19 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Wed, 13 Mar 2013 01:04:36 +0800 Subject: [PATCH] Add UI of windows of using Media Engine ref: https://github.com/hrydgard/ppsspp/issues/842 --- Windows/WndMainWindow.cpp | 6 ++++++ Windows/ppsspp.rc | Bin 16105 -> 32358 bytes Windows/resource.h | 1 + 3 files changed, 7 insertions(+) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index dae83ab13a27..417039edabc7 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -427,6 +427,11 @@ namespace MainWindow UpdateMenus(); break; + case ID_OPTIONS_USEMEDIAENGINE: + g_Config.bUseMediaEngine = !g_Config.bUseMediaEngine; + UpdateMenus(); + break; + case ID_FILE_EXIT: DestroyWindow(hWnd); break; @@ -685,6 +690,7 @@ namespace MainWindow CHECKITEM(ID_OPTIONS_VERTEXCACHE, g_Config.bVertexCache); CHECKITEM(ID_OPTIONS_SHOWFPS, g_Config.bShowFPSCounter); CHECKITEM(ID_OPTIONS_FRAMESKIP, g_Config.iFrameSkip != 0); + CHECKITEM(ID_OPTIONS_USEMEDIAENGINE, g_Config.bUseMediaEngine); UINT enable = !Core_IsStepping() ? MF_GRAYED : MF_ENABLED; EnableMenuItem(menu,ID_EMULATION_RUN, g_State.bEmuThreadStarted ? enable : MF_GRAYED); diff --git a/Windows/ppsspp.rc b/Windows/ppsspp.rc index e6c03b1373ea48186025f4e8ecff6d0421ba804c..9b593d8f82d730ab17dc75f82a7b40c4f6fd0b16 100644 GIT binary patch literal 32358 zcmd^|>24f3lE?G&0{ad%YCv#f+-~deHQ!`i)>zj_vb(()K#(uBrX|^s*DiGAxi30?zth!o-91(5_o3{}$ny`XU#gkL(qBUj@73N{wG+$I!rlBh{)1{&xE~95DEmuw zuXU45nFy6y~AmtC=P>-xW;7GG5Nb#Gtgo;Q{_ z)ZP6dCqIkNN5cM0zXM6Yrv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Y7OIy${p=ne1?p7pszN3eO%fp2*~W`l+HKna}IJK+>M1SN3V?}Srm z5|qH{yblg7?nP0&nS2h~okxXCKrYLH9JD4Yf#8NpexWl;cKuuYyj`iCo}^*&XSshg z80n;X=K61O-ACL)z~)WQq_bOeB|)5#W2D>Z6GkUk@gKanWt%E0$-^ILc+Zgg&QNx4 z=vLj8vE6qUUIVkYgJ=N#?k{40?|Fkir!zq9X4ta(|)PGdZP0=v@W?}{Hqw+=rq1GI**jEWQ(^qkRJ060&YKrOR71k_Nt|K zFYwj^TLtjnL%O?{3sxR)r(zfUp>G9#|V$)FE&A}m4 zSVx|<99evO4;M8uy0RS+8bYs>WrG@Jl=AcICg`Fv%aOb3P`8!=a*}J7eyp_|* zA!1J;y>dbz=@JTVo#6IJ!l>#K2VQd5QYvnulp`@gZUF8`h6HgZymS9GJE9;M-Lh&4 z3NnF+1uh4l4m~CAZ6Uh-kSge{7gcL#Dt*3nf-5#+`C$=_FE}L%nG0>@V1Kgz5Vj=t zFEb~C&Jy-k((THex#+m%)kir_HL@kUgG|6R%S-6KHhrft;}PFkK`+78)O1j7yb5Sr zh78On)k*n!53as8va@q@wLY#&Wh+d`WXqx!K}HMzTeCu(`}@lCZhDX>oO_mZbj^KR O6Reb$Lb*{{C;l4;ttZ6* diff --git a/Windows/resource.h b/Windows/resource.h index ce9a50b2ea7b..01f93a0a4680 100644 --- a/Windows/resource.h +++ b/Windows/resource.h @@ -263,6 +263,7 @@ #define ID_OPTIONS_STRETCHDISPLAY 40138 #define ID_OPTIONS_FRAMESKIP 40139 #define IDC_MEMCHECK 40140 +#define ID_OPTIONS_USEMEDIAENGINE 40141 #define IDC_STATIC -1 // Next default values for new objects