mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Remove /dev_flash/ configuration
Simplify code by using root config location for /dev_flash/ Hide Emu.GetEmuDir() function due to the risk of misuse
This commit is contained in:
parent
e4da284176
commit
81e5f3b7f2
10 changed files with 56 additions and 69 deletions
|
|
@ -396,11 +396,8 @@ void rpcs3_app::OnChangeStyleSheetRequest(const QString& sheetFilePath)
|
|||
{
|
||||
QString config_dir = qstr(fs::get_config_dir());
|
||||
|
||||
// HACK: dev_flash must be mounted for vfs to work for loading fonts.
|
||||
vfs::mount("dev_flash", fmt::replace_all(g_cfg.vfs.dev_flash, "$(EmulatorDir)", Emu.GetEmuDir()));
|
||||
|
||||
// Add PS3 fonts
|
||||
QDirIterator ps3_font_it(qstr(vfs::get("/dev_flash/data/font/")), QStringList() << "*.ttf", QDir::Files, QDirIterator::Subdirectories);
|
||||
QDirIterator ps3_font_it(qstr(fs::get_config_dir() + "dev_flash/data/font/"), QStringList() << "*.ttf", QDir::Files, QDirIterator::Subdirectories);
|
||||
while (ps3_font_it.hasNext())
|
||||
QFontDatabase::addApplicationFont(ps3_font_it.next());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue