diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-09 22:28:04 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-09 22:28:04 +0300 |
commit | d54bdf45f08e0772eb53de7ea2e18b69924804b2 (patch) | |
tree | 9c52ef044ae1fca53f75fe066cb22ac743ac82c6 | |
parent | e58dc1c2b65f6aa390ced1bbed21df89a265dd84 (diff) |
extra_space mod, very experimental
-rw-r--r-- | WorkerForm.cs | 6 | ||||
-rw-r--r-- | hakchi_gui.csproj | 174 | ||||
-rw-r--r-- | user_mods/extra_space.hmod/etc/preinit.d/p7110_extra_space | 5 | ||||
-rw-r--r-- | user_mods/extra_space.hmod/install | 17 | ||||
-rw-r--r-- | user_mods/extra_space.hmod/readme.txt | 7 | ||||
-rw-r--r-- | user_mods/extra_space.hmod/uninstall | 14 |
6 files changed, 153 insertions, 70 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs index 07ae772c..adc832c7 100644 --- a/WorkerForm.cs +++ b/WorkerForm.cs @@ -83,10 +83,13 @@ namespace com.clusterrr.hakchi_gui string selectedFile = null;
public NesMiniApplication[] addedApplications;
public static int NandCTotal, NandCUsed, NandCFree, WritedGamesSize, SaveStatesSize;
+ public static bool ExternalSaves = false;
public static long ReservedMemory
{
get
{
+ if (ExternalSaves)
+ return 5;
switch (ConfigIni.ConsoleType)
{
default:
@@ -95,7 +98,7 @@ namespace com.clusterrr.hakchi_gui return 10;
case MainForm.ConsoleType.SNES:
case MainForm.ConsoleType.SuperFamicom:
- return 10;
+ return 30;
}
}
}
@@ -736,6 +739,7 @@ namespace com.clusterrr.hakchi_gui {
var clovershell = MainForm.Clovershell;
var nandc = clovershell.ExecuteSimple("df /dev/nandc | tail -n 1 | awk '{ print $2 \" | \" $3 \" | \" $4 }'", 500, true).Split('|');
+ ExternalSaves = clovershell.ExecuteSimple("mount | grep /var/lib/clover").Trim().Length > 0;
WritedGamesSize = int.Parse(clovershell.ExecuteSimple("mkdir -p /var/lib/hakchi/rootfs/usr/share/games/ && du -s /var/lib/hakchi/rootfs/usr/share/games/ | awk '{ print $1 }'", 1000, true)) * 1024;
SaveStatesSize = int.Parse(clovershell.ExecuteSimple("mkdir -p /var/lib/clover/profiles/0/ && du -s /var/lib/clover/profiles/0/ | awk '{ print $1 }'", 1000, true)) * 1024;
NandCTotal = int.Parse(nandc[0]) * 1024;
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index b6bfc2fa..739efd59 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -596,6 +596,9 @@ <Compile Include="WorkerForm.Designer.cs">
<DependentUpon>WorkerForm.cs</DependentUpon>
</Compile>
+ <Content Include="user_mods\extra_space.hmod\readme.txt">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
<Content Include="user_mods\snes_custom_filters.hmod\readme.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
@@ -1827,211 +1830,235 @@ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="cluster_cert.pfx" />
- <Content Include="mods\mod_hakchi\bin\busybox">
+ <Content Include="mods\hmods\tiny7zx-dynamic.hmod">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\config">
+ <Content Include="patches\0354f4b1-Dirt Racer %28Europe%29 %28En,Fr,De%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\init">
+ <Content Include="patches\09097b2b-ActRaiser %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\chmenu">
+ <Content Include="patches\0ce626ba-Hebereke%27s Popoitto %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\clover-kachikachi-wr">
+ <Content Include="patches\0f8378a6-Winter Gold %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\init.d\S78clvcon">
+ <Content Include="patches\17f946c5-K.H. Rummenigge%27s Player Manager %28Germany, Germany Sample%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\inittab">
+ <Content Include="patches\1ac7f523-Kick Off 3 - European Challenge %28Europe%29 %28En,Fr,De,Es,It%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit">
+ <Content Include="patches\1ad61bd0-90 Minutes - European Prime Goal %28Europe, Europe Beta%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\b0000_defines">
+ <Content Include="patches\29a78af9-ActRaiser %28Germany%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\b0010_functions">
+ <Content Include="patches\2a9966c0-Soccer Kid %28Europe%29 %28En,Fr,De,Es,It%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p0000_config">
+ <Content Include="patches\2ae148d6-Smurfs, The %28Europe%29 %28En,Fr,De,Es,It%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7000_preinit">
+ <Content Include="patches\2e9985bc-Super International Cricket %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7070_firmware">
+ <Content Include="patches\44a9db5c-Mega-lo-Mania %28Europe%29 %28En,Fr,De%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7100_preinit">
+ <Content Include="patches\4ee9ee99-Castlevania - Vampire%27s Kiss %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\pa100_games">
+ <Content Include="patches\588a9707-Pop%27n TwinBee %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\pffff_config">
+ <Content Include="patches\60b2d4a8-Striker %28Europe%29 %28En,Fr,De,Es,It,Nl,Sv%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\profile">
+ <Content Include="patches\630e16a1-Actraiser 2 %28Europe%29 %28En,Fr,De%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\backup">
+ <Content Include="patches\797e2e82-Spirou %28Europe%29 %28En,Fr,De,Es%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\base">
+ <Content Include="patches\7a313722-Hebereke%27s Popoon %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\games">
+ <Content Include="patches\7e2c7143-Lucky Luke %28Europe%29 %28En,Fr,De,Es%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\install">
+ <Content Include="patches\83af6152-Asterix & Obelix %28Europe%29 %28En,Fr,De,Es%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\package">
+ <Content Include="patches\8d2596a7-Manchester United Championship Soccer %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\removed">
+ <Content Include="patches\91a03035-Pop%27n TwinBee - Rainbow Bell Adventures %28Europe, Germany%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\script\transfer">
+ <Content Include="patches\96dec679-Lothar Matthaeus Super Soccer %28Germany%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\sbin\init">
+ <Content Include="patches\9b1ea779-Fever Pitch Soccer %28Europe%29 %28En,Fr,De,Es,It%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\bin\rsync">
+ <Content Include="patches\a27e2664-ActRaiser %28France%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\clover-canoe-shvc-wr">
+ <Content Include="patches\b9d6269d-Joe & Mac 3 - Lost in the Tropics %28Europe%29 %28En,Fr,De%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\remote-exec">
+ <Content Include="patches\bbcd16f4-Soccer Shootout %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\init.d\S82remote-exec">
+ <Content Include="patches\d190cf58-Eric Cantona Football Challenge %28France%29 %28En,Fr,De,Es,It,Nl,Sv%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\hmods\tiny7zx-dynamic.hmod">
+ <Content Include="patches\d56c21a1-Donald in Maui Mallard %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\usleep">
+ <Content Include="patches\e4925f15-Adventures of Dr. Franken, The %28Europe%29 %28En,Fr,De,Es,It,Nl,Sv%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\0354f4b1-Dirt Racer %28Europe%29 %28En,Fr,De%29.ips">
+ <Content Include="patches\f1dce2b7-Tintin in Tibet %28Europe%29 %28En,Fr,De,Nl%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\09097b2b-ActRaiser %28Europe%29.ips">
+ <Content Include="patches\fabff8bd-Zombies %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\0ce626ba-Hebereke%27s Popoitto %28Europe%29.ips">
+ <Content Include="patches\fb1d16c4-Super Ice Hockey %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\0f8378a6-Winter Gold %28Europe%29.ips">
+ <Content Include="patches\fce7bade-Kevin Keegan%27s Player Manager %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\17f946c5-K.H. Rummenigge%27s Player Manager %28Germany, Germany Sample%29.ips">
+ <Content Include="patches\4824a630-Marko%27s Magic Football %28Europe%29 %28En,Fr,De,Es%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\1ac7f523-Kick Off 3 - European Challenge %28Europe%29 %28En,Fr,De,Es,It%29.ips">
+ <Content Include="patches\6d16f5e7-World Cup Striker %28Europe%29 %28En,Fr,De%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\1ad61bd0-90 Minutes - European Prime Goal %28Europe, Europe Beta%29.ips">
+ <Content Include="patches\6f7d1745-Smash Tennis %28Europe%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\29a78af9-ActRaiser %28Germany%29.ips">
+ <Content Include="patches\974523ff-Terranigma %28Europe, France, Germany, Spain%29.ips">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\2a9966c0-Soccer Kid %28Europe%29 %28En,Fr,De,Es,It%29.ips">
+ <Content Include="mods\mod_hakchi\bin\busybox">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\2ae148d6-Smurfs, The %28Europe%29 %28En,Fr,De,Es,It%29.ips">
+ <Content Include="mods\mod_hakchi\bin\rsync">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\2e9985bc-Super International Cricket %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\44a9db5c-Mega-lo-Mania %28Europe%29 %28En,Fr,De%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\init">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\4ee9ee99-Castlevania - Vampire%27s Kiss %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\chmenu">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\588a9707-Pop%27n TwinBee %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\clover-canoe-shvc-wr">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\60b2d4a8-Striker %28Europe%29 %28En,Fr,De,Es,It,Nl,Sv%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\clover-kachikachi-wr">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\630e16a1-Actraiser 2 %28Europe%29 %28En,Fr,De%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\gameover">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\797e2e82-Spirou %28Europe%29 %28En,Fr,De,Es%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\hakchi">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\7a313722-Hebereke%27s Popoon %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\hsqs">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\7e2c7143-Lucky Luke %28Europe%29 %28En,Fr,De,Es%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\remote-exec">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\83af6152-Asterix & Obelix %28Europe%29 %28En,Fr,De,Es%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\test-menu">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\8d2596a7-Manchester United Championship Soccer %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\uistart">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\91a03035-Pop%27n TwinBee - Rainbow Bell Adventures %28Europe, Germany%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\uistop">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\96dec679-Lothar Matthaeus Super Soccer %28Germany%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\bin\usleep">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\9b1ea779-Fever Pitch Soccer %28Europe%29 %28En,Fr,De,Es,It%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\init.d\S78clvcon">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\a27e2664-ActRaiser %28France%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\init.d\S82remote-exec">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\b9d6269d-Joe & Mac 3 - Lost in the Tropics %28Europe%29 %28En,Fr,De%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\inittab">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\bbcd16f4-Soccer Shootout %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\d190cf58-Eric Cantona Football Challenge %28France%29 %28En,Fr,De,Es,It,Nl,Sv%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\b0000_defines">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\d56c21a1-Donald in Maui Mallard %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\b0010_functions">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\e4925f15-Adventures of Dr. Franken, The %28Europe%29 %28En,Fr,De,Es,It,Nl,Sv%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\b0020_backup">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\f1dce2b7-Tintin in Tibet %28Europe%29 %28En,Fr,De,Nl%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\b0030_package">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\fabff8bd-Zombies %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p0000_config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\fb1d16c4-Super Ice Hockey %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7000_preinit">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\fce7bade-Kevin Keegan%27s Player Manager %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7070_firmware">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\4824a630-Marko%27s Magic Football %28Europe%29 %28En,Fr,De,Es%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7080_hmods">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\6d16f5e7-World Cup Striker %28Europe%29 %28En,Fr,De%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7100_preinit">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\6f7d1745-Smash Tennis %28Europe%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\pa100_games">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
- <Content Include="patches\974523ff-Terranigma %28Europe, France, Germany, Spain%29.ips">
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\pffff_config">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\profile">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\script\base">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\script\games">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\script\install">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\script\reflash">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\script\removed">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\hakchi\script\transfer">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="mods\mod_hakchi\sbin\init">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="Properties\app.manifest" />
@@ -2047,6 +2074,15 @@ <Content Include="user_mods\snes_custom_filters.hmod\uninstall">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
+ <Content Include="user_mods\extra_space.hmod\etc\preinit.d\p7110_extra_space">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="user_mods\extra_space.hmod\install">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="user_mods\extra_space.hmod\uninstall">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
</ItemGroup>
<ItemGroup>
<Content Include="data\GameGenieDB.xml">
diff --git a/user_mods/extra_space.hmod/etc/preinit.d/p7110_extra_space b/user_mods/extra_space.hmod/etc/preinit.d/p7110_extra_space new file mode 100644 index 00000000..f0a91048 --- /dev/null +++ b/user_mods/extra_space.hmod/etc/preinit.d/p7110_extra_space @@ -0,0 +1,5 @@ +local ext_device=/dev/nande +local ext_path=$mountpoint/var/lib/clover +mkdir -p $ext_path +echo mounting $ext_path +mount -o rw,nosuid,nodev,noatime $ext_device $ext_path diff --git a/user_mods/extra_space.hmod/install b/user_mods/extra_space.hmod/install new file mode 100644 index 00000000..c8b72918 --- /dev/null +++ b/user_mods/extra_space.hmod/install @@ -0,0 +1,17 @@ +local ext_device=/dev/nande +local ext_path=$mountpoint/var/lib/clover +local tmpfs=$temppath/nandc +mkdir -p $ext_path + +echo creating fs on $ext_device +$rootfs/bin/mkfs.ext2 $ext_device +echo mounting $ext_device +mkdir -p $tmpfs +mount -o rw,nosuid,nodev,noatime $ext_device $tmpfs +echo moving data from nandc to nande... +cp -rf $ext_path/* $tmpfs +rm -rf $ext_path/* +umount $tmpfs +rm -rf $tmpfs + +return 0 diff --git a/user_mods/extra_space.hmod/readme.txt b/user_mods/extra_space.hmod/readme.txt new file mode 100644 index 00000000..1a80f55f --- /dev/null +++ b/user_mods/extra_space.hmod/readme.txt @@ -0,0 +1,7 @@ +=== Extra Space Hack ===
+
+This is VERY EXPERIMENTAL mod for SNES Mini which moves your save-states data to unused partition of NAND flash.
+
+This partition is only 50MB in size but it will free some space for games.
+
+Please backup your save-states before using. I am not responsible for them.
\ No newline at end of file diff --git a/user_mods/extra_space.hmod/uninstall b/user_mods/extra_space.hmod/uninstall new file mode 100644 index 00000000..73220ab4 --- /dev/null +++ b/user_mods/extra_space.hmod/uninstall @@ -0,0 +1,14 @@ +local ext_device=/dev/nande +local ext_path=$mountpoint/var/lib/clover +local tmpfs=$temppath/nandc +mkdir -p $ext_path + +echo mounting $ext_device +mkdir -p $tmpfs +mount -o rw,nosuid,nodev,noatime $ext_device $tmpfs +echo moving data from nandc to nande... +rm -rf $ext_path/* +cp -rf $tmpfs/* $ext_path +rm -rf $tmpfs/* +umount $tmpfs +rm -rf $tmpfs |