mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-03 14:14:59 -06:00
support eboot from mods folder
This commit is contained in:
parent
427ffae268
commit
5e8146e7d3
@ -109,7 +109,8 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> args,
|
|||||||
} else {
|
} else {
|
||||||
game_folder = file.parent_path();
|
game_folder = file.parent_path();
|
||||||
if (const auto game_folder_name = game_folder.filename().string();
|
if (const auto game_folder_name = game_folder.filename().string();
|
||||||
game_folder_name.ends_with("-UPDATE") || game_folder_name.ends_with("-patch")) {
|
game_folder_name.ends_with("-UPDATE") || game_folder_name.ends_with("-patch") ||
|
||||||
|
game_folder_name.ends_with("-mods")) {
|
||||||
// If an executable was launched from a separate update directory,
|
// If an executable was launched from a separate update directory,
|
||||||
// use the base game directory as the game folder.
|
// use the base game directory as the game folder.
|
||||||
const std::string base_name = game_folder_name.substr(0, game_folder_name.rfind('-'));
|
const std::string base_name = game_folder_name.substr(0, game_folder_name.rfind('-'));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user