mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-25 16:23:41 -05:00
Fixing randomSeed initialization
This commit is contained in:
parent
e5ecf1affc
commit
aa756f22f3
|
|
@ -51,8 +51,7 @@ LinkUniversal* linkUniversal =
|
|||
.maxPlayers = 2,
|
||||
.timeout = LINK_WIRELESS_DEFAULT_TIMEOUT,
|
||||
.interval = LINK_WIRELESS_DEFAULT_INTERVAL,
|
||||
.sendTimerId = LINK_WIRELESS_DEFAULT_SEND_TIMER_ID},
|
||||
__qran_seed);
|
||||
.sendTimerId = LINK_WIRELESS_DEFAULT_SEND_TIMER_ID});
|
||||
LinkUniversal* linkConnection = linkUniversal;
|
||||
#endif
|
||||
|
||||
|
|
@ -141,6 +140,7 @@ int main() {
|
|||
std::string output = "LinkCable_stress (v8.0.0)\n\n";
|
||||
#else
|
||||
std::string output = "LinkUniversal_stress (v8.0.0)\n\n";
|
||||
Link::randomSeed = __qran_seed;
|
||||
#endif
|
||||
|
||||
linkConnection->deactivate();
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ int main() {
|
|||
.timeout = restoreWirelessMultiboot ? (u32)1000
|
||||
: LINK_WIRELESS_DEFAULT_TIMEOUT,
|
||||
.interval = LINK_WIRELESS_DEFAULT_INTERVAL,
|
||||
.sendTimerId = LINK_WIRELESS_DEFAULT_SEND_TIMER_ID},
|
||||
__qran_seed);
|
||||
.sendTimerId = LINK_WIRELESS_DEFAULT_SEND_TIMER_ID});
|
||||
Link::randomSeed = __qran_seed;
|
||||
|
||||
// (2) Add the required interrupt service routines
|
||||
interrupt_init();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user