MCPcopy Create free account
hub / github.com/carbonengine/trinity / HandleGrannyDeprecation

Function HandleGrannyDeprecation

trinity/Resources/TriGeometryRes.cpp:41–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41void HandleGrannyDeprecation( const std::wstring& path )
42{
43 switch( (GrannyDeprecationLevel)g_grannyDeprecationLevel )
44 {
45 case GrannyDeprecationLevel::DO_NOTHING:
46 break;
47 case GrannyDeprecationLevel::LOG_ERROR: {
48 CCP_LOGERR( "Don't load granny! Use CMF! Tried to load: %ls", path.c_str() );
49 }
50 break;
51 case GrannyDeprecationLevel::LOG_ERROR_AND_ASSERT: {
52 CCP_LOGERR( "Don't load granny! Use CMF! Tried to load: %ls", path.c_str() );
53 CCP_ASSERT_M( false, "Use CMF!" );
54 }
55 break;
56 default: {
57 CCP_ASSERT_M( false, "Invalid GrannyDeprecationLevel" );
58 }
59 break;
60 }
61}
62
63
64static void CopyGrannyName( std::string& dest, const char* src )

Callers 2

DoLoadMethod · 0.85
DoLoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected