mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-10 04:31:44 +00:00
tasks: use a macro for the task interval value.
This commit is contained in:
parent
39040b3e03
commit
672978150b
2 changed files with 7 additions and 5 deletions
|
@ -58,7 +58,7 @@ int main(int argc, char* argv[])
|
|||
i18n::loadTranslations();
|
||||
|
||||
/* Initialize Borealis. */
|
||||
if (!brls::Application::init("main/name"_i18n)) return EXIT_FAILURE;
|
||||
if (!brls::Application::init(APP_TITLE)) return EXIT_FAILURE;
|
||||
|
||||
/* Create root tab frame. */
|
||||
brls::TabFrame *root_frame = new brls::TabFrame();
|
||||
|
|
|
@ -22,11 +22,13 @@
|
|||
#include <nxdt_includes.h>
|
||||
#include <tasks.hpp>
|
||||
|
||||
#define TASK_INTERVAL 100 /* 100 ms. */
|
||||
|
||||
namespace nxdt::tasks
|
||||
{
|
||||
/* Gamecard task. */
|
||||
|
||||
GameCardTask::GameCardTask(GameCardStatusEvent *gc_status_event) : brls::RepeatingTask(100) /* 100 ms intervals. */
|
||||
GameCardTask::GameCardTask(GameCardStatusEvent *gc_status_event) : brls::RepeatingTask(TASK_INTERVAL)
|
||||
{
|
||||
this->gc_status_event = gc_status_event;
|
||||
}
|
||||
|
@ -46,7 +48,7 @@ namespace nxdt::tasks
|
|||
|
||||
/* Gamecard title task. */
|
||||
|
||||
GameCardTitleTask::GameCardTitleTask(VoidEvent *gc_title_event) : brls::RepeatingTask(100) /* 100 ms intervals. */
|
||||
GameCardTitleTask::GameCardTitleTask(VoidEvent *gc_title_event) : brls::RepeatingTask(TASK_INTERVAL)
|
||||
{
|
||||
this->gc_title_event = gc_title_event;
|
||||
}
|
||||
|
@ -64,7 +66,7 @@ namespace nxdt::tasks
|
|||
|
||||
/* USB Mass Storage task. */
|
||||
|
||||
UmsTask::UmsTask(VoidEvent *ums_event) : brls::RepeatingTask(100) /* 100 ms intervals. */
|
||||
UmsTask::UmsTask(VoidEvent *ums_event) : brls::RepeatingTask(TASK_INTERVAL)
|
||||
{
|
||||
this->ums_event = ums_event;
|
||||
}
|
||||
|
@ -82,7 +84,7 @@ namespace nxdt::tasks
|
|||
|
||||
/* USB host device connection task. */
|
||||
|
||||
UsbHostTask::UsbHostTask(BooleanEvent *usb_host_event) : brls::RepeatingTask(100) /* 100 ms intervals. */
|
||||
UsbHostTask::UsbHostTask(BooleanEvent *usb_host_event) : brls::RepeatingTask(TASK_INTERVAL)
|
||||
{
|
||||
this->usb_host_event = usb_host_event;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue