Set debug variables from argv #191
No reviewers
Labels
No labels
RGSS accuracy
bug
compilation
discussion
documentation
duplicate
enhancement
invalid
performance issue
port request
question
ruby incompatibility
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: MapleShrine/mkxp#191
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Propietary RGSS editors call Game.exe with debug, test or btest arguments (according to issue #190), setting $DEBUG, $TEST or $BTEST respectively as true.
To use it replace Game.exe with the mkxp binary.
Then when using some propietary editor from wine, mkxp will be called instead of a propietary implementation and named flags are included.
I would put the parsed bool triplet into the Config struct , and do the parsing alongside the normal (boost) command line parsing.
Also might make sense to only have boost parse the command line if none of debug, test or btest are at argv[1].
The block above is not specific to MRI, it doesn't belong in the binding
I don't believe I have used snake_case anywhere in mkxp
Please use
variable == "constant"
order; we don't need defensive coding when compilers do a good enough job of catching our errors these days.There is a convenience function for C++ → Ruby bool conversion in
binding-util.h
I think all comments on the MRI binding code apply here as well.
Looks like a commit from master sneaked in
Sorry for those commits.
Instead of stop boost-parsing when debug, test or btest are found, argv is moved one argument, to allow something like:
$ ./mkxp debug --fullscreen true
RGSS1 uses $DEBUG and VX uses $TEST ($BTEST is used by both), so not only style was wrong.
I'm writing a free alternative to known privative XP editor, that's why I'm interested in these calls.
No need to apologize, your commits look very good now! Thanks for working on this. :)
You should combine all the changes you made so far into one commit, you can do that with
git rebase -i master
and then marking all commits before your newest one asfixup
orf
. Then do agit push --force ...
to update your branch.This makes the commit history look clean, and easier for me to review.
Except for the one comment in the mruby binding, looks very good now. Combine all your changes into one commit with a proper message, and it's good to merge. 👍
@ -114,8 +114,17 @@ static void mrbBindingInit(mrb_state *mrb)
/* Load RPG module */
Might want to set
TEST
here too according torgssVer
like you did in MRI, just for consistency.git is kind of tricky sometimes. I used
git reset --soft ...
in the end, it took me some time to move away the filesystem commit (it was between commits).Looks good to go; I'm just confused why your commit
b022242
is still there. It looks like your master branch is based off of an out-of-date master (so why does github tell me "no conflicts when rebasing"?). I think I'll just pull this to see what happens, and correct my master afterwards manually.Thanks!
Turns out, the overfluous commit just disappeared :) Nice
I manually re-commited filesystem's commit into
b022242
after the "squash". Maybe that messed it up.