meow
This commit is contained in:
parent
55924b11cd
commit
e5714fbb75
|
|
@ -235,7 +235,6 @@ RB_METHOD(mkxpMouseInWindow){
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE rgssMainCb(VALUE block){
|
static VALUE rgssMainCb(VALUE block){
|
||||||
printf("[rgssMainCb] ...my home is calling, my keep going, no more stolling...\n");
|
|
||||||
rb_funcall2(block, rb_intern("call"), 0, 0);
|
rb_funcall2(block, rb_intern("call"), 0, 0);
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
@ -438,7 +437,6 @@ static void runRMXPScripts(BacktraceData &btData){
|
||||||
if (result != Z_OK){
|
if (result != Z_OK){
|
||||||
static char buffer[256];
|
static char buffer[256];
|
||||||
snprintf(buffer, sizeof(buffer), "Error decoding script %ld: '%s'\n", i, RSTRING_PTR(scriptName));
|
snprintf(buffer, sizeof(buffer), "Error decoding script %ld: '%s'\n", i, RSTRING_PTR(scriptName));
|
||||||
//printf("[runRMXPScripts] Script Name: %s\n", buffer);
|
|
||||||
showMsg(buffer);
|
showMsg(buffer);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
@ -546,7 +544,6 @@ static void showExc(VALUE exc, const BacktraceData &btData){
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mriBindingExecute(){
|
static void mriBindingExecute(){
|
||||||
printf("[mirBindingExecute] Setting up ruby\n");
|
|
||||||
/* Normally only a ruby executable would do a sysinit,
|
/* Normally only a ruby executable would do a sysinit,
|
||||||
* but not doing it will lead to crashes due to closed
|
* but not doing it will lead to crashes due to closed
|
||||||
* stdio streams on some platforms (eg. Windows) */
|
* stdio streams on some platforms (eg. Windows) */
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@ VALUE fileIntForPath(const char *path, bool rubyExc){
|
||||||
RB_METHOD(fileIntRead){
|
RB_METHOD(fileIntRead){
|
||||||
int length = -1;
|
int length = -1;
|
||||||
rb_get_args(argc, argv, "i", &length);
|
rb_get_args(argc, argv, "i", &length);
|
||||||
printf("[fileIntRead] length: %i\n", length);
|
|
||||||
SDL_IOStream *ops = getPrivateData<SDL_IOStream>(self);
|
SDL_IOStream *ops = getPrivateData<SDL_IOStream>(self);
|
||||||
if (length == -1){
|
if (length == -1){
|
||||||
Sint64 cur = SDL_TellIO(ops);
|
Sint64 cur = SDL_TellIO(ops);
|
||||||
|
|
@ -71,7 +70,6 @@ RB_METHOD(fileIntRead){
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE data = rb_str_new(0, length);
|
VALUE data = rb_str_new(0, length);
|
||||||
printf("[fileIntRead] length: %d\n", length);
|
|
||||||
|
|
||||||
SDL_ReadIO(ops, RSTRING_PTR(data), length);
|
SDL_ReadIO(ops, RSTRING_PTR(data), length);
|
||||||
|
|
||||||
|
|
@ -95,7 +93,6 @@ RB_NA_METHOD(fileIntGetByte){
|
||||||
SDL_IOStream *ops = getPrivateData<SDL_IOStream>(self);
|
SDL_IOStream *ops = getPrivateData<SDL_IOStream>(self);
|
||||||
unsigned char byte = 0;
|
unsigned char byte = 0;
|
||||||
size_t result = SDL_ReadIO(ops, &byte, 1);
|
size_t result = SDL_ReadIO(ops, &byte, 1);
|
||||||
printf("[fileIntGetByte] Reading %u\n", byte);
|
|
||||||
return (result == 1) ? INT2NUM(byte) : Qnil;
|
return (result == 1) ? INT2NUM(byte) : Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -104,7 +101,6 @@ RB_NA_METHOD(fileIntBinmode){
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE load_protect(VALUE marsh_and_port) {
|
VALUE load_protect(VALUE marsh_and_port) {
|
||||||
printf("[Load_protect] Protecting!\n");
|
|
||||||
VALUE *arr = (VALUE *)marsh_and_port;
|
VALUE *arr = (VALUE *)marsh_and_port;
|
||||||
VALUE marsh = arr[0];
|
VALUE marsh = arr[0];
|
||||||
VALUE port = arr[1];
|
VALUE port = arr[1];
|
||||||
|
|
@ -120,9 +116,7 @@ VALUE kernelLoadDataInt(const char *filename, bool rubyExc){
|
||||||
int state = 0;
|
int state = 0;
|
||||||
VALUE result = rb_protect(load_protect, (VALUE)args, &state);
|
VALUE result = rb_protect(load_protect, (VALUE)args, &state);
|
||||||
printf("[kernelLoadDataInt] State %d\n", state);
|
printf("[kernelLoadDataInt] State %d\n", state);
|
||||||
if(RTEST(result) == false){
|
|
||||||
printf("[kernelLoadDataInt] Result = false, bRuH\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
rb_funcallv(port, rb_intern("close"), 0, NULL);
|
rb_funcallv(port, rb_intern("close"), 0, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@
|
||||||
#include <SDL3/SDL_audio.h>
|
#include <SDL3/SDL_audio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
namespace AL
|
namespace AL{
|
||||||
{
|
|
||||||
|
|
||||||
#define DEF_AL_ID \
|
#define DEF_AL_ID \
|
||||||
struct ID \
|
struct ID \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue