2021-04-21 22:12:21 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "util/types.hpp"
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2025-03-18 23:16:17 +01:00
|
|
|
enum class game_content_type
|
|
|
|
|
{
|
2025-03-20 20:47:27 +01:00
|
|
|
content_icon, // ICON0.PNG
|
|
|
|
|
content_video, // ICON1.PAM
|
|
|
|
|
content_sound, // SND0.AT3
|
|
|
|
|
overlay_picture, // PIC0.PNG (16:9) or PIC2.PNG (4:3)
|
|
|
|
|
background_picture, // PIC1.PNG
|
|
|
|
|
background_picture_2, // PIC3.PNG (should only exist for install or extra content discs...)
|
2025-03-18 23:16:17 +01:00
|
|
|
};
|
|
|
|
|
|
2021-04-21 22:12:21 +02:00
|
|
|
namespace rpcs3::utils
|
|
|
|
|
{
|
|
|
|
|
u32 get_max_threads();
|
|
|
|
|
|
2023-07-06 22:14:25 +02:00
|
|
|
void configure_logs(bool force_enable = false);
|
2021-04-21 22:12:21 +02:00
|
|
|
|
|
|
|
|
u32 check_user(const std::string& user);
|
|
|
|
|
|
|
|
|
|
bool install_pkg(const std::string& path);
|
|
|
|
|
|
|
|
|
|
std::string get_emu_dir();
|
2024-09-14 21:51:42 +02:00
|
|
|
std::string get_games_dir();
|
2021-04-21 22:12:21 +02:00
|
|
|
std::string get_hdd0_dir();
|
|
|
|
|
std::string get_hdd1_dir();
|
|
|
|
|
std::string get_cache_dir();
|
2024-05-07 00:56:15 +02:00
|
|
|
std::string get_cache_dir(std::string_view module_path);
|
2021-04-21 22:12:21 +02:00
|
|
|
|
2021-07-18 21:19:58 +02:00
|
|
|
std::string get_rap_file_path(const std::string_view& rap);
|
2022-03-07 10:24:28 +01:00
|
|
|
bool verify_c00_unlock_edat(const std::string_view& content_id, bool fast = false);
|
2021-04-21 22:12:21 +02:00
|
|
|
std::string get_sfo_dir_from_game_path(const std::string& game_path, const std::string& title_id = "");
|
|
|
|
|
|
|
|
|
|
std::string get_custom_config_dir();
|
2023-01-06 13:00:24 +01:00
|
|
|
std::string get_custom_config_path(const std::string& identifier);
|
2021-08-10 21:45:26 +02:00
|
|
|
|
|
|
|
|
std::string get_input_config_root();
|
|
|
|
|
std::string get_input_config_dir(const std::string& title_id = "");
|
2021-04-21 22:12:21 +02:00
|
|
|
std::string get_custom_input_config_path(const std::string& title_id);
|
2025-03-18 23:16:17 +01:00
|
|
|
|
2025-03-21 18:59:41 +01:00
|
|
|
std::string get_game_content_path(game_content_type type);
|
2021-04-21 22:12:21 +02:00
|
|
|
}
|