Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KojoBailey authored Jan 24, 2024
1 parent 67c4a60 commit fbfc22b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
Binary file added icon/CRIWARE.ico
Binary file not shown.
1 change: 1 addition & 0 deletions icon/icon.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
id ICON "./CRIWARE.ico"
Binary file added icon/icon.res
Binary file not shown.
26 changes: 26 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <iostream>
#include <stdlib.h>
#include <filesystem>

namespace fs = std::filesystem;

void cout(std::string msg) {
std::cout << "> " + msg + "\n";
}

int main(int argc, char* argv[]) {
if (argc < 2) {
cout("This is a drag-n-drop handler for conversion.");
cout("Drag the USM file you want to convert onto this EXE and watch the magic happen!\n");
cout("For more specific commands, use the terminal instead.\n");
system("pause");
return 0;
}
fs::path path = fs::current_path();
fs::current_path(path);
fs::path filepath = argv[1];

std::string command = "UsmToolkit.exe convert " + filepath.filename().string();

system(command.c_str());
}

0 comments on commit fbfc22b

Please sign in to comment.