mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00

* Rebase/recreate my changes and add MIME support
This commit recreates the changes proposed in #1394 on top of the
current master (b069a2acf1
).
This also adds support for determining filetypes using the MIME database
provided by `QMimeDatabase`.
* Move member syntax warning to a more appropriate place
* Deduplicate member syntax warning
* Change warning from "vertical bars" to "|"
* Conform brace placement to coding style
* Fix QFileDialog filter when ArchiveExtensions is empty
* Final cleanup and fixes
- Changes the NDS and GBA ROM MIME-Type constants to QStrings.
- Removes a leftover warning message.
- Uses Type() syntax instead of Type{} syntax for temporaries.
* Explain the origin of the supported archive list
Co-authored-by: Jan Felix Langenbach <insert-penguin@protonmail.com>
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/*
|
|
Copyright 2021-2022 melonDS team
|
|
|
|
This file is part of melonDS.
|
|
|
|
melonDS is free software: you can redistribute it and/or modify it under
|
|
the terms of the GNU General Public License as published by the Free
|
|
Software Foundation, either version 3 of the License, or (at your option)
|
|
any later version.
|
|
|
|
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with melonDS. If not, see http://www.gnu.org/licenses/.
|
|
*/
|
|
|
|
#ifndef CLI_H
|
|
#define CLI_H
|
|
|
|
#include <QApplication>
|
|
#include <QStringList>
|
|
|
|
#include <optional>
|
|
|
|
namespace CLI {
|
|
|
|
struct CommandLineOptions
|
|
{
|
|
QStringList errorsToDisplay = {};
|
|
|
|
std::optional<QString> dsRomPath;
|
|
std::optional<QString> dsRomArchivePath;
|
|
std::optional<QString> gbaRomPath;
|
|
std::optional<QString> gbaRomArchivePath;
|
|
bool fullscreen;
|
|
bool boot;
|
|
};
|
|
|
|
extern CommandLineOptions* ManageArgs(QApplication& melon);
|
|
|
|
}
|
|
|
|
#endif
|