Source Code of NDSSFC v1.06

Discussion in 'Supercard SDK' started by discuz2011, Dec 17, 2010.

  1. discuz2011
    OP

    discuz2011 Newbie

    Newcomer
    5
    3
    Dec 17, 2010
    United States
    Margen67 likes this.
  2. Gh0sti

    Gh0sti iOS Guru

    Member
    1,326
    49
    Aug 19, 2009
    United States
    Inside you, all around you
    BAG needs to opensource his emu and just let people go off what he has done, otherwise we are taking a step back in fixing this emu, bc he has done a lot of work on it
     
    Margen67 likes this.
  3. Recorderdude

    Recorderdude Musician, Animator, Buffoon.

    Member
    1,392
    30
    Jun 19, 2010
    United States
    If you're gonna develop for it then...

    Warning: Spoilers inside!
     
  4. Gh0sti

    Gh0sti iOS Guru

    Member
    1,326
    49
    Aug 19, 2009
    United States
    Inside you, all around you
    the thing is i dont know how to
    -code
    -compile it
    -have linux to use sdk
    -code
    -did i say code?

    i meant for other programmers who might want to pick up on his work
     
    Margen67 likes this.
  5. goncalodoom

    goncalodoom GBAtemp Fan

    Member
    353
    9
    Sep 12, 2009
    portugal
    it says its 1.06 version but its the 1.05 version
     
  6. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    In fact, the released codebase is GPL2 licensed, so he's required to release his source code changes for any distributed versions.

    Of course, it's not like anybody could do anything if he didn't, anyway. [​IMG]
     
    Margen67 likes this.
  7. Lilith Valentine

    Lilith Valentine GBATemp's Wolfdog™ ☠️Grunt☠️

    Member
    20,199
    21,560
    Sep 13, 2009
    Antarctica
    Between insane and insecure
    Now all we need is the GBA Source code
     
    Margen67 likes this.
  8. Gh0sti

    Gh0sti iOS Guru

    Member
    1,326
    49
    Aug 19, 2009
    United States
    Inside you, all around you
    i think darkchan still has rights to the emu and thats why the source code has not been released by him, sc team i dont think can legally release it
     
  9. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    I'm going to look into adding sleep mode support for NDSSFC. That's one of the big things I miss with it as it is (compared to SNEmulDS), since I sometimes play games at work and it's nice to be able to put DS games down and not worry about it sitting there making noise and getting me in trouble.

    Should be a fun exercise (and valuable entertainment as I fail horribly), as I've got no low-level experience with the hardware. At least I've dealt with embedded systems before so I might have a shot at it.

    Of course, if I make progress, I'll release a source patch and let others with better knowledge tell me how badly it was done.
     
  10. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    I'm pretty sure DarkChan IS the SuperCard team, they just did it unofficially, just in case.
     
  11. Gh0sti

    Gh0sti iOS Guru

    Member
    1,326
    49
    Aug 19, 2009
    United States
    Inside you, all around you
    r u going to be working off BAG's source or teh 1.06 BAG has done alot of work and u should just work off of his updates
     
  12. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    Here's a simple two-liner patch (git formatted) to increase the directory size limits so that you can use a large ROM pack with NDSSFC and SNEmulDS at the same time, for example.

    To apply, enter your ndssfc directory, download the patch, and run:
    CODEpatch -p1
     

    Attached Files:

  13. Gh0sti

    Gh0sti iOS Guru

    Member
    1,326
    49
    Aug 19, 2009
    United States
    Inside you, all around you
    @stinebd, maybe you should just create a new folder that has everything put together for those who dont understand how to patch the system, like how bag did his, just put it inot the already existing folder and let ppl download the new revision
     
  14. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    I plan to post a binary. I'm working on one more little thing (Exit from the emulator is freezing on me).

    The patches are posted for reference and collaboration (I work extensively on open-source projects, so that's how I do things). I'd prefer that BAG (or someone else who wishes to maintain a fork, or even SC team) merge the changes into their versions (if they're appropriate) because I don't really have enough time to maintain my own fork.

    Thanks!
     
  15. BassAceGold

    BassAceGold Testicles

    Member
    495
    124
    Aug 14, 2006
    Canada
    ds2_plug_exit() is broken in sdk 0.13. The SC Team is aware of it and say it should be fixed in the next release.
     
  16. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    Ah, good to know. Thanks!

    EDIT: Since there's nothing I can do about that freeze on exit, I'll just post the package now...

    NOTE: Sleep mode currently only works while in the game (ie. the menu is not visible and bottom screen is off). The design of the menu system makes it complicated to add sleep mode handling there, so I haven't tried that yet.(Sleep mode available in menu now. Please reply if there are bugs there, I rushed it [​IMG]) In addition to sleep mode, I've also increased the directory file count limit to 2048 (like in my first patch), but kept the subdirectory count limit at 64 to save RAM.

    Installation procedures are the same as BAGSFC.

    BAGSFC-r3-mod-stinebd.zip
     
  17. YayMii

    YayMii hi

    Member
    4,915
    423
    Jun 24, 2009
    Canada
    that place
    Is it possible to fix the lights on the DS to act as if it was actually in sleep mode? Because I noticed the light stay solid when it was in sleep mode.
     
  18. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    If you mean the slow flashing power light, then it should already do that when in sleep mode (does for me, at least).

    --

    I've been making some small improvements here and there (such as ramping down the DS2 CPU clock before suspend, to actually _save_ power).
     
  19. YayMii

    YayMii hi

    Member
    4,915
    423
    Jun 24, 2009
    Canada
    that place
    Well, it doesn't on the DSi (on the DSi, rather than the light slowly flashing, both the Wifi and power lights go dim, and then the power light does the gradual "breathing" effect that Macs do on sleep mode). I'm not sure if this is an issue with the emulator or the way the DStwo works. ROMs and non-DStwo homebrew dims the light, yet this doesn't.
     
  20. stinebd

    stinebd Member

    Newcomer
    10
    2
    May 22, 2008
    United States
    Oh. Sorry, but I don't have DSi hardware so I can't do anything about it.