Homebrew Project SDL 2 port ongoing

JeffRuLz

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
164
Trophies
0
XP
2,567
Country
United States
If you are willing to create a branch of Abbaye which calls SDL_SetWindowDisplayMode to set the video mode, then it will be easier for me to add the missing support.
Apologies dude, I didn't notice you requested this until now. I made a branch here: https://github.com/JeffRuLz/abbayedesmorts-3ds/tree/wii

First of all, I made it so it sets the display mode to 320x240 if it detects a file called 240p.txt (here). I'm not really sure if I did that correctly.
Also, setting SDL_WII_JOYSTICK_SIDEWAYS doesn't seem to change anything. The d-pad is still oriented like the remote is upright. It's set before SDL_Init so I'm not sure what I'm doing wrong there.

And lastly, since this game runs at 256x192 I wanted to display it in the center of the screen with a border filling the remaining space. When the window size doesn't match the logical size then the game is displayed in the top left corner. I believe the standard SDL behavior is to center the screen to the window, but I may be remembering wrong.
 

Fancy2209

Member
Newcomer
Joined
Aug 8, 2021
Messages
16
Trophies
0
Age
23
XP
112
Country
Portugal

Fancy2209

Member
Newcomer
Joined
Aug 8, 2021
Messages
16
Trophies
0
Age
23
XP
112
Country
Portugal
Also, I (succesfully this time) ported Sonic Robo Blast 2.1.25 to the Wii, but the Joystick api reports there are 0 Joysticks avaliable, this prevents me from using any kind of controller, Wii Remote, Classic Controller or GameCube Controller.
Any ideas? It's not that great to need to plug a keyboard in.
This is the repo: https://github.com/Fancy2209/SRB2/tree/Wii2125
 
Last edited by Fancy2209,

mudrik

Member
OP
Newcomer
Joined
Nov 18, 2022
Messages
22
Trophies
0
Age
31
XP
196
Country
Turkey
Also, I (succesfully this time) ported Sonic Robo Blast 2.1.25 to the Wii, but the Joystick api reports there are 0 Joysticks avaliable, this prevents me from using any kind of controller, Wii Remote, Classic Controller or GameCube Controller.
Any ideas? It's not that great to need to plug a keyboard in.
This is the repo: https://github.com/Fancy2209/SRB2/tree/Wii2125
The problem is that joysticks take some time to appear. You can either change to the polling API, or add this at the beginning of the game (after SDL_init()):
while (SDL_NumJoysticks() == 0) { SDL_PumpEvents(); }
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    2 here
  • BigOnYa @ BigOnYa:
    But you only like to use the rear one, right
    +1
  • K3Nv2 @ K3Nv2:
    Think if I rebend the metal it'll be fine because it tries to get a signal
  • K3Nv2 @ K3Nv2:
    @AncientBoi, only fits type c out
    +1
  • AncientBoi @ AncientBoi:
    HDMI 1 [main TV] is loose, HDMI 2 [goes to second TV] is good.
  • K3Nv2 @ K3Nv2:
    Look into a hdmi splitter
    +1
  • BigOnYa @ BigOnYa:
    Or most surround sound receivers are 3 HDMI in, one HDMI out to tv, and you can select which hdmi in
    you want on the receiver.
    +1
  • K3Nv2 @ K3Nv2:
    Surround sound receiver is a good $300
  • BigOnYa @ BigOnYa:
    True, but so nice for gaming, movies.
  • K3Nv2 @ K3Nv2:
    Ancientboi is old he needs Walmart PA system
    +2
  • AncientBoi @ AncientBoi:
    Splitter @ $39 it says. I'll consider it. Thanks
  • K3Nv2 @ K3Nv2:
    Coupon makes it 30
  • K3Nv2 @ K3Nv2:
    My gaming stick can finally get use
  • K3Nv2 @ K3Nv2:
    I did see Walmart got new electric scooters now ab won't run out of juice in the middle of the parking lot
    +1
  • AncientBoi @ AncientBoi:
    :O:O:O $12. Cool
  • K3Nv2 @ K3Nv2:
    Yeah but one two ports
    +1
  • K3Nv2 @ K3Nv2:
    I'd rather spend like $15 more for double
    +1
  • K3Nv2 @ K3Nv2:
    Lol hogwarts legacy has a Arachnophobia setting to turn on
  • BigOnYa @ BigOnYa:
    I'd rather spend like $150 more for a surround receiver.
  • K3Nv2 @ K3Nv2:
    I bought the game at launch never fucked with it until recently
  • BigOnYa @ BigOnYa:
    Its fun, I like it, even tho I'm not a big harry potter fan. Like a wizard rpg. Flying around on a broomstick is cool.
  • K3Nv2 @ K3Nv2:
    Flying sucks ass on it
    K3Nv2 @ K3Nv2: Flying sucks ass on it