mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
6ff9008230
This is more representative of what actually occurs, as web does support remote URLs which wouldn't need a romfs callback. This paves for easy future support of this with a call like 'OpenPageRemote' or similar.
25 lines
828 B
C++
25 lines
828 B
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "common/logging/log.h"
|
|
#include "core/frontend/applets/web_browser.h"
|
|
|
|
namespace Core::Frontend {
|
|
|
|
WebBrowserApplet::~WebBrowserApplet() = default;
|
|
|
|
DefaultWebBrowserApplet::~DefaultWebBrowserApplet() = default;
|
|
|
|
void DefaultWebBrowserApplet::OpenPageLocal(std::string_view filename,
|
|
std::function<void()> unpack_romfs_callback,
|
|
std::function<void()> finished_callback) {
|
|
LOG_INFO(Service_AM,
|
|
"(STUBBED) called - No suitable web browser implementation found to open website page "
|
|
"at '{}'!",
|
|
filename);
|
|
finished_callback();
|
|
}
|
|
|
|
} // namespace Core::Frontend
|