C# porting?

Discussion in '3DS - Homebrew Development and Emulators' started by XAIXER, Mar 21, 2016.

  1. XAIXER
    OP

    XAIXER Supreme Kaiser

    Member
    168
    116
    Mar 11, 2016
    Canada
    The Ends of Eternity
    I know that homebrew can be made in C++, which is a language I know a bit of since I'm studying it in programming class. Is there a way to port a C# program so that it would work on the O3DS? I like C# a lot more. (It's prettier :P)
     


  2. MissingNO123

    MissingNO123 Jigglypuff

    Member
    203
    153
    Nov 24, 2012
    Canada
    hell
    Isn't that Windows exclusive?
     
    Games&Stuff and Tomato Hentai like this.
  3. Tomato Hentai

    Tomato Hentai baja boner blast

    Member
    3,751
    6,113
    Oct 30, 2014
    Canada
    actually north korea. please send help
    I'm pretty sure there's no way to compile stuff programmed in C# for the 3DS, so you'd have to re-write it in C++ or another language that can be used on the 3DS.
     
  4. Slashcash

    Slashcash GBAtemp Fan

    Member
    334
    461
    Oct 15, 2015
    Italy
    No actual way to compile C# code to a 3ds executable. Your only option is to port your C# code to C++
     
  5. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    Unity for 3DS uses C#, as well as Java. But you have to be an official registered dev to be able to use it anyway...
     
    Tomato Hentai likes this.
  6. XAIXER
    OP

    XAIXER Supreme Kaiser

    Member
    168
    116
    Mar 11, 2016
    Canada
    The Ends of Eternity
    Can Windows Form apps be ported over to C++?
     
  7. Slashcash

    Slashcash GBAtemp Fan

    Member
    334
    461
    Oct 15, 2015
    Italy
    Not with only 24 hours in a day
     
  8. dpad_5678

    dpad_5678 GBAtemp's Memelord

    Member
    1,646
    1,188
    Nov 19, 2015
    United States
    Use C or Cpp. It's similar to C# and it's cross compatible with, like, all Systems Homebrew wise.
     
  9. XAIXER
    OP

    XAIXER Supreme Kaiser

    Member
    168
    116
    Mar 11, 2016
    Canada
    The Ends of Eternity
    Well, ok. Guess I'll have to deal with ugly ol' C++ :P Thanks for your input! (Mods can lock this thing now)
     
  10. evandixon

    evandixon PMD Researcher

    Member
    1,674
    796
    May 29, 2009
    United States
    Programming for the 3DS is a bit more low-level than for the PC. With limited RAM (64 or 128 MB I think), C/C++ is the language of choice, since it doesn't have a lot of overhead, and gives you fine control over memory usage. C# runs on top of a framework that would have to be designed for the 3DS, and would take up precious resources. For homebrew, I think doing that would be impractical. If Unity really does use C#, I wouldn't think the potential for its games would be as high as with just C++.

    Just be thankful you don't have to use assembly. *shudders*
     
    XAIXER, Tomato Hentai and Voxel like this.
  11. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    I think Unity is better than homebrew by far.
    For many reasons!

    1) It's the real deal! No homebrew involved whatsoever!
    2) If you know your way around Unity, it will be even easier to create 3DS applications! ;)
    3) Not overly text-based like the main 3DS homebrew sources you see today. :P

    Just take a look at this video! I think it will show you the full potential of what you can do with Unity! (For New3DS at least. ;))
     
  12. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Unity uses C# and Javascript. :P
     
  13. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    You know what I meant... >.>
     
  14. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Yeah i know. :)
     
    Voxel likes this.
  15. evandixon

    evandixon PMD Researcher

    Member
    1,674
    796
    May 29, 2009
    United States
    By potential, I meant the maximum of what could be done. I'm sure it's easier with Unity, but it probably won't be like what could be accomplished with C++ (which is harder).
     
  16. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    Too bad it's not really common to find a build of unity for 3ds, it's even worse for wiiu builds(I don't think there even are any leaks atm?).
    So I think you were lucky enough to get into Nintendos Dev Program?
     
  17. sup3rgh0st

    sup3rgh0st Top Tier Ghost

    Member
    284
    179
    Apr 22, 2010
    United States
    How did you get the 3DS unity license? Did you register with Nintendo or are there "other ways". What kind of file does it export to?
     
  18. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    I already have Unity for Wii U. I am itching to leak it, but I should really not do that. I have my morals™ with me. :P

    I joined this guy's "company" recently. We've not been officially approved just yet, so I don't exactly have Unity for 3DS with me at the moment. Maybe in a month or so. :P

    — Posts automatically merged - Please don't double post! —

    AFAIK, they export CCI and CIA files. You should rely on CCI builds more if you are planning to build for a retail 3DS. CIAs are for Dev units only at the moment.
     
  19. XAIXER
    OP

    XAIXER Supreme Kaiser

    Member
    168
    116
    Mar 11, 2016
    Canada
    The Ends of Eternity
    Unity for 3DS/Wii U would be really cool. Although, I think Unreal has better graphics, but it has less platform support and can't be used on Nintendo systems.
     
  20. Reisyukaku

    Reisyukaku Onii-sama~

    Member
    1,184
    2,301
    Feb 11, 2014
    United States
    1. C# isnt compiled to machine code, its compiled to byte code (MSIL specifically) and has to run on MS's CLR environment.
    2. Unity is apparently a thing for n3ds, but I personally wouldnt touch it with a 10ft poll. Theres a reason its n3ds only, because the extreme code overhead that would cause o3ds to lag.
     
    andriy921 likes this.