ROM Hack RELEASE EmuTool - Move partition Emu on another SD, Switch Emu type on SXOS and more

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
369
Country
Canada
Do the files need to be named a certain way under SXOS File and Hekate Backup Files? I backedup my SXOS Sysnand on my PC, then resized it and renamed it... I am trying to convert it to either an Atmosphere File or Atmosphere Hidden Partition, but it is not going very smoothly lol.
 

Maupiti

Hacking is so « Nice »
Member
Joined
Sep 16, 2018
Messages
689
Trophies
0
XP
1,385
Country
France
Do the files need to be named a certain way under SXOS File and Hekate Backup Files? I backedup my SXOS Sysnand on my PC, then resized it and renamed it... I am trying to convert it to either an Atmosphere File or Atmosphere Hidden Partition, but it is not going very smoothly lol.
Emutool doesn’t handle shrinked emunands…
 
  • Like
Reactions: impeeza

TheyKilledKenny

Well-Known Member
OP
Member
Joined
Dec 5, 2015
Messages
113
Trophies
0
XP
771
Country
Italy
ha ha ha, sorry use the attached one this uses the code released on the Second post on this thread, change one line which is causing the overflow and recompiled using VB6, try it and let us know.
OH:wtf:
I really need to find the time to end this work.

Who did this changes?
You can add it to github as pull request and I can accept and recompile the executable.

Let me know.

Ciao.
 

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
1,230
Trophies
1
Age
44
XP
1,930
Country
Colombia
OH:wtf:
I really need to find the time to end this work.

Who did this changes?
You can add it to github as pull request and I can accept and recompile the executable.

Let me know.

Ciao.
Hi. I did sort of quick and dirty compilation. Let me review what I did and go to github. Thanks for your work
 

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
1,230
Trophies
1
Age
44
XP
1,930
Country
Colombia
Hi, I just find the source a did customize.

What I did was:

On the 224 line of clsDrive.cls I did comment:
JavaScript:
'       drvTotalSectors = oInit.TotalSectors

because on my 4TB HardDrive the TotalSectors property is a number bigger than a "Long", and running the program generate a overflow on that line. but for some unknow reason for me, changing the line 46 from:

JavaScript:
Public drvTotalSectors  As Long     '= 384499710

To:


JavaScript:
Public drvTotalSectors  As Double     '= 384499710

give me a error but I think is related to my installation.

By the way, I have to comment the next lines because I never found the "CINIFILE.CLS" class file

Remove EmuTool.vbp, line 8
JavaScript:
Class=cInifile; ..\..\HiBusConfig_Sviluppo\src\CINIFILE.CLS

clsDrive.cls, comment lines 224 & 325 to 346:

JavaScript:
'Dim cini        As cInifile

...


        'Set cini = New cInifile
        'With cini
        '    .Path = drvName & "\emummc\emummc.ini"
        '    .Section = "emummc"
       '
       '     .Key = "sector"
       '     .Default = -1
       '
       '     'Questo "appoggia" il valore a destra, perchè la virgola è fittizia nei currency
       '     drvStartSector = CCur(Replace(.Value, "0x", "&h")) / [email protected]
       '
       '
       '     .Key = "path"
       '     .Default = "\emummc"
       '     drvEmuFolder = Replace(.Value, "/", "\")
       '
       '     .Key = "nintendo_path"
       '     .Default = "emuMMC/HPE0/Nintendo"
       '     drvNinFolder = Replace(.Value, "/", "\")
       '
       ' End With
        'Set cini = Nothing

frmMain.frm, line 807:

JavaScript:
'Dim cini                As cInifile       'Classe di gestione dei file INI

If you could give me a link to that class fill I will thank you so much.
 
  • Like
Reactions: TheyKilledKenny

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
1,230
Trophies
1
Age
44
XP
1,930
Country
Colombia
Ok, sorry fot all the mess I created, the long history is:

I have the source on the OP of this thread that is the code o referenced on last post.

Later you share another source which have the CINIFILE.CLS & HugeBinaryFile.cls and few extra lines on clsDrive.cls but have the same overflow on big drives. for that sources I did comment the line "drvTotalSectors = oInit.TotalSectors" on clsDrive.cls and compile it. that is the one I shared.

So I just realize you create the GitHub repository, and make corrections to code, now the released one on GitHub works fine when you have big hard drives.

The one on GitHub works great, the only thing I find is what the file CINIFILE.CLS have the end of lines as LF not CRLF so it is not open by Visual Studio 6.0:
1643304081535.png


I Think the version on GitHub should be raised to avoid conflicts.

Thanks for your great work
 

TheyKilledKenny

Well-Known Member
OP
Member
Joined
Dec 5, 2015
Messages
113
Trophies
0
XP
771
Country
Italy
Ok, sorry fot all the mess I created, the long history is:

I have the source on the OP of this thread that is the code o referenced on last post.

Later you share another source which have the CINIFILE.CLS & HugeBinaryFile.cls and few extra lines on clsDrive.cls but have the same overflow on big drives. for that sources I did comment the line "drvTotalSectors = oInit.TotalSectors" on clsDrive.cls and compile it. that is the one I shared.

So I just realize you create the GitHub repository, and make corrections to code, now the released one on GitHub works fine when you have big hard drives.

The one on GitHub works great, the only thing I find is what the file CINIFILE.CLS have the end of lines as LF not CRLF so it is not open by Visual Studio 6.0:
View attachment 295523

I Think the version on GitHub should be raised to avoid conflicts.

Thanks for your great work
Here is a Zip with the 2 cls files.
Tell me if they're ok for you so I can upload them, on github.
CIniFile.cls was coded by Steve McMahon in Feb 1997 :D

If you remove cinifile Emutool will not be able to create the emummc.ini file.

Ciao.
 

Attachments

  • MissingClass.zip
    5.3 KB · Views: 7
  • Like
Reactions: impeeza

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
1,230
Trophies
1
Age
44
XP
1,930
Country
Colombia
Here is a Zip with the 2 cls files.
Tell me if they're ok for you so I can upload them, on github.
CIniFile.cls was coded by Steve McMahon in Feb 1997 :D

If you remove cinifile Emutool will not be able to create the emummc.ini file.

Ciao.
Hello, Thanks a lot for your help, sorry the late response yes the files on the zip are correct, the allow me to compile using Visual Basic 6.0, thanks a lot.

I recommend you to upgrade the GitHub version to something like 2.9.1 to avoid confusions with the old uncorrected versions.

Again thanks a lot for all your help. "Ciao" from Colombia
 
General chit-chat
Help Users
    KenniesNewName @ KenniesNewName: Honey on strawberries such a treat