mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Reload save data on disconnect
This commit is contained in:
parent
e5d8e90b2f
commit
8ce66b76c6
1 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
#include "object_fields.h"
|
#include "object_fields.h"
|
||||||
#include "object_constants.h"
|
#include "object_constants.h"
|
||||||
#include "behavior_table.h"
|
#include "behavior_table.h"
|
||||||
|
#include "game/save_file.h"
|
||||||
#include "src/game/hardcoded.h"
|
#include "src/game/hardcoded.h"
|
||||||
#ifdef DISCORD_SDK
|
#ifdef DISCORD_SDK
|
||||||
#include "discord/discord.h"
|
#include "discord/discord.h"
|
||||||
|
|
@ -19,6 +20,7 @@
|
||||||
#include "pc/crash_handler.h"
|
#include "pc/crash_handler.h"
|
||||||
#include "pc/debuglog.h"
|
#include "pc/debuglog.h"
|
||||||
#include "game/camera.h"
|
#include "game/camera.h"
|
||||||
|
|
||||||
// Mario 64 specific externs
|
// Mario 64 specific externs
|
||||||
extern s16 sCurrPlayMode;
|
extern s16 sCurrPlayMode;
|
||||||
extern s16 gCurrCourseNum, gCurrActStarNum, gCurrLevelNum, gCurrAreaIndex;
|
extern s16 gCurrCourseNum, gCurrActStarNum, gCurrLevelNum, gCurrAreaIndex;
|
||||||
|
|
@ -484,6 +486,8 @@ void network_shutdown(bool sendLeaving, bool exiting) {
|
||||||
cnt->extStickX = 0;
|
cnt->extStickX = 0;
|
||||||
cnt->extStickY = 0;
|
cnt->extStickY = 0;
|
||||||
|
|
||||||
|
save_file_load_all(TRUE);
|
||||||
|
|
||||||
extern s16 gMenuMode;
|
extern s16 gMenuMode;
|
||||||
gMenuMode = -1;
|
gMenuMode = -1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue