Skip to content

Commit

Permalink
id_cache.cpp: emplace instead of inserting into s_java_load_callback_…
Browse files Browse the repository at this point in the history
…stages
  • Loading branch information
SachinVin committed Apr 29, 2021
1 parent 68301c0 commit 455cd56
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/android/app/src/main/jni/id_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) {
"DiskShaderCacheProgress$LoadCallbackStage;")));
};

s_java_load_callback_stages.insert(
{VideoCore::LoadCallbackStage::Prepare, to_java_load_callback_stage("Prepare")});
s_java_load_callback_stages.insert(
{VideoCore::LoadCallbackStage::Decompile, to_java_load_callback_stage("Decompile")});
s_java_load_callback_stages.insert(
{VideoCore::LoadCallbackStage::Build, to_java_load_callback_stage("Build")});
s_java_load_callback_stages.insert(
{VideoCore::LoadCallbackStage::Complete, to_java_load_callback_stage("Complete")});
s_java_load_callback_stages.emplace(VideoCore::LoadCallbackStage::Prepare,
to_java_load_callback_stage("Prepare"));
s_java_load_callback_stages.emplace(VideoCore::LoadCallbackStage::Decompile,
to_java_load_callback_stage("Decompile"));
s_java_load_callback_stages.emplace(VideoCore::LoadCallbackStage::Build,
to_java_load_callback_stage("Build"));
s_java_load_callback_stages.emplace(VideoCore::LoadCallbackStage::Complete,
to_java_load_callback_stage("Complete"));

MiiSelector::InitJNI(env);
SoftwareKeyboard::InitJNI(env);
Expand Down

0 comments on commit 455cd56

Please sign in to comment.