mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-09 02:55:23 -05:00
Revisions, SVI import fix.
This commit is contained in:
@@ -27,19 +27,19 @@ class DataLoadingState final : public BaseTask
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
static std::shared_ptr<DataLoadingState> create(data::DataContext &context,
|
||||
DestructFunction destructFunction,
|
||||
void (*function)(sys::Task *, Args...),
|
||||
Args... args)
|
||||
static inline std::shared_ptr<DataLoadingState> create(data::DataContext &context,
|
||||
DestructFunction destructFunction,
|
||||
void (*function)(sys::Task *, Args...),
|
||||
Args... args)
|
||||
{
|
||||
return std::make_shared<DataLoadingState>(context, destructFunction, function, std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
static std::shared_ptr<DataLoadingState> create_and_push(data::DataContext &context,
|
||||
DestructFunction destructFunction,
|
||||
void (*function)(sys::Task *, Args...),
|
||||
Args... args)
|
||||
static inline std::shared_ptr<DataLoadingState> create_and_push(data::DataContext &context,
|
||||
DestructFunction destructFunction,
|
||||
void (*function)(sys::Task *, Args...),
|
||||
Args... args)
|
||||
{
|
||||
auto newState = DataLoadingState::create(context, destructFunction, function, std::forward<Args>(args)...);
|
||||
StateManager::push_state(newState);
|
||||
|
||||
Reference in New Issue
Block a user