-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept path to jad / jar from commandline #169
Comments
|
That's fair enough - it's fairly usual to have them both in a folder next to each other (especially if compiling code), I was thinking it would just open the jar next to it (better would be to check the jad). Alternately displaying a message that you need to open the jar would be good - it's pretty easy with tab completion to end up pointing this at a jad. |
Processing the input string to swap any Using window prompts is the most intuitive, but might also end up in a situation of killing an ant with a sledgehammer since that's not used for anything in FJ2ME so a few more classes would have to be included just for that, which might cause issues with sdl2 and libretro if someone were to open a jad on those versions. I can make this into a PR, but i'd rather wait for @recompileorg 's opinion on that as it can certainly lead to misunderstandings pertaining to jad and jar file support. |
Ah - I think the real issue I had was I was passing a file path, not a URI "file:///path/to/midlet.jar" It would be good, if the path passed in is not a URL, but does point to a jar/jad, it would be good if the conversion to file: URI could happen internally. |
If the user passes the jar a path to a jad or jar it should be loaded.
Currently invoking like this causes an exception [1]
(I tried prepending file:// to the URI but then I get 'Error: Unable to access jarfile freej2me.jar)
The text was updated successfully, but these errors were encountered: