Decrease some include madness

This commit is contained in:
Megamouse 2023-04-26 19:21:26 +02:00
parent 957713015a
commit cd9ff08235
35 changed files with 45 additions and 19 deletions

View File

@ -1,7 +1,7 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_process.h"
#include "Emu/Cell/lv2/sys_event.h"
#include "cellAudio.h"

View File

@ -3,6 +3,7 @@
#include "Emu/Cell/lv2/sys_rsxaudio.h"
#include "Emu/IdManager.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Loader/PSF.h"
#include "cellAudioOut.h"

View File

@ -2,6 +2,7 @@
#include "cellCamera.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_event.h"
#include "Emu/IdManager.h"

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/IdManager.h"
#include "Emu/Memory/vm_reservation.h"
#include "Emu/Cell/PPUModule.h"

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/VFS.h"
#include "Emu/IdManager.h"
#include "Emu/Cell/PPUModule.h"

View File

@ -1,6 +1,6 @@
#include "stdafx.h"
#include "Emu/system_config.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_lwmutex.h"
#include "Emu/Cell/lv2/sys_lwcond.h"
#include "Emu/Cell/lv2/sys_cond.h"

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_lwmutex.h"

View File

@ -9,6 +9,7 @@
#include "Crypto/unself.h"
#include "Loader/ELF.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/VFS.h"
#include "Emu/Cell/PPUOpcodes.h"

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Memory/vm_locking.h"

View File

@ -7,6 +7,7 @@
#include "Emu/Cell/PPUThread.h"
#include "Crypto/unedat.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/VFS.h"
#include "Emu/vfs_config.h"
#include "Emu/IdManager.h"

View File

@ -4,6 +4,7 @@
#include "Emu/Memory/vm_ptr.h"
#include "Emu/VFS.h"
#include "Emu/IdManager.h"
#include "Emu/system_config.h"
#include "Crypto/unself.h"
#include "Crypto/unedat.h"
#include "Loader/ELF.h"

View File

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "sys_prx.h"
#include "Emu/system_config.h"
#include "Emu/VFS.h"
#include "Emu/IdManager.h"
#include "Crypto/unself.h"

View File

@ -2,6 +2,7 @@
#include "Emu/Memory/vm.h"
#include "Emu/IdManager.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "sys_process.h"
#include "sys_rsxaudio.h"

View File

@ -5,6 +5,7 @@
#include "Utilities/simple_ringbuf.h"
#include "Utilities/transactional_storage.h"
#include "Utilities/cond.h"
#include "Emu/system_config_types.h"
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Audio/AudioDumper.h"

View File

@ -2,6 +2,7 @@
#include "sys_spu.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/VFS.h"
#include "Emu/IdManager.h"
#include "Crypto/unself.h"

View File

@ -8,7 +8,6 @@
#include "Emu/Cell/timers.hpp"
#include "Emu/IdManager.h"
#include "Emu/IPC.h"
#include "Emu/system_config.h"
#include <thread>

View File

@ -2,11 +2,11 @@
#include "sys_timer.h"
#include "Emu/IdManager.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/PPUThread.h"
#include "Emu/Cell/timers.hpp"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "sys_event.h"
#include "sys_process.h"

View File

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/Cell/PPUThread.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/lv2/sys_sync.h"

View File

@ -5,6 +5,7 @@
#include <queue>
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Emu/Memory/vm.h"
#include "Emu/IdManager.h"
#include "Emu/vfs_config.h"

View File

@ -11,7 +11,6 @@
#include "../Common/TextureUtils.h"
#include "../Program/GLSLTypes.h"
#include "Emu/system_config.h"
#include "Utilities/mutex.h"
#include "Utilities/geometry.h"
#include "Utilities/File.h"

View File

@ -1,5 +1,6 @@
#include "GLOverlays.h"
#include "Emu/system_config.h"
#include "../rsx_utils.h"
#include "../Program/RSXOverlay.h"

View File

@ -1,5 +1,6 @@
#pragma once
#include "Emu/system_config_types.h"
#include "util/types.hpp"
#include "../Common/simple_array.hpp"
#include "../Overlays/overlays.h"

View File

@ -2,6 +2,7 @@
#include "GLVertexProgram.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "GLCommonDecompiler.h"
#include "../Program/GLSLCommon.h"

View File

@ -2,6 +2,7 @@
#include "overlay_home_menu_main_menu.h"
#include "overlay_home_menu_components.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
extern atomic_t<bool> g_user_asked_for_recording;
extern atomic_t<bool> g_user_asked_for_screenshot;

View File

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "overlay_home_menu_settings.h"
#include "overlay_home_menu_components.h"
#include "Emu/system_config.h"
// TODO: Localization of the setting names
// TODO: Localization of the dropdown values

View File

@ -2,7 +2,7 @@
#include "overlay_home_menu_page.h"
#include "Emu/System.h"
#include "Emu/system_config.h"
#include "Utilities/Config.h"
namespace rsx
{

View File

@ -26,7 +26,6 @@
#include "Emu/Cell/lv2/sys_rsx.h"
#include "Emu/IdManager.h"
#include "Emu/system_config.h"
#include "Core/RSXDisplay.h"
#include "Core/RSXFrameBuffer.h"

View File

@ -3,6 +3,7 @@
#include "util/types.hpp"
#include "util/atomic.hpp"
#include "Utilities/bit_set.h"
#include "config_mode.h"
#include "games_config.h"
#include <functional>
#include <memory>
@ -57,16 +58,6 @@ constexpr bool is_error(game_boot_result res)
return res != game_boot_result::no_errors;
}
enum class cfg_mode
{
custom, // Prefer regular custom config. Fall back to global config.
custom_selection, // Use user-selected custom config. Fall back to global config.
global, // Use global config.
config_override, // Use config override. This does not use the global VFS settings! Fall back to global config.
continuous, // Use same config as on last boot. Fall back to global config.
default_config // Use the default values of the config entries.
};
struct EmuCallbacks
{
std::function<void(std::function<void()>, atomic_t<bool>*)> call_from_main_thread;

11
rpcs3/Emu/config_mode.h Normal file
View File

@ -0,0 +1,11 @@
#pragma once
enum class cfg_mode
{
custom, // Prefer regular custom config. Fall back to global config.
custom_selection, // Use user-selected custom config. Fall back to global config.
global, // Use global config.
config_override, // Use config override. This does not use the global VFS settings! Fall back to global config.
continuous, // Use same config as on last boot. Fall back to global config.
default_config // Use the default values of the config entries.
};

View File

@ -1,5 +1,6 @@
#pragma once
#include "config_mode.h"
#include "system_config_types.h"
#include "Utilities/Config.h"

View File

@ -497,6 +497,7 @@
<ClInclude Include="Emu\Cell\Modules\cellStorage.h" />
<ClInclude Include="Emu\Cell\Modules\libfs_utility_init.h" />
<ClInclude Include="Emu\Cell\Modules\sys_crashdump.h" />
<ClInclude Include="Emu\config_mode.h" />
<ClInclude Include="Emu\CPU\sse2neon.h" />
<ClInclude Include="Emu\games_config.h" />
<ClInclude Include="Emu\Io\camera_config.h" />

View File

@ -2317,6 +2317,9 @@
<ClInclude Include="Emu\games_config.h">
<Filter>Emu</Filter>
</ClInclude>
<ClInclude Include="Emu\config_mode.h">
<Filter>Emu</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="Emu\RSX\Program\GLSLSnippets\GPUDeswizzle.glsl">

View File

@ -6,7 +6,7 @@
#include "shortcut_utils.h"
#include "Utilities/lockless.h"
#include "Utilities/mutex.h"
#include "Emu/System.h"
#include "Emu/config_mode.h"
#include <QMainWindow>
#include <QToolBar>
@ -17,6 +17,7 @@
#include <QTimer>
#include <memory>
#include <set>
class game_list_grid;
class gui_settings;

View File

@ -51,6 +51,7 @@
#include "Emu/IdManager.h"
#include "Emu/VFS.h"
#include "Emu/vfs_config.h"
#include "Emu/System.h"
#include "Emu/system_utils.hpp"
#include "Crypto/unpkg.h"

View File

@ -13,7 +13,7 @@
#include "update_manager.h"
#include "settings.h"
#include "shortcut_handler.h"
#include "Emu/System.h"
#include "Emu/config_mode.h"
#include <memory>