GDMENU Card Manager

Technical help for Dreamcast console, accessories and games only. Ask questions and find answers here. For Online help see the Online Forum

Moderator: pcwzrd13

User avatar
sonik
Developer
Posts: 192

Re: GDMENU Card Manager

Post#61 » Mon Aug 02, 2021 1:21 pm

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.
EDF! EDF! EDF!

Xero
shadow
Posts: 10

Re: GDMENU Card Manager

Post#62 » Mon Aug 02, 2021 1:32 pm

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

User avatar
sonik
Developer
Posts: 192

Re: GDMENU Card Manager

Post#63 » Mon Aug 02, 2021 2:07 pm

Try mounting it on a subdir... /media/something
EDF! EDF! EDF!

Xero
shadow
Posts: 10

Re: GDMENU Card Manager

Post#64 » Mon Aug 02, 2021 2:22 pm

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.

User avatar
sonik
Developer
Posts: 192

Re: GDMENU Card Manager

Post#65 » Mon Aug 02, 2021 4:58 pm

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 :)
EDF! EDF! EDF!

Esppiral
Quad Damage
Posts: 200

Re: GDMENU Card Manager

Post#66 » Wed Aug 11, 2021 1:51 pm

Thanks for this!

User avatar
fraggle200
chill
Posts: 307

Re: GDMENU Card Manager

Post#67 » Tue Aug 31, 2021 4:03 pm

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.

User avatar
sonik
Developer
Posts: 192

Re: GDMENU Card Manager

Post#68 » Tue Aug 31, 2021 6:13 pm

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.
EDF! EDF! EDF!

User avatar
fraggle200
chill
Posts: 307

Re: GDMENU Card Manager

Post#69 » Wed Sep 01, 2021 5:22 am

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.

User avatar
sonik
Developer
Posts: 192

Re: GDMENU Card Manager

Post#70 » Wed Sep 01, 2021 7:33 am

When you click on Preload does it work?
EDF! EDF! EDF!

  • Similar Topics
    Replies
    Views
    Last post

Return to “Support”

Who is online

Users browsing this forum: No registered users