mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
static-ify a bunch of functions
This commit is contained in:
parent
2edc3085a5
commit
3e98f16e6b
2 changed files with 5 additions and 9 deletions
|
@ -53,7 +53,7 @@ std::map<int, NpAuthHandler> npAuthHandlers;
|
|||
|
||||
|
||||
// Tickets data are in big-endian based on captured packets
|
||||
int writeTicketParam(u8* buffer, const u16_be type, const char* data = nullptr, const u16_be size = 0) {
|
||||
static int writeTicketParam(u8* buffer, const u16_be type, const char* data = nullptr, const u16_be size = 0) {
|
||||
if (buffer == nullptr) return 0;
|
||||
|
||||
u16_be sz = (data == nullptr)? static_cast<u16_be>(0): size;
|
||||
|
@ -65,7 +65,7 @@ int writeTicketParam(u8* buffer, const u16_be type, const char* data = nullptr,
|
|||
return sz + 4;
|
||||
}
|
||||
|
||||
int writeTicketStringParam(u8* buffer, const u16_be type, const char* data = nullptr, const u16_be size = 0) {
|
||||
static int writeTicketStringParam(u8* buffer, const u16_be type, const char* data = nullptr, const u16_be size = 0) {
|
||||
if (buffer == nullptr) return 0;
|
||||
|
||||
u16_be sz = (data == nullptr) ? static_cast<u16_be>(0) : size;
|
||||
|
@ -78,7 +78,7 @@ int writeTicketStringParam(u8* buffer, const u16_be type, const char* data = nul
|
|||
return sz + 4;
|
||||
}
|
||||
|
||||
int writeTicketU32Param(u8* buffer, const u16_be type, const u32_be data) {
|
||||
static int writeTicketU32Param(u8* buffer, const u16_be type, const u32_be data) {
|
||||
if (buffer == nullptr) return 0;
|
||||
|
||||
u16_be sz = 4;
|
||||
|
@ -89,7 +89,7 @@ int writeTicketU32Param(u8* buffer, const u16_be type, const u32_be data) {
|
|||
return sz + 4;
|
||||
}
|
||||
|
||||
int writeTicketU64Param(u8* buffer, const u16_be type, const u64_be data) {
|
||||
static int writeTicketU64Param(u8* buffer, const u16_be type, const u64_be data) {
|
||||
if (buffer == nullptr) return 0;
|
||||
|
||||
u16_be sz = 8;
|
||||
|
@ -100,7 +100,7 @@ int writeTicketU64Param(u8* buffer, const u16_be type, const u64_be data) {
|
|||
return sz + 4;
|
||||
}
|
||||
|
||||
void notifyNpAuthHandlers(u32 id, u32 result, u32 argAddr) {
|
||||
static void notifyNpAuthHandlers(u32 id, u32 result, u32 argAddr) {
|
||||
std::lock_guard<std::recursive_mutex> npAuthGuard(npAuthEvtMtx);
|
||||
npAuthEvents.push_back({ { id, result, argAddr } });
|
||||
}
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
// This is pretty much a stub implementation. Doesn't actually do anything, just tries to return values
|
||||
// to keep games happy anyway.
|
||||
|
||||
#include <mutex>
|
||||
#include <deque>
|
||||
#include <StringUtils.h>
|
||||
|
@ -28,7 +25,6 @@
|
|||
#include "Core/HLE/sceNp.h"
|
||||
#include "Core/HLE/sceNp2.h"
|
||||
|
||||
|
||||
bool npMatching2Inited = false;
|
||||
SceNpAuthMemoryStat npMatching2MemStat = {};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue