Skip to content

Commit

Permalink
Fix some warnings/errors in android build
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Aug 21, 2019
1 parent 23770d8 commit c78260c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/Project64-core/MemoryExceptionFilter.cpp
Expand Up @@ -377,7 +377,7 @@ bool CMipsMemoryVM::FilterX86Exception(uint32_t MemAddress, X86_CONTEXT & contex
#endif

#ifdef __arm__
bool CMipsMemoryVM::DumpArmExceptionInfo(uint32_t MemAddress, mcontext_t & context)
void CMipsMemoryVM::DumpArmExceptionInfo(uint32_t MemAddress, mcontext_t & context)
{
ArmThumbOpcode * OpCode = (ArmThumbOpcode *)context.arm_pc;
Arm32Opcode * OpCode32 = (Arm32Opcode *)context.arm_pc;
Expand Down
2 changes: 1 addition & 1 deletion Source/Project64-core/N64System/Mips/MemoryVirtualMem.h
Expand Up @@ -185,7 +185,7 @@ class CMipsMemoryVM :
static bool FilterX86Exception(uint32_t MemAddress, X86_CONTEXT & context);
#endif
#ifdef __arm__
static bool DumpArmExceptionInfo(uint32_t MemAddress, mcontext_t & context);
static void DumpArmExceptionInfo(uint32_t MemAddress, mcontext_t & context);
static bool FilterArmException(uint32_t MemAddress, mcontext_t & context);
#endif

Expand Down
10 changes: 5 additions & 5 deletions Source/Project64-core/N64System/N64DiskClass.cpp
Expand Up @@ -478,10 +478,10 @@ bool CN64Disk::LoadDiskRAMImage()
filename[filename.length() - 2] = 'a';
filename[filename.length() - 3] = 'r';

WriteTrace(TraceN64System, TraceDebug, "Trying to open %s", filename);
WriteTrace(TraceN64System, TraceDebug, "Trying to open %s", filename.c_str());
if (!ramfile.Open(filename.c_str(), CFileBase::modeRead))
{
WriteTrace(TraceN64System, TraceError, "Failed to open %s", filename);
WriteTrace(TraceN64System, TraceError, "Failed to open %s", filename.c_str());
return false;
}

Expand Down Expand Up @@ -783,12 +783,12 @@ Country CN64Disk::GetDiskCountryCode()
switch (*(uint32_t*)&GetDiskAddressSys()[0])
{
case DISK_COUNTRY_JPN:
return Country::Japan;
return Japan;
case DISK_COUNTRY_USA:
return Country::USA;
return USA;
case DISK_COUNTRY_DEV:
default:
return Country::UnknownCountry;
return UnknownCountry;
}
}

Expand Down

0 comments on commit c78260c

Please sign in to comment.