PanicAlertT("Warning: You loaded a save that's after the end of the current movie. (byte %u > %u) (frame %u > %u). You should load another save before continuing, or load this state with read-only mode off.", (u32)g_currentByte+256, (u32)g_totalBytes+256, (u32)g_currentFrame, (u32)g_totalFrames);
840
843
}
841
- else if(g_currentByte > 0 && g_totalBytes > 0)
844
+ else if(g_currentByte > 0 && g_totalBytes > 0)
842
845
{
843
846
// verify identical from movie start to the save's current frame
// this is a "you did something wrong" alert for the user's benefit.
852
855
// we'll try to say what's going on in excruciating detail, otherwise the user might not believe us.
853
- if(IsUsingWiimote(0))
856
+ if(IsUsingWiimote(0))
854
857
{
855
858
// TODO: more detail
856
859
PanicAlertT("Warning: You loaded a save whose movie mismatches on byte %d (0x%X). You should load another save before continuing, or load this state with read-only mode off. Otherwise you'll probably get a desync.", i+256, i+256);
PanicAlert("Failed to link shaders!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",
PanicAlert("Failed to compile %s shader!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",
+ if (*n==0) return nullptr;+ if (ratio > 0x10000)for (; currentSample < numSamples*2 && ((indexW-indexR) & INDEX_MASK) > 2; currentSample+=2) {{+ if (m_muted){+ if (m_pa_error < 0){- for(LiteralPool& pool : currentLitPool) {+ for (LiteralPool& pool : currentLitPool) {- for(LiteralPool& old_pool : currentLitPool) {+ for (LiteralPool& old_pool : currentLitPool) {{+ if (val & 0xFFFF0000)} else if (!TrySetValue_TwoOp(reg,val)) {{+ if (shift == 32) shift = 0;{{+ switch (Type){- if( kern_result != KERN_SUCCESS )+ if (kern_result != KERN_SUCCESS)- if( classes_to_match == nullptr )+ if (classes_to_match == nullptr)- if( kern_result != KERN_SUCCESS)+ if (kern_result != KERN_SUCCESS)- if( next_media != 0 )+ if (next_media != 0){- if( str_bsd_path == nullptr )+ if (str_bsd_path == nullptr){- if( CFStringGetCString( (CFStringRef)str_bsd_path,+ if (CFStringGetCString( (CFStringRef)str_bsd_path,{+ if (psz_buf != nullptr){- } while( ( next_media = IOIteratorNext( media_iterator ) ) != 0 );+ } while (( next_media = IOIteratorNext( media_iterator ) ) != 0);- if ( cdfd >= 0 )+ if (cdfd >= 0){{+ for (u32 i = 0; i != size; ++i)@@ -122,18 +122,18 @@ inline u64 _rotr64(u64 x, unsigned int shift){+ if (new_locale == LC_GLOBAL_LOCALE){+ else if (new_locale != nullptr){+ for (int i = LC_MIN; i <= LC_MAX; i++)+ for (i=0;i<count;i++){+ for ( ; ; lpAct++ ){if ( _tcsstr( lpszUnDSymbol, _T("(void)") ) == nullptr && _tcsstr( lpszUnDSymbol, _T("()") ) == nullptr){+ for ( ; ; index++ ){lpszParamSep = _tcschr( lpszParsed, _T(',') );+ for ( ULONG index = 0; ; index++ ){- if( !bResult || callStack.AddrFrame.Offset == 0 )+ if (!bResult || callStack.AddrFrame.Offset == 0)- if ( hThread != GetCurrentThread() )+ if (hThread != GetCurrentThread())- if ( SuspendThread( hThread ) == -1 )+ if (SuspendThread( hThread ) == -1){- for( ULONG index = 0; ; index++ )+ for (ULONG index = 0; ; index++){- if ( index == 0 )+ if (index == 0)- if( !bResult || callStack.AddrFrame.Offset == 0 )+ if (!bResult || callStack.AddrFrame.Offset == 0){{+ if (samples == 0) samples = max(Step, 1u);+ if (Step < 1) Step = 1;+ for (int i = 0; i < nblocks; i+=Step){+ switch (len & 15){+ if (samples == 0) samples = max(Step, 1u);{+ if (samples == 0) samples = max(Step, 1u);{+ switch (len & 7){+ if (samples == 0) samples = max(Step, 1u);{+ if (samples == 0) samples = max(Step, 1u);+ if (Step < 1) Step = 1;+ for (int i = -nblocks; i < 0; i+=Step){+ switch (len & 7){+ if (samples == 0) samples = max(Step, 1u);{+ switch (len & 7){{{+ for (int i = 0; i < 16; ++i){crit_caption = str_translator(_trans("Critical"));+ switch (Style){{- for(const char& c : key) {+ for (const char& c : key) {WriteByte('=');- for(const char& c : value) {+ for (const char& c : value) {{+ while (1){{{+ if (gmTime->tm_isdst == 1)@@ -287,12 +287,15 @@ void XEmitter::ABI_PopAllCalleeSavedRegsAndAdjustStack() {void XEmitter::ABI_CallFunction(void *func) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -302,12 +305,15 @@ void XEmitter::ABI_CallFunctionC16(void *func, u16 param1) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -318,12 +324,15 @@ void XEmitter::ABI_CallFunctionCC16(void *func, u32 param1, u16 param2) {- && distance < 0xFFFFFFFF80000000ULL) {- } else {+ {+ {@@ -333,12 +342,15 @@ void XEmitter::ABI_CallFunctionC(void *func, u32 param1) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -349,12 +361,15 @@ void XEmitter::ABI_CallFunctionCC(void *func, u32 param1, u32 param2) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -365,12 +380,15 @@ void XEmitter::ABI_CallFunctionCP(void *func, u32 param1, void *param2) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -433,12 +460,15 @@ void XEmitter::ABI_CallFunctionPC(void *func, void *param1, u32 param2) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -467,12 +500,15 @@ void XEmitter::ABI_CallFunctionR(void *func, X64Reg reg1) {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {@@ -481,24 +517,30 @@ void XEmitter::ABI_CallFunctionR(void *func, X64Reg reg1) {void XEmitter::ABI_CallFunctionRR(void *func, X64Reg reg1, X64Reg reg2, bool noProlog) {- if (reg2 != ABI_PARAM1) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {- && distance < 0xFFFFFFFF80000000ULL) {+ {- } else {+ {+ if (codeByte == 0x0F){{{{{{+ switch (type){LogInfo("Type 1: If Equal");{+ if (!File::Exists(_StartupPara.m_strFilename)){PanicAlertT("The file you specified (%s) does not exist",+ } while (PowerPC::ppcState.gpr[3] != 0x00);+ } while (PowerPC::ppcState.gpr[3] != 0x00);+ for (int i=0; i<len; i++){+ if (_CoreParameter.iGDBPort > 0){+ if (!_CoreParameter.bCPUThread)+ if (_CoreParameter.bCPUThread){+ if (video_update){+ if (!eventPool)+ while (eventPool){{+ if (Core::IsCPUThread()){{+ for (;;){+ if (!next || ne->time < next->time){+ while (first){{{+ if (gdg_buffer){+ if (!gdg_buffer)- for (int i = 0; i < m_totalSize; i++) {+ {- if(gdg_buffer) {+ {{+ if (ptr[i] >= '0' && ptr[i] <= '1'){+ if (fsrc.fail()){+ for (int j = 0; j < (int)col_pos; j++){{+ for (u32 i = 0; i < numCodes; i++){header.append("};\n\n");header.append("const unsigned short dsp_code[NUM_UCODES][0x1000] = {\n");+ for (u32 i = 0; i < numCodes; i++){+ if (codes[i].size() == 0)header.append("\t{\n\t\t");+ if (bUsingJIT)- if(dspjit) {+ if (dspjit) {{+ for (u16 i = 0x0000; i < 0xffff; ++i){{{+ switch (reg){{+ switch (reg){+ for (int i = 0x0000; i < MAX_BLOCKS; i++){{+ for (int i = 0x0000; i < 0x1000; i++){+ for (int i = 0x0000; i < 0x10000; i++){{+ for (u16 i = 0x0000; i < 0xffff; ++i){{+ switch (sreg){+ switch (sreg){+ switch (sreg){- switch(sreg) {+ switch (sreg) {- switch(sreg) {+ switch (sreg) {+ switch (sreg){+ switch (cond){{+ switch (reg){+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){+ for (unsigned int i = 0; i < 32; i++){+ for (unsigned int i = 0; i < 2; i++){+ for (unsigned int i = 0; i < 2; i++){+ for (i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){+ for (i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){+ for (i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ else if (cache.regs[i].loc.IsImm()){if (!emit) {+ for (i = 0; i < NUMXREGS; i++){+ for (i = 0; i < NUMXREGS; i++){+ for (i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{+ for (unsigned int i = 0; i < NUMXREGS; i++){{+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){+ for (unsigned int i = 0; i < NUMXREGS; i++){@@ -541,7 +541,7 @@ void DSPJitRegCache::popRegs() {+ for (int i = NUMXREGS-1; i >= 0; i--){{@@ -564,7 +564,7 @@ void DSPJitRegCache::popRegs() {+ for (unsigned int i = 0; i <= DSP_REG_MAX_MEM_BACKED; i++){{{+ switch (regs[reg].size){{+ switch (regs[reg].size){{+ switch (regs[reg].size){{+ switch (regs[reg].size){+ switch (reg){+ switch (reg){+ switch (regs[sreg].size){+ switch (extend){+ switch (extend){{+ switch (regs[dreg].size){{+ switch (regs[dreg].size){+ switch (extend){+ switch (extend){{{{+ switch (cmd){{+ else if (existing - magic > 5){{- if(*(u32*)Memory::GetPointer(GPR(3)) > 0x80000000){+ {- }else{+ {- for(int i = 4; i<= 10; i++){+ {+ while (*pString){{- if(*pString == '%') {+ if (*pString == '%') {+ while (*pString < 'A' || *pString > 'z' || *pString == 'l' || *pString == '-')+ switch (*pString){+ if (_rOutBuffer[_rOutBuffer.length() - 1] == '\n')- if(!soundStream) PanicAlert("Error starting up sound stream");+ if (!soundStream) PanicAlert("Error starting up sound stream");+ while (i < _Size){{+ switch (PB.Format){+ for (int i = 0; i < 0x50; i++){{+ if ((i & 1) == 0)ss.fill('0');- if(!soundStream) PanicAlert("Error starting up sound stream");+ if (!soundStream) PanicAlert("Error starting up sound stream");{+ switch (_DVDInterrupt){{{{{{+ else if (Movie::IsPlayingInput() && !Movie::IsUsingMemcard() && Movie::IsConfigSaved())+ if (!m_Control.TSTART) // completed !{+ if (notifyPresenceChanged){+ if (pSaveDevice != pDevice){+ if (p.GetMode() != PointerWrap::MODE_READ){{+ switch (m_uCommand){{+ switch (m_uPosition){{+ switch (m_uPosition){{+ switch (m_uPosition){{+ if (!m_bDirty)+ if (!exiting)Core::DisplayMessage(StringFromFormat("Writing to memory card %c", card_index ? 'B' : 'A'), 1000);+ if (m_uPosition >= 5)+// if (BE16(dir_backup.UpdateCounter) > BE16(dir.UpdateCounter)) //check if the backup is newer// {+ while (i < DIRLEN){+ for (int i = 0; i < 16; i++){+ for (int i = 0; i < 16; i++){+ switch (offset){+ switch (GetSaveData(index, saveData)){{+ switch (saveType){{+ for (j=i; j<8;++j){{+ for (int i = 0; i < 12; i++){{+ if (tlbe[0].tag == (vpa & ~0xfff) && !(tlbe[0].flags & TLB_FLAG_INVALID)){+ if (tlbe[1].tag == (vpa & ~0xfff) && !(tlbe[1].flags & TLB_FLAG_INVALID)){{+ if ((tlbe[0].flags & TLB_FLAG_MOST_RECENT) == 0){{+ if (tlbe[0].tag == (vpa & ~0xfff)){+ if (tlbe[1].tag == (vpa & ~0xfff)){+ if (tlbe_i[0].tag == (vpa & ~0xfff)){+ if (tlbe_i[1].tag == (vpa & ~0xfff)){{+ for (int i = 0; i < MAX_SI_CHANNELS; i++){+ if (pSaveDevice != pDevice){+ if (p.GetMode() != PointerWrap::MODE_READ ||{MMIO::ComplexWrite<u32>([](u32, u32 val) {+ // clear bits ( if (tmp.bit) SISR.bit=0 ){+ switch (_SIInterrupt){+ while (num < _iLength){+ while (iPosition < _iLength){+ switch (command){{+ if (Movie::IsPlayingInput()){+ else if (Movie::IsRecordingInput()){+ if (Movie::IsPlayingInput()){+ else if (Movie::IsRecordingInput()){+ if (Movie::IsPlayingInput()){+ else if (Movie::IsRecordingInput()){{+ for (int i = 0; i < 12; i++){+ if (field == FieldType::FIELD_PROGRESSIVE || GetXFBAddressBottom() != (GetXFBAddressTop() - 1280)){- } else {+ {} else {u8 data[32] = {};+ switch (data[1]){+ switch (data[2] >> 0x01){if (logCom) Name.append(" REG_EEPROM"); break;+ switch (data[3]){{Name.append(" REG_SPEAKER");+ if (data[6] == 7){+ if (data[8] == 0x00){if (region_offset >= 0x40 && region_offset <= 0x4c) {+ if (!emu)+ switch (data[2]>>1){if (logCom) Name.append(" REG_EEPROM");+ switch (data[3]){if (logCom) Name.append(" REG_SPEAKER");+ if (!dataRep.empty()){+ switch (dataReply[0]){Name.append(" REG_EEPROM");- if(data[4] == 0xf0 && data[5] == 0x00 && data[6] == 0x10) {- if(data[6] == 0x10) {+ if (data[4] == 0xf0 && data[5] == 0x00 && data[6] == 0x10) {+ if (data[6] == 0x10) {+ switch (dataReply[1]){case 0xa2: if (logCom) Name.append(" REG_SPEAKER"); break;case 0xa4: if (logCom) Name.append(" REG_EXT"); break;+ if (data[4] == 0xf0 && data[5] == 0x00 && (data[6] == 0x20 || data[6] == 0x30)){//TmpData = StringFromFormat("Read[%s] (enc): %s", (Emu ? "Emu" : "Real"), ArrayToString(data, size + 2).c_str());{+ if (data[7 + 0] != 0xff){+ else if (data[7] == 0xff){{+ if (rdr->error == 7 || rdr->error == 8){+ for (int i=0; i<10; ++i)+ for (idx = 0; idx < 7; ++idx){{- if(!s.step) {+ {+ if (!(Movie::IsPlayingInput() || Movie::IsRecordingInput()) || NetPlay::IsNetPlayRunning()){{+ if (Movie::IsPlayingInput() || Movie::IsRecordingInput() || NetPlay::IsNetPlayRunning()){+ if (IsBalanceBoardName(name)){{+ while (!sbt->done);+ if (IsBalanceBoardName([[dev name] UTF8String])){{{{u8 static const req_status_report[] = {WM_SET_REPORT | WM_BT_OUTPUT, WM_REQUEST_STATUS, 0};+ if (m_want_wiimotes)+ if (m_want_bb && found_board){+ while (CalculateWantedWiimotes() && CalculateConnectedWiimotes() < found_wiimotes.size() && timeout){{{{+ if (found_board)+ for (u32 i = 0; i < CommandBuffer.NumberPayloadBuffer; i++){+ if (!m_pFileSystem && VolumeHandler::IsValid()){+ if (m_pFileSystem && !VolumeHandler::IsValid()){{PanicAlertT("Detected attempt to read more data from the DVD than fit inside the out buffer. Clamp.");+ if (!VolumeHandler::RAWReadToPtr(Memory::GetPointer(_BufferOut), DVDAddress, Size)){PanicAlertT("DVDLowUnencryptedRead - Fatal Error: failed to read from volume");+ if (Buffer.NumberPayloadBuffer)+ if (!File::Exists(tmdPath)){+ for (u32 i = 0; i < CommandBuffer.NumberPayloadBuffer; i++){+ switch (CommandBuffer.Parameter){{{+ switch (_Parameter){{- while(1) {+ while (1) {+ switch (type){{- while(count > 65536) {+ while (count > 65536) {+ while (!todo.empty()){- while(count > 65536) {+ while (count > 65536) {+ if (cRet == 0 && config->bNumInterfaces <= MAX_HID_INTERFACES){{+ if (cRet){+ if (hidDeviceAliases[i] != 0 && check_cur != check){+ if (devNum >= MAX_DEVICE_DEVNUM){+ if (libusb_kernel_driver_active(handle, 0) != LIBUSB_ERROR_NO_DEVICE){{{- if( dRet )+ if (dRet){- else{+ {{+ if (!has_warned_about_drivers){{+ if (id == 0 && pos == -1){+ if (pos != -1){SetEmail("@wii.com");+ for (i=0; i<nwc24_config_t::URL_COUNT; i++){{+ if (config_error)+ for (u32 i = 0; i < CommandBuffer.NumberPayloadBuffer; i++){- switch(CommandBuffer.Parameter) {+ switch (CommandBuffer.Parameter) {+ switch (Parameter){+ if (pHeader->length != DataSize){+ switch (buffer.Read8(0)){+ switch (it->net_type){{{{{+ switch (it->ssl_type){{{{{{+ if (!g_bPolled)+ if (g_framesToSkip){+ if (Core::GetState() == Core::CORE_PAUSE){+ else if (!g_bFrameStep){{+ if (g_playMode != MODE_NONE || controllers == 0){+ if (File::Exists(tmpStateFilename)){{+ if (x != 128 || y != 128){+ if (x != 128 && y != 128){+ else if (x != 128){{+ if (v > 0){+ if (v == 255){+ if (g_padState.A)g_InputDisplay[controllerID].append(" A");+ if (g_padState.B)g_InputDisplay[controllerID].append(" B");+ if (g_padState.X)g_InputDisplay[controllerID].append(" X");+ if (g_padState.Y)g_InputDisplay[controllerID].append(" Y");+ if (g_padState.Z)g_InputDisplay[controllerID].append(" Z");+ if (g_padState.Start)g_InputDisplay[controllerID].append(" START");+ if (g_padState.DPadUp)g_InputDisplay[controllerID].append(" UP");+ if (g_padState.DPadDown)g_InputDisplay[controllerID].append(" DOWN");+ if (g_padState.DPadLeft)g_InputDisplay[controllerID].append(" LEFT");+ if (g_padState.DPadRight)g_InputDisplay[controllerID].append(" RIGHT");+ if (coreData){+ if (buttons & WiimoteEmu::Wiimote::PAD_LEFT)g_InputDisplay[controllerID].append(" LEFT");+ if (buttons & WiimoteEmu::Wiimote::PAD_RIGHT)g_InputDisplay[controllerID].append(" RIGHT");+ if (buttons & WiimoteEmu::Wiimote::PAD_DOWN)g_InputDisplay[controllerID].append(" DOWN");+ if (buttons & WiimoteEmu::Wiimote::PAD_UP)g_InputDisplay[controllerID].append(" UP");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_A)g_InputDisplay[controllerID].append(" A");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_B)g_InputDisplay[controllerID].append(" B");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_PLUS)g_InputDisplay[controllerID].append(" +");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_MINUS)g_InputDisplay[controllerID].append(" -");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_ONE)g_InputDisplay[controllerID].append(" 1");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_TWO)g_InputDisplay[controllerID].append(" 2");+ if (buttons & WiimoteEmu::Wiimote::BUTTON_HOME)g_InputDisplay[controllerID].append(" HOME");+ if (accelData){+ if (irData) // incomplete{{+ if (!IsRecordingInput() || !IsUsingWiimote(wiimote)){+ if (!filename || g_playMode != MODE_NONE)+ if (!File::Exists(filename))- if(tmpHeader.filetype[0] != 'D' || tmpHeader.filetype[1] != 'T' || tmpHeader.filetype[2] != 'M' || tmpHeader.filetype[3] != 0x1A) {+ tmpHeader.filetype[3] != 0x1A) {PanicAlertT("Invalid recording file");+ if (tmpHeader.bFromSaveState){+ if (File::Exists(stateFilename))+ if (tmpHeader.filetype[0] != 'D' || tmpHeader.filetype[1] != 'T' || tmpHeader.filetype[2] != 'M' || tmpHeader.filetype[3] != 0x1A){PanicAlertT("Savestate movie %s is corrupted, movie recording stopping...", filename);{PanicAlertT("Warning: You loaded a save that's after the end of the current movie. (byte %u > %u) (frame %u > %u). You should load another save before continuing, or load this state with read-only mode off.", (u32)g_currentByte+256, (u32)g_totalBytes+256, (u32)g_currentFrame, (u32)g_totalFrames);+ else if (g_currentByte > 0 && g_totalBytes > 0){{+ if (IsUsingWiimote(0)){PanicAlertT("Warning: You loaded a save whose movie mismatches on byte %d (0x%X). You should load another save before continuing, or load this state with read-only mode off. Otherwise you'll probably get a desync.", i+256, i+256);{{+ if (g_playMode != MODE_PLAYING){Core::DisplayMessage("Switched to playback", 2000);{+ if (g_playMode != MODE_RECORDING){Core::DisplayMessage("Switched to recording", 2000);+ if (g_padState.A){+ if (g_padState.B){+ if (g_padState.X)+ if (g_padState.Y)+ if (g_padState.Z)+ if (g_padState.Start)+ if (g_padState.DPadUp)+ if (g_padState.DPadDown)+ if (g_padState.DPadLeft)+ if (g_padState.DPadRight)+ if (g_padState.L)+ if (g_padState.R){{+ if (!IsPlayingInput() || !IsUsingWiimote(wiimote) || tmpInput == nullptr)Core::DisplayMessage("Reached movie end. Resuming recording.", 2000);+ else if (g_playMode != MODE_NONE){(std::string("dolphin-emu TCP on ") + addr).c_str(),+ if (result != 0)+ while (len-- > 0)+ if (!gdb_active())- while (left > 0) {+ {{{- while (gdb_active()) {+ {- switch(cmd_bfr[0]) {+ switch (cmd_bfr[0]) {{{{+ switch (_quantizeType){{+ switch (iIndex){+ if (inst.AA){+ if (!single){{+ if (!single){{+ if (!single){{- if( arg.IsImm() )+ if (arg.IsImm()){- if( value < 0 )+ if (value < 0)- else if( value > 0 )+ else if (value > 0){+ else if (imm == (u32)-1){+ else if ((imm & (imm - 1)) == 0){{+ else if (imm == (u32)-1){+ else if ((imm & (imm - 1)) == 0 && !inst.OE){{- if( gpr.R(b).offset == 0 )+ if (gpr.R(b).offset == 0){{+ while (!(divisor & (1 << shift))){- if( j == 0 || (i == (s32)0x80000000 && j == -1))+ if (j == 0 || (i == (s32)0x80000000 && j == -1)){+ switch (inst.SUBOP10){+ if (js.downcountAmount < 255) // We can enlarge this if we used rotations{printf("\tOuts\n");printf("\t-OUT_A: %x\n", inst.RA);+ if (Info->flags & FL_OUT_D)printf("\t-OUT_D: %x\n", inst.RD);printf("\tIns\n");+ if (Info->flags & FL_IN_A)printf("\t-IN_A: %x\n", inst.RA);+ if (Info->flags & FL_IN_A0)printf("\t-IN_A0: %x\n", inst.RA);+ if (Info->flags & FL_IN_B)printf("\t-IN_B: %x\n", inst.RB);+ if (Info->flags & FL_IN_C)printf("\t-IN_C: %x\n", inst.RC);+ if (Info->flags & FL_IN_S)printf("\t-IN_S: %x\n", inst.RS);+ if (ImHereDebug)+ if (inst.AA)+ if (inst.LK_3){{+ switch (Exception){+ switch (inst.SUBOP10){{+ switch (inst.OPCD){+ switch (inst.SUBOP10){+ switch (inst.OPCD){{+ switch (inst.SUBOP10){+ switch (accessSize){+ switch (inst.OPCD){+ switch (inst.OPCD){+ switch (inst.SUBOP10){{+ switch (inst.SUBOP10){{+ switch (inst.SUBOP10){+ switch (inst.SUBOP10){+ for (u8 a = 0; a < NUMPPCREG; ++a){+ for (u8 a = 0; a < NUMARMREG; ++a){{{{+ for (u8 RegNum = 0; RegNum < NUMARMREG; ++RegNum){+ if (ArmRegs[RegNum].Reg == V0){{- for(u8 a = 0; a < NUMPPCREG; ++a){+ for (u8 a = 0; a < NUMPPCREG; ++a){+ for (u8 a = 0; a < NUMPPCREG; ++a){+ for (u8 a = 0; a < NUMARMREG; ++a){{{{+ for (u8 RegNum = 0; RegNum < NUMARMREG; ++RegNum){+ if (ArmRegs[RegNum].Reg == R0){{- for(u8 a = 0; a < NUMPPCREG; ++a){+ {+ if (regs[preg].GetType() == REG_REG){@@ -165,7 +165,7 @@ static void regWriteExit(RegInfo& RI, InstLoc dest) {static void regStoreInstToPPCState(RegInfo& RI, unsigned width, InstLoc I, s32 offset) {+ switch (width){+ if (js.downcountAmount < 255) // We can enlarge this if we used rotations{printf("\tOuts\n");printf("\t-OUT_A: %x\n", inst.RA);+ if (Info->flags & FL_OUT_D)printf("\t-OUT_D: %x\n", inst.RD);printf("\tIns\n");+ if (Info->flags & FL_IN_A)printf("\t-IN_A: %x\n", inst.RA);+ if (Info->flags & FL_IN_A0)printf("\t-IN_A0: %x\n", inst.RA);+ if (Info->flags & FL_IN_B)printf("\t-IN_B: %x\n", inst.RB);+ if (Info->flags & FL_IN_C)printf("\t-IN_C: %x\n", inst.RC);+ if (Info->flags & FL_IN_S)printf("\t-IN_S: %x\n", inst.RS);+ if (inst.AA)+ if (inst.AA)+ if (Core::g_CoreStartupParameter.bJITOff || Core::g_CoreStartupParameter.bJITLoadStoreOff){Default(inst); return;} // turn off from debugger+ switch (core){{+ switch (core){{+ if (!AskYesNo(StringFromFormat({+ switch (table){{+ switch (table){+ if (!File::Exists(titleFolder))- if(!_rFileSystem.ExportFile("opening.bnr", bnrFilename)) {+ if (!_rFileSystem.ExportFile("opening.bnr", bnrFilename)) {- if(!bnrArc.ExportFile("meta/banner.bin", Filename)) {+ if (!bnrArc.ExportFile("meta/banner.bin", Filename)) {+ if (fread(out_ptr, 1, m_blocksize * num_blocks, file_.GetHandle()) != m_blocksize * num_blocks){+ if (lb == m_Map.end() || (m_Map.key_comp()(_rName, lb->first))){{+ if (IsValid()){{+ switch (_TitleVersion){SetUniqueID("AGBJ01");SetName("Default name");+ if (_bIsWii){{+ if (_Offset < DISKHEADERINFO_ADDRESS){+ if (_Offset >= DISKHEADERINFO_ADDRESS && _Offset < APPLOADER_ADDRESS){+ if (_Offset >= APPLOADER_ADDRESS && _Offset < APPLOADER_ADDRESS + m_apploaderSize){+ if (_Offset >= DOL_ADDRESS && _Offset < DOL_ADDRESS + m_DOLSize){+ if (_Offset >= FST_ADDRESS && _Offset < m_dataStartAddress){+ if (m_virtualDisk.empty())+ if (fileIter->first > _Offset && fileIter != m_virtualDisk.begin())+ while (fileIter != m_virtualDisk.end() && _Length > 0){+ if (reader == nullptr)+ if (fileOffset < fileSize){+ if (_Length < fileBytes)+ if (!reader->Read(fileOffset, fileBytes, _pBuffer))+ if (fileIter != m_virtualDisk.end()){+ if (length > 6)+ if (lastSep != directoryName.size() - 1){size_t extensionStart = directoryName.find_last_of('.');+ if (extensionStart != std::string::npos && extensionStart > lastSep){{+ if (m_FSTData){+ for (auto& entry : rootEntry.children){{+ if (_Length == 0)+ if (srcOffset < _SrcLength){+ if (_Length < srcBytes){+ if (_StartAddress <= _Address)+ if (padBytes > _Length)+ if (_Length > 0){{+ if (entry.isDirectory){+ for (const auto& child : entry.children){+ if (!Read(Offset + 0x01E0, 4, (u8*)GameCode)){+ if (!Read(Offset + 0x01DC, 8, _pBuffer)){+ if (!filename || (strlen(filename) < 4) || !OpenFiles(filename) || !ReadHeader()){{+ for (u32 i = 0; i != m_files.size(); ++ i){{+ while (true){+ if (0 != m_total_files){+ if (!new_entry->file.Open(path, "rb")){+ if (m_size != hd_sector_count * hd_sector_size){//printf("File size doesn't match expected size\n");+ if (wbfs_sector_size < wii_sector_size){+ if (0 == disc_table[0]){//printf("Game must be in 'slot 0'\n");{+ while (nbytes){{+ if (base_cluster < m_blocks_per_disc){+ for (u32 i = 0; i != m_total_files; i ++){+ if (final_address < (m_files[i]->base_address + m_files[i]->size)){+ if (available){{+ if (reader->IsGood()){{+ if (pReader) delete pReader;{+ switch (WADTYpe){+ for (const std::string& folder : SConfig::GetInstance().m_ISOFolder){{+ if (Core::GetState() != Core::CORE_UNINITIALIZED){SConfig::GetInstance().m_SYSCONF->SetData("IPL.LNG", wii_system_lang);- if(!SConfig::GetInstance().m_SYSCONF->SetArrayData("IPL.SADR", &country_code, 1))+ if (!SConfig::GetInstance().m_SYSCONF->SetArrayData("IPL.SADR", &country_code, 1)){PanicAlert("Failed to update country code in SYSCONF");{+ for (u32 i = 0; i < BlrList.size(); i++){+ if (BlrList.at(i).Address == selection){+ if (!OpenCommand.IsEmpty()){- if(!AskYesNo("Do you want to clear the list of symbol names?")) return;+ if (!AskYesNo("Do you want to clear the list of symbol names?")) return;{+ if (pSymbol->type == Symbol::SYMBOL_DATA){+ if (m_MemoryWindow)// && m_MemoryWindow->IsVisible()){file.Set("VideoWindow", "x", GetPosition().x);file.Set("VideoWindow", "y", GetPosition().y);{+ if (GetPosition().x != -32000 && GetPosition().y != -32000){_IniFile.Set("MemoryWindow", "x", GetPosition().x);_IniFile.Set("MemoryWindow", "y", GetPosition().y);+ for (i = 0; i < strlen(tmpstr); i++){+ for (i = 0; i < size; i++)+ if (size){- for( ; i < szRAM; i++)+ for ( ; i < szRAM; ++i){- for(k = 0; k < size; k++)+ for (k = 0; k < size; ++k){{+ if (k == size){wxMessageBox(_("A match was found. Placing viewer at the offset."));{+ switch (wParam){+ if (main_frame->IsIconized()){{{+ if (event.Dragging())+ if (!g_Config.bFreeLook){+ if (event.MiddleDown()){+ else if (event.RightDown()){+ else if (event.MiddleUp()){+ else if (event.RightUp()){+ else if (event.GetButton() == wxMOUSE_BTN_NONE){{{+ switch (event.GetId()){{+ if (GetNotebookAffiliation(i) >= 0){+ switch (event.GetId()){{+ switch (EventId){+ for (u32 j = 0; j < NB->GetPageCount(); j++){+ for (u32 j = 0; j < NB->GetPageCount(); j++){if (NB->GetPageText(j).IsSameAs(wxT("<>")) && NB->GetPageCount() > 1)+ for (u32 k = 0; k < NB->GetPageCount(); k++){emulationMenu->AppendSubMenu(skippingMenu, _("Frame S&kipping"));+ for (int i = 0; i < 10; i++)skippingMenu->Append(IDM_FRAMESKIP0 + i, wxString::Format(wxT("%i"), i), wxEmptyString, wxITEM_RADIO);{{{+ if (isPaused && !wasPaused) // don't update on unpause, otherwise the status would be wrong when pausing next frame+ if (Movie::BeginRecordingInput(controllers))BootGame(std::string(""));+ if (path.IsEmpty())+ if (bFullscreen)+ if (Movie::IsRecordingInput())+ if (Movie::IsPlayingInput() || Movie::IsRecordingInput())+ if (path.IsEmpty()){+ switch (event.GetId()){{{+ if (!Platform.SelectDisplay())+ switch (s_opengl_mode){{+ if (!eglDestroyContext(GLWin.egl_dpy, GLWin.egl_ctx))+ if (!eglDestroySurface(GLWin.egl_dpy, GLWin.egl_surf))+ if (!eglTerminate(GLWin.egl_dpy)){- switch(event.type) {+ switch (event.type) {+ switch (sortData){+ if (iso1->GetCountry() > iso2->GetCountry())+ if (iso1->GetCountry() < iso2->GetCountry())+ if (iso1->GetPlatform() > iso2->GetPlatform())+ if (iso1->GetPlatform() < iso2->GetPlatform()){+ for (long i = 0; i < GetItemCount(); i++){{+ switch (ISOFile.GetPlatform()){+ switch (ISOFile.GetCountry()){{+ if (event.GetColumn() != COLUMN_BANNER){popupMenu->AppendCheckItem(IDM_SETDEFAULTGCM, _("Set as &default ISO"));+ if (selected_iso->GetFileName() == SConfig::GetInstance().{popupMenu->Append(IDM_COMPRESSGCM, _("Decompress ISO..."));- else if (selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".ciso"- && selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".wbfs")+ else if (selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".ciso" &&+ selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".wbfs")popupMenu->Append(IDM_COMPRESSGCM, _("Compress ISO..."));+ if (ISOProperties.ShowModal() == wxID_OK){+ if (ClickedButton != nullptr){+ if ( GetButtonWaitingID != _GetId || !m_ButtonMappingTimer->IsRunning() ){+ if (m_ButtonMappingTimer->IsRunning()){+ if (OpenISO->GetTitleID(_tTitleID)){+ if (!itemName){popupMenu->Append(IDM_EXTRACTDIR, _("Extract Partition..."));popupMenu->Append(IDM_EXTRACTALL, _("Extract All Files..."));{popupMenu->Append(IDM_EXTRACTAPPLOADER, _("Extract Apploader..."));{+ for (index[0] = 0; index[0] < fst.size(); index[0]++){{std::size_t partitionNum = (std::size_t)wxAtoi(Directory.Mid(Directory.find_first_of("/"), 1));Directory.Remove(0, Directory.find_first_of("/") +1); // Remove "Partition x/"+ if (WiiDisc.size() > partitionNum){wxFileType* filetype = wxTheMimeTypesManager->GetFileTypeFromExtension(_T("ini"));+ if (filetype == nullptr) // From extension failed, trying with MIME type now{filetype = wxTheMimeTypesManager->GetFileTypeFromMimeType(_T("text/plain"));+ if (filetype == nullptr) // MIME type failed, aborting mission{PanicAlertT("Filetype 'ini' is unknown! Will not open!");+ if (OpenCommand.IsEmpty())PanicAlertT("Couldn't find open command for extension 'ini'!");+ if (wxExecute(OpenCommand, wxEXEC_SYNC) == -1)PanicAlertT("wxExecute returned -1 on application run!");{{{ini.Get("Interface", "Language", &language, wxLANGUAGE_DEFAULT);+ if (wxLocale::IsAvailable(language)){m_locale->AddCatalog(wxT("dolphin-emu"));+ if (!m_locale->IsOk()){PanicAlertT("Error loading selected language. Falling back to system default.");+ switch (_State){case 0: event.SetString(_("Not connected")); break;case 1: event.SetString(_("Connecting...")); break;{+ switch (event.type){{+ while (!GLWin.wl_display)+ for (int i = COLUMN_GAMECODE; i < NUMBER_OF_COLUMN; i++){{+ if (m_MemcardPath[slot]->GetPath().length())PanicAlertT("Memcard already opened");{+ switch (_id){- if(PanicYesNoT("Warning: This will overwrite any existing saves that are in the folder:\n"+ if (PanicYesNoT("Warning: This will overwrite any existing saves that are in the folder:\n"{+ for (u32 i = 0; i < _numberOfFiles; i++){{+ for (u32 i = 0; i < _numberOfFiles; i++){+ if (!File::IsDirectory(WiiTitlePath)){PanicAlertT("No save folder found for title %s", GameID);+ if (!File::Exists(WiiTitlePath + "banner.bin")){PanicAlertT("No banner file found for title %s", GameID);{+ if (m_upnp_chk->GetValue()){+ if (PadStatus->stickX != 128){wx_mainX_t->SetValue(wxString::Format(wxT("%i"), mainX));+ else if (mstickx){wx_mainX_t->SetValue(wxString::Format(wxT("%i"), mainX));+ if (PadStatus->stickY != 128){wx_mainY_t->SetValue(wxString::Format(wxT("%i"),mainY));+ else if (msticky){wx_mainY_t->SetValue(wxString::Format(wxT("%i"), mainY));+ if (PadStatus->substickX != 128){wx_cX_t->SetValue(wxString::Format(wxT("%i"), cX));+ else if (cstickx){wx_cX_t->SetValue(wxString::Format(wxT("%i"), cX));+ if (PadStatus->substickY != 128){wx_cY_t->SetValue(wxString::Format(wxT("%i"), cY));+ else if (csticky){wx_cY_t->SetValue(wxString::Format(wxT("%i"), cY));- if(((PadStatus->button & PAD_BUTTON_UP) != 0))+ if ((PadStatus->button & PAD_BUTTON_UP) != 0){+ else if (DU_cont){- if(((PadStatus->button & PAD_BUTTON_DOWN) != 0))+ if ((PadStatus->button & PAD_BUTTON_DOWN) != 0){+ else if (DD_cont){- if(((PadStatus->button & PAD_BUTTON_LEFT) != 0))+ if ((PadStatus->button & PAD_BUTTON_LEFT) != 0){+ else if (DL_cont){- if(((PadStatus->button & PAD_BUTTON_RIGHT) != 0))+ if ((PadStatus->button & PAD_BUTTON_RIGHT) != 0){+ else if (DR_cont){- if(((PadStatus->button & PAD_BUTTON_A) != 0))+ if ((PadStatus->button & PAD_BUTTON_A) != 0){+ else if (A_cont){- if(((PadStatus->button & PAD_BUTTON_B) != 0))+ if ((PadStatus->button & PAD_BUTTON_B) != 0){+ else if (B_cont){- if(((PadStatus->button & PAD_BUTTON_X) != 0))+ if ((PadStatus->button & PAD_BUTTON_X) != 0){+ else if (X_cont){- if(((PadStatus->button & PAD_BUTTON_Y) != 0))+ if ((PadStatus->button & PAD_BUTTON_Y) != 0){+ else if (Y_cont){- if(((PadStatus->triggerLeft) != 0))+ if ((PadStatus->triggerLeft) != 0){{wx_l_t->SetValue(wxString::Format(wxT("%i"), PadStatus->triggerLeft));+ else if (L_cont){- if(((PadStatus->triggerRight) != 0))+ if ((PadStatus->triggerRight) != 0){{wx_r_t->SetValue(wxString::Format(wxT("%i"), PadStatus->triggerRight));+ else if (R_cont){- if(((PadStatus->button & PAD_TRIGGER_Z) != 0))+ if ((PadStatus->button & PAD_TRIGGER_Z) != 0){+ else if (Z_cont){- if(((PadStatus->button & PAD_BUTTON_START) != 0))+ if ((PadStatus->button & PAD_BUTTON_START) != 0){+ else if (START_cont){+ if (wx_up_button->IsChecked())+ if (wx_down_button->IsChecked())+ if (wx_left_button->IsChecked())+ if (wx_right_button->IsChecked())+ if (wx_a_button->IsChecked()){+ if (wx_b_button->IsChecked()){+ if (wx_x_button->IsChecked())+ if (wx_y_button->IsChecked())+ if (wx_z_button->IsChecked())+ if (wx_start_button->IsChecked())+ if (wx_r_button->IsChecked() || rTrig >= 255)+ if (wx_l_button->IsChecked() || lTrig >= 255)+ switch (event.GetId()){text->SetValue(wxString::Format(wxT("%i"), value));+ if (update == 1){+ if (update == 2){+ switch (event.GetId()){+ {{- {- {+ {{+ if (update_axis == 1){{{+ if (TextBoxHasFocus())- wxWindow::FindFocus()->GetParent() == this)+ wxWindow::FindFocus()->GetParent() == this){+ if (wxWindow::FindFocus() == wx_mainX_t)+ if (wxWindow::FindFocus() == wx_mainY_t)+ if (wxWindow::FindFocus() == wx_cX_t)+ if (wxWindow::FindFocus() == wx_cY_t)+ if (wxWindow::FindFocus() == wx_l_t)+ if (wxWindow::FindFocus() == wx_r_t)+ switch (event.GetId()){+ switch (event.GetId()){+ if (*x > 255)+ if (*y > 255){+ switch (event.GetId()){{+ switch (event.GetId()){+ if (A_turbo)+ if (B_turbo)+ if (X_turbo)+ if (Y_turbo)+ if (Z_turbo)+ if (L_turbo)+ if (R_turbo)+ if (START_turbo)+ if (DU_turbo)+ if (DD_turbo)+ if (DL_turbo)+ if (DR_turbo){+ if (A_turbo){+ if (wx_a_button->GetValue())+ if (B_turbo){+ if (wx_b_button->GetValue())+ if (X_turbo){+ if (wx_x_button->GetValue())+ if (Y_turbo){+ if (wx_y_button->GetValue())+ if (Z_turbo){+ if (wx_z_button->GetValue())+ if (L_turbo){+ if (wx_l_button->GetValue())+ if (R_turbo){+ if (wx_r_button->GetValue())+ if (START_turbo){+ if (wx_start_button->GetValue())+ if (DU_turbo){+ if (wx_up_button->GetValue())+ if (DD_turbo){+ if (wx_down_button->GetValue())+ if (DL_turbo){+ if (wx_left_button->GetValue())+ if (DR_turbo){+ if (wx_right_button->GetValue())+ if (index != WIIMOTE_BALANCE_BOARD){{- SubstructureRedirectMask | SubstructureNotifyMask, &event))+ SubstructureRedirectMask | SubstructureNotifyMask, &event)){+ if (SConfig::GetInstance().m_LocalCoreStartupParameter.strFullscreenResolution == "Auto"){-#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=nullptr; } }+#define SAFE_RELEASE(p) { if (p) { (p)->Release(); (p)=nullptr; } }+ if (bstrNamespace)+ if (bstrDeviceID)+ if (bstrClassName)+ if (SUCCEEDED(hr))+ if (SUCCEEDED(hr)){+ for (int i = 0; i < SDL_NumJoysticks(); ++i){- if ((std::string::npos != lcasename.find("xbox 360"))+ if ((std::string::npos != lcasename.find("xbox 360")) &&{+ for (p = servinfo; p != nullptr; p = p->ai_next){+ if (hDXGIDll) FreeLibrary(hDXGIDll);+ if (hD3DDll) FreeLibrary(hD3DDll);{{{{+ if (offset + size >= max_size){+ for (bool* observer : observers){ x2, y1, 0.f, Color },{{+ if (state) ((T*)state)->Release();-} // namespace DX11+ " for (int i = 0; i < samples; ++i)\n"+ " for (int i = 0; i < samples; ++i)\n"+ if (g_ActiveConfig.iMaxAnisotropy != 0) gx_state.sampdc[k].Filter = D3D11_FILTER_ANISOTROPIC;+ if (type == PEEK_COLOR || type == PEEK_Z){+ if (bpmem.zcontrol.pixel_format == PIXELFMT_RGB565_Z16){+ if (map.pData){+ if (bpmem.zcontrol.pixel_format != PIXELFMT_RGBA6_Z24){+ else if (g_ActiveConfig.bUseXFB){{+ if (g_ActiveConfig.iMaxAnisotropy > 0) gx_state.sampdc[stage].Filter = D3D11_FILTER_ANISOTROPIC;if (FAILED(hr)) PanicAlert("Fail %s %d, stage=%d\n", __FILE__, __LINE__, stage);+ if (m_msaaSamples > 1){- if(Result && stringBufferUsage) {+ if (Result && stringBufferUsage) {- } else if(!Result) {+ } else if (!Result) {} else {- if(Result && stringBufferUsage) {+ if (Result && stringBufferUsage) {- } else if(!Result) {+ } else if (!Result) {} else {- if(Result && stringBufferUsage) {+ if (Result && stringBufferUsage) {- } else if(!Result && !shader_errors) {+ } else if (!Result && !shader_errors) {{+ if (!s_enable) return;{- if(s_enable && (width != s_width || height != s_height)) {+ if (s_enable && (width != s_width || height != s_height)) {- if(!File::ReadFileToString(path.c_str(), code)) {+ if (!File::ReadFileToString(path.c_str(), code)) {+ if (PSBlock_id != -1)+ if (VSBlock_id != -1)- for(int i=0; i<8; i++) {+ for (int i=0; i<8; i++) {{+ if (CurrentProgram != glprogid){{+ if (PixelShaderManager::dirty || VertexShaderManager::dirty){+ if (!vsid || !psid){+ if (linkStatus != GL_TRUE)PanicAlert("Failed to link shaders!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",+ if (compileStatus != GL_TRUE)PanicAlert("Failed to compile %s shader!\nThis usually happens when trying to use Dolphin with an outdated GPU or integrated GPU like the Intel GMA series.\n\nIf you're sure this is Dolphin's error anyway, post the contents of %s along with this error message at the forums.\n\nDebug info (%s, %s, %s):\n%s",{+ if (!Supported){{{+ if (entry.second.in_cache){+ if (!binary_size){{- for(u32 y=0; y<char_height; y++) {- for(u32 c=0; c<char_count; c++) {- for(u32 x=0; x<char_width; x++) {+ for (u32 y=0; y<char_height; y++) {+ for (u32 c=0; c<char_count; c++) {+ for (u32 x=0; x<char_width; x++) {- for(size_t i=0; i<length; i++) {+ for (size_t i=0; i<length; i++) {- if(c == '\n') {+ if (c == '\n') {- if(c == ' ') {+ if (c == ' ') {+ if (c < char_offset || c >= char_count+char_offset) continue;- if(!usage) {+ if (!usage) {- if(color != cached_color) {+ if (color != cached_color) {+ if (samples <= g_ogl_config.max_samples) return samples;OSD::AddMessage(StringFromFormat("%d Anti Aliasing samples selected, but only %d supported by your GPU.", samples, g_ogl_config.max_samples), 10000);+ if (g_ogl_config.bSupportCoverageMSAA || samples == 0) return samples;OSD::AddMessage("CSAA Anti Aliasing isn't supported by your GPU.", 10000);@@ -183,15 +183,15 @@ void ApplySSAASettings() {{- if(g_ActiveConfig.iMultisampleMode == MULTISAMPLE_SSAA_4X) {- if(g_ogl_config.bSupportSampleShading) {+ if (g_ActiveConfig.iMultisampleMode == MULTISAMPLE_SSAA_4X) {+ if (g_ogl_config.bSupportSampleShading) {} else {OSD::AddMessage("SSAA Anti Aliasing isn't supported by your GPU.", 10000);- } else if(g_ogl_config.bSupportSampleShading) {+ } else if (g_ogl_config.bSupportSampleShading) {+ switch (source){+ switch (type){+ switch (severity){+ switch (vendor){{if (std::string::npos != srenderer.find("Mali-T6"))- else if(std::string::npos != srenderer.find("Mali-4"))+ else if (std::string::npos != srenderer.find("Mali-4")){+ if (svendor == "nouveau")+ else if (svendor == "Intel Open Source Technology Center")- else if(std::string::npos != srenderer.find("AMD") || std::string::npos != srenderer.find("ATI"))+ else if (std::string::npos != srenderer.find("AMD") || std::string::npos != srenderer.find("ATI")){+ if (strstr(g_ogl_config.glsl_version, "1.00") || strstr(g_ogl_config.glsl_version, "1.10") || strstr(g_ogl_config.glsl_version, "1.20")){PanicAlert("GPU: OGL ERROR: Need at least GLSL 1.30\n"+ else if (strstr(g_ogl_config.glsl_version, "1.30")){+ else if (strstr(g_ogl_config.glsl_version, "1.40")){+ if (samples > 1){+ if (g_ogl_config.max_samples < 1)+ if (g_ActiveConfig.backend_info.bSupportsPrimitiveRestart){+ if (g_ogl_config.bSupportOGL31){+ if (bpmem.zcontrol.pixel_format == PIXELFMT_RGB565_Z16){{+ if (bpmem.zcontrol.pixel_format != PIXELFMT_RGBA6_Z24){+ if (g_ogl_config.bSupportViewportFloat){+ if (g_ActiveConfig.bUseXFB){+ if (s_vsync != g_ActiveConfig.IsVSync()){{+ for (int x = 0; x < w; ++x){{+ for (u32 i=0; i<SYNC_POINTS; i++){- if(m_iterator && stride) {+ if (m_iterator && stride) {std::pair<u8*, size_t> Map(size_t size, u32 stride) override {- if(m_iterator + size >= m_size) {+ if (m_iterator + size >= m_size) {{+ if (!g_ogl_config.bSupportsGLBaseVertex){+ if (!DriverDetails::HasBug(DriverDetails::BUG_BROKENBUFFERSTREAM))+ if (g_ogl_config.bSupportsGLSync){+ if (g_ogl_config.bSupportsGLPinnedMemory &&+ if (DriverDetails::HasBug(DriverDetails::BUG_BROKENUNSYNCMAPPING))+ if (g_ogl_config.bSupportsGLSync){{- if(srcFormat == PIXELFMT_Z24) {+ {+ if (s_DepthCbufid != cbufid)- } else {+ {+ if (s_ColorCbufid != cbufid)+ for (auto& gtex : s_Textures){+ if (s_ActiveTexture != (u32)-1)+ switch (current_primitive_type){- if(g_ogl_config.bSupportsGLBaseVertex) {+ if (g_ogl_config.bSupportsGLBaseVertex) {} else {- if(m_last_vao != nativeVertexFmt->VAO) {+ if (m_last_vao != nativeVertexFmt->VAO) {{+ for (int i = 0; i < 3; i += 3){+ if (!CullTest(v0, v1, v2, backface))int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG,+ for (int i = 0; i+3 <= numIndices; i+=3){+ if (indices[i] != SKIP_FLAG){+ if (indices[0] != SKIP_FLAG){+ if (fabsf(dx) > fabsf(dy)){+ if (dx > 0){+ if (dy > 0)+ if (mask){+ if (fract)+ if (!g_SWVideoConfig.bBypassXFB){void BypassXFB(u8* texture, u32 fbWidth, u32 fbHeight, const EFBRectangle& sourceRc, float Gamma) {- if(fbWidth*fbHeight > 640*568) {+ if (fbWidth*fbHeight > 640*568) {+ switch (Cmd){+ switch (Cmd){+ if ((x - t) >= 0.5){+ for (int comp = 0; comp < 4; comp++){{+ if (order.getEnable(stageOdd)){+ for (unsigned int i = 0; i < bpmem.genMode.numcolchans; i++){+ for (int comp = 0; comp < 4; comp++)+ for (unsigned int i = 0; i < bpmem.genMode.numtexgens; i++){+ for (int comp = 0; comp < 3; comp++)+ for (s32 y = miny; y < maxy; y += BLOCK_SIZE){+ for (s32 x = minx; x < maxx; x += BLOCK_SIZE){+ if (a == 0x0 || b == 0x0 || c == 0x0)+ if (a == 0xF && b == 0xF && c == 0xF){+ for (s32 iy = 0; iy < BLOCK_SIZE; iy++){+ for (s32 ix = 0; ix < BLOCK_SIZE; ix++){+ for (s32 iy = 0; iy < BLOCK_SIZE; iy++){+ for (s32 ix = 0; ix < BLOCK_SIZE; ix++){+ if (CX1 > 0 && CX2 > 0 && CX3 > 0){@@ -160,7 +160,7 @@ void SWRenderer::swapColorTexture() {{- if(fbWidth*fbHeight > 640*568) {+ if (fbWidth*fbHeight > 640*568) {{+ if (!g_SWVideoConfig.bBypassXFB){{+ switch (m_PrimType){{+ switch (colorChan){{- switch(cmp) {+ switch (cmp) {{- switch(cmp) {+ switch (cmp) {{{- switch(comp) {+ switch (comp) {+ switch (indirect.fmt){+ if (bpmem.fogRange.Base.Enabled){+ switch (format){+ switch (format){+ switch (format){+ switch (format){+ switch (format){+ switch (format){+ if (s_Stream->codec->coded_frame->key_frame){+ switch (logic){{{{PRIM_LOG("genmode: texgen=%d, col=%d, multisampling=%d, tev=%d, cullmode=%d, ind=%d, zfeeze=%d",+ if (bp.changes)+ if (bp.changes)+ if (bp.changes){PRIM_LOG("constalpha: alp=%d, en=%d", bpmem.dstalpha.alpha, bpmem.dstalpha.enable);+ if (bp.changes & 0xFF)+ if (bp.changes & 0x100)PRIM_LOG("alphacmp: ref0=%d, ref1=%d, comp0=%d, comp1=%d, logic=%d", bpmem.alpha_test.ref0,+ if (bp.changes & 0xFFFF)+ if (bp.changes)PRIM_LOG("ztex bias=0x%x", bpmem.ztex1.bias);+ if (bp.changes)+ if (bp.changes & 7){+ if (PerfQueryBase::ShouldEmulate())+ if (bp.changes){{+ if (m_CPCtrlReg.GPReadEnable && m_CPCtrlReg.GPLinkEnable){+ if (fifo.bFF_GPReadEnable && !m_CPCtrlReg.GPReadEnable){+ while (fifo.isGpuReadingData) Common::YieldCPU();{{+ while ( GFXDebuggerPauseFlag ){g_video_backend->UpdateFPSDisplay("Paused by Video Debugger");{+ if (g_ActiveConfig.backend_info.bSupportsDualSourceBlend){+ switch (vendor){+ for (auto& bug : m_known_bugs){{+ switch ( iMsg ){{+ if (g_ActiveConfig.backend_info.bSupports3DVision && g_ActiveConfig.b3DVision){+ while (fifo.isGpuReadingData) Common::YieldCPU();+ if ((GetVideoBufferEndPtr() - g_pVideoData) == 0){+ if (g_Config.backend_info.bSupportsPrimitiveRestart){+ if (pr){+ if (pr){{{+ if (pr){+ for (; i+3<=numVerts; i+=3){+ for (; i+2<=numVerts; i+=2){{+ if (pr){+ if (i == numVerts){object.Write("lacc.w = 1.0;\n");+ if (color.enablelighting && alpha.enablelighting){+ if (color.lightparams == alpha.lightparams){+ if (mask){{{+ if (g_ActiveConfig.bUseXFB){{{{+ if (Common::AtomicLoadAcquire(s_swapRequested)){{+ if (!g_perf_query->ShouldEmulate()){{+ if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bOnScreenDisplayMessages)out.Write(",\n in %s float3 uv%d : TEXCOORD%d", optCentroid, i, i);out.Write(",\n in %s float4 clipPos : TEXCOORD%d", optCentroid, numTexgen);+ if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting)out.Write(",\n in %s float4 Normal : TEXCOORD%d", optCentroid, numTexgen + 1);out.Write(" ) {\n");+ for (int i = 1; i < 4; i++){{+ if (bpmem.combiners[numStages - 1].colorC.dest != 0){out.Write("\tprev.rgb = %s%s;\n", retrieveFromAuxRegister ? "c" : "" , tevCOutputTable[bpmem.combiners[numStages - 1].colorC.dest]);+ if (bpmem.combiners[numStages - 1].alphaC.dest != 0){out.Write("\tprev.a = %s%s;\n", retrieveFromAuxRegister ? "c" : "" , tevAOutputTable[bpmem.combiners[numStages - 1].alphaC.dest]);+ if (RegisterStates[0].AlphaNeedOverflowControl || RegisterStates[0].ColorNeedOverflowControl)out.Write("\tprev = frac(prev * (255.0/256.0)) * (256.0/255.0);\n");{{+ if (bHasTexCoord)out.Write("tevcoord.xy = uv%d.xy;\n", texcoord);out.Write("tevcoord.xy = float2(0.0, 0.0);\n");{out.Write("konsttemp = float4(%s, %s);\n", tevKSelTableC[kc], tevKSelTableA[ka]);+ if (kc > 7 || ka > 7){out.Write("ckonsttemp = frac(konsttemp * (255.0/256.0)) * (256.0/255.0);\n");{+ if (RegisterStates[0].AlphaNeedOverflowControl || RegisterStates[0].ColorNeedOverflowControl){out.Write("cprev = frac(prev * (255.0/256.0)) * (256.0/255.0);\n");{+ if (RegisterStates[1].AlphaNeedOverflowControl || RegisterStates[1].ColorNeedOverflowControl){out.Write("cc0 = frac(c0 * (255.0/256.0)) * (256.0/255.0);\n");{+ if (RegisterStates[2].AlphaNeedOverflowControl || RegisterStates[2].ColorNeedOverflowControl){out.Write("cc1 = frac(c1 * (255.0/256.0)) * (256.0/255.0);\n");{+ if (RegisterStates[3].AlphaNeedOverflowControl || RegisterStates[3].ColorNeedOverflowControl){out.Write("cc2 = frac(c2 * (255.0/256.0)) * (256.0/255.0);\n");out.Write("%s*(", tevScaleTable[cc.shift]);+ if (!(cc.d == TEVCOLORARG_ZERO && cc.op == TEVOP_ADD))out.Write("%s%s", tevCInputTable[cc.d], tevOpTable[cc.op]);out.Write("%s*(", tevScaleTable[ac.shift]);+ if (!(ac.d == TEVALPHAARG_ZERO && ac.op == TEVOP_ADD))out.Write("%s.a%s", tevAInputTable[ac.d], tevOpTable[ac.op]);out.Write("\t\tocol0 = float4(0.0, 0.0, 0.0, 0.0);\n");out.Write("\t\tocol1 = float4(0.0, 0.0, 0.0, 0.0);\n");+ if (per_pixel_depth)out.Write("\t\tdepth = 1.0;\n");{+ if (bpmem.fog.c_proj_fsel.fsel == 0){+ if (!g_ActiveConfig.bDisableFog && bpmem.fogRange.Base.Enabled == 1){+ if (s_bViewPortChanged){{+ if (constants.texdims[texmapid][0] != 1.0f/width || constants.texdims[texmapid][1] != 1.0f/height){+ if (!g_ActiveConfig.bDisableFog){{+ if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting){+ switch (g_ActiveConfig.iAspectRatio){+ if (g_ActiveConfig.bHiresTextures && !g_ActiveConfig.bDumpTextures){+ if (g_ActiveConfig.bHiresTextures){{{+ if (entry){- if(!efbHasAlpha) {+ if (!efbHasAlpha) {- if(!efbHasAlpha) {+ if (!efbHasAlpha) {- if(!efbHasAlpha) {+ if (!efbHasAlpha) {- if(!efbHasAlpha) {+ if (!efbHasAlpha) {- if(!efbHasAlpha) {+ if (!efbHasAlpha) {- WRITE(p, " if(!first) {\n");+ WRITE(p, " if (!first) {\n");{+ for (int j = 0; j < 4; j++){+ for (int j = 0; j < 4; j++)+ else if (tlutfmt == 0){+ else if (tlutfmt == 0){{+ for (int j = 0; j < 4; j++){{+ switch (retval){{{+ for (int j = 0; j < 4; j++){+ for (int j = 0; j < 4; j++)+ else if (tlutfmt == 0){+ else if (tlutfmt == 0){{{+ switch (retval){{if (m_VtxDesc.Tex7MatIdx) {m_VertexSize += 1; components |= VB_HAS_TEXMTXIDX7; WriteCall(TexMtx_ReadDirect_UByte); }+ if (g_ActiveConfig.bUseBBox){- if(!m_VtxAttr.ByteDequant) {+ if (!m_VtxAttr.ByteDequant) {{+ if (count > IndexGenerator::GetRemainingIndices())+ if (IsFlushed){{+ if (g_Config.backend_info.bSupportsPrimitiveRestart){{+ if (PerfQueryBase::ShouldEmulate())+ if (PerfQueryBase::ShouldEmulate())+ if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting)object.Write("};\n");+ if (api_type == API_OPENGL){out.Write("in float4 rawpos; // ATTR%d,\n", SHADER_POSITION_ATTRIB);out.Write("o.clipPos = float4(pos.x,pos.y,o.pos.z,o.pos.w);\n");+ if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting){out.Write("o.Normal = float4(_norm0.x,_norm0.y,_norm0.z,pos.z);\n");+ if (api_type == API_OPENGL){out.Write(" uv%d_2.xyz = o.tex%d;\n", i, i);out.Write(" clipPos_2 = o.clipPos;\n");+ if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting)out.Write(" Normal_2 = o.Normal;\n");out.Write("colors_02 = o.colors_0;\n");{+ for (int i=startn; i<endn; i++){+ if (!g_ActiveConfig.backend_info.bSupportsOversizedViewports){+ switch (xfregs.projection.type){{+ if (curUcode == NUM_UCODES){+ if (argc == 1 || (argc == 2 && (!strcmp(argv[1], "--help") || (!strcmp(argv[1], "-?"))))){printf("USAGE: DSPTool [-?] [--help] [-f] [-d] [-m] [-p <FILE>] [-o <FILE>] [-h <FILE>] <DSP ASSEMBLER FILE>\n");printf("-? / --help: Prints this message\n");+ if (multiple && (compare || disassemble || !output_name.empty() ||input_name.empty())) {printf("ERROR: Multiple files can only be used with assembly "{+ if (multiple){source.append("\n");- while((pos = source.find('\n', lastPos)) != std::string::npos)+ while ((pos = source.find('\n', lastPos)) != std::string::npos){+ if (!temp.empty())+ if (lines == 0){printf("ERROR: Must specify at least one file\n");