mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-06 11:32:07 +00:00
ConvertObj: check command line args (fixes #34)
This commit is contained in:
parent
ed80c2c09f
commit
3ecff9bcc6
@ -219,7 +219,18 @@ void sortModules(std::vector<std::shared_ptr<Module>>& modules)
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
if(argc != 2)
|
||||||
|
{
|
||||||
|
std::cerr << "Usage: ConvertOBJ mpw.o > retro68.s\n";
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
std::ifstream in(argv[1]);
|
std::ifstream in(argv[1]);
|
||||||
|
if(!in)
|
||||||
|
{
|
||||||
|
std::cerr << "Could not read imput file \"" << argv[1] << "\"\n";
|
||||||
|
std::cerr << "Usage: ConvertOBJ mpw.o > retro68.s\n";
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
unordered_map<int,string> stringDictionary;
|
unordered_map<int,string> stringDictionary;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user