Homebrew Feedback Homebrew app WIP - Jermus 3DS Web Browser

Status
Not open for further replies.

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
558
Country
United States
I'm currently working on an advanced web browser for the Nintendo 3DS, currently going by the name "Jermus" on my computer. It will support downloading files, viewing some files, viewing page source code (and maybe later on, editing said source code or saving it locally), unlimited bookmarks (why was this even a limitation on the stock 3ds browser??), among a compact gui based loosely on Windows XP and 2000's appearance, and with a compact, 3x5 font for viewing as much text on screen as possible. Below is a mockup for what it will look like in the final stage of development.

mockup.png


Breakthroughs so far:

-getting cURL up and running properly :glare:

The browser may possibly be able to load webpages the stock 3ds browser can't load! I entered "https://www.wikipedia.org", and it loaded the raw HTML for the page fine without any errors! :wtf:
 

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
558
Country
United States
Yeah, i might add a larger font later in the GUI development. Trying to figure out the regex stuff right now. Regex with c++ is confusing when the only regex you've ever used is JavaScript regex :wacko:
 
  • Haha
Reactions: ZeroT21

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
558
Country
United States
Anyone know how to strip certain parts of html tags in regex? me and my pal can't figure out how the hell to remove things enclosed in script tags, and i imagine keeping urls will be the same deal.

Code:
std::string text = s;
std::regex r("");
r = std::regex("\\<script.*?\\>.*?\\<.*?\\>"); //doesn't work
s = std::regex_replace(s, r, "");
r = std::regex("\\<.*?\\>"); //works fine
s = std::regex_replace(s, r, "");
 

Eveldee

Well-Known Member
Member
Joined
Aug 16, 2019
Messages
234
Trophies
0
Age
23
XP
1,642
Country
France
Anyone know how to strip certain parts of html tags in regex? me and my pal can't figure out how the hell to remove things enclosed in script tags, and i imagine keeping urls will be the same deal.

Code:
std::string text = s;
std::regex r("");
r = std::regex("\\<script.*?\\>.*?\\<.*?\\>"); //doesn't work
s = std::regex_replace(s, r, "");
r = std::regex("\\<.*?\\>"); //works fine
s = std::regex_replace(s, r, "");
Honestly, you shouldn't use Regex to parse HTML, it's extremely slow especially on the 3DS with it's limited hardware, and anyway you won't succeed at parsing everything, see this stackoverflow post. You should get or create a real parser which rebuilds the DOM tree in a way you can manipulate, maybe this will do?
 
  • Like
Reactions: Seriel

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
558
Country
United States
By my pal's request and seeing as how every time i try to add an essential feature the c / cpp compiler starts shitting itself, i've decided to switch my code over to LUA. everything done so far will be ported (not much to port rn though) to LovePotion
 
Last edited by AliceCE,

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
558
Country
United States
Burnout. Really bad burnout. Anything to help me get graphics working would be a godsend. I fucking hate #include so goddamn much, I want to use the framebuffer directly, not citro2d, and i also need help with setting the font itself up, i have a png of the characters.
 

The Catboy

GBAtemp Official Catboy™: Nnnaaaa
Member
Joined
Sep 13, 2009
Messages
29,337
Trophies
7
Location
Making a non-binary fuss
XP
45,291
Country
Antarctica

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
558
Country
United States
Erm... What kind of Codepage is the 3ds using? i had to decrement the offset for every character by -2 characters, and a lot of characters seem incorrect, why is 1 a 2, and 0 a fucking slash?

i'm dumb lol, i forgot the fucking "=" in the font data.
 
Last edited by AliceCE,
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • realtimesave @ realtimesave:
    @BigOnYa it's gonna be difficult to smuggle fake stuff into the US now :<
  • BigOnYa @ BigOnYa:
    Not really if you white n wear a maga hat, they let you right in
  • bowlerhat @ bowlerhat:
    have any of you seen the trump 2028 hat
  • realtimesave @ realtimesave:
    @BigOnYa I want a kite with a picture of trump on it.
  • BigOnYa @ BigOnYa:
    No but its funny that most of trumps maga gear, hats t-shirts are made in china.
  • bowlerhat @ bowlerhat:
    trump is the type of person to compromise on his beliefs if it lines his pockets with cash
    +1
  • BigOnYa @ BigOnYa:
    @realtimesave, I bet his ear gets shot off while flying it
  • realtimesave @ realtimesave:
    @BigOnYa helping people in the forum brick their systems :D
  • K3Nv3 @ K3Nv3:
    Surprised it took family guy this long to do a Dahmer spoof
  • bowlerhat @ bowlerhat:
    @BigOnYa "Kite! Kite! Kite!"
    +1
  • realtimesave @ realtimesave:
    :yayone: <- this be @BigOnYa
  • BigOnYa @ BigOnYa:
    @K3Nv3, They did a 3 stoogies one with him in it years ago
  • K3Nv3 @ K3Nv3:
    That was south park
    +2
  • BigOnYa @ BigOnYa:
    Yeah u right
  • realtimesave @ realtimesave:
    @BigOnYa if I go to ohio can we have beers together
  • BigOnYa @ BigOnYa:
    Abso freaking lutly. Ill take you on a bar crawl.
  • BigOnYa @ BigOnYa:
    You may wake up in another state tho, mentally and physically
  • K3Nv3 @ K3Nv3:
    Nothing out of the norm when you're in Ohio
    +1
  • BigOnYa @ BigOnYa:
    @realtimesave, If I come to Cali, can we buy Oranges or Bean pie together from someone at a stop light/ corner?
  • K3Nv3 @ K3Nv3:
    Ancientboi?
    +1
  • K3Nv3 @ K3Nv3:
    Man I forgot DC universe was it's own streaming thing
  • realtimesave @ realtimesave:
    hiiiiiiii
  • BigOnYa @ BigOnYa:
    @K3Nv3, I ordered some juice from that site also, "ship75" discount I used for free ship on order over $75. Have 2 my fav, blueberry cake, coming but 3 others never tried. Lemon pudding, choc pudding, straw shortcake, thanks for the link
  • K3Nv3 @ K3Nv3:
    I'd be careful with oversea sites they're holding packages
    K3Nv3 @ K3Nv3: I'd be careful with oversea sites they're holding packages