Txt to Gct

Discussion in 'Wii - Emulation and Homebrew' started by Riicky, Jan 22, 2010.

  1. Riicky
    OP

    Riicky GBAtemp Advanced Fan

    Member
    607
    0
    May 15, 2009
    United States
    Reading,Pennsylvania
    Not sure if this is where this should be posted, but im currently trying to build my own "code manager" for PC if you will, but I lack the knowledge to convert txt to gct..would anybody here know how?
     
  2. Vattu

    Vattu GBAtemp Regular

    Member
    186
    0
    May 27, 2009
    Sweden
    some (if not all current usb loaders) have such a conversion built-in their program. most are open-source. I know that source code to elder versions of cfg usb loader are released.
     
  3. Riicky
    OP

    Riicky GBAtemp Advanced Fan

    Member
    607
    0
    May 15, 2009
    United States
    Reading,Pennsylvania
    I don't want to make one that runs on the wii, I want to improve on Code Manager for PC
     
  4. bdr9

    bdr9 GBAtemp Advanced Fan

    Member
    558
    11
    Jul 21, 2008
    United States
    He was saying that you could maybe still look at that wii source code and use it to help to improve the PC program.
     
  5. giantpune

    giantpune GBAtemp Addict

    Member
    2,860
    122
    Apr 10, 2009
    United States
    the functions used in all the usb loaders are written in c. maybe 1 or 2 of them use c++ for this. that means that those functions will works perfectly fine for a PC. you just need to write a little bit of code to read the txt file from a hard drive into a buffer in memory. then give that memory buffer to these functions. and they will spit out a memory buffer that you write to a gct file with fwrite or whatever.
     
  6. Riicky
    OP

    Riicky GBAtemp Advanced Fan

    Member
    607
    0
    May 15, 2009
    United States
    Reading,Pennsylvania
    thanks pune, that's what I wanted to hear