2021-09-18 22:10:38 +02:00
|
|
|
#include "api/api.hpp"
|
2021-05-19 14:35:30 +02:00
|
|
|
#include "backend.hpp"
|
|
|
|
#include "fiber_pool.hpp"
|
|
|
|
#include "looped/looped.hpp"
|
2021-07-26 21:19:58 +02:00
|
|
|
#include "script.hpp"
|
2021-09-18 22:10:38 +02:00
|
|
|
#include "thread_pool.hpp"
|
2021-05-19 14:35:30 +02:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void backend::loop()
|
|
|
|
{
|
2022-02-22 01:18:49 +01:00
|
|
|
g->attempt_save();
|
2022-05-07 18:27:59 -04:00
|
|
|
looped::system_self_globals();
|
2022-05-03 18:37:59 +02:00
|
|
|
looped::system_update_pointers();
|
2021-05-20 18:00:03 +02:00
|
|
|
|
2021-09-18 22:10:38 +02:00
|
|
|
if (g_local_player != nullptr && !api::util::signed_in())
|
2021-08-17 16:56:41 +02:00
|
|
|
{
|
2021-09-18 22:10:38 +02:00
|
|
|
g_thread_pool->push([]
|
2022-05-24 15:59:25 -04:00
|
|
|
{
|
|
|
|
looped::api_login_session();
|
|
|
|
});
|
2021-09-18 22:10:38 +02:00
|
|
|
}
|
2021-05-19 14:35:30 +02:00
|
|
|
}
|
2022-05-05 23:51:18 +03:00
|
|
|
}
|