This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
2022-05-22 16:43:09 +02:00

25 lines
427 B
C++

#include "api/api.hpp"
#include "backend.hpp"
#include "fiber_pool.hpp"
#include "looped/looped.hpp"
#include "script.hpp"
#include "thread_pool.hpp"
namespace big
{
void backend::loop()
{
g->attempt_save();
looped::system_self_globals();
looped::system_update_pointers();
if (g_local_player != nullptr && !api::util::signed_in())
{
g_thread_pool->push([]
{
looped::api_login_session();
});
}
}
}