Difference between revisions of "HOWTO-Engines"

Jump to navigation Jump to search
45 bytes added ,  15:03, 25 October 2018
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Fix code highlighting)
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 159: Line 159:
   
   
#endif
#endif
</source>
</syntaxhighlight>


=== Example: engines/quux/quux.cpp ===
=== Example: engines/quux/quux.cpp ===
Line 250: Line 250:
   
   
} // End of namespace Quux
} // End of namespace Quux
</source>
</syntaxhighlight>


=== Example: engines/quux/detection.cpp ===
=== Example: engines/quux/detection.cpp ===
Line 351: Line 351:
REGISTER_PLUGIN_STATIC(QUUX, PLUGIN_TYPE_ENGINE, QuuxMetaEngine);
REGISTER_PLUGIN_STATIC(QUUX, PLUGIN_TYPE_ENGINE, QuuxMetaEngine);
#endif
#endif
</source>
</syntaxhighlight>


=== Example: engines/quux/module.mk ===
=== Example: engines/quux/module.mk ===
Line 371: Line 371:
# Include common rules  
# Include common rules  
include $(srcdir)/rules.mk
include $(srcdir)/rules.mk
</source>
</syntaxhighlight>


=== Example: engines/quux/configure.engine ===
=== Example: engines/quux/configure.engine ===
Line 378: Line 378:
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
add_engine quux "Quux" no
add_engine quux "Quux" no
</source>
</syntaxhighlight>
TrustedUser
2,147

edits

Navigation menu