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

Function problemLoading

templates/cpp/Source/MainScene.cpp:33–39  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

initMethod · 0.70

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected