Prep for split libraries.
This commit is contained in:
parent
2462c2249d
commit
756d414386
|
@ -18,7 +18,7 @@
|
|||
extern "C" {
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "libavutil/channel_layout.h"
|
||||
}
|
||||
} // extern "C"
|
||||
|
||||
// Credits for most of this code goes to:
|
||||
// https://github.com/koolkdev/libertyv/blob/master/libav_wrapper/xma2dec.c
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "xenia/debug/debugger.h"
|
||||
#include "xenia/kernel/kernel_state.h"
|
||||
#include "xenia/memory.h"
|
||||
#include "xenia/ui/window.h"
|
||||
#include "xenia/vfs/virtual_file_system.h"
|
||||
#include "xenia/xbox.h"
|
||||
|
||||
|
@ -35,6 +34,9 @@ class GraphicsSystem;
|
|||
namespace hid {
|
||||
class InputSystem;
|
||||
} // namespace hid
|
||||
namespace ui {
|
||||
class Window;
|
||||
} // namespace ui
|
||||
} // namespace xe
|
||||
|
||||
namespace xe {
|
||||
|
|
|
@ -43,7 +43,7 @@ void InitializeIfNeeded() {
|
|||
|
||||
void CleanupOnShutdown() {}
|
||||
|
||||
std::unique_ptr<GraphicsSystem> GL4GraphicsSystem::Create(Emulator* emulator) {
|
||||
std::unique_ptr<GraphicsSystem> Create(Emulator* emulator) {
|
||||
InitializeIfNeeded();
|
||||
return std::make_unique<GL4GraphicsSystem>(emulator);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,6 @@ class GL4GraphicsSystem : public GraphicsSystem {
|
|||
GL4GraphicsSystem(Emulator* emulator);
|
||||
~GL4GraphicsSystem() override;
|
||||
|
||||
static std::unique_ptr<GraphicsSystem> Create(Emulator* emulator);
|
||||
std::unique_ptr<ui::GraphicsContext> CreateContext(
|
||||
ui::Window* target_window) override;
|
||||
|
||||
|
|
|
@ -15,20 +15,21 @@
|
|||
#include "xenia/gpu/gpu_flags.h"
|
||||
#include "xenia/kernel/objects/xthread.h"
|
||||
|
||||
// TODO(benvanik): based on platform/build support.
|
||||
#include "xenia/gpu/gl4/gl4_graphics_system.h"
|
||||
|
||||
namespace xe {
|
||||
namespace gpu {
|
||||
|
||||
namespace gl4 {
|
||||
std::unique_ptr<GraphicsSystem> Create(Emulator* emulator);
|
||||
} // namespace gl4
|
||||
|
||||
std::unique_ptr<GraphicsSystem> GraphicsSystem::Create(Emulator* emulator) {
|
||||
if (FLAGS_gpu.compare("gl4") == 0) {
|
||||
return xe::gpu::gl4::GL4GraphicsSystem::Create(emulator);
|
||||
return xe::gpu::gl4::Create(emulator);
|
||||
} else {
|
||||
// Create best available.
|
||||
std::unique_ptr<GraphicsSystem> best;
|
||||
|
||||
best = xe::gpu::gl4::GL4GraphicsSystem::Create(emulator);
|
||||
best = xe::gpu::gl4::Create(emulator);
|
||||
if (best) {
|
||||
return best;
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\base\main_win.cc" />
|
||||
<ClCompile Include="xe-gpu-trace-viewer.cc" />
|
||||
<ClCompile Include="trace_viewer_main.cc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\base\main.h" />
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="xe-gpu-trace-viewer.cc">
|
||||
<Filter>src\xenia\gpu</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\base\main_win.cc">
|
||||
<Filter>src\xenia\base</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="trace_viewer_main.cc">
|
||||
<Filter>src\xenia\gpu</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\base\main.h">
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "xenia/kernel/kernel_state.h"
|
||||
#include "xenia/kernel/util/shim_utils.h"
|
||||
#include "xenia/kernel/xam_private.h"
|
||||
#include "xenia/ui/window.h"
|
||||
#include "xenia/xbox.h"
|
||||
|
||||
#include <commctrl.h>
|
||||
|
|
Loading…
Reference in New Issue