mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix random modules not reseting on shutdown.
This commit is contained in:
parent
036f0f3ad9
commit
41db5c46a5
8 changed files with 30 additions and 5 deletions
|
@ -36,6 +36,11 @@ const int PSP_LANGUAGE_SIMPLIFIED_CHINESE = 11;
|
|||
static u32 iLanguage = PSP_LANGUAGE_ENGLISH;
|
||||
static u32 iButtonValue = 0;
|
||||
|
||||
void __ImposeInit()
|
||||
{
|
||||
iLanguage = PSP_LANGUAGE_ENGLISH;
|
||||
iButtonValue = 0;
|
||||
}
|
||||
|
||||
u32 sceImposeGetBatteryIconStatus(u32 chargingPtr, u32 iconStatusPtr)
|
||||
{
|
||||
|
|
|
@ -18,3 +18,4 @@
|
|||
#pragma once
|
||||
|
||||
void Register_sceImpose();
|
||||
void __ImposeInit();
|
||||
|
|
|
@ -84,7 +84,7 @@ const std::string &EmuDebugOutput() {
|
|||
|
||||
typedef u32 (*DeferredAction)(SceUID id, int param);
|
||||
DeferredAction defAction = 0;
|
||||
u32 defParam;
|
||||
u32 defParam = 0;
|
||||
|
||||
#define SCE_STM_FDIR 0x1000
|
||||
#define SCE_STM_FREG 0x2000
|
||||
|
@ -154,6 +154,8 @@ public:
|
|||
void __IoInit() {
|
||||
INFO_LOG(HLE, "Starting up I/O...");
|
||||
|
||||
MemoryStick_SetFatState(PSP_FAT_MEMORYSTICK_STATE_ASSIGNED);
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
char path_buffer[_MAX_PATH], drive[_MAX_DRIVE] ,dir[_MAX_DIR], file[_MAX_FNAME], ext[_MAX_EXT];
|
||||
|
@ -192,6 +194,8 @@ void __IoInit() {
|
|||
}
|
||||
|
||||
void __IoShutdown() {
|
||||
defAction = 0;
|
||||
defParam = 0;
|
||||
}
|
||||
|
||||
u32 sceIoAssign(const char *aliasname, const char *physname, const char *devname, u32 flag) {
|
||||
|
|
|
@ -53,6 +53,8 @@
|
|||
#include "sceUmd.h"
|
||||
#include "sceSsl.h"
|
||||
#include "sceSas.h"
|
||||
#include "sceImpose.h"
|
||||
#include "sceUsb.h"
|
||||
|
||||
#include "../Util/PPGeDraw.h"
|
||||
|
||||
|
@ -93,6 +95,8 @@ void __KernelInit()
|
|||
__UmdInit();
|
||||
__CtrlInit();
|
||||
__SslInit();
|
||||
__ImposeInit();
|
||||
__UsbInit();
|
||||
|
||||
// "Internal" PSP libraries
|
||||
__PPGeInit();
|
||||
|
|
|
@ -22,16 +22,15 @@
|
|||
#include "scePower.h"
|
||||
#include "sceKernelThread.h"
|
||||
|
||||
static bool volatileMemLocked;
|
||||
|
||||
const int POWER_CB_AUTO = -1;
|
||||
|
||||
const int numberOfCBPowerSlots = 16;
|
||||
static int powerCbSlots[numberOfCBPowerSlots];
|
||||
|
||||
static bool volatileMemLocked;
|
||||
static int powerCbSlots[numberOfCBPowerSlots];
|
||||
|
||||
void __PowerInit() {
|
||||
memset(powerCbSlots, 0, sizeof(powerCbSlots));
|
||||
volatileMemLocked = false;
|
||||
}
|
||||
|
||||
int scePowerGetBatteryLifePercent() {
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
|
||||
bool usbActivated = false;
|
||||
|
||||
void __UsbInit()
|
||||
{
|
||||
usbActivated = false;
|
||||
}
|
||||
|
||||
u32 sceUsbActivate() {
|
||||
ERROR_LOG(HLE, "UNIMPL sceUsbActivate");
|
||||
usbActivated = true;
|
||||
|
|
|
@ -18,3 +18,5 @@
|
|||
#pragma once
|
||||
|
||||
void Register_sceUsb();
|
||||
|
||||
void __UsbInit();
|
||||
|
|
|
@ -36,6 +36,11 @@ PSPPlaceholderDialog netDialog;
|
|||
|
||||
void __UtilityInit()
|
||||
{
|
||||
saveDialog.Shutdown();
|
||||
msgDialog.Shutdown();
|
||||
oskDialog.Shutdown();
|
||||
netDialog.Shutdown();
|
||||
|
||||
SavedataParam::Init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue