housekeeping

This commit is contained in:
scawful
2024-08-11 11:52:57 -04:00
parent 231c713b38
commit ba4700f124
2 changed files with 7 additions and 2 deletions

View File

@@ -6,10 +6,11 @@
#include "app/zelda3/overworld/overworld.h"
void yaze_check_version(const char* version) {
printf("Yaze version: %s\n", version);
auto version_check = yaze::app::core::CheckVersion(version);
if (!version_check.ok()) {
// Print the error message to the console for a pure C interface.
printf("%s\n", version_check.status().message().c_str());
printf("%s\n", version_check.status().message().data());
// Exit the program if the version check fails.
exit(1);
}