somewhat working state

This commit is contained in:
Sonic Dreamcaster
2025-10-23 03:52:45 -03:00
parent 926ad0dbb3
commit 387f73bf05
34 changed files with 2355 additions and 8819 deletions
+7 -8
View File
@@ -144,7 +144,7 @@ ultramodern::renderer::WindowHandle create_window(ultramodern::gfx_callbacks_t::
flags |= SDL_WINDOW_VULKAN;
#endif
window = SDL_CreateWindow("MarioKart 64: Recompiled", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1600, 960, flags);
window = SDL_CreateWindow("Duke Nukem Zero Hour: Recompiled", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1600, 960, flags);
#if defined(__linux__)
SetImageAsIcon("icons/512.png",window);
if (ultramodern::renderer::get_graphics_config().wm_option == ultramodern::renderer::WindowMode::Fullscreen) { // TODO: Remove once RT64 gets native fullscreen support on Linux
@@ -219,10 +219,9 @@ void queue_samples(int16_t* audio_data, size_t sample_count) {
// swap buffer to correct for the address xor caused by endianness handling.
float cur_main_volume = zelda64::get_main_volume() / 100.0f; // Get the current main volume, normalized to 0.0-1.0.
for (size_t i = 0; i < sample_count; i += input_channels) {
// TODO: Don't swap buffers since the channels are reversed in MK64 for some reason
// Investigate
swap_buffer[i + 0 + duplicated_input_frames * input_channels] = audio_data[i + 0] * (1.0f / 32768.0f) * cur_main_volume;
swap_buffer[i + 1 + duplicated_input_frames * input_channels] = audio_data[i + 1] * (1.0f / 32768.0f) * cur_main_volume;
swap_buffer[i + 0 + duplicated_input_frames * input_channels] = audio_data[i + 1] * (1.0f / 32768.0f) * cur_main_volume;
swap_buffer[i + 1 + duplicated_input_frames * input_channels] = audio_data[i + 0] * (1.0f / 32768.0f) * cur_main_volume;
}
// TODO handle cases where a chunk is smaller than the duplicated frame count.
@@ -352,11 +351,11 @@ gpr get_entrypoint_address();
// array of supported GameEntry objects
std::vector<recomp::GameEntry> supported_games = {
{
.rom_hash = 0x54572403569b87c1, // retail
.rom_hash = 0xafc33da7101fec88, // retail
.internal_name = "MARIOKART64",
.game_id = u8"mk64.us",
.mod_game_id = "mk64",
.save_type = recomp::SaveType::Eep4k,
.game_id = u8"dnzh.us",
.mod_game_id = "dnzh",
.save_type = recomp::SaveType::None,
.is_enabled = true,
.entrypoint_address = get_entrypoint_address(),
.entrypoint = recomp_entrypoint,