Fix some warnings

This commit is contained in:
Megamouse
2026-09-15 03:10:16 +02:00
parent 6c4b749fb8
commit 1b569fde4d
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -2155,7 +2155,7 @@ bool ppu_load_exec(const ppu_exec_object& elf, bool virtual_load, const std::str
// Fetch information needed for allocating memory segmnents
for (auto& prog : elf.progs)
{
switch (const u32 p_type = prog.p_type)
switch (prog.p_type)
{
case 0x1: // LOAD
{
+1 -3
View File
@@ -2,14 +2,12 @@
#include <util/types.hpp>
#include "Emu/RSX/RSXThread.h"
#include "Emu/RSX/Host/MM.h"
#include "context_accessors.define.h"
namespace rsx
{
void mm_flush_lazy();
void mm_flush();
namespace util
{
template <bool FlushDMA, bool FlushPipe>
+3 -3
View File
@@ -596,7 +596,7 @@ namespace rpcs3::utils
return get_input_config_dir(title_id) + g_cfg_input_configs.default_config + ".yml";
}
std::string get_game_content_path(game_content_type type, const std::string& serial, std::string sfo_dir, const std::string& disc_dir, const std::string& archive_path, const std::string& game_dir, bool* in_archive)
std::string get_game_content_path(game_content_type type, const std::string& serial, std::string sfo_dir, const std::string& disc_dir, const std::string& archive_path, bool* in_archive)
{
if (in_archive) *in_archive = false;
@@ -695,13 +695,13 @@ namespace rpcs3::utils
{
const std::string sfo_dir = info.is_iso_file ? (info.game_dir.empty() ? "PS3_GAME" : info.game_dir) : rpcs3::utils::get_sfo_dir_from_game_path(info.path, info.serial);
bool in_archive = false;
std::string path = get_game_content_path(type, info.serial, sfo_dir, {}, info.is_iso_file ? info.path : "", info.game_dir, &in_archive);
std::string path = get_game_content_path(type, info.serial, sfo_dir, {}, info.is_iso_file ? info.path : "", &in_archive);
return { std::move(path), in_archive };
}
std::string get_game_content_path(game_content_type type)
{
return get_game_content_path(type, Emu.GetTitleID(), Emu.GetSfoDir(false), vfs::get("/dev_bdvd/PS3_GAME"), {}, {}, nullptr);
return get_game_content_path(type, Emu.GetTitleID(), Emu.GetSfoDir(false), vfs::get("/dev_bdvd/PS3_GAME"), {}, nullptr);
}
bool version_is_bigger(std::string_view v0, std::string_view v1, std::string_view serial, bool is_fw)