Comments (15)
Sorry for the radio silence, I am waiting for my friend to come back from a work trip. I can't test this myself since I wasn't able to replicate the issue on any of my Wiis. Hopefully he'll come back soon and test it. I will make sure to let you know as soon as I have any feedback from him
from libogc.
@Aurelio92 : new libogc released. it'll need the new devkitPPC too btw
from libogc.
Hey Aurelio,
thanks for the report!
this is a ... interesting issue. from what i remember from the PAD
interface, it works pure on the registers and the VI clock, so no idea how changing that would cause it to fail.
do you get video out with the change? (to check if VI is up and running and it's clock is ok)
did you create a test app by any chance to display time and test pad and stuff?
did some looking in pad, and it uses the SI interface and SI_Transfer
, which in turn does some timing stuff (gettime, udelay etc), which might be broken like you mentioned.
i assume the other stuff are broken for the same reason
from libogc.
Thanks for your quick answer! Video out works just fine. I don't really have a test app, but I can write that later tonight. The only thing I noticed that didn't work so far was PAD, but more stuff could be broken and I might have not noticed
from libogc.
np! i try to keep communication here positive haha
if the SI transfer is broken because of the time changes, im sure other time based communications are broken as well tbh.
i'd need to look at how the timebase works in libogc, but kinda busy this evening
from libogc.
@Aurelio92 : just poking you to see if you have an app to test with. there is a possible fix i want to test and make sure before i merge it into libogc
from libogc.
Sorry for the delay. Here's the code: https://gist.github.com/Aurelio92/d13a74788f09c95e8658a3c5f8945362
I had a friend run some tests since I can't easily replicate the issue on any of my Wiis, though I should probably try setting a fake date to force that haha. Anyways he said that basically half the time he run this code his Wii doesn't detect any input when pressing A on his GCC.
from libogc.
ok so, i think we have 2 bugs here.
1 bug is internal timing stuff should not use gettime, but rather use system time.
this system time should have a signed bias, and be kept seperate from the rest
SO, i suggest your code to be build with my potential fix and see if the gamecube controller works then.
if it does, that means separating the times works, and we can look at the bias bug.
for me this works btw, but since all changes shows me the correct time (to the second) i can't validate its correctness hehe.
could you send this to your friend? (code changes are included)
rtcTest.zip
from libogc.
@Aurelio92 : sorry to poke you again. youre probably a busy person, just like i am haha.
but have you gotten any results from the test using extrems' fix?
from libogc.
@DacoTaco I just got the results from my friend. Your fix does work indeed! Thank you for this
from libogc.
its not my fix, but extrem's fix hehe
ok, ill merge the time bias into libogc then !
then there is the second bug that needs to be addressed : is the change of CONF_GetCounterBias(u32 *bias)
still needed ? or was it fixed all together?
from libogc.
I can confirm both times coming from the new libogc and from my_SYS_Time are the same, so I guess making the bias signed is not needed anymore now. Thank you and Extrems again!
from libogc.
thank you for reporting this!
i hope we can release a new libogc update soon ! ^^;
from libogc.
Awesome, thank you!
from libogc.
Just saw that few minutes ago, that's great to hear! Thank you for reaching out!
from libogc.
Related Issues (20)
- net_getsockopt, net_getsockname, and struct pollfd not implemented HOT 4
- WPAD: Unable to read any Motion Plus data from the Wiimote HOT 3
- Card_Create() fails when game share filename prefixes HOT 2
- Wii MotionPlus being an expansion lead to issues with other expansions. HOT 1
- Ubuntu 21.04 Error: unknown type name 'BOOL' 13 | BOOL MP3Player_IsPlaying(void); HOT 2
- ogc_card_writepage() incorrectly calculates offset after block 1024 HOT 2
- GX_SetDispCopyDst takes a `ht` argument, however it is not used in the function. HOT 4
- Get track location in MP3Player? HOT 2
- Error when compiling with strict error reporting HOT 4
- DSP task code incorrectly sets flags instead of state in one case HOT 1
- Debug spins after hitting break point and trying to continue HOT 2
- `AESND_Reset` hangs when called HOT 5
- [WiiU / vWii] libogc may mistakenly mount WiiU's USB storage drive when multiple USB drives are connected HOT 8
- gctypes.h:9:10: fatal error: 'stdbool.h' file not found HOT 1
- GameCube: printf() does not work properly HOT 7
- PAD_ScanPads() reports GameCube controller continuously connecting and disconnecting HOT 5
- Uncalibrated accelerometer data from the Nunchuck
- Stereo audio output plays with swapped channels HOT 8
- asndlib 2.6.0 has no sound on dolphin (DSP HLE) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libogc.