MCPcopy Create free account
hub / github.com/axmolengine/axmol / problemLoading

Function problemLoading

tests/live2d-tests/Source/SampleScene.cpp:39–43  ·  view source on GitHub ↗

Print useful error message instead of segfaulting when files are not there.

Source from the content-addressed store, hash-verified

37
38// Print useful error message instead of segfaulting when files are not there.
39static void problemLoading(const char* filename)
40{
41 printf("Error while loading: %s\n", filename);
42 printf("Depending on how you compiled you might have to add 'Resources/' in front of filenames in SampleSceneScene.cpp\n");
43}
44
45// on "init" you need to initialize your instance
46bool SampleScene::init()

Callers 1

initMethod · 0.70

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected