mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
Fix some warnings
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user