Defined UNIMPLEMENTED macro and applied where applicable

Again, not in EmuD3D and EmuSound, as those are going to be LLE'd
sometime soon(ish)
This commit is contained in:
PatrickvL 2016-11-15 17:12:50 +01:00
parent 61835e7c4b
commit 399483c954
5 changed files with 14 additions and 8 deletions

View File

@ -103,4 +103,9 @@ extern thread_local std::string _logPrefix;
// Log function with one out argument // Log function with one out argument
#define LOG_FUNC_ONE_ARG_OUT(arg) LOG_FUNC_BEGIN LOG_FUNC_ARG_OUT(arg) LOG_FUNC_END #define LOG_FUNC_ONE_ARG_OUT(arg) LOG_FUNC_BEGIN LOG_FUNC_ARG_OUT(arg) LOG_FUNC_END
#define UNIMPLEMENTED() \
do { if (_DEBUG_TRACE) if(g_bPrintfOn) { \
std::cout << __func__ << " ignored!\n"; \
} } while (0)
#endif _LOGGING_H #endif _LOGGING_H

View File

@ -1634,7 +1634,7 @@ XBSYSAPI EXPORTNUM(25) xboxkrnl::NTSTATUS NTAPI xboxkrnl::ExReadWriteRefurbInfo
LOG_FUNC_END; LOG_FUNC_END;
// TODO: What does this do? // TODO: What does this do?
EmuWarning( "ExReadWriteRefurbInfo ignored!" ); UNIMPLEMENTED();
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
@ -1690,7 +1690,7 @@ XBSYSAPI EXPORTNUM(37) xboxkrnl::LONG NTAPI xboxkrnl::FscSetCacheSize
{ {
LOG_FUNC_ONE_ARG(uCachePages); LOG_FUNC_ONE_ARG(uCachePages);
EmuWarning("FscSetCacheSize is being ignored"); UNIMPLEMENTED();
return 0; return 0;
} }
@ -2559,7 +2559,7 @@ XBSYSAPI EXPORTNUM(175) void NTAPI xboxkrnl::MmLockUnlockBufferPages
LOG_FUNC_ARG(Protect) LOG_FUNC_ARG(Protect)
LOG_FUNC_END; LOG_FUNC_END;
EmuWarning("EmuKrnl: MmLockUnlockBufferPages ignored"); UNIMPLEMENTED();
} }
// ****************************************************************** // ******************************************************************
@ -2601,7 +2601,7 @@ XBSYSAPI EXPORTNUM(178) VOID NTAPI xboxkrnl::MmPersistContiguousMemory
LOG_FUNC_END; LOG_FUNC_END;
// TODO: Actually set this up to be remember across a "reboot" // TODO: Actually set this up to be remember across a "reboot"
EmuWarning("MmPersistContiguousMemory is being ignored\n"); UNIMPLEMENTED();
} }
// ****************************************************************** // ******************************************************************
@ -3226,7 +3226,7 @@ XBSYSAPI EXPORTNUM(205) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtProtectVirtualMemor
LOG_FUNC_ARG_OUT(OldProtect) LOG_FUNC_ARG_OUT(OldProtect)
LOG_FUNC_END; LOG_FUNC_END;
EmuWarning("NtProtectVirtualMemory Ignored!"); UNIMPLEMENTED();
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }

View File

@ -119,6 +119,6 @@ XBSYSAPI EXPORTNUM(2) VOID NTAPI xboxkrnl::AvSendTVEncoderOption
// TODO: What does this do? // TODO: What does this do?
EmuWarning("AvSendTVEncoderOption ignored!"); UNIMPLEMENTED();
} }

View File

@ -325,7 +325,8 @@ HRESULT WINAPI XTL::EmuXGWriteSurfaceOrTextureToXPR
// and write the surface/texture to a file, or output a generic .xbx // and write the surface/texture to a file, or output a generic .xbx
// file and be done with it. // file and be done with it.
EmuWarning("(Temporarily) ignoring EmuXGWriteSurfaceOrTextureToXPR. Need file specs."); UNIMPLEMENTED();
// (Temporarily) ignoring EmuXGWriteSurfaceOrTextureToXPR. Need file specs.
return S_OK; return S_OK;
} }

View File

@ -971,7 +971,7 @@ VOID WINAPI XTL::EmuXSetProcessQuantumLength
LOG_FUNC_ONE_ARG(dwMilliseconds); LOG_FUNC_ONE_ARG(dwMilliseconds);
// TODO: Implement? // TODO: Implement?
EmuWarning("XSetProcessQuantumLength is being ignored!"); UNIMPLEMENTED();
} }
// ****************************************************************** // ******************************************************************