Skip to content

Commit 9710e6c

Browse files
author
Gin
committed
m
1 parent d06a124 commit 9710e6c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

SerialPrograms/Source/PokemonLZA/Programs/ShinyHunting/PokemonLZA_AutoFossil.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ AutoFossil::AutoFossil()
115115
ImageAttachmentMode::JPG,
116116
{"Notifs", "Showcase"}
117117
)
118-
, NOTIFICATION_STATUS("Status Update", true, false, std::chrono::seconds(3600))
118+
, NOTIFICATION_STATUS("Status Update", true, false, Seconds(3600))
119119
, NOTIFICATIONS({
120120
&NOTIFICATION_STATUS,
121121
&FOUND_SHINY_OR_ALPHA,
@@ -281,11 +281,11 @@ bool AutoFossil::check_fossils_in_one_box(
281281
box_detector.move_cursor(env.program_info(), env.console, context, box_row, box_col);
282282

283283
info_watcher.reset_state();
284-
const int ret = wait_until(env.console, context, std::chrono::seconds(10), {info_watcher});
284+
const int ret = wait_until(env.console, context, Seconds(5), {info_watcher});
285285
if (ret < 0) {
286286
OperationFailedException::fire(
287287
ErrorReport::SEND_ERROR_REPORT,
288-
"Failed to detect box info at cell idx " + std::to_string(i) + " after 30 seconds",
288+
"Failed to detect box info at cell idx " + std::to_string(i) + " after 5 seconds",
289289
env.console
290290
);
291291
}

SerialPrograms/Source/PokemonSV/Resources/PokemonSV_NameDatabase.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "CommonFramework/Logging/Logger.h"
88
#include "Pokemon/Resources/Pokemon_PokemonNames.h"
9+
#include "Pokemon/Resources/Pokemon_PokemonSlugs.h"
910
#include "PokemonSV/Resources/PokemonSV_PokemonSprites.h"
1011
#include "PokemonSV_NameDatabase.h"
1112

@@ -44,10 +45,10 @@ StringSelectDatabase make_ALL_POKEMON_NAMES(){
4445
const SpriteDatabase& sprites = ALL_POKEMON_SPRITES();
4546

4647
std::vector<std::string> slugs;
47-
for (std::string& slug : load_pokemon_slug_json_list("Pokemon/Pokedex/Pokedex-National.json")){
48+
for (const std::string& slug : NATIONAL_DEX_SLUGS()){
4849
const SpriteDatabase::Sprite* sprite = sprites.get_nothrow(slug);
4950
if (sprite != nullptr){
50-
slugs.emplace_back(std::move(slug));
51+
slugs.emplace_back(slug);
5152
}
5253
}
5354

SerialPrograms/Source/PokemonSV/Resources/PokemonSV_NameDatabase.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ namespace NintendoSwitch{
1111
namespace PokemonSV{
1212

1313

14-
StringSelectDatabase make_name_database(const std::vector<std::string>& slugs);
15-
1614
const StringSelectDatabase& ALL_POKEMON_NAMES();
1715

1816

0 commit comments

Comments
 (0)