fix invalid sRGB profiles in png files
@ -661,11 +661,11 @@ void NandDump::ReadReplacementStrings()
|
|||||||
if( ba.isEmpty() )
|
if( ba.isEmpty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QRegExp re( "[^/?*:;{}\\]+" );
|
QRegularExpression re( "[^/?*:;{}\\]+" );
|
||||||
|
|
||||||
QString all( ba );
|
QString all( ba );
|
||||||
all.replace( "\r\n", "\n" );
|
all.replace( "\r\n", "\n" );
|
||||||
QStringList lines = QString( ba ).split( "\n", QString::SkipEmptyParts );
|
QStringList lines = QString( ba ).split( "\n", Qt::SkipEmptyParts );
|
||||||
foreach( QString line, lines )
|
foreach( QString line, lines )
|
||||||
{
|
{
|
||||||
//skip lines that are less than 3 characters on dont have a space as their second character or have characters not allowed on FAT32
|
//skip lines that are less than 3 characters on dont have a space as their second character or have characters not allowed on FAT32
|
||||||
@ -682,7 +682,7 @@ void NandDump::ReadReplacementStrings()
|
|||||||
bool NandDump::SetReplaceString( const QString &ch, const QString &replaceWith )
|
bool NandDump::SetReplaceString( const QString &ch, const QString &replaceWith )
|
||||||
{
|
{
|
||||||
qWarning() << "NandDump::SetReplaceString(" << ch << "," << replaceWith << ")";
|
qWarning() << "NandDump::SetReplaceString(" << ch << "," << replaceWith << ")";
|
||||||
QRegExp re( "[^/?*:;{}\\]+" );
|
QRegularExpression re( "[^/?*:;{}\\]+" );
|
||||||
if( replaceWith.contains( re ) )
|
if( replaceWith.contains( re ) )
|
||||||
{
|
{
|
||||||
qWarning() << "NandDump::SetReplaceString -> replacement string contains illegal characters";
|
qWarning() << "NandDump::SetReplaceString -> replacement string contains illegal characters";
|
||||||
@ -802,7 +802,7 @@ const QString NandDump::FromNandName( const QString &name )
|
|||||||
const QString NandDump::ToNandPath( const QString &path )
|
const QString NandDump::ToNandPath( const QString &path )
|
||||||
{
|
{
|
||||||
QString ret;
|
QString ret;
|
||||||
QStringList parts = path.split( "/", QString::SkipEmptyParts );
|
QStringList parts = path.split( "/", Qt::SkipEmptyParts );
|
||||||
foreach( QString part, parts )
|
foreach( QString part, parts )
|
||||||
ret += "/" + ToNandName( part );
|
ret += "/" + ToNandName( part );
|
||||||
|
|
||||||
@ -812,7 +812,7 @@ const QString NandDump::ToNandPath( const QString &path )
|
|||||||
const QString NandDump::FromNandPath( const QString &path )
|
const QString NandDump::FromNandPath( const QString &path )
|
||||||
{
|
{
|
||||||
QString ret;
|
QString ret;
|
||||||
QStringList parts = path.split( "/", QString::SkipEmptyParts );
|
QStringList parts = path.split( "/", Qt::SkipEmptyParts );
|
||||||
foreach( QString part, parts )
|
foreach( QString part, parts )
|
||||||
ret += "/" + FromNandName( part );
|
ret += "/" + FromNandName( part );
|
||||||
|
|
||||||
|
BIN
nandDump/icon.png
Executable file → Normal file
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 4.7 KiB |
@ -13,11 +13,11 @@ MainWindow::MainWindow( QWidget *parent ) : QMainWindow( parent ), ui( new Ui::M
|
|||||||
|
|
||||||
//resize buttons to be same size
|
//resize buttons to be same size
|
||||||
QFontMetrics fm( fontMetrics() );
|
QFontMetrics fm( fontMetrics() );
|
||||||
int max = fm.width( ui->pushButton_CachePathBrowse->text() );
|
int max = fm.horizontalAdvance( ui->pushButton_CachePathBrowse->text() );
|
||||||
max = MAX( max, fm.width( ui->pushButton_decFolder->text() ) );
|
max = MAX( max, fm.horizontalAdvance( ui->pushButton_decFolder->text() ) );
|
||||||
max = MAX( max, fm.width( ui->pushButton_GetTitle->text() ) );
|
max = MAX( max, fm.horizontalAdvance( ui->pushButton_GetTitle->text() ) );
|
||||||
max = MAX( max, fm.width( ui->pushButton_nandPath->text() ) );
|
max = MAX( max, fm.horizontalAdvance( ui->pushButton_nandPath->text() ) );
|
||||||
max = MAX( max, fm.width( ui->pushButton_wad->text() ) );
|
max = MAX( max, fm.horizontalAdvance( ui->pushButton_wad->text() ) );
|
||||||
|
|
||||||
max += 15;
|
max += 15;
|
||||||
ui->pushButton_CachePathBrowse->setMinimumWidth( max );
|
ui->pushButton_CachePathBrowse->setMinimumWidth( max );
|
||||||
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.7 KiB |