ViperGC Extreme flash file system access

Post Reply
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

ViperGC Extreme flash file system access

Post by infact » Mon Jun 27, 2011 6:06 pm

I have recently been working on viper gc / extreme support for some applications (mainly usb related things -> viper usb adapter).

I think of ViperGC Extreme flash file system support in swiss (like the qoob pro file system) and accessing the loader from my vua_receiver(tbr) stub.
But I have problems getting the contents of the flash.

Anyone here with some working vipergc source code?
infact
Image Image
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: ViperGC Extreme flash file system access

Post by emu_kidid » Mon Jun 27, 2011 11:10 pm

infact, at the start of the application I recall you have to call up some methods of theirs in their "SDK". Also, if you look at "Previously undocumented ViperGC/Extreme functions" here (I assume you have already) it might help you.
Image
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: ViperGC Extreme flash file system access

Post by infact » Mon Jun 27, 2011 11:36 pm

Yeah, I'm doing all the ViperInit() stuff, but when I access the flash, I only get garbage or exceptions.
Maybe it is related to some other stuff that is included in my program (usb, dol launcher, etc.)
Will start from scratch tomorrow. ;-)
infact
Image Image
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: ViperGC Extreme flash file system access

Post by Dragoon » Sat Jul 02, 2011 12:40 pm

I'm getting a error saying CONFIG_FILE_NBSECTORS is undeclared
Do you know it's definition?
Image
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: ViperGC Extreme flash file system access

Post by infact » Sun Jul 03, 2011 11:16 am

look again at the line in the file and guess ;-)
viper-undocumented.c wrote: FLASH_FILE_TYPE files[CONFIG_FILE_NBSECTORS]; // 32 files max
infact
Image Image
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: ViperGC Extreme flash file system access

Post by Dragoon » Sun Jul 03, 2011 6:35 pm

#define CONFIG_FILE_NBSECTORS 32
???
Image
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: ViperGC Extreme flash file system access

Post by emu_kidid » Sun Jul 03, 2011 11:18 pm

clearly yes.
Image
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: ViperGC Extreme flash file system access

Post by Dragoon » Mon Jul 04, 2011 6:41 am

lol... now I feel kinda stupid :P
in function ViperGetVersionInit();
I think it said ViperVersion(), I changed that to version (wich refers to struct{}CONFIG_TYPE) is that the right one?
Or am I doing something clearly wrong now?
Image
Post Reply