NeoGeo CD

Discussion in 'Wii - Emulation and Homebrew' started by bg480, Jul 2, 2011.

  1. morpheous

    morpheous GBAtemp Regular

    Member
    4
    Apr 2, 2009
    United States
    But it was still functional, that's all that mattered. There's planty of emus that exist, that aren't perfect but people still use them, if they're usable that is, which your emulator was.
     
  2. Wiimpathy

    Wiimpathy GBAtemp Advanced Fan

    Member
    7
    Mar 3, 2010
    France
  3. morpheous

    morpheous GBAtemp Regular

    Member
    4
    Apr 2, 2009
    United States
    Yes, i've actually downloaded that one also. It does the same thing, when trying to boot from a USB powered HDD inside an enclosure. "NO BIOS AVAILBLE!, PRESS A TO CONTINUE".

    There's have to be a way for users to install cios 202 on our wii u's vwii. Most likely, there's an issue with vwii, being it works on an actual wii.
     
    Last edited by morpheous, Aug 7, 2018
  4. vEN2

    vEN2 Advanced Member

    Newcomer
    1
    Jan 30, 2016
    Afghanistan
    if i remember correctly, bios MUST be on SD card. Games can be everywhere
     
  5. morpheous

    morpheous GBAtemp Regular

    Member
    4
    Apr 2, 2009
    United States
    BIOS is stored on the SD card.
     
  6. RatoPuto

    RatoPuto Newbie

    Newcomer
    1
    Jan 30, 2017
    Brazil
    You need the correct bios because it is not any one that works, the bios that I use downloaded on the gametronik site.

    — Posts automatically merged - Please don't double post! —

    About my question, would not it be possible to control classic in this version ?
     
    Last edited by RatoPuto, Sep 10, 2018
  7. niuus

    niuus GBAtemp Advanced Fan

    Member
    6
    Mar 4, 2016
    Venezuela
    Wow, i'll be keeping an eye on this. The emulator might have its quirks, but it definitely works great for me. I think the only things missing would be 4:3/16:9 selectable aspect ratio, maybe some minor stuff like configurable BIOS path (in XML?), configurable GCN pad buttons, and Wii U Pro Controller support, which may be fixed by compiling with the newest tools (libogc). I kinda remember i tried this in the past but could never get past compiling errors (in r27).

    Thanks for your efforts in keeping this emulator alive.

    I can't test right now, but i think it worked before?
     
    Last edited by niuus, Jan 11, 2019
    Garcimak and rogerioronin like this.
  8. niuus

    niuus GBAtemp Advanced Fan

    Member
    6
    Mar 4, 2016
    Venezuela
    Hi @Wiimpathy. I've been trying to recompile your emu so everyone can start using the Wii U Pro Controller with NeoCD Wii (devkit r26, liboGC 1.8.15-1), but i am stuck with this error:
    [​IMG]
    Need a hand for compiling, if you can help.
     
    Last edited by niuus, Jan 11, 2019
  9. Wiimpathy

    Wiimpathy GBAtemp Advanced Fan

    Member
    7
    Mar 3, 2010
    France
    You need to change the include in cdaudio.c to:

    #include <mad.h>
     
  10. niuus

    niuus GBAtemp Advanced Fan

    Member
    6
    Mar 4, 2016
    Venezuela
    Getting there @Wiimpathy. After changing diropen / dirclose / dirnext to opendir / closedir / nextdir, i got up to here:

    Compiling for Wii:
    [​IMG]
    while ((dirnext(dir, filename, &filestat) == 0) && filename[0])

    Compiling for GCN:
    [​IMG]
     
    Last edited by niuus, Jan 14, 2019
  11. Wiimpathy

    Wiimpathy GBAtemp Advanced Fan

    Member
    7
    Mar 3, 2010
    France
    For Wii:

    You can remove mload and just use ios58 for USB support. In Makefile, remove ehcmodule.elf. You also have to remove all references to mload in neocdgc.c.
    It seems you still have an error with dirnext etc. You can copy some parts from this code: https://github.com/emukidid/neogeo-cd-redux/blob/master/src/fileio/sdfileio.c

    Fo GC:
    I have to admit that it was never intended to be GC compatible. As the name suggests, wpad_keymap is related to wiimote only.

    I started to update the code some time ago, and wanted to look at this bloody video bug again. With recent libs this is worse because it's stuck at banner loading!

    To be honest, instead of the buggy neocd-wii(and the poor code I added) I think it'd be better trying to test this: https://github.com/libretro/fbalpha
    NeoGeo CD is available in this core and they added music support recently. That's the good news!

    I've tried to compile it by hardcoding the subsystem value. With the latest Retroarch, the games start but no music or crashes when loading .cue file. With an older Retroarch version, it starts with .cue + wav but it crashes when another track is loading... Well, it seems there's a curse around Neo CD and Wii!
     
    niuus, rogerioronin and Coto like this.
  12. Coto

    Coto -

    Member
    7
    Jun 4, 2010
    Chile
    good work there.
     
  13. niuus

    niuus GBAtemp Advanced Fan

    Member
    6
    Mar 4, 2016
    Venezuela
    Thanks for the tip! I'l give it a try with the best of what i've learned. BTW, i am using devkit r26 and libogc 1.8.15-1, i know recent libs can be pesky with regressions, sometimes :lol:

    Oh, i do like you version of the emu :). It ain't perfect, but at least gameplay works as intended, and the basic options suit my needs. The only thing i find myself wanting for it to call it a day would be WUPC support. About the FBAlpha NeoGeo CD core, i guess i'll wait if they release a Wii compiled version, if it ever happens, of course.

    Hahaha, that curse is a good theory.
     
    Last edited by niuus, Jan 14, 2019
  14. SieKensou

    SieKensou Advanced Member

    Newcomer
    4
    Feb 28, 2018
    Spain
    A lot of people don't like RetroArch very much... it's always great to have other options and stand alone emulators. It would be great to see this emulator grow and being optimiced and maybe with a new interface.
     
  15. niuus

    niuus GBAtemp Advanced Fan

    Member
    6
    Mar 4, 2016
    Venezuela
    I would leave the interface as it is, which is functional. Fancy interfaces take up too much memory, which i'd rather have for the games.

    Okey, so i removed:
    $(CURDIR)/src/utils/ehcmodule.elf.o in makefile.wii

    #include "utils/usb2storage.h"
    #include "utils/mload.h"

    in neocdgc.c

    #include <malloc.h> in neocdredux.c

    Removed the utils folder.

    And finally, in sdfileio.c i replaced:
    Code:
    /****************************************************************************
     * SDgetdir
     ****************************************************************************/
    static int SDgetdir( char *thisdir )
    {
      char filename[MAXPATHLEN];
      struct stat filestat;
      static int count = 0;
      int i;
      unsigned int *p;
    
      for( i = 0; i < count; i++ )
        free(direntries[i]);
    
      count = 0;
    
      /* open directory */
      DIR_ITER *dir = opendir (thisdir);
      if (dir)
      {
        while ((dirnext(dir, filename, &filestat) == 0) && filename[0])
        {
          /* Only get subdirectories */
          if (filestat.st_mode & S_IFDIR)
          {
            direntries[count++] = strdup(filename);
            if ( count == MAXDIRENTRIES ) break;
          }
        }
    
        closedir(dir);
      }
    
      if ( count > 1 )
      {
        int top,seek;
        char *t;
    
        for( top = 0; top < count - 1; top++ )
        {
          for( seek = top + 1; seek < count; seek++ )
          {
            if ( stricmp(direntries[top], direntries[seek]) > 0 )
            {
              t = direntries[top];
              direntries[top] = direntries[seek];
              direntries[seek] = t;
            }
          }
        }
      }
    
      memcpy(dirbuffer, &count, 4);
      p = (unsigned int *)(dirbuffer + 4);
      for ( i = 0; i < count; i++ )
        {
          memcpy(&p[i], &direntries[i], 4);
        }
    
      return count;
    }
    
    with:
    Code:
    /****************************************************************************
     * SDgetdir
     ****************************************************************************/
    static int SDgetdir( char *thisdir )
    {
      DIR *dirs = NULL;
      static int count = 0;
      int i;
      unsigned int *p;
      struct dirent *entry;
    
      for( i = 0; i < count; i++ )
        free(direntries[i]);
    
      count = 0;
    
      dirs = opendir(thisdir);
      if ( dirs != NULL )
        {
          entry = readdir(dirs);
          while ( entry != NULL )
            {
              /* Only get subdirectories */
             if (entry->d_type == DT_DIR)
               if (strcmp(entry->d_name,".") &&
                 strcmp(entry->d_name,".."))
               {
                direntries[count++] = strdup(entry->d_name);
               }
    
              if ( count == MAXDIRENTRIES ) break;
              entry = readdir(dirs);
            }
        }
    
      if ( count > 1 )
        SortListing(count);
    
      memcpy(dirbuffer, &count, 4);
      p = (unsigned int *)(dirbuffer + 4);
      for ( i = 0; i < count; i++ )
        {
          memcpy(&p[i], &direntries[i], 4);
        }
    
      return count;
    }
    
    Now i'm getting here:
    [​IMG]
     
    Last edited by niuus, Jan 15, 2019
  16. Wiimpathy

    Wiimpathy GBAtemp Advanced Fan

    Member
    7
    Mar 3, 2010
    France
    The undefined means that SortListing isn't declared/defined. In redux, they put the sorting in a dedicated function. Look just above SDgetdir(). Generally, in C we use qsort() to compare and sort files but this emulator is special.
     
    Last edited by Wiimpathy, Jan 15, 2019
    niuus likes this.
  17. METALIGALO

    METALIGALO Member

    Newcomer
    2
    Jun 30, 2018
    Brazil
    great work, neocd on my weha 5bd and monitor professional jvc is beatiful, but is possible change resolution 320x224 and 304x224 ?
     
  18. METALIGALO

    METALIGALO Member

    Newcomer
    2
    Jun 30, 2018
    Brazil
  19. momodora

    momodora Newbie

    Newcomer
    1
    Oct 17, 2018
    Australia
    Does this only work with a gamecube controller? I can't seem to get into the menu without using a gamecube controller?
     
  20. METALIGALO

    METALIGALO Member

    Newcomer
    2
    Jun 30, 2018
    Brazil
    wimpathy, another immense job that emulator, but i have a question to ask, is it possible an emulator option that has the two original neogeo resolutions to avoid the wave effects on the crt monitors wiimpathy? 320 x 224 and 304x224
     
Loading...