Better loading of JIT settings from a movie.
This commit is contained in:
parent
3645ff4e77
commit
11e2448d1c
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue