Skip to content

Commit

Permalink
fix enum lock
Browse files Browse the repository at this point in the history
  • Loading branch information
pifopi committed Oct 3, 2023
1 parent 3370951 commit d90304c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion HexGenerator/Source/Options/BooleanCheckBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BooleanCheckBox::BooleanCheckBox(const JsonObject& obj)
: SingleStatementOption(obj)
, m_option(
SingleStatementOption::m_label,
LockWhileRunning::LOCKED,
LockMode::LOCK_WHILE_RUNNING,
obj.get_value_throw(JSON_DEFAULT).get_boolean_throw()
)
{
Expand Down
2 changes: 1 addition & 1 deletion HexGenerator/Source/Options/FloatingPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ FloatingPoint::FloatingPoint(const JsonObject& obj)
: SingleStatementOption(obj)
, m_option(
SingleStatementOption::m_label,
LockWhileRunning::LOCKED,
LockMode::LOCK_WHILE_RUNNING,
obj.get_double_throw(JSON_DEFAULT),
obj.get_double_throw(JSON_MIN_VALUE),
obj.get_double_throw(JSON_MAX_VALUE)
Expand Down
2 changes: 1 addition & 1 deletion HexGenerator/Source/Options/SimpleInteger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SimpleInteger::SimpleInteger(const JsonObject& obj)
: SingleStatementOption(obj)
, m_option(
SingleStatementOption::m_label,
LockWhileRunning::LOCKED,
LockMode::LOCK_WHILE_RUNNING,
obj.get_integer_throw(JSON_DEFAULT),
obj.get_integer_throw(JSON_MIN_VALUE),
obj.get_integer_throw(JSON_MAX_VALUE)
Expand Down
2 changes: 1 addition & 1 deletion HexGenerator/Source/Options/TimeExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TimeExpression::TimeExpression(const JsonObject& obj)
: SingleStatementOption(obj)
, m_option(
SingleStatementOption::m_label,
LockWhileRunning::LOCKED,
LockMode::LOCK_WHILE_RUNNING,
TICKS_PER_SECOND,
obj.get_integer_throw(JSON_MIN_VALUE),
obj.get_integer_throw(JSON_MAX_VALUE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Pokemon{

StatsResetFilterRow::StatsResetFilterRow()
: action(StatsHuntAction::StopProgram)
, nature(NatureCheckerFilter_Database(), LockWhileRunning::LOCKED, NatureCheckerFilter::Any)
, nature(NatureCheckerFilter_Database(), LockMode::LOCK_WHILE_RUNNING, NatureCheckerFilter::Any)
, iv_hp(IvJudgeFilter::Anything)
, iv_atk(IvJudgeFilter::Anything)
, iv_def(IvJudgeFilter::Anything)
Expand Down Expand Up @@ -47,7 +47,7 @@ StatsResetFilterTable::StatsResetFilterTable()
"<b>Actions Table:</b><br>"
"If the caught Pokemon matches one of these filters, the program will stop. "
"IV checking requires that your right panel be set to the IV Judge and that you have selected the correct game language above.",
LockWhileRunning::LOCKED,
LockMode::LOCK_WHILE_RUNNING,
make_defaults()
)
{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ PlatformResetSettings::PlatformResetSettings()
, RESET_DURATION_MINUTES(
"<b>Reset Duration (minutes):</b><br>If you are resetting, reset the game every "
"this many minutes.",
LockWhileRunning::UNLOCK_WHILE_RUNNING,
LockMode::UNLOCK_WHILE_RUNNING,
180
)
#endif
Expand Down

0 comments on commit d90304c

Please sign in to comment.