1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

get version info from project file

This commit is contained in:
2024-03-25 15:36:07 +11:00
parent 59e36125f5
commit 73b5d44b46
4 changed files with 16 additions and 4 deletions

View File

@@ -5,13 +5,12 @@
#include "convert.hpp"
#include "headerwriter.hpp"
#include "swriter.hpp"
#include "config.h"
#include <iostream>
#include <map>
#include <algorithm>
static const char* versionStr = "tmx2gba version 0.3, (c) 2015-2022 a dinosaur";
struct Arguments
{
std::string inPath, outPath;
@@ -148,7 +147,7 @@ int main(int argc, char** argv)
}
if (p.showVersion)
{
std::cout << versionStr << std::endl;
std::cout << "tmx2gba version " << TMX2GBA_VERSION << ", (c) 2015-2024 a dinosaur" << std::endl;
return 0;
}