Giter Site home page Giter Site logo

3dstools's People

Contributors

ds-sloth avatar fincs avatar linkmauve avatar turtlep avatar wintermute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

3dstools's Issues

Add an ability to debug the "Unaligned relocation" error reason

Hello!
Recently I attempted to test a certain pile of libraries, HOWEVER, I got the "Unaligned relocation" error with totally no explanation WHERE it happens, WHICH part causes this error, etc. That's a pain!
So, in addition to #8, there is really a need to add an ability to debug the reason for the "Unaligned relocation" error, otherwise, it's absolutely confusing when an error happens, and there is totally no explanation for why it happens.

Troubleshooting Unaligned Relocation Error

I'm compiling a 3DS homebrew game and I'm getting "Unaligned Relocation" when it tries to build the .3dsx file from the .elf file. I'm able to build the .cia file and install it on the 3DS and it seems to run fine.

What is the reason for the tool failing with "Unaligned Relocation" and is there a way to troubleshoot what line of code is the problem?

Thanks!

[romfs building] skip dotfiles / error with no directory

Mentioned here, building the romfs for an application should not include dotfiles from GitHub, should they be present for whatever reason.

Furthermore, if the romfs directory does not exist it fails to build. This is the opposite of what happens on building a romfs using the switch tools.

tl;dr skip GitHub files and it can't build a romfs if the directory doesn't exist (and should successfully build like that of the switch tools)

Exceptions in 3dsx converted from ELF do not work as expected

I'm converting an ELF binary using exceptions to a 3dsx using 3dsxtool.
When running the ELF directly in Citra exhibits the correct behavior of the exception being caught,
but when running the generated 3dsx in Citra it crashes when the exception is thrown.
I'm using devkitARM r46 on Linux.

Test case.

Crash when running generated 3dsx

Hi,

I get a crash when running the generated 3dsx file on a real 3ds as well as in Citra.
I'm not sure if it's something I'm doing or some limitation in the 3dsx format.

It seems to be relocation related as it crashes at runtime when trying to get the address of a c++ member function pointer.

  • No errors when running the 3dsxtool, but when I run 3dsxdump on the 3dsx file, it gives: "Cannot write segment data!"
  • The elf file works fine, just the 3dsx file crashes.
  • I tried creating a smaller test example with member function pointers, but that seems to work fine.

I've uploaded the just the test elf here (let me know if you need the smdh and romfs folder as well):
https://anonfiles.com/ycnfj2ndu8/test_7z

Is there anything I can do to help look into this?
Thanks,

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.