Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-09 22:28:04 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-09 22:28:04 +0300
commitd54bdf45f08e0772eb53de7ea2e18b69924804b2 (patch)
tree9c52ef044ae1fca53f75fe066cb22ac743ac82c6 /WorkerForm.cs
parente58dc1c2b65f6aa390ced1bbed21df89a265dd84 (diff)
extra_space mod, very experimental
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r--WorkerForm.cs6
1 files changed, 5 insertions, 1 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;