mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
fix spy vs spy hitman metal slug etc.
This commit is contained in:
@@ -76,6 +76,17 @@ FetchContent_Declare(
|
||||
)
|
||||
FetchContent_MakeAvailable(tomlplusplus)
|
||||
|
||||
# --- nv2a_vsh_cpu ---
|
||||
set(NV2A_VSH_CPU_GIT_REV "1115255708c10c4841b65dcd2223262e7a316598")
|
||||
set(nv2a_vsh_cpu_UNIT_TEST OFF CACHE BOOL "" FORCE)
|
||||
FetchContent_Declare(
|
||||
nv2a_vsh_cpu
|
||||
GIT_REPOSITORY "https://github.com/xemu-project/nv2a_vsh_cpu.git"
|
||||
GIT_TAG "${NV2A_VSH_CPU_GIT_REV}"
|
||||
GIT_SHALLOW FALSE
|
||||
)
|
||||
FetchContent_MakeAvailable(nv2a_vsh_cpu)
|
||||
|
||||
if(XEMU_ENABLE_VULKAN)
|
||||
# --- adrenotools (custom GPU driver loading on Adreno) ---
|
||||
FetchContent_Declare(
|
||||
@@ -630,7 +641,6 @@ list(APPEND XEMU_CORE_SOURCES
|
||||
"${REPO_ROOT}/ui/vnc-stubs.c"
|
||||
"${REPO_ROOT}/target/i386/kvm/hyperv-stub.c"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/kvmclock_stub.c"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/nv2a_vsh_emulator_stub.c"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/samplerate_stub.c"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/fast_hash_stub.c"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/libintl_stub.c"
|
||||
@@ -888,6 +898,7 @@ target_compile_options(xemu_core PRIVATE -g1
|
||||
)
|
||||
|
||||
target_include_directories(xemu_core PRIVATE
|
||||
"${nv2a_vsh_cpu_SOURCE_DIR}/src"
|
||||
"${REPO_ROOT}"
|
||||
"${REPO_ROOT}/include"
|
||||
"${REPO_ROOT}/ui"
|
||||
@@ -912,6 +923,12 @@ target_include_directories(xemu_core PRIVATE
|
||||
|
||||
add_dependencies(xemu_core glib_ep)
|
||||
|
||||
target_link_libraries(xemu_core PRIVATE
|
||||
nv2a_vsh_emulator
|
||||
nv2a_vsh_cpu
|
||||
nv2a_vsh_disassembler
|
||||
)
|
||||
|
||||
if(TARGET SDL2::SDL2)
|
||||
target_link_libraries(xemu_core PRIVATE SDL2::SDL2)
|
||||
endif()
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
#include "nv2a_vsh_emulator.h"
|
||||
|
||||
Nv2aVshParseResult nv2a_vsh_parse_program(Nv2aVshProgram *program,
|
||||
const uint32_t *code,
|
||||
uint32_t code_length)
|
||||
{
|
||||
(void)program;
|
||||
(void)code;
|
||||
(void)code_length;
|
||||
return NV2AVPR_SUCCESS;
|
||||
}
|
||||
|
||||
void nv2a_vsh_program_destroy(Nv2aVshProgram *program)
|
||||
{
|
||||
(void)program;
|
||||
}
|
||||
|
||||
Nv2aVshExecutionState nv2a_vsh_emu_initialize_xss_execution_state(
|
||||
Nv2aVshCPUXVSSExecutionState *linkage,
|
||||
float *constants)
|
||||
{
|
||||
Nv2aVshExecutionState state;
|
||||
state.linkage = linkage;
|
||||
state.constants = constants;
|
||||
return state;
|
||||
}
|
||||
|
||||
void nv2a_vsh_emu_execute_track_context_writes(
|
||||
Nv2aVshExecutionState *state,
|
||||
const Nv2aVshProgram *program,
|
||||
bool *constants_dirty)
|
||||
{
|
||||
(void)state;
|
||||
(void)program;
|
||||
(void)constants_dirty;
|
||||
}
|
||||
@@ -101,6 +101,9 @@ class MainActivity : SDLActivity(), InputManager.InputDeviceListener {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
DebugLog.initialize(this)
|
||||
val rendererPref = getSharedPreferences("x1box_prefs", Context.MODE_PRIVATE)
|
||||
.getString("setting_renderer", "vulkan") ?: "vulkan"
|
||||
nativeSetenv("XEMU_RENDERER", rendererPref)
|
||||
OrientationLocker(this, landscapeOnly = true).enable()
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||
val requestedSlot = intent?.getIntExtra(EXTRA_AUTO_LOAD_SNAPSHOT_SLOT, 0) ?: 0
|
||||
|
||||
Reference in New Issue
Block a user