mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 06:19:56 +00:00
meow
This commit is contained in:
parent
55924b11cd
commit
e5714fbb75
3 changed files with 2 additions and 12 deletions
|
|
@ -235,7 +235,6 @@ RB_METHOD(mkxpMouseInWindow){
|
|||
}
|
||||
|
||||
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);
|
||||
return Qnil;
|
||||
}
|
||||
|
|
@ -438,7 +437,6 @@ static void runRMXPScripts(BacktraceData &btData){
|
|||
if (result != Z_OK){
|
||||
static char buffer[256];
|
||||
snprintf(buffer, sizeof(buffer), "Error decoding script %ld: '%s'\n", i, RSTRING_PTR(scriptName));
|
||||
//printf("[runRMXPScripts] Script Name: %s\n", buffer);
|
||||
showMsg(buffer);
|
||||
|
||||
break;
|
||||
|
|
@ -546,7 +544,6 @@ static void showExc(VALUE exc, const BacktraceData &btData){
|
|||
}
|
||||
|
||||
static void mriBindingExecute(){
|
||||
printf("[mirBindingExecute] Setting up ruby\n");
|
||||
/* Normally only a ruby executable would do a sysinit,
|
||||
* but not doing it will lead to crashes due to closed
|
||||
* stdio streams on some platforms (eg. Windows) */
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ VALUE fileIntForPath(const char *path, bool rubyExc){
|
|||
RB_METHOD(fileIntRead){
|
||||
int length = -1;
|
||||
rb_get_args(argc, argv, "i", &length);
|
||||
printf("[fileIntRead] length: %i\n", length);
|
||||
SDL_IOStream *ops = getPrivateData<SDL_IOStream>(self);
|
||||
if (length == -1){
|
||||
Sint64 cur = SDL_TellIO(ops);
|
||||
|
|
@ -71,7 +70,6 @@ RB_METHOD(fileIntRead){
|
|||
}
|
||||
|
||||
VALUE data = rb_str_new(0, length);
|
||||
printf("[fileIntRead] length: %d\n", length);
|
||||
|
||||
SDL_ReadIO(ops, RSTRING_PTR(data), length);
|
||||
|
||||
|
|
@ -95,7 +93,6 @@ RB_NA_METHOD(fileIntGetByte){
|
|||
SDL_IOStream *ops = getPrivateData<SDL_IOStream>(self);
|
||||
unsigned char byte = 0;
|
||||
size_t result = SDL_ReadIO(ops, &byte, 1);
|
||||
printf("[fileIntGetByte] Reading %u\n", byte);
|
||||
return (result == 1) ? INT2NUM(byte) : Qnil;
|
||||
}
|
||||
|
||||
|
|
@ -104,7 +101,6 @@ RB_NA_METHOD(fileIntBinmode){
|
|||
}
|
||||
|
||||
VALUE load_protect(VALUE marsh_and_port) {
|
||||
printf("[Load_protect] Protecting!\n");
|
||||
VALUE *arr = (VALUE *)marsh_and_port;
|
||||
VALUE marsh = arr[0];
|
||||
VALUE port = arr[1];
|
||||
|
|
@ -120,9 +116,7 @@ VALUE kernelLoadDataInt(const char *filename, bool rubyExc){
|
|||
int state = 0;
|
||||
VALUE result = rb_protect(load_protect, (VALUE)args, &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);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@
|
|||
#include <SDL3/SDL_audio.h>
|
||||
#include <assert.h>
|
||||
|
||||
namespace AL
|
||||
{
|
||||
namespace AL{
|
||||
|
||||
#define DEF_AL_ID \
|
||||
struct ID \
|
||||
|
|
|
|||
Loading…
Reference in a new issue