Coder Social home page Coder Social logo

Reset issues about bluemsx-libretro HOT 16 CLOSED

libretro avatar libretro commented on September 21, 2024
Reset issues

from bluemsx-libretro.

Comments (16)

andres-asm avatar andres-asm commented on September 21, 2024 1

void *retro_get_memory_data(unsigned id){return NULL;}
size_t retro_get_memory_size(unsigned id){return 0;}

You need to implement those and stub out the core saving

OR

use RETRO_ENVIRONMENT_GET_SAVE_DIR to get a hint of the dir you should use.

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

I cannot reproduce this, have you updated since yesterday there was a bug causing a random memory write that could be corrupting things.

I used a regular msx game(aleste 1) and set it to an invalid mapper and then reset and it still would not load meaning that the custom mapper stuck even after reset.(It loads on auto mapper so I know its not a broken game)

There was a buffer overflow, it corrupts whatever variable is placed after the array in my case it was the framebuffer pointer so it crashed on first render and was easy to catch.

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

I updated the core, same as before on windows.

I tried on my android phone and indeed the sound still works on restart for MSX2 games.

The cart mapper core option was applied too but not in the case of using a opt override.
Even if I had set ascii16 in default core options, aleste 2 didn't reboot with it if the opt override was there... really strange.

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

mapper_auto is checked in retro_load_game I dont know if game specific config is applied before or after game load so mapper_auto may be using an outdated value.

Are you running the game from a playlist, cmd/terminal or from the file browser?

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

I do playlist or file browser usually.
The result seems to be the same. (it works the 1st launch, fails on restart)

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

MSX games audio doesn't stop on restart if I have "Pause when menu activated" set to OFF. (I usually have it ON)
Doesn't change anything for Sega games black screen.

(on win7)

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

I have none of these issues, audio and sega sg1000 reboot are fine too.

Any and all information would be helpful.

I am on a Mac with RetroArch 1.6.7

The only difference is Windows as far as I can see, have you tried all the audio drivers?

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

Oh I was using direct sound and, now that I changed it to xaudio, the sound still works after a reset.

About Sega I always get a black screen on reset.
I tried to force machine + mapper but that's the same. I wonder what it is...

Something particular with Sega machines: I had to enable one by default here.
If I didn't do that, it would give me a black screen too when using the new auto machine option.

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

I think I got around those problems. (except for direct sound I'll just leave aside)
#60

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

Just noticed something now, when I reset The Castle on SG1000 I got "Castle, The (Japan).sram" that gets created on the root on my hdd.
I went into retroarch/save and found no sram for any game I ran into bluemsx recently.
Is there something wrong for windows save path?
Does my commit create sram out of the save folder for you on Mac?

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

No, I dont see a save file at all.

I will try to fix this today.

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

Ok I fixed an undefined variable with @Tatsuya79 fix and set quicksave directory, I still dont get a .sram file though.

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

I just set quicksave dir to RETRO_ENVIRONMENT_GET_SAVE_DIR.
Also merged the bool removal from Tatsuya79.

So for a fresh test could you delete the file and test it again with the new core.

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

Used boardSetDirectory to set the save path, I now have a save file in my save path.

The root directory issue should be fixed.

from bluemsx-libretro.

Tatsuya79 avatar Tatsuya79 commented on September 21, 2024

What happens now is:
-first boot with The Castle on Sega SG1000, no sram anywhere
-hit "restart" in quickmenu, "Castle, The (Japan).sram" gets created in my save folder

I'm using that game as it's the only one I found that leaves a sram file.

from bluemsx-libretro.

meepingsnesroms avatar meepingsnesroms commented on September 21, 2024

I think that the core is not shut down properly, so a save is only created on reset, but that game actually has its own mapper so it may be the only sg1000 game that uses sram.

from bluemsx-libretro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.