1. Gigaboy

    Gigaboy Member
    Newcomer

    Joined:
    May 12, 2019
    Messages:
    24
    Country:
    United States
    It's the directory where you create your Visual Studio project. If I created my project in my documents folder, then $(projectdir) would be C:\Users\imado\Documents\MyProject. $(projectdir)\include simply means the location of your project, then the directory inside labeled "include".
     
  2. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    $(ProjectDir) is the macro of the path to your project directory. $(ProjectDir)\include = path\to\your\Visual-Studio-Project-directory\include
     
  3. mo_v

    mo_v Member
    Newcomer

    Joined:
    May 9, 2019
    Messages:
    21
    Country:
    United States
    Sorry to be a bother, but I dont see an include folder in my project directory. Edit: There is only squiggly lines under #include and SSIZET.
     
    Last edited: May 21, 2019
  4. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    You should create one and put your external dependencies there (if you use any library not included in devkitpro)
     
  5. Gigaboy

    Gigaboy Member
    Newcomer

    Joined:
    May 12, 2019
    Messages:
    24
    Country:
    United States
    How does one read files from the SD card?
     
  6. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    Ifstream or your json utility. The path should be “sdmc:/path-in-your-sd”.

    All my games read json for language and regular txt files for score management :)
     
    Last edited: May 21, 2019
  7. Gigaboy

    Gigaboy Member
    Newcomer

    Joined:
    May 12, 2019
    Messages:
    24
    Country:
    United States
    Ah, sorry I wasn't thinking straight. I knew ifstream did that.
     
  8. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    I prefer using a Json anyway. It is comfy and easy to use
     
  9. Shadowehh

    Shadowehh Also known as Shadd
    Member

    Joined:
    Jan 27, 2016
    Messages:
    300
    Country:
    United States
    This was a fantastic tutorial! But I am still having an issue when including my file headers and cpp files. It seems to always error out when trying to include my own .cpp and .h/.hpp headers. Is there a solution around this?
     
  10. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    Weird, do you have the makefile correcly setup? (There you select your source code folder)
     
  11. Shadowehh

    Shadowehh Also known as Shadd
    Member

    Joined:
    Jan 27, 2016
    Messages:
    300
    Country:
    United States
    Everything compiles correctly when I do not include my own headers. When I include them I get an error where it says it cannot find them.
     
  12. Manurocker95

    OP Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    Do you have your code in the source folders, right?
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - development, environment, [Tutorial]