Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

Recommended Posts

Posted

I've written this batch file to load registry keys for different controller setups on the ePSXe:

 

setlocal

set ouateonetoo=%~1
set "ouateonetoo=%ouateonetoo:~0,-3%"
set "ouateonetoo=%ouateonetoo%reg"
regedit.exe /s "%ouateonetoo%"

Sleep 5
endlocal

CD "C:\Program Files\ePSXe\"


It is set to run before as ctrlrreg.bat "[rompath]\[romfile]". It changes the extension from whatever it is to .reg then loads the file to the registry.

With this set to run before ePSXe, it does succeed and terminate after the sleep but then returns back to the game menu. If I set it so GameEx doesn't run the batch file, the emulator loads and works fine.

I've tried with and without the setlocal, the sleep, and the CD. My initial thought was that somehow the active directory was being changed by the process but nothing made any difference. I've also tried the reg restore command instead of regedit without any change.

If I run the batch file then the emulator outside GameEx, it works properly.

Anyone have any idea what might be going on here?

Posted

Could be loads of things + that's where I started a couple of years ago - manipulating things via batch. Save yourself some grey hairs + heartburn by either:

a) Download Visual Studio Express + learn c# (will save you time in the long run). Batch will be a world of pain. 

or

b ) Try this:

This actually started with a need to maipulate PSX ROMS and manage per-game settings such as sharers, graphics and controls. So - you'll be able to save your controls per-game without faffing about with horrendously obscure and illogical batch idiosyncrasies. :)

Good luck

 

Posted

If you find yourself scripting more than 3 hours per week or thinking about "just writing a little app" I'd urge you to heed advice :)

As it goes - see how you go.... 

 

Posted

I didn't mention it before but I'm running XP on the console. If it is still a surprise that I'm getting some weird errors with GEmvoy, let me know and I'll send you some info.

Posted
  On 3/24/2016 at 3:12 AM, stigzler said:

There is an old app that I think could help you:

ePSXeCutor

think it was around in the days of XP.

Expand  

I was going to suggest the same thing, but didn't want to step on your toes.  ePSXeCutor works pretty well and I run it on Window 7.  AFAIK there are no issues with running it on more modern versions of Windows as well.

Here's some info on getting it set up in GameEx (keep reading beyond that post as well; setting up ePSXeCutor in GameEx is not for the faint of heart, but it works well once you do so).

Posted

@nullPointer - no worries - I aint precious about me toes - all about options, right?

@G70Man - did have another thought. You could try Emvoy but this may be a little overkill for your needs. Alternatively, you could use this batch:

  Reveal hidden contents

 

  • Like 1
Guest
This topic is now closed to further replies.
×
×
  • Create New...