diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 10:48:01 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 10:48:01 -0400 |
| commit | 1eacf01378d4dff3aed73fffcc42e0352b93835e (patch) | |
| tree | a90fd3b0e829bab1acef32ffc63aafe1fafc61a9 /tools | |
| parent | e36aead557d767539326b230f9ba8b89b4d1d1df (diff) | |
| download | lingo2-archipelago-1eacf01378d4dff3aed73fffcc42e0352b93835e.tar.gz lingo2-archipelago-1eacf01378d4dff3aed73fffcc42e0352b93835e.tar.bz2 lingo2-archipelago-1eacf01378d4dff3aed73fffcc42e0352b93835e.zip | |
Trying out protobuf I guess
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/datapacker/main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
| diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp new file mode 100644 index 0000000..fd0ace6 --- /dev/null +++ b/tools/datapacker/main.cpp | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #include <iostream> | ||
| 2 | #include <string> | ||
| 3 | |||
| 4 | void Run(const std::string& mapdir, const std::string& outputpath) { | ||
| 5 | |||
| 6 | } | ||
| 7 | |||
| 8 | int main(int argc, char** argv) { | ||
| 9 | if (argc != 3) { | ||
| 10 | std::cout << "Incorrect argument count." << std::endl; | ||
| 11 | std::cout << "Usage: datapacker [path to map directory] [output file]" << std::endl; | ||
| 12 | return 1; | ||
| 13 | } | ||
| 14 | |||
| 15 | std::string mapdir = argv[1]; | ||
| 16 | std::string outputpath = argv[2]; | ||
| 17 | |||
| 18 | Run(mapdir, outputpath); | ||
| 19 | |||
| 20 | return 0; | ||
| 21 | } | ||
