Skip to content

Commit e9ec4d7

Browse files
committed
make use of emulator core obvious
1 parent b1f8c92 commit e9ec4d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ m64p_error main_start(usf_state_t * state)
135135

136136
/* take the r4300 emulator mode from the config file at this point and cache it in a global variable */
137137
#ifdef DEBUG_INFO
138-
state->r4300emu = 0;
138+
state->r4300emu = CORE_PURE_INTERPRETER;
139139
#else
140-
state->r4300emu = state->enable_trimming_mode ? 0 : 2;
140+
state->r4300emu = state->enable_trimming_mode ? CORE_PURE_INTERPRETER : CORE_DYNAREC;
141141
#endif
142142

143143
/* set some other core parameters based on the config file values */

memory/memory.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ int init_memory(usf_state_t * state, uint32_t rdram_size)
11681168
map_region(state, 0xb000+i, M64P_MEM_NOTHING, RW(nothing));
11691169
}
11701170

1171-
state->fast_memory = state->enable_trimming_mode ? 0 : 1;
1171+
state->fast_memory = state->enable_trimming_mode ? CORE_PURE_INTERPRETER : CORE_INTERPRETER;
11721172

11731173
if (state->g_rom && state->g_rom_size >= 0xfc0)
11741174
init_cic_using_ipl3(state, &state->g_si.pif.cic, state->g_rom + 0x40);

0 commit comments

Comments
 (0)