mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-07-11 09:34:03 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 460bc583a5 |
@@ -460,7 +460,7 @@ The team behind Unleashed Recompiled does not currently have any plans to port m
|
||||
|
||||
- [Goalringmod27](https://linktr.ee/goalringmod27): Concept Artist behind the achievements overlay shown during gameplay. Aided in the creation of the Transparency Anti-Aliasing thumbnail.
|
||||
|
||||
- [RagdollClash](https://github.com/RagdollClash): Provisional support for dynamic UI aspect ratio.
|
||||
- [M&M](https://github.com/ActualMandM): Provisional support for dynamic UI aspect ratio.
|
||||
|
||||
- [DaGuAr](https://twitter.com/TheDaguar): Provided Spanish localization for the custom menus alongside Darío.
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
// 6 hour long timeout between checks.
|
||||
static constexpr double g_timeBetweenUpdateChecksInSeconds = 6 * 60 * 60;
|
||||
|
||||
struct UpdateChecker
|
||||
{
|
||||
enum class Result
|
||||
|
||||
@@ -307,11 +307,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
// Check the time since the last time an update was checked. Store the new time if the difference is more than six hours.
|
||||
constexpr double TimeBetweenUpdateChecksInSeconds = 6 * 60 * 60;
|
||||
// Check the time since the last time an update was checked.
|
||||
// Store the new time if the difference is more than g_timeBetweenUpdateChecksInSeconds hours.
|
||||
time_t timeNow = std::time(nullptr);
|
||||
double timeDifferenceSeconds = difftime(timeNow, Config::LastChecked);
|
||||
if (timeDifferenceSeconds > TimeBetweenUpdateChecksInSeconds)
|
||||
if (timeDifferenceSeconds > g_timeBetweenUpdateChecksInSeconds)
|
||||
{
|
||||
UpdateChecker::initialize();
|
||||
UpdateChecker::start();
|
||||
|
||||
@@ -129,7 +129,9 @@ PPC_FUNC(sub_822C55B0)
|
||||
|
||||
void PressStartSaveLoadThreadMidAsmHook()
|
||||
{
|
||||
if (UpdateChecker::check() == UpdateChecker::Result::UpdateAvailable)
|
||||
time_t timeNow = std::time(nullptr);
|
||||
double timeDifferenceSeconds = difftime(timeNow, Config::LastChecked);
|
||||
if (UpdateChecker::check() == UpdateChecker::Result::UpdateAvailable && timeDifferenceSeconds > g_timeBetweenUpdateChecksInSeconds)
|
||||
{
|
||||
g_updateAvailableMessageOpen = true;
|
||||
g_updateAvailableMessageOpen.wait(true);
|
||||
|
||||
@@ -15,7 +15,7 @@ inline std::array<const char*, 17> g_credits =
|
||||
"LJSTAR",
|
||||
"saguinee",
|
||||
"Goalringmod27",
|
||||
"RagdollClash",
|
||||
"M&M",
|
||||
"DaGuAr",
|
||||
"brianuuuSonic",
|
||||
"Kitzuku"
|
||||
|
||||
Reference in New Issue
Block a user