mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
commit
01b6fb90a5
18 files changed
+53
-52
No files matched your search
+4
-4
@@ -68,7 +68,7 @@ void PGF::DoState(PointerWrap &p) {
|
||||
void PGF::ReadPtr(const u8 *ptr, size_t dataSize) {
|
||||
const u8 *const startPtr = ptr;
|
||||
|
||||
INFO_LOG(HLE, "Reading %i bytes of PGF header", sizeof(header));
|
||||
INFO_LOG(HLE, "Reading %d bytes of PGF header", (int)sizeof(header));
|
||||
memcpy(&header, ptr, sizeof(header));
|
||||
ptr += sizeof(header);
|
||||
|
||||
@@ -183,9 +183,9 @@ void PGF::ReadPtr(const u8 *ptr, size_t dataSize) {
|
||||
// And shadow glyphs.
|
||||
for (size_t i = 0; i < shadowGlyphs.size(); i++) {
|
||||
size_t shadowId = glyphs[i].shadowID;
|
||||
if (shadowId >= 0 && shadowId < shadowMap.size()) {
|
||||
if (shadowId < shadowMap.size()) {
|
||||
size_t charId = shadowMap[shadowId];
|
||||
if (charId >= 0 && charId < glyphs.size()) {
|
||||
if (charId < glyphs.size()) {
|
||||
// TODO: check for pre existing shadow glyph
|
||||
GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[i]);
|
||||
}
|
||||
@@ -211,7 +211,7 @@ bool PGF::GetCharInfo(int charCode, PGFCharInfo *charInfo) {
|
||||
// Character not in font, return zeroed charInfo as on real PSP.
|
||||
return false;
|
||||
}
|
||||
memset(charInfo, 0, sizeof(charInfo));
|
||||
memset(charInfo, 0, sizeof(*charInfo));
|
||||
|
||||
charInfo->bitmapWidth = glyph.w;
|
||||
charInfo->bitmapHeight = glyph.h;
|
||||
|
||||
@@ -280,7 +280,7 @@ void __CtrlInit()
|
||||
ctrlCurrent.analog[0] = 128;
|
||||
ctrlCurrent.analog[1] = 128;
|
||||
|
||||
for (int i = 0; i < NUM_CTRL_BUFFERS; i++)
|
||||
for (u32 i = 0; i < NUM_CTRL_BUFFERS; i++)
|
||||
memcpy(&ctrlBufs[i], &ctrlCurrent, sizeof(_ctrl_data));
|
||||
}
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ private:
|
||||
class LoadedFont {
|
||||
public:
|
||||
LoadedFont(Font *font, FontLib *fontLib, u32 handle)
|
||||
: font_(font), fontLib_(fontLib), handle_(handle) {}
|
||||
: fontLib_(fontLib), font_(font), handle_(handle) {}
|
||||
|
||||
Font *GetFont() { return font_; }
|
||||
FontLib *GetFontLib() { return fontLib_; }
|
||||
@@ -501,7 +501,7 @@ u32 sceFontOpen(u32 libHandle, u32 index, u32 mode, u32 errorCodePtr) {
|
||||
}
|
||||
|
||||
FontLib *fontLib = GetFontLib(libHandle);
|
||||
if (index < 0 || index >= internalFonts.size()) {
|
||||
if (index >= internalFonts.size()) {
|
||||
Memory::Write_U32(ERROR_FONT_INVALID_PARAMETER, errorCodePtr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
+1
-1
@@ -270,7 +270,7 @@ u32 sceIoAssign(u32 alias_addr, u32 physical_addr, u32 filesystem_addr, int mode
|
||||
perm = "IOASSIGN_RDONLY";
|
||||
break;
|
||||
default:
|
||||
perm = "unhandled " + mode;
|
||||
perm = "unhandled";
|
||||
break;
|
||||
}
|
||||
DEBUG_LOG(HLE, "sceIoAssign(%s, %s, %s, %s, %08x, %i)", alias.c_str(), physical_dev.c_str(), filesystem_dev.c_str(), perm.c_str(), arg_addr, argSize);
|
||||
|
||||
@@ -602,7 +602,7 @@ const HLEFunction ThreadManForUser[] =
|
||||
{0x82826f70,sceKernelSleepThreadCB,"sceKernelSleepThreadCB"},
|
||||
{0xF475845D,&WrapI_IUU<sceKernelStartThread>,"sceKernelStartThread"},
|
||||
{0x9944f31f,sceKernelSuspendThread,"sceKernelSuspendThread"},
|
||||
{0x616403ba,WrapI_U<sceKernelTerminateThread>,"sceKernelTerminateThread"},
|
||||
{0x616403ba,WrapI_I<sceKernelTerminateThread>,"sceKernelTerminateThread"},
|
||||
{0x383f7bcc,WrapI_I<sceKernelTerminateDeleteThread>,"sceKernelTerminateDeleteThread"},
|
||||
{0x840E8133,WrapI_IU<sceKernelWaitThreadEndCB>,"sceKernelWaitThreadEndCB"},
|
||||
{0xd13bde95,sceKernelCheckThreadStack,"sceKernelCheckThreadStack"},
|
||||
|
||||
@@ -411,7 +411,7 @@ SubIntrHandler *__RegisterSubIntrHandler(u32 intrNumber, u32 subIntrNumber, u32
|
||||
return subIntrHandler;
|
||||
}
|
||||
|
||||
u32 __ReleaseSubIntrHandler(u32 intrNumber, u32 subIntrNumber)
|
||||
int __ReleaseSubIntrHandler(int intrNumber, int subIntrNumber)
|
||||
{
|
||||
if (!intrHandlers[intrNumber]->has(subIntrNumber))
|
||||
return -1;
|
||||
@@ -446,9 +446,9 @@ u32 sceKernelRegisterSubIntrHandler(u32 intrNumber, u32 subIntrNumber, u32 handl
|
||||
return error;
|
||||
}
|
||||
|
||||
u32 sceKernelReleaseSubIntrHandler(u32 intrNumber, u32 subIntrNumber)
|
||||
int sceKernelReleaseSubIntrHandler(int intrNumber, int subIntrNumber)
|
||||
{
|
||||
DEBUG_LOG(HLE,"sceKernelReleaseSubIntrHandler(%i, %i)", PARAM(0), PARAM(1));
|
||||
DEBUG_LOG(HLE, "sceKernelReleaseSubIntrHandler(%i, %i)", intrNumber, subIntrNumber);
|
||||
|
||||
if (intrNumber >= PSP_NUMBER_INTERRUPTS)
|
||||
return -1;
|
||||
@@ -567,7 +567,7 @@ void Register_Kernel_Library()
|
||||
const HLEFunction InterruptManager[] =
|
||||
{
|
||||
{0xCA04A2B9, WrapU_UUUU<sceKernelRegisterSubIntrHandler>, "sceKernelRegisterSubIntrHandler"},
|
||||
{0xD61E6961, WrapU_UU<sceKernelReleaseSubIntrHandler>, "sceKernelReleaseSubIntrHandler"},
|
||||
{0xD61E6961, WrapI_II<sceKernelReleaseSubIntrHandler>, "sceKernelReleaseSubIntrHandler"},
|
||||
{0xFB8E22EC, WrapU_UU<sceKernelEnableSubIntr>, "sceKernelEnableSubIntr"},
|
||||
{0x8A389411, WrapU_UU<sceKernelDisableSubIntr>, "sceKernelDisableSubIntr"},
|
||||
{0x5CB5A78B, 0, "sceKernelSuspendSubIntr"},
|
||||
|
||||
@@ -139,10 +139,10 @@ void __KernelReturnFromInterrupt();
|
||||
|
||||
void __RegisterIntrHandler(u32 intrNumber, IntrHandler* handler);
|
||||
SubIntrHandler *__RegisterSubIntrHandler(u32 intrNumber, u32 subIntrNumber, u32 &error);
|
||||
u32 __ReleaseSubIntrHandler(u32 intrNumber, u32 subIntrNumber);
|
||||
int __ReleaseSubIntrHandler(int intrNumber, int subIntrNumber);
|
||||
|
||||
u32 sceKernelRegisterSubIntrHandler(u32 intrNumber, u32 subIntrNumber, u32 handler, u32 handlerArg);
|
||||
u32 sceKernelReleaseSubIntrHandler(u32 intrNumber, u32 subIntrNumber);
|
||||
int sceKernelReleaseSubIntrHandler(int intrNumber, int subIntrNumber);
|
||||
u32 sceKernelEnableSubIntr(u32 intrNumber, u32 subIntrNumber);
|
||||
|
||||
void Register_Kernel_Library();
|
||||
|
||||
@@ -886,7 +886,7 @@ SceUID sceKernelCreateVpl(const char *name, int partition, u32 attr, u32 vplSize
|
||||
// We ignore the upalign to 256 and do it ourselves by 8.
|
||||
u32 allocSize = vplSize;
|
||||
u32 memBlockPtr = userMemory.Alloc(allocSize, (attr & PSP_VPL_ATTR_HIGHMEM) != 0, "VPL");
|
||||
if (memBlockPtr == -1)
|
||||
if (memBlockPtr == (u32)-1)
|
||||
{
|
||||
ERROR_LOG(HLE, "sceKernelCreateVpl: Failed to allocate %i bytes of pool data", vplSize);
|
||||
return SCE_KERNEL_ERROR_NO_MEMORY;
|
||||
|
||||
@@ -644,7 +644,7 @@ Module *__KernelLoadModule(u8 *fileptr, SceKernelLMOption *options, std::string
|
||||
|
||||
void __KernelStartModule(Module *m, int args, const char *argp, SceKernelSMOption *options)
|
||||
{
|
||||
if (m->nm.module_start_func != 0 && m->nm.module_start_func != -1)
|
||||
if (m->nm.module_start_func != 0 && m->nm.module_start_func != (u32)-1)
|
||||
{
|
||||
if (m->nm.module_start_func != m->nm.entry_addr)
|
||||
WARN_LOG(LOADER, "Main module has start func (%08x) different from entry (%08x)?", m->nm.module_start_func, m->nm.entry_addr);
|
||||
@@ -837,9 +837,9 @@ void sceKernelStartModule(u32 moduleId, u32 argsize, u32 argAddr, u32 returnValu
|
||||
moduleId,argsize,argAddr,returnValueAddr,optionAddr);
|
||||
|
||||
u32 entryAddr = module->nm.entry_addr;
|
||||
if (entryAddr == -1 || entryAddr == module->memoryBlockAddr - 1) {
|
||||
if (entryAddr == (u32)-1 || entryAddr == module->memoryBlockAddr - 1) {
|
||||
// TODO: Do these always take effect, or do they not override optionAddr?
|
||||
if (module->nm.module_start_func != 0 && module->nm.module_start_func != -1) {
|
||||
if (module->nm.module_start_func != 0 && module->nm.module_start_func != (u32)-1) {
|
||||
entryAddr = module->nm.module_start_func;
|
||||
priority = module->nm.module_start_thread_priority;
|
||||
attr = module->nm.module_start_thread_attr;
|
||||
@@ -924,7 +924,7 @@ u32 sceKernelLoadModuleByID(u32 id, u32 flags, u32 lmoptionPtr)
|
||||
{
|
||||
u32 error;
|
||||
u32 handle = __IoGetFileHandleFromId(id, error);
|
||||
if (handle == -1) {
|
||||
if (handle == (u32)-1) {
|
||||
ERROR_LOG(HLE,"sceKernelLoadModuleByID(%08x, %08x, %08x): could not open file id",id,flags,lmoptionPtr);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -155,22 +155,21 @@ struct ThreadWaitInfo {
|
||||
class MipsCallManager {
|
||||
public:
|
||||
MipsCallManager() : idGen_(0) {}
|
||||
int add(MipsCall *call) {
|
||||
int id = genId();
|
||||
u32 add(MipsCall *call) {
|
||||
u32 id = genId();
|
||||
calls_.insert(std::pair<int, MipsCall *>(id, call));
|
||||
return id;
|
||||
}
|
||||
MipsCall *get(int id) {
|
||||
MipsCall *get(u32 id) {
|
||||
return calls_[id];
|
||||
}
|
||||
MipsCall *pop(int id) {
|
||||
MipsCall *pop(u32 id) {
|
||||
MipsCall *temp = calls_[id];
|
||||
calls_.erase(id);
|
||||
return temp;
|
||||
}
|
||||
void clear() {
|
||||
std::map<int, MipsCall *>::iterator it, end;
|
||||
for (it = calls_.begin(), end = calls_.end(); it != end; ++it) {
|
||||
for (auto it = calls_.begin(), end = calls_.end(); it != end; ++it) {
|
||||
delete it->second;
|
||||
}
|
||||
calls_.clear();
|
||||
@@ -204,10 +203,10 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
int genId() { return ++idGen_; }
|
||||
std::map<int, MipsCall *> calls_;
|
||||
u32 genId() { return ++idGen_; }
|
||||
std::map<u32, MipsCall *> calls_;
|
||||
std::vector<ActionCreator> types_;
|
||||
int idGen_;
|
||||
u32 idGen_;
|
||||
};
|
||||
|
||||
class ActionAfterMipsCall : public Action
|
||||
@@ -425,7 +424,7 @@ public:
|
||||
std::set<SceUID> registeredCallbacks[THREAD_CALLBACK_NUM_TYPES];
|
||||
std::list<SceUID> readyCallbacks[THREAD_CALLBACK_NUM_TYPES];
|
||||
|
||||
std::list<int> pendingMipsCalls;
|
||||
std::list<u32> pendingMipsCalls;
|
||||
|
||||
u32 stackBlock;
|
||||
};
|
||||
@@ -492,7 +491,7 @@ struct ThreadList
|
||||
}
|
||||
};
|
||||
|
||||
void __KernelExecuteMipsCallOnCurrentThread(int callId, bool reschedAfter);
|
||||
void __KernelExecuteMipsCallOnCurrentThread(u32 callId, bool reschedAfter);
|
||||
|
||||
|
||||
Thread *__KernelCreateThread(SceUID &id, SceUID moduleID, const char *name, u32 entryPoint, u32 priority, int stacksize, u32 attr);
|
||||
@@ -1757,7 +1756,7 @@ int sceKernelTerminateDeleteThread(int threadno)
|
||||
}
|
||||
}
|
||||
|
||||
int sceKernelTerminateThread(u32 threadID)
|
||||
int sceKernelTerminateThread(SceUID threadID)
|
||||
{
|
||||
if (threadID != currentThread)
|
||||
{
|
||||
@@ -2256,7 +2255,7 @@ void Thread::setReturnValue(u32 retval)
|
||||
{
|
||||
if (this->GetUID() == currentThread) {
|
||||
if (g_inCbCount) {
|
||||
int callId = this->currentCallbackId;
|
||||
u32 callId = this->currentCallbackId;
|
||||
MipsCall *call = mipsCalls.get(callId);
|
||||
if (call) {
|
||||
call->setReturnValue(retval);
|
||||
@@ -2342,7 +2341,7 @@ ThreadWaitInfo Thread::getWaitInfo()
|
||||
void __KernelSwitchContext(Thread *target, const char *reason)
|
||||
{
|
||||
u32 oldPC = 0;
|
||||
u32 oldUID = 0;
|
||||
SceUID oldUID = 0;
|
||||
const char *oldName = "(none)";
|
||||
|
||||
Thread *cur = __GetCurrentThread();
|
||||
@@ -2448,7 +2447,7 @@ void __KernelCallAddress(Thread *thread, u32 entryPoint, Action *afterAction, co
|
||||
call->tag = "callAddress";
|
||||
call->cbId = cbId;
|
||||
|
||||
int callId = mipsCalls.add(call);
|
||||
u32 callId = mipsCalls.add(call);
|
||||
|
||||
bool called = false;
|
||||
if (!thread || thread == __GetCurrentThread()) {
|
||||
@@ -2475,7 +2474,7 @@ void __KernelDirectMipsCall(u32 entryPoint, Action *afterAction, u32 args[], int
|
||||
__KernelCallAddress(__GetCurrentThread(), entryPoint, afterAction, args, numargs, reschedAfter, 0);
|
||||
}
|
||||
|
||||
void __KernelExecuteMipsCallOnCurrentThread(int callId, bool reschedAfter)
|
||||
void __KernelExecuteMipsCallOnCurrentThread(u32 callId, bool reschedAfter)
|
||||
{
|
||||
Thread *cur = __GetCurrentThread();
|
||||
if (cur == NULL)
|
||||
@@ -2524,7 +2523,7 @@ void __KernelReturnFromMipsCall()
|
||||
return;
|
||||
}
|
||||
|
||||
int callId = cur->currentCallbackId;
|
||||
u32 callId = cur->currentCallbackId;
|
||||
if (currentMIPS->r[MIPS_REG_CALL_ID] != callId)
|
||||
WARN_LOG(HLE, "__KernelReturnFromMipsCall(): s0 is %08x != %08x", currentMIPS->r[MIPS_REG_CALL_ID], callId);
|
||||
|
||||
@@ -2576,7 +2575,7 @@ bool __KernelExecutePendingMipsCalls(bool reschedAfter)
|
||||
if (__CanExecuteCallbackNow(thread))
|
||||
{
|
||||
// Pop off the first pending mips call
|
||||
int callId = thread->pendingMipsCalls.front();
|
||||
u32 callId = thread->pendingMipsCalls.front();
|
||||
thread->pendingMipsCalls.pop_front();
|
||||
__KernelExecuteMipsCallOnCurrentThread(callId, reschedAfter);
|
||||
return true;
|
||||
|
||||
@@ -53,7 +53,7 @@ void sceKernelResumeThread();
|
||||
void sceKernelWakeupThread();
|
||||
void sceKernelCancelWakeupThread();
|
||||
int sceKernelTerminateDeleteThread(int threadno);
|
||||
int sceKernelTerminateThread(u32 threadID);
|
||||
int sceKernelTerminateThread(SceUID threadID);
|
||||
int sceKernelWaitThreadEndCB(SceUID threadID, u32 timeoutPtr);
|
||||
void sceKernelGetThreadExitStatus();
|
||||
u32 sceKernelGetThreadmanIdType(u32);
|
||||
|
||||
@@ -253,7 +253,7 @@ u32 sceKernelGetVTimerTime(u32 uid, u32 timeClockAddr) {
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(uid, error);
|
||||
|
||||
if (error) {
|
||||
WARN_LOG(HLE, "%08x=sceKernelGetVTimerTime(%08x, %08x)", uid, timeClockAddr);
|
||||
WARN_LOG(HLE, "%08x=sceKernelGetVTimerTime(%08x, %08x)", error, uid, timeClockAddr);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ u32 sceKernelSetVTimerTime(u32 uid, u32 timeClockAddr) {
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(uid, error);
|
||||
|
||||
if (error) {
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerTime(%08x, %08x)", uid, timeClockAddr);
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerTime(%08x, %08x)", error, uid, timeClockAddr);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ u32 sceKernelSetVTimerTimeWide(u32 uid, u64 timeClock) {
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(uid, error);
|
||||
|
||||
if (error) {
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerTimeWide(%08x, %llu)", uid, timeClock);
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerTimeWide(%08x, %llu)", error, uid, timeClock);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ u32 sceKernelSetVTimerHandler(u32 uid, u32 scheduleAddr, u32 handlerFuncAddr, u3
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(uid, error);
|
||||
|
||||
if (error) {
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerHandler(%08x, %08x, %08x, %08x)", uid, scheduleAddr, handlerFuncAddr, commonAddr);
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerHandler(%08x, %08x, %08x, %08x)", error, uid, scheduleAddr, handlerFuncAddr, commonAddr);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -389,7 +389,7 @@ u32 sceKernelSetVTimerHandlerWide(u32 uid, u64 schedule, u32 handlerFuncAddr, u3
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(uid, error);
|
||||
|
||||
if (error) {
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerHandlerWide(%08x, %llu, %08x, %08x)", uid, schedule, handlerFuncAddr, commonAddr);
|
||||
WARN_LOG(HLE, "%08x=sceKernelSetVTimerHandlerWide(%08x, %llu, %08x, %08x)", error, uid, schedule, handlerFuncAddr, commonAddr);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -417,7 +417,7 @@ u32 sceKernelReferVTimerStatus(u32 uid, u32 statusAddr) {
|
||||
VTimer *vt = kernelObjects.Get<VTimer>(uid, error);
|
||||
|
||||
if (error) {
|
||||
WARN_LOG(HLE, "%08x=sceKernelReferVTimerStatus(%08x, %08x)", uid, statusAddr);
|
||||
WARN_LOG(HLE, "%08x=sceKernelReferVTimerStatus(%08x, %08x)", error, uid, statusAddr);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -236,9 +236,9 @@ u32 sceUmdRegisterUMDCallBack(u32 cbId)
|
||||
return retVal;
|
||||
}
|
||||
|
||||
u32 sceUmdUnRegisterUMDCallBack(u32 cbId)
|
||||
int sceUmdUnRegisterUMDCallBack(int cbId)
|
||||
{
|
||||
u32 retVal;
|
||||
int retVal;
|
||||
|
||||
if (cbId != driveCBId)
|
||||
retVal = PSP_ERROR_UMD_INVALID_PARAM;
|
||||
@@ -387,7 +387,7 @@ const HLEFunction sceUmdUser[] =
|
||||
{0x20628E6F,&WrapU_V<sceUmdGetErrorStat>,"sceUmdGetErrorStat"},
|
||||
{0x340B7686,WrapU_U<sceUmdGetDiscInfo>,"sceUmdGetDiscInfo"},
|
||||
{0xAEE7404D,&WrapU_U<sceUmdRegisterUMDCallBack>,"sceUmdRegisterUMDCallBack"},
|
||||
{0xBD2BDE07,&WrapU_U<sceUmdUnRegisterUMDCallBack>,"sceUmdUnRegisterUMDCallBack"},
|
||||
{0xBD2BDE07,&WrapI_I<sceUmdUnRegisterUMDCallBack>,"sceUmdUnRegisterUMDCallBack"},
|
||||
{0x87533940,WrapU_V<sceUmdReplaceProhibit>,"sceUmdReplaceProhibit"},
|
||||
{0x87533940,WrapU_V<sceUmdReplacePermit>,"sceUmdReplacePermit"},
|
||||
};
|
||||
|
||||
@@ -926,6 +926,7 @@ namespace MIPSInt
|
||||
break;
|
||||
default:
|
||||
_dbg_assert_msg_(CPU,0,"Trying to interpret instruction that can't be interpreted");
|
||||
oz = V_Single;
|
||||
break;
|
||||
}
|
||||
ApplyPrefixD((float*)d,oz);
|
||||
|
||||
@@ -100,7 +100,7 @@ static void EndVertexDataAndDraw(int prim) {
|
||||
static u32 __PPGeDoAlloc(u32 &size, bool fromTop, const char *name) {
|
||||
u32 ptr = kernelMemory.Alloc(size, fromTop, name);
|
||||
// Didn't get it.
|
||||
if (ptr == -1)
|
||||
if (ptr == (u32)-1)
|
||||
return 0;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@@ -444,7 +444,7 @@ void CreditsScreen::update(InputState &input_state) {
|
||||
frames_++;
|
||||
}
|
||||
|
||||
static char *credits[] =
|
||||
const static char *credits[] =
|
||||
{
|
||||
"PPSSPP",
|
||||
"",
|
||||
@@ -509,7 +509,7 @@ void CreditsScreen::render() {
|
||||
// TODO: This is kinda ugly, done on every frame...
|
||||
char temp[256];
|
||||
snprintf(temp, 256, "PPSSPP %s", PPSSPP_GIT_VERSION);
|
||||
credits[0] = temp;
|
||||
credits[0] = (const char *)temp;
|
||||
|
||||
UIShader_Prepare();
|
||||
UIBegin();
|
||||
|
||||
@@ -5,6 +5,7 @@ set(GIT_VERSION_UPDATE "1")
|
||||
find_package(Git)
|
||||
if(GIT_FOUND)
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
|
||||
WORKING_DIRECTORY ${SOURCE_DIR}
|
||||
RESULT_VARIABLE exit_code
|
||||
OUTPUT_VARIABLE GIT_VERSION)
|
||||
if(NOT ${exit_code} EQUAL 0)
|
||||
|
||||
+1
-1
Submodule native updated: 3c1566b9a7...f26d95dba1.
Reference in new issue
Block a user