Page 7 of 28

Re: GDMENU Card Manager

Posted: Mon Aug 02, 2021 1:21 pm
by sonik
I've never tried to build with mono. I'm currently using Net Core. 3.1 to build for linux.
There's a variable in MainWindow called showAllDrives. It will list all mounted drives.
It's there for debug. In the future I should implement command line argument to set it.

Can you get this code running on mono?

Code: Select all

using System;
using System.Linq;
public class Program
{
  public static void Main()
  {
    Console.WriteLine("DriveType;DriveFormat;Name");
    foreach(var drive in System.IO.DriveInfo.GetDrives().Where(x => x.IsReady))
      Console.WriteLine($"{drive.DriveType};{drive.DriveFormat};{drive.Name}");
  }
}
This code will list mounted drives and some properties.
Please run it and find your card on the list.

Re: GDMENU Card Manager

Posted: Mon Aug 02, 2021 1:32 pm
by Xero
sonik wrote:This code will list mounted drives and some properties.
Please run it and find your card on the list.

$ mono test.exe
DriveType;DriveFormat;Name
Fixed;ext;/
Fixed;ext;/home
Fixed;msdos;/boot
Ram;fuse;/run/user/1000/gvfs
Fixed;msdos;/media

mine is the bottom one there

Re: GDMENU Card Manager

Posted: Mon Aug 02, 2021 2:07 pm
by sonik
Try mounting it on a subdir... /media/something

Re: GDMENU Card Manager

Posted: Mon Aug 02, 2021 2:22 pm
by Xero
sonik wrote:Try mounting it on a subdir... /media/something
that was it, working now! Thank you.

I do think it might be worth making the path configurable, as I suspect this /media/folder thing is ubuntu-specific, likely them trying to automate mounting detachable media.

Re: GDMENU Card Manager

Posted: Mon Aug 02, 2021 4:58 pm
by sonik
Yeah.
I like make things easier to the end-user.
But I will add an "advanced feature" to show all mounted drives for the advanced users :)

Re: GDMENU Card Manager

Posted: Wed Aug 11, 2021 1:51 pm
by Esppiral
Thanks for this!

Re: GDMENU Card Manager

Posted: Tue Aug 31, 2021 4:03 pm
by fraggle200
Hi Sonik, hope you can help.

Really not sure what I'm doing wrong here but I can't for the life of me add games to the SD card.

I formatted the SD card with these settings for RUFUS Download here: https://rufus.ie/ the card is a brand new sandisk ultra 128GB.
DEVICE = SD card
BOOT SELECTION = non bootable
PARTITION SCHEME = MBR
TARGET SYSTEM = BIOS or UEFI
VOLUME LABEL = GDEMU
FILE SYSTEM = FAT32 or may say Large FAT32
CLUSTER SIZE = 32 kilobytes
Under 'advanced format options':
QUICK FORMAT = checked
CREATE EXTENDED LABEL and ICON FILES = NOT checked

I've ran the GDMENU Card manager with and without the 01 folder and GDEMU.ini in the root and get the same error.

* Without anything on the SD card and no games to load to it. nothing happens when I hit save changes.
* With a game to be added and no 01 folder/GDEMU.ini in the root I get this error.
cap wo menu.PNG
With a game to be added and the 01 folder/GDEMU.ini in the root I get the same error only this time it always deletes the 01 folder and leaves the GDEMU.ini in the root.
cap wi menu.PNG

If I have only the 01 folder and GDEMU.ini in the root I can save changes and it saves without issue. when I add a game, thats when it stops behaving as expected.

I'm not sure what I'm doing wrong as logically I would have thought that I only needed to do 1 of 2 things:
* either just add games and this will also add the GDMENU, as it's in the Tools folder so I assume it'll be added automatically if it doesn't find it.
* Or already have your 01 folder and ini and it'll just add games for you.
I can't get either to work.

The 01 folder and ini are taken from MrNeo's GDI 01 folder that he posted so I at least know it's not still an issue with cdi etc.

Re: GDMENU Card Manager

Posted: Tue Aug 31, 2021 6:13 pm
by sonik
Hi.
Yes it will work with or without the 01 folder. program will always rebuild the menu GDI using the files in the tools folder.

Please do an test. Add the game but don't click on save. Instead click on Preload. Let's see if it can read the game's contents.

Re: GDMENU Card Manager

Posted: Wed Sep 01, 2021 5:22 am
by fraggle200
sonik wrote:Hi.
Yes it will work with or without the 01 folder. program will always rebuild the menu GDI using the files in the tools folder.

Please do an test. Add the game but don't click on save. Instead click on Preload. Let's see if it can read the game's contents.
reformatted SD card
added 01 and ini as well as an 02 folder with crazy taxi in it by copy and pasting into the SD card.
both are read ok and can be saved.
added dynamite cop, via the card manager, that I got from Dubcity's post on here and it does the same again. Deletes the 01 folder when I click on save changes and get the same error.

Re: GDMENU Card Manager

Posted: Wed Sep 01, 2021 7:33 am
by sonik
When you click on Preload does it work?