add global function rgss_stop #59

Merged
cremno merged 1 commits from mri-add-global-function-rgss_stop into master 2014-08-29 20:15:31 +00:00
cremno commented 2014-08-29 12:35:37 +00:00 (Migrated from github.com)

It's only useful for testing code. Also RGSS3's rgss_stop (and rgss_main)
is written in Ruby and not in C++. But I doubt someone relies on that.

It's only useful for testing code. Also RGSS3's rgss_stop (and rgss_main) is written in Ruby and not in C++. But I doubt someone relies on that.
Ancurio commented 2014-08-29 20:15:07 +00:00 (Migrated from github.com)

Thanks! I think there are a few more functions that are written in ruby in RMXP (whenever they provide a "this is equal to" ruby snippet, it seems to hint at that); doing it in C++ is really just a preference.

Thanks! I think there are a few more functions that are written in ruby in RMXP (whenever they provide a "this is equal to" ruby snippet, it seems to hint at that); doing it in C++ is really just a preference.
cremno commented 2014-08-29 20:58:03 +00:00 (Migrated from github.com)

I think there are a few more functions that are written in ruby in RMXP

I don't think so. You can “easily” check that (requires RGSS3 / VX Ace):

msgbox RubyVM::InstructionSequence.disassemble method :rgss_stop
msgbox RubyVM::InstructionSequence.disassemble method :save_data

nil means the method is not written in Ruby.

> I think there are a few more functions that are written in ruby in RMXP I don't think so. You can “easily” check that (requires RGSS3 / VX Ace): ``` ruby msgbox RubyVM::InstructionSequence.disassemble method :rgss_stop msgbox RubyVM::InstructionSequence.disassemble method :save_data ``` `nil` means the method is not written in Ruby.
Ancurio commented 2014-08-30 10:12:13 +00:00 (Migrated from github.com)

You're right, I was just guessing, but it's cool that there's a factual method to confirm that! I suspected that Graphics.wait might have been ruby too, but turns out it's actually not.

You're right, I was just guessing, but it's cool that there's a factual method to confirm that! I suspected that Graphics.wait might have been ruby too, but turns out it's actually not.
fdelapena commented 2014-08-30 13:36:10 +00:00 (Migrated from github.com)

For all versions you can check hidden scripts from unpacked RGSS DLLs. Once unpacked they're visible in plain text.

For all versions you can check hidden scripts from unpacked RGSS DLLs. Once unpacked they're visible in plain text.
Ancurio commented 2014-08-30 13:39:19 +00:00 (Migrated from github.com)

For all versions you can check hidden scripts from unpacked RGSS DLLs. Once unpacked they're visible in plain text.

Okay, but at that point we'd be leaving the "clean room" safe area ;)

> For all versions you can check hidden scripts from unpacked RGSS DLLs. Once unpacked they're visible in plain text. Okay, but at that point we'd be leaving the "clean room" safe area ;)
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MapleShrine/mkxp#59
No description provided.