-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67c4a60
commit fbfc22b
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
id ICON "./CRIWARE.ico" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} |