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.

23 lines
379 B
C++
Raw Normal View History

#include "api/api.hpp"
2021-05-19 14:35:30 +02:00
#include "backend.hpp"
#include "looped/looped.hpp"
#include "thread_pool.hpp"
2021-05-19 14:35:30 +02:00
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();
});
}
2021-05-19 14:35:30 +02:00
}
}