glankk / libgfxd Goto Github PK
View Code? Open in Web Editor NEWDisplay list decompiler library
License: MIT License
Display list decompiler library
License: MIT License
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)
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.