Hacking SD File access (borrowing FS code from loadiine_gx2)

Ape8000

Well-Known Member
OP
Member
Joined
Feb 26, 2011
Messages
296
Trophies
1
XP
1,043
Country
United States
[EDIT] My bad. Think I'm trying to include c++ in a c file. Let me try again using C stdio.h functions. [EDIT]

[EDIT 2]
Fixed. I needed to use standard fopen, fread, etc and add:
#include <unistd.h>
#include <fcntl.h>

See post here for results.
[EDIT 2]

I'm trying to add a feature to ddd so that it saves the selected IP to SD.
I borrowed the FS directory from loadiine_gx2.
Also utils\StringTools.cpp & .h

When I compile I get this error when adding #include "fs/CFile.hpp":

In file included from c:/Projects/ddd/src/discdumper.c:16:0:
c:/Projects/ddd/src/fs/CFile.hpp:5:18: fatal error: string: No such file or directory
#include <string>

I do not see any difference between the ddd and loadiine_gx2 makefiles that would cause this.

What am I missing? (Probably a library, but which one?)
Is there an easier way to read write to the sd card?

I may also end up having a problem with #include <vector>

FWIW, I have added the mount/unmounts to the main routine and added file read/write to Get/SetServerIp.
If I can get std::string to work, it should be done.

Thanks.

PS. Is there a good place to learn Wii U homebrew coding?
 
Last edited by Ape8000,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
    K3Nv2 @ K3Nv2: Tell Kanye I need power