@@ -29,11 +29,11 @@ namespace GUI {
2929
3030 G2D::FontSetStyle (1 .f , cfg.dark_theme ? WHITE : BLACK, INTRAFONT_ALIGN_LEFT);
3131
32- if (is_psp_go ) {
32+ if (isPSPGo ) {
3333 G2D::DrawImage (icon_sd[cfg.dark_theme ], pos_x + 10 , 92 );
34- G2D::DrawText (pos_x + 50 , 90 + ((30 - (font->glyph ->height - 6 )) / 2 ), !is_ms_inserted ? " ef0:/" : " ms0:/" );
34+ G2D::DrawText (pos_x + 50 , 90 + ((30 - (font->glyph ->height - 6 )) / 2 ), !isMSInserted ? " ef0:/" : " ms0:/" );
3535
36- if (is_ms_inserted ) {
36+ if (isMSInserted ) {
3737 G2D::DrawImage (icon_secure[cfg.dark_theme ], pos_x + 10 , 122 );
3838 G2D::DrawText (pos_x + 50 , 90 + ((30 - (font->glyph ->height - 6 )) / 2 ) + 30 , " ef0:/" );
3939
@@ -96,14 +96,14 @@ namespace GUI {
9696 else if (ctrl & PSP_CTRL_DOWN)
9797 selection++;
9898
99- if (is_psp_go ) {
99+ if (isPSPGo ) {
100100 if (cfg.dev_options ) {
101- Utils::SetMax (selection, 0 , is_ms_inserted ? 5 : 4 );
102- Utils::SetMin (selection, is_ms_inserted ? 5 : 4 , 0 );
101+ Utils::SetMax (selection, 0 , isMSInserted ? 5 : 4 );
102+ Utils::SetMin (selection, isMSInserted ? 5 : 4 , 0 );
103103 }
104104 else {
105- Utils::SetMax (selection, 0 , is_ms_inserted ? 1 : 0 );
106- Utils::SetMin (selection, is_ms_inserted ? 1 : 0 , 0 );
105+ Utils::SetMax (selection, 0 , isMSInserted ? 1 : 0 );
106+ Utils::SetMin (selection, isMSInserted ? 1 : 0 , 0 );
107107 }
108108 }
109109 else {
@@ -116,31 +116,31 @@ namespace GUI {
116116
117117 switch (selection) {
118118 case 0 :
119- if ((is_psp_go && is_ms_inserted ) || (!is_psp_go )) {
119+ if ((isPSPGo && isMSInserted ) || (!isPSPGo )) {
120120 cfg.cwd = " ms0:" ;
121121 device = BROWSE_STATE_EXTERNAL;
122122 }
123- else if (is_psp_go && !is_ms_inserted ) {
123+ else if (isPSPGo && !isMSInserted ) {
124124 cfg.cwd = " ef0:" ;
125125 device = BROWSE_STATE_INTERNAL;
126126 }
127127 break ;
128128
129129 case 1 :
130- if (!(is_psp_go && is_ms_inserted )) {
130+ if (!(isPSPGo && isMSInserted )) {
131131 if ((R_FAILED (ret = sceIoUnassign (" flash0:" ))) && (ret != 0x80020321 ))
132132 Log::Error (" sceIoUnassign(flash0) failed: 0x%x\n " , ret);
133133
134134 if (R_FAILED (ret = sceIoAssign (" flash0:" , " lflash0:0,0" , " flashfat0:" , IOASSIGN_RDWR, nullptr , 0 )))
135135 Log::Error (" sceIoAssign(flash0) failed: 0x%x\n " , ret);
136136 }
137137
138- cfg.cwd = (is_psp_go && is_ms_inserted )? " ef0:" : " flash0:/" ;
139- device = (is_psp_go && is_ms_inserted )? BROWSE_STATE_INTERNAL : BROWSE_STATE_FLASH0;
138+ cfg.cwd = (isPSPGo && isMSInserted )? " ef0:" : " flash0:/" ;
139+ device = (isPSPGo && isMSInserted )? BROWSE_STATE_INTERNAL : BROWSE_STATE_FLASH0;
140140 break ;
141141
142142 case 2 :
143- if (is_psp_go && is_ms_inserted ) {
143+ if (isPSPGo && isMSInserted ) {
144144 if ((R_FAILED (ret = sceIoUnassign (" flash0:" ))) && (ret != 0x80020321 ))
145145 Log::Error (" sceIoUnassign(flash0) failed: 0x%x\n " , ret);
146146
@@ -155,12 +155,12 @@ namespace GUI {
155155 Log::Error (" sceIoAssign(flash1) failed: 0x%x\n " , ret);
156156 }
157157
158- cfg.cwd = (is_psp_go && is_ms_inserted )? " flash0:/" : " flash1:/" ;
159- device = (is_psp_go && is_ms_inserted )? BROWSE_STATE_FLASH0 : BROWSE_STATE_FLASH1;
158+ cfg.cwd = (isPSPGo && isMSInserted )? " flash0:/" : " flash1:/" ;
159+ device = (isPSPGo && isMSInserted )? BROWSE_STATE_FLASH0 : BROWSE_STATE_FLASH1;
160160 break ;
161161
162162 case 3 :
163- if (is_psp_go && is_ms_inserted ) {
163+ if (isPSPGo && isMSInserted ) {
164164 if ((R_FAILED (ret = sceIoUnassign (" flash1:" ))) && (ret != 0x80020321 ))
165165 Log::Error (" sceIoUnassign(flash1) failed: 0x%x\n " , ret);
166166
@@ -175,12 +175,12 @@ namespace GUI {
175175 Log::Error (" sceIoAssign(flash2) failed: 0x%x\n " , ret);
176176 }
177177
178- cfg.cwd = (is_psp_go && is_ms_inserted )? " flash1:/" : " flash2:/" ;
179- device = (is_psp_go && is_ms_inserted )? BROWSE_STATE_FLASH1 : BROWSE_STATE_FLASH2;
178+ cfg.cwd = (isPSPGo && isMSInserted )? " flash1:/" : " flash2:/" ;
179+ device = (isPSPGo && isMSInserted )? BROWSE_STATE_FLASH1 : BROWSE_STATE_FLASH2;
180180 break ;
181181
182182 case 4 :
183- if (is_psp_go && is_ms_inserted ) {
183+ if (isPSPGo && isMSInserted ) {
184184 if ((R_FAILED (ret = sceIoUnassign (" flash2:" ))) && (ret != 0x80020321 ))
185185 Log::Error (" sceIoUnassign(flash2) failed: 0x%x\n " , ret);
186186
@@ -195,12 +195,12 @@ namespace GUI {
195195 Log::Error (" sceIoAssign(flash3) failed: 0x%x\n " , ret);
196196 }
197197
198- cfg.cwd = (is_psp_go && is_ms_inserted )? " flash2:/" : " flash3:/" ;
199- device = (is_psp_go && is_ms_inserted )? BROWSE_STATE_FLASH2 : BROWSE_STATE_FLASH3;
198+ cfg.cwd = (isPSPGo && isMSInserted )? " flash2:/" : " flash3:/" ;
199+ device = (isPSPGo && isMSInserted )? BROWSE_STATE_FLASH2 : BROWSE_STATE_FLASH3;
200200 break ;
201201
202202 case 5 :
203- if (is_psp_go && is_ms_inserted ) {
203+ if (isPSPGo && isMSInserted ) {
204204 if ((R_FAILED (ret = sceIoUnassign (" flash3:" ))) && (ret != 0x80020321 ))
205205 Log::Error (" sceIoUnassign(flash3) failed: 0x%x\n " , ret);
206206
@@ -210,7 +210,7 @@ namespace GUI {
210210 cfg.cwd = " flash3:/" ;
211211 device = BROWSE_STATE_FLASH3;
212212 }
213- else if (!is_psp_go ) {
213+ else if (!isPSPGo ) {
214214 if (sceUmdCheckMedium () != 0 ) {
215215 if (R_FAILED (ret = sceUmdActivate (1 , " disc0:" )))
216216 Log::Error (" sceUmdActivate(disc0) failed: 0x%x\n " , ret);
0 commit comments