Skip to content

Commit

Permalink
Change :browser_mode: override to Chrome
Browse files Browse the repository at this point in the history
This should give greater compatibility since Electron uses Chromium
internally for browser tasks.
  • Loading branch information
oblivioncth committed Nov 18, 2023
1 parent ac4c5ad commit 53794f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/kernel/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,11 @@ void Core::attachFlashpoint(std::unique_ptr<Fp::Install> flashpointInstall)
#endif
}

// TODO: Might make sense to make this a function in libfp
QString Core::resolveFullAppPath(const QString& appPath, const QString& platform)
{
// We don't have a browser mode. Since Electron bundles chromium, chrome should give the closest experience to the launcher's browser mode.
static const QHash<QString, QString> clifpOverrides{
{u":browser-mode:"_s, u"FPSoftware\\Basilisk-Portable\\Basilisk-Portable.exe"_s}
{u":browser-mode:"_s, u"FPSoftware\\startChrome.bat"_s}
};

const Fp::Toolkit* tk = mFlashpointInstall->toolkit();
Expand Down

0 comments on commit 53794f0

Please sign in to comment.