Better loading of JIT settings from a movie.

This commit is contained in:
SuuperW 2018-09-01 12:38:39 -05:00
parent 3645ff4e77
commit 11e2448d1c
1 changed files with 4 additions and 2 deletions

View File

@ -547,11 +547,13 @@ static void LoadSettingsFromMovie(MovieData movieData)
} }
if (movieData.advancedTiming != -1) if (movieData.advancedTiming != -1)
CommonSettings.advanced_timing = movieData.advancedTiming; CommonSettings.advanced_timing = movieData.advancedTiming;
if (movieData.jitBlockSize != -1) if (movieData.jitBlockSize > 0 && movieData.jitBlockSize <= 100)
{ {
CommonSettings.use_jit = movieData.jitBlockSize != 0; CommonSettings.use_jit = true;
CommonSettings.jit_max_block_size = movieData.jitBlockSize; CommonSettings.jit_max_block_size = movieData.jitBlockSize;
} }
else
CommonSettings.use_jit = false;
} }
void UnloadMovieEmulationSettings() void UnloadMovieEmulationSettings()
{ {