Homebrew Feedback Homebrew app WIP - Jermus 3DS Web Browser

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
543
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
543
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
231
Trophies
0
Age
22
XP
1,294
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
543
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
543
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™: Big Autism
Member
Joined
Sep 13, 2009
Messages
27,251
Trophies
4
Location
Making a non-binary fuss
XP
36,267
Country
Antarctica

AliceCE

Rookie 3DS Homebrew Dev
OP
Member
Joined
Aug 7, 2019
Messages
203
Trophies
0
Location
Amogus World Theme Park, BR
XP
543
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,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • YukiHomura @ YukiHomura:
    i need that shit
    +1
  • Cilo @ Cilo:
    so here's my plan, make a homebrew horror game for the ds
    +1
  • BigOnYa @ BigOnYa:
    Will it be a evil santa? Or a evil thanksgiving pilgrim?
  • YukiHomura @ YukiHomura:
    i hope the gta 6 engine wont be ass to work with it.....or else i wont return to the modding scene lmao.
  • a_username_that_is_cool @ a_username_that_is_cool:
    i hope the gta 6 engine wont be
  • a_username_that_is_cool @ a_username_that_is_cool:
    it just doesnt
  • K3N1 @ K3N1:
    Inb4 gta 6 leaks a week early after switch players wait 4 years for a port
  • Xdqwerty65 @ Xdqwerty65:
    at least they will get a port
  • BigOnYa @ BigOnYa:
    GTA6 on Switch? It'd have to be the Switch 3 or 4
  • Xdqwerty65 @ Xdqwerty65:
    or 64
  • Veho @ Veho:
    GTA: Chinatown Wars Switch.
  • Xdqwerty65 @ Xdqwerty65:
    we'll hope its not the mobile version ported to the switch
  • a_username_that_is_cool @ a_username_that_is_cool:
    Bet GTA switch will be a Great Tfriend Aship game
  • BigOnYa @ BigOnYa:
    Why is there such an uptick in people pulling out they 3DS's? Just had a friend call me wanting to mod a 3DSxl for his kid, and I have notice alot more threads about 3DS.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's retro now lol
    +1
  • BigOnYa @ BigOnYa:
    I guess. Will be the 3rd one I mod this week, Not that its hard at all, or why they didnt do themself. Oh well, for friends and family.
  • BigOnYa @ BigOnYa:
    Glad I keep "legal" backups of all the games.
  • BigOnYa @ BigOnYa:
    Yup, I am...:wtf:
  • BigOnYa @ BigOnYa:
    hey
  • BigOnYa @ BigOnYa:
    I keep trying to beat this last dlc set of tracks on 200cc mariokart8, and keep getting 2nd and 3rd, pissing me off
  • K3N1 @ K3N1:
    It's retro and still $200
    +1
  • BigOnYa @ BigOnYa:
    Has a great collection of games also, not to mention all the homebrew
  • Flame @ Flame:
    @Psionic Roshambo how are you bro? long time. still hook up with midget hookers?
    Flame @ Flame: @Psionic Roshambo how are you bro? long time. still hook up with midget hookers?