Git Product home page Git Product logo

libgfxd's People

Contributors

dragorn421 avatar glankk avatar thar0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

libgfxd's Issues

Source and destination overlap in memcpy_chk errors with Valgrind

Running valgrind shows these errors:
==20160== Source and destination overlap in memcpy_chk(0x416818, 0x4169d0, 3520) ==20160== at 0x4A4A310: __memcpy_chk (vg_replace_strmem.c:1617) ==20160== by 0x376BDF: memmove (string_fortified.h:36) ==20160== by 0x376BDF: gfxd_execute (gfxd.c:746) ==20160== by 0x2B968D: ZDisplayList::ProcessGfxDis(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/louist103/decomp/oot/tools/ZAPD/ZAPD.out) ==20160== by 0x2B7B5B: ZDisplayList::GetSourceOutputCode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/louist103/decomp/oot/tools/ZAPD/ZAPD.out) ==20160== by 0x2CAA95: ZFile::GenerateSourceFiles(std::filesystem::__cxx11::path) (in /home/louist103/decomp/oot/tools/ZAPD/ZAPD.out) ==20160== by 0x2C8C17: ZFile::ExtractResources() (in /home/louist103/decomp/oot/tools/ZAPD/ZAPD.out)

Ability to disable / enable callbacks

I'd like to be able to run libgfxd without invoking callbacks. I think a setting that just enables/disables them would be nice and simple.

I'll attempt to implement this myself. Just making the issue for the sake of organization / discussion if that's relevant.

Function that returns the number of bytes needed for an output buffer

I'd like to be able to allocate just enough space for my output buffer, and from a discussion in discord, it seems a standard way to do this is to run the code once, collecting the number of bytes required, and then to return that information to the user to run it again, supplying a buffer of the specified size.

The invocation to calculate the number of bytes should avoid using any callbacks.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.