Sha256: fd4d80d4a51b11a3b842f9e6711a9d3c137476e5245326568e6e280ad1f261a7

Contents?: true

Size: 416 Bytes

Versions: 6

Compression:

Stored size: 416 Bytes

Contents

#include <Gosu/Directories.hpp>
#include <Gosu/Utility.hpp>
#include <unistd.h>
#include <ruby.h>

int main()
{
    std::string resourcePath = Gosu::narrow(Gosu::resourcePrefix());
    std::string mainPath = resourcePath + "Main.rb";
    char* argv[] = { "ruby", const_cast<char*>(mainPath.c_str()) };
    chdir(resourcePath.c_str());

    ruby_init();    
    ruby_options(2, argv);
    ruby_run();
    return 0;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gosu-0.7.10.1 GosuImpl/RubyGosuStub.mm
gosu-0.7.10.2 GosuImpl/RubyGosuStub.mm
gosu-0.7.10.3 GosuImpl/RubyGosuStub.mm
gosu-0.7.11 GosuImpl/RubyGosuStub.mm
gosu-0.7.12 GosuImpl/RubyGosuStub.mm
gosu-0.7.13 GosuImpl/RubyGosuStub.mm