01-21-2012, 10:47 PM
01-21-2012, 11:02 PM
Well, like the description says, "Dynamic file patching development, like Riivolution for Dolphin."
No, it's not yet working. I've created a couple working functions to check the presence of a file in the correct folder and set Dolphin to create the directory (and added a nonworking checkbox) and that's about it. My current main priority is to fix FileMonitor.cpp to open the correct folder based on GameID, not just SMG2 which is currently hardcoded in
No, it's not yet working. I've created a couple working functions to check the presence of a file in the correct folder and set Dolphin to create the directory (and added a nonworking checkbox) and that's about it. My current main priority is to fix FileMonitor.cpp to open the correct folder based on GameID, not just SMG2 which is currently hardcoded in

01-21-2012, 11:26 PM
(01-21-2012, 01:35 AM)HawaiianPunch Wrote: [ -> ](Also, what is the specific object name that holds the playing ISO in the GameListItem class? There seem to be quite a few and I don't know what each is for.)
hm, I need to correct myself. Use SConfig::GetInstance().m_LocalCoreStartupParameter.m_strUniqueID.
01-21-2012, 11:39 PM
(01-21-2012, 11:26 PM)neobrain Wrote: [ -> ](01-21-2012, 01:35 AM)HawaiianPunch Wrote: [ -> ](Also, what is the specific object name that holds the playing ISO in the GameListItem class? There seem to be quite a few and I don't know what each is for.)
hm, I need to correct myself. Use SConfig::GetInstance().m_LocalCoreStartupParameter.m_strUniqueID.
That's it! Thanks!
*commited and pushed
01-24-2012, 09:04 AM
Ugh. Can someone explain step by step how Dolphin accesses files from GC and Wii isos? Or point me to something that will explain it? There are a lot of functions...
01-24-2012, 10:22 AM
Both are in Core
wii is in IPC_HLE\WII_IPC_HLE_Device_DI
gc is in DVDInterface.cpp
they are also accessed through various files in DiscIO, (VolumeGC, VolumeWiiCrypted, VolumeDirectory)
wii is in IPC_HLE\WII_IPC_HLE_Device_DI
gc is in DVDInterface.cpp
they are also accessed through various files in DiscIO, (VolumeGC, VolumeWiiCrypted, VolumeDirectory)
01-26-2012, 06:33 AM
Big update. I have reworked a lot of functions, and have settled on something I like. I decided to change the return value of FileMon::FindFilename from void to std:
tring, return the just processed file. This makes my code a lot simpler, and since FindFilename is only called once in VolumeGC.cpp I think it shouldn't affect much. Please tell me if this needs to be reverted, and I will try to create a separate function. Now, all files are checked if they exist before loading, and I only need to implement a new function that will read from the new file.
And that's, unfortunately, where I need a lot of help. I basically have no idea how to implement this new function. Thanks.
Here's the commit, on my FileLoader branch: http://code.google.com/r/hawaiianpunch1-fileloading/source/detail?r=38fa23e2502f2cb489f1d1c05cbee0de7a983487&name=FileLoader
tring, return the just processed file. This makes my code a lot simpler, and since FindFilename is only called once in VolumeGC.cpp I think it shouldn't affect much. Please tell me if this needs to be reverted, and I will try to create a separate function. Now, all files are checked if they exist before loading, and I only need to implement a new function that will read from the new file.And that's, unfortunately, where I need a lot of help. I basically have no idea how to implement this new function. Thanks.
Here's the commit, on my FileLoader branch: http://code.google.com/r/hawaiianpunch1-fileloading/source/detail?r=38fa23e2502f2cb489f1d1c05cbee0de7a983487&name=FileLoader
01-26-2012, 06:44 AM
What do you need to read form the file? o_O
01-26-2012, 06:49 AM
(01-26-2012, 06:44 AM)neobrain Wrote: [ -> ]What do you need to read form the file? o_O
I needed the filename, then I need to read the actual file that someone will put in User/Load/Files.
01-26-2012, 07:13 AM
... so you just want to read the whole file contents to a u8 array?