use capitalized app name

This commit is contained in:
tooomm 2026-09-06 12:29:35 +02:00
parent 0f003eabf9
commit e0664b7fd6
13 changed files with 21 additions and 20 deletions

View file

@ -94,7 +94,7 @@ QStringMap &SoundEngine::getAvailableThemes()
QDir dir; QDir dir;
availableThemes.clear(); availableThemes.clear();
// load themes from user profile dir // Load themes from user profile dir
dir.setPath(SettingsCache::instance().getDataPath() + "/sounds"); dir.setPath(SettingsCache::instance().getDataPath() + "/sounds");
@ -104,7 +104,7 @@ QStringMap &SoundEngine::getAvailableThemes()
} }
} }
// load themes from cockatrice system dir // Load themes from Cockatrice system dir
dir.setPath(qApp->applicationDirPath() + dir.setPath(qApp->applicationDirPath() +
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
"/../Resources/sounds" "/../Resources/sounds"

View file

@ -17,7 +17,7 @@ enum Format
PlainText, PlainText,
/** /**
* This is cockatrice's native deck file format, and supports deck metadata such as banner cards and tags. * This is Cockatrice's native deck file format, and supports deck metadata such as banner cards and tags.
* Stored as .cod files. * Stored as .cod files.
*/ */
Cockatrice Cockatrice

View file

@ -50,7 +50,7 @@ DeckLoader::loadFromFile(const QString &fileName, DeckFileFormat::Format fmt, bo
result = deckList.loadFromFile_Native(&file); result = deckList.loadFromFile_Native(&file);
if (!result) { if (!result) {
qCInfo(DeckLoaderLog) << "Failed to load " << fileName qCInfo(DeckLoaderLog) << "Failed to load " << fileName
<< "as cockatrice format; retrying as plain format"; << "as Cockatrice format; retrying as plain format";
file.seek(0); file.seek(0);
result = deckList.loadFromFile_Plain(&file, CardNameNormalizer()); result = deckList.loadFromFile_Plain(&file, CardNameNormalizer());
fmt = DeckFileFormat::PlainText; fmt = DeckFileFormat::PlainText;

View file

@ -131,7 +131,7 @@ public:
static void printDeckList(QPrinter *printer, const DeckList &deckList); static void printDeckList(QPrinter *printer, const DeckList &deckList);
/** /**
* Converts the given deck's file to the cockatrice file format. * Converts the given deck's file to the Cockatrice file format.
* Uses the lastLoadInfo in the LoadedDeck to determine the current name of the file and where to save to. * Uses the lastLoadInfo in the LoadedDeck to determine the current name of the file and where to save to.
* @param deck The deck to convert. Should have valid lastLoadInfo. Will update the lastLoadInfo. * @param deck The deck to convert. Should have valid lastLoadInfo. Will update the lastLoadInfo.
* @return Whether the conversion succeeded. * @return Whether the conversion succeeded.

View file

@ -180,7 +180,7 @@ QStringMap &ThemeManager::getAvailableThemes()
} }
} }
// load themes from cockatrice system dir // Load themes from Cockatrice system dir
dir.setPath(systemThemesBasePath()); dir.setPath(systemThemesBasePath());
for (QString themeName : dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name)) { for (QString themeName : dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name)) {

View file

@ -477,13 +477,13 @@ void DlgSettings::closeEvent(QCloseEvent *event)
case Invalid: case Invalid:
loadErrorMessage = tr("Your card database is invalid.\n\n" loadErrorMessage = tr("Your card database is invalid.\n\n"
"Cockatrice may not function correctly with an invalid database\n\n" "Cockatrice may not function correctly with an invalid database\n\n"
"You may need to rerun oracle to update your card database.\n\n" "You may need to rerun Oracle to update your card database.\n\n"
"Would you like to change your database location setting?"); "Would you like to change your database location setting?");
break; break;
case VersionTooOld: case VersionTooOld:
loadErrorMessage = tr("Your card database version is too old.\n\n" loadErrorMessage = tr("Your card database version is too old.\n\n"
"This can cause problems loading card information or images\n\n" "This can cause problems loading card information or images\n\n"
"Usually this can be fixed by rerunning oracle to to update your card database.\n\n" "Usually this can be fixed by rerunning Oracle to to update your card database.\n\n"
"Would you like to change your database location setting?"); "Would you like to change your database location setting?");
break; break;
case NotLoaded: case NotLoaded:

View file

@ -1036,7 +1036,7 @@ void MainWindow::createCardUpdateProcess(bool background)
if (dir.exists(binaryName)) { if (dir.exists(binaryName)) {
updaterCmd = dir.absoluteFilePath(binaryName); updaterCmd = dir.absoluteFilePath(binaryName);
} else { // try and find the directory oracle is stored in the build directory } else { // try and find the directory Oracle is stored in the build directory
QDir findLocalDir(dir); QDir findLocalDir(dir);
findLocalDir.cdUp(); findLocalDir.cdUp();
findLocalDir.cd(getCardUpdaterBinaryName()); findLocalDir.cd(getCardUpdaterBinaryName());

View file

@ -350,8 +350,8 @@ int main(int argc, char *argv[])
qCInfo(MainLog) << "MainWindow constructor finished"; qCInfo(MainLog) << "MainWindow constructor finished";
ui.setWindowIcon(QPixmap("theme:cockatrice")); ui.setWindowIcon(QPixmap("theme:cockatrice"));
// set name of the app desktop file; used by wayland to load the window icon // Set name of the app desktop file; used by wayland to load the window icon
QGuiApplication::setDesktopFileName("cockatrice"); QGuiApplication::setDesktopFileName("Cockatrice");
SettingsCache::instance().network().setClientID(generateClientID()); SettingsCache::instance().network().setClientID(generateClientID());

View file

@ -50,8 +50,8 @@ int main(int argc, char *argv[])
QApplication app(argc, argv); QApplication app(argc, argv);
QCoreApplication::setOrganizationName("Cockatrice"); QCoreApplication::setOrganizationName("Cockatrice");
QCoreApplication::setOrganizationDomain("cockatrice"); QCoreApplication::setOrganizationDomain("Cockatrice");
// this can't be changed, as it influences the default save path for cards.xml // This can't be changed, as it influences the default save path for cards.xml
QCoreApplication::setApplicationName("Cockatrice"); QCoreApplication::setApplicationName("Cockatrice");
// If the program is opened with the -s flag, it will only do spoilers. Otherwise it will do MTGJSON/Tokens // If the program is opened with the -s flag, it will only do spoilers. Otherwise it will do MTGJSON/Tokens
@ -83,7 +83,7 @@ int main(int argc, char *argv[])
QIcon icon("theme:appicon.svg"); QIcon icon("theme:appicon.svg");
wizard.setWindowIcon(icon); wizard.setWindowIcon(icon);
// set name of the app desktop file; used by wayland to load the window icon // set name of the app desktop file; used by wayland to load the window icon
QGuiApplication::setDesktopFileName("oracle"); QGuiApplication::setDesktopFileName("Oracle");
wizard.show(); wizard.show();

View file

@ -577,7 +577,7 @@ void SaveSetsPage::retranslateUi()
{ {
setTitle(tr("Sets imported")); setTitle(tr("Sets imported"));
if (wizard()->downloadedPlainXml) { if (wizard()->downloadedPlainXml) {
setSubTitle(tr("A cockatrice database file of %1 MB has been downloaded.") setSubTitle(tr("A Cockatrice card database file of %1 MB has been downloaded.")
.arg(qRound(wizard()->xmlData.size() / 1000000.0))); .arg(qRound(wizard()->xmlData.size() / 1000000.0)));
} else { } else {
setSubTitle(tr("The following sets have been found:")); setSubTitle(tr("The following sets have been found:"));

View file

@ -20,7 +20,7 @@
* Note that "...enters tapped unless..." returns false. * Note that "...enters tapped unless..." returns false.
* *
* @param name The name of the card * @param name The name of the card
* @param text The oracle text of the card * @param text The Oracle text of the card
*/ */
bool parseCipt(const QString &name, const QString &text) bool parseCipt(const QString &name, const QString &text)
{ {

View file

@ -46,7 +46,7 @@ struct ScanError
* @brief Scans a full MTGJSON document without materializing the JSON tree. * @brief Scans a full MTGJSON document without materializing the JSON tree.
* *
* Splits the top-level "data" object into per-set byte ranges and reads each * Splits the top-level "data" object into per-set byte ranges and reads each
* set's metadata directly from the raw bytes. The oracle importer can then * set's metadata directly from the raw bytes. The Oracle importer can then
* parse one set at a time during import, keeping peak memory far below a single * parse one set at a time during import, keeping peak memory far below a single
* QJsonDocument::fromJson() over the whole file. * QJsonDocument::fromJson() over the whole file.
* *

View file

@ -86,9 +86,10 @@ bool Servatrice_DatabaseInterface::openDatabase()
<< dbversion << "to version" << expectedversion; << dbversion << "to version" << expectedversion;
return false; return false;
} else if (dbversion > expectedversion) { } else if (dbversion > expectedversion) {
qCCritical(DatabaseInterfaceLog) << poolStr << "Error opening database: the database schema version" qCCritical(DatabaseInterfaceLog)
<< dbversion << "is too new, you need to update servatrice" << poolStr << "Error opening database: the database schema version" << dbversion
<< "(this servatrice actually uses version" << expectedversion << ")"; << "is too new, you need to update Servatrice" << "(Currently running Servatrice actually uses version"
<< expectedversion << ")";
return false; return false;
} }
} else { } else {