|
@@ -18,6 +18,7 @@
|
|
* 3. This notice may not be removed or altered from any source distribution.
|
|
* 3. This notice may not be removed or altered from any source distribution.
|
|
**/
|
|
**/
|
|
|
|
|
|
|
|
+#include "common/version.h"
|
|
#include "modules/love/love.h"
|
|
#include "modules/love/love.h"
|
|
#include <SDL.h>
|
|
#include <SDL.h>
|
|
|
|
|
|
@@ -150,6 +151,13 @@ int main(int argc, char **argv)
|
|
argv = hack_argv;
|
|
argv = hack_argv;
|
|
#endif // LOVE_LEGENDARY_APP_ARGV_HACK
|
|
#endif // LOVE_LEGENDARY_APP_ARGV_HACK
|
|
|
|
|
|
|
|
+ if (strcmp(love::VERSION, love_version()) != 0)
|
|
|
|
+ {
|
|
|
|
+ printf("Version mismatch detected!\nLOVE binary is version %s\n"
|
|
|
|
+ "LOVE library is version %s\n", love::VERSION, love_version());
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
// Oh, you just want the version? Okay!
|
|
// Oh, you just want the version? Okay!
|
|
if (argc > 1 && strcmp(argv[1], "--version") == 0)
|
|
if (argc > 1 && strcmp(argv[1], "--version") == 0)
|
|
{
|
|
{
|