Misc fstream not working in sdl project.

VitoScaletta

Member
OP
Newcomer
Joined
Feb 4, 2022
Messages
5
Trophies
0
Age
25
Location
White House
XP
53
Country
United States
Hello, I'm very new to Nintendo Switch Homebrew and this seems like it is very simple and I'm just quite retarded because I would assume fstream works the same as a normal c++ project. basically I'm trying to load a image in sdl though fstream. if I compile it for windows it will work just fine, when I compile to switch it just shows a black screen.
This is how I'm loading the image (works fine on windows):

loadingimage.png

info.txt reads like this:
Code:
data/image.png

this is how im rendering the image:
renderingimage.png

renderingimage1.png

because I'm running out of information to list here are my includes:
include.png

and also I will attach source (fstreamissue.7z) to this post as well.

I don't know what I'm doing wrong here, everything works fine on windows, Thanks for any help.
also wtf prefix should I use for this, I'm very new to all of this in-general so please excuse my retarded-ness.
 

Attachments

  • fstreamissue.7z
    5.1 KB · Views: 19
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
    BentlyMods @ BentlyMods: My fav actvity is: