Exemple #1
0
int patchSettingInit()
{
	// clear active patch index
	for (int i = 0; i < MAX_ACTIVE_PATCHES; i++) {
		_stprintf(szActivePatches[i], _T(""));
	}

	// Get game full name
	TCHAR szText[1024] = _T("");
	TCHAR* pszFullName = transGameName(BurnDrvGetText(DRV_FULLNAME));
	_stprintf(szText, _T("%s") _T(SEPERATOR_1) _T("%s"), FBALoadStringEx(IDS_IPSMANAGER), pszFullName);

	// Set the window caption
	SetWindowText(hIpsDlg, szText);

	// init ips language combobox
	for (int i = 0; ui_lang_info[i].name; i++) {
		SendDlgItemMessage(hIpsDlg, IDC_IPS_LANG, CB_ADDSTRING, 0, (LPARAM)AtoW(ui_lang_info[i].name));
	}
	SendDlgItemMessage(hIpsDlg, IDC_IPS_LANG, CB_SETCURSEL, (WPARAM)nPatchLang, 0);

	CheckDlgButton(hIpsDlg, IDC_IPS_ENFORCE, bEnforceDep ? BST_CHECKED : BST_UNCHECKED);

	rebuildIpsList();

	return 0;
}
Exemple #2
0
int scrnTitle()
{
    TCHAR szText[1024] = _T("");

    // Create window title
    if (bDrvOkay) {
        TCHAR* pszPosition = szText;
        TCHAR* pszName = transGameName(BurnDrvGetText(DRV_FULLNAME));

        if (bShowFPS) {
            extern TCHAR fpsString[];
            pszPosition += _sntprintf(szText, sizearray(szText), _T("%s"), pszName);
            _stprintf(pszPosition, _T(" ") _T("[") _T("%s") _T("]"), fpsString);
        } else {
            _stprintf(szText, _T("%s"), pszName);
        }
    } else {
        _stprintf(szText, _T(APP_TITLE) _T( " v%.20s"), szAppBurnVer);
    }

    SetWindowText(hScrnWnd, szText);
    return 0;
}