Skip to content

Commit

Permalink
Merge pull request #11694 from jnaidu360/skylanders-portal-window
Browse files Browse the repository at this point in the history
Skylanders Portal Menu Navigational Improvements
  • Loading branch information
AdmiralCurtiss committed Jun 6, 2023
2 parents 5d40871 + 66f4902 commit a7678f3
Show file tree
Hide file tree
Showing 8 changed files with 1,268 additions and 631 deletions.
8 changes: 4 additions & 4 deletions Source/Android/jni/SkylanderConfig.cpp
Expand Up @@ -26,7 +26,7 @@ Java_org_dolphinemu_dolphinemu_features_skylanders_SkylanderConfig_getSkylanderM

for (const auto& it : IOS::HLE::USB::list_skylanders)
{
const std::string& name = it.second;
const std::string& name = it.second.name;
jobject skylander_obj =
env->NewObject(skylander_class, skylander_init, it.first.first, it.first.second);
env->CallObjectMethod(hash_map_obj, IDCache::GetHashMapPut(), skylander_obj,
Expand All @@ -51,7 +51,7 @@ Java_org_dolphinemu_dolphinemu_features_skylanders_SkylanderConfig_getInverseSky

for (const auto& it : IOS::HLE::USB::list_skylanders)
{
const std::string& name = it.second;
const std::string& name = it.second.name;
jobject skylander_obj =
env->NewObject(skylander_class, skylander_init, it.first.first, it.first.second);
env->CallObjectMethod(hash_map_obj, IDCache::GetHashMapPut(), ToJString(env, name),
Expand Down Expand Up @@ -104,7 +104,7 @@ Java_org_dolphinemu_dolphinemu_features_skylanders_SkylanderConfig_loadSkylander

if (it != IOS::HLE::USB::list_skylanders.end())
{
name = it->second;
name = it->second.name;
}

return env->NewObject(pair_class, pair_init,
Expand Down Expand Up @@ -151,7 +151,7 @@ Java_org_dolphinemu_dolphinemu_features_skylanders_SkylanderConfig_createSkyland

if (it != IOS::HLE::USB::list_skylanders.end())
{
name = it->second;
name = it->second.name;
}

return env->NewObject(pair_class, pair_init,
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/Common/FileUtil.h
Expand Up @@ -33,6 +33,8 @@ enum
D_CONFIG_IDX, // global settings
D_GAMESETTINGS_IDX, // user-specified settings which override both the global and the default
// settings (per game)
D_SKYLANDERS_IDX,

D_MAPS_IDX,
D_CACHE_IDX,
D_COVERCACHE_IDX,
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/Core/Config/MainSettings.cpp
Expand Up @@ -297,6 +297,8 @@ const Info<std::string> MAIN_WIRELESS_MAC{{System::Main, "General", "WirelessMac
const Info<std::string> MAIN_GDB_SOCKET{{System::Main, "General", "GDBSocket"}, ""};
const Info<int> MAIN_GDB_PORT{{System::Main, "General", "GDBPort"}, -1};
const Info<int> MAIN_ISO_PATH_COUNT{{System::Main, "General", "ISOPaths"}, 0};
const Info<std::string> MAIN_SKYLANDERS_PATH{{System::Main, "General", "SkylandersCollectionPath"},
""};

static Info<std::string> MakeISOPathConfigInfo(size_t idx)
{
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/Config/MainSettings.h
Expand Up @@ -196,6 +196,7 @@ extern const Info<std::string> MAIN_WIRELESS_MAC;
extern const Info<std::string> MAIN_GDB_SOCKET;
extern const Info<int> MAIN_GDB_PORT;
extern const Info<int> MAIN_ISO_PATH_COUNT;
extern const Info<std::string> MAIN_SKYLANDERS_PATH;
std::vector<std::string> GetIsoPaths();
void SetIsoPaths(const std::vector<std::string>& paths);

Expand Down

0 comments on commit a7678f3

Please sign in to comment.