Commit Graph

67 Commits

Author SHA1 Message Date
Jonas Kulla cb6f73f7df Rename 'GlobalState' to 'SharedState' to avoid confusion with GLState
This was particularly nasty with the shorthand macros
'gState' and 'glState'. The former is now 'shState'.
2013-10-09 12:30:33 +02:00
Jonas Kulla dd25323cdd Ifdef out more RGSS2 functionality 2013-10-06 10:28:03 +02:00
Jonas Kulla 6b94dd6bcb Script binding vfuncs should be static 2013-09-28 21:27:11 +02:00
Jonas Kulla 0717003114 Use 'snprintf()' instead of the unsafe variant 2013-09-27 19:50:23 +02:00
Jonas Kulla fe557bca1d Implement "show_cursor" attribute in Graphics module
If false (the default), the system cursor is hidden
inside the game window.
2013-09-24 22:56:25 +02:00
Jonas Kulla 23c5be6fbe Catch errors that could happen when reading Scripts.rxdata 2013-09-10 04:21:41 +02:00
Jonas Kulla f81e20cc68 Raise exception on too big textures 2013-09-03 15:22:00 +02:00
Jonas Kulla 8d3379ce0e Silence "unused" warnings 2013-09-03 15:19:18 +02:00
Jonas Kulla 2ddb31016d Add support for compiled ".mrb" scripts
A compiled ".mrb" script can be specified in the Binding config
subgroup with key 'mrbFile='.
If a 'customScript' is specified it still takes priority however.
2013-09-03 11:11:12 +02:00
Jonas Kulla d151986c72 Use 'MRB_FUNCTION' instead of 'MRB_METHOD' for modules 2013-09-03 11:06:01 +02:00
Jonas Kulla 121df799ab Use 'MRB_METHOD' macro 2013-09-03 10:48:20 +02:00
Jonas Kulla a6ee6bd043 'time_op': print empty string instead of "(null)" 2013-09-02 11:21:06 +02:00
Jonas Kulla ca42db7353 Fix compile error 2013-09-02 11:19:30 +02:00
Jonas Kulla d6df300341 Enhance 'time_op' and remove unused test code
time_op now takes 2 optional arguments:
iterations: block will be run this many times and the average
            time it took will be printed
opName:     tag that is printed before the measured time

Also returns the measured time as float.

I also removed the 'MKXP' module because it was clashing with
the likewise named global const.
2013-09-02 11:15:12 +02:00
Jonas Kulla 88041a2395 Check if RMXP script pack path was read from Game.ini 2013-09-01 16:36:11 +02:00
Jonas Kulla ec90458925 Add missing files 2013-09-01 16:30:36 +02:00
Jonas Kulla ff25887f41 Initial commit 2013-09-01 16:27:21 +02:00