Re: hyperspin et naomi
Publié : 14 oct. 2013 - 22:18
par jeremiggy
Ok, ça c'est ce que tu as dans ton emulateur? Si oui, et que ça fonctionne en dehors d'hyperspin, il faut que tu trouves le fichier ini qui est utilisé lors du lancement via hyperspin. Si tu trouves ce fichier, modifie la séquence avec celle que tu as dans ton émulateur et ça devrais fonctionner.
Pour ça, il faut que tu trouve ton fichier naomi.ahk et que tu l'ouvres avec notepad. lis un peu à quels fichiers il fait référence. L'endroit de ton fihcier ini devrait y être.Salut,
Alors j'ai bien un fichier AHK qui se nomme seganaomi_hyperlaunch.
Le voici:
;***********************************Sega Naomi Makaron 12-5***********************************
else if (systemName = "NaomiMakaron" executable="naomi.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemnane%`n`n"%Long_RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard, 0
IniRead, current_controls, %emupath%jvs.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(current_controls != controls controls = "sfstyle")
{
filecopy, %emupath%SFSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "ggxstyle")
{
filecopy, %emupath%GGXSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "reverse")
{
filecopy, %emupath%REVERSE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "standard")
{
filecopy, %emupath%STANDARD_JVS.ini, %emupath%JVS.ini, 1
}
;**delete this section when makaron supports vertical rotation**
; IniRead, IsStillVertical, %emupath%NAOMI.ini, Settings, fullscreen
; If (IsStillVertical = "0")
; {
; IniWrite, 1, %emupath%NAOMI.ini, Settings, fullscreen
; }
;**delete this section when makaron supports vertical rotation**
sleep, 500
filecopy, %emupath%NVRAM\%RomName%_NAOMI_NVRAM.bin, %emupath%NAOMI_NVRAM.bin, 1
filecopy, %emupath%JVS\%RomName%_NAOMI_JVS.bin, %emupath%NAOMI_JVS.bin, 1
Run, "%emupath%%executable%" "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
sleep, %Screen_Timeout%
Gui Destroy
Process, WaitClose, %executable%
;**this section only work if you use alt+f4 to close the emu. It will error out makaron but will backup high scores
; sleep, 500
; filecopy, %emupath%NAOMI_NVRAM.bin, %emupath%NVRAM\%RomName%_NAOMI_NVRAM.bin, 1
; filecopy, %emupath%NAOMI_JVS.bin, %emupath%JVS\%RomName%_NAOMI_JVS.bin, 1
;**this section only work if you use alt+f4 to close the emu. It will error out makaron but will backup high scores
WinActivate, HyperSpin
}
;***********************************Sega Naomi Makaron Vertical*******************************
else if (systemName = "NaomiVertical" executable="naomi.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard, 0
IniRead, current_controls, %emupath%jvs.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(current_controls != controls controls = "sfstyle")
{
filecopy, %emupath%SFSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "ggxstyle")
{
filecopy, %emupath%GGXSTYLE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "reverse")
{
filecopy, %emupath%REVERSE_JVS.ini, %emupath%JVS.ini, 1
}
Else if(current_controls != controls controls = "standard")
{
filecopy, %emupath%STANDARD_JVS.ini, %emupath%JVS.ini, 1
}
;**delete this section when makaron supports vertical rotation**
IniRead, IsStillVertical, %emupath%NAOMI.ini, Settings, fullscreen
If (IsStillVertical = "1")
{
IniWrite, 0, %emupath%NAOMI.ini, Settings, fullscreen
}
;**delete this section when makaron supports vertical rotation**
;Switching to 90°
Run, %emupath%display.exe /rotate:90
sleep, 100
hideDesktop()
sleep, 500
filecopy, %emupath%NVRAM\%RomName%_NAOMI_NVRAM.bin, %emupath%NAOMI_NVRAM.bin, 1
filecopy, %emupath%JVS\%RomName%_NAOMI_JVS.bin, %emupath%NAOMI_JVS.bin, 1
Run, "%emupath%%executable%" "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
Process, WaitClose, %executable%
;Switching back to 0°
Run, %emupath%display.exe /rotate:0
;**this section only work if you use alt+f4 to close the emu. It will error out makaron but will backup high scores
; sleep, 2000
; filecopy, %emupath%NAOMI_NVRAM.bin, %emupath%NVRAM\%RomName%_NAOMI_NVRAM.bin, 1
; filecopy, %emupath%NAOMI_JVS.bin, %emupath%JVS\%RomName%_NAOMI_JVS.bin, 1
;**this section only work if you use alt+f4 to close the emu. It will error out makaron but will backup high scores
WinActivate, HyperSpin
}
;*************************************Sega Naomi Demul 0.5.6**************************
else if ((systemName = "Sega Naomi" or systemName = "Sega Naomi 2") executable = "demul.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;Blockinput on
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemnane%`n`n"%Long_RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
IniRead, system, %emupath%settings.ini, %RomName%, System,
IniRead, Screen_Timeout, %emupath%settings.ini, %Romname%, Screen_Timeout
IniRead, LoadDecrypted, %emupath%settings.ini, %Romname%, LoadDecrypted
;\\\This section swaps out controls for different game types\\\
demul_controller_code = 16777216
demul_mouse_code = 131072
demul_keyboard_code = 1073741824
demul_lightgun_code = -2147483648
IniRead, controls, %emupath%settings.ini, %RomName%, controls, standard
IniRead, current_device, %emupath%demul.ini, PORTB, device, demul_controller_code
IniRead, current_controls, %emupath%padDemul.ini, CONTROL_TYPE, CONTROL_TYPE, standard
If(controls = "standard" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "sfstyle" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SFSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "ggxstyle" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%GGXSTYLE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "reverse" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%REVERSE_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "driving" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%DRIVING_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "jambodriving" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%JAMBODRIVING_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "wldrider" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%WLDRIDER_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "fps" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%FPS_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "samba" (current_device != demul_controller_code or current_controls != controls))
{
filecopy, %emupath%SAMBA_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_controller_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "lightgun" (current_device != demul_mouse_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_mouse_code%, %emupath%demul.ini, PORTB, device
}
Else if(controls = "keyboard" (current_device != demul_keyboard_code or current_controls != controls))
{
filecopy, %emupath%STANDARD_padDemul.ini, %emupath%padDemul.ini, 1
IniWrite, %demul_keyboard_code%, %emupath%demul.ini, PORTB, device
}
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
if (LoadDecrypted = "false")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
sleep, %Screen_Timeout%
send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winactivate, DEMUL
Process, WaitClose, %executable%
}
else if (LoadDecrypted = "true")
{
Run, %emupath%%executable% -run=%system% -rom=%Romname%
send, {Down 2}
send, {ENTER}
send, {shiftdown}{Tab}{Shiftup}
send, {Enter}
sleep, 2000
clipboard=
clipboard=%A_ScriptDir%\%romName%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
sleep, %Screen_Timeout%
send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 56
Blockinput off
sleep, 1000
Gui Destroy
winwaitactive, DEMUL
Process, WaitClose, %executable%
}
}
En précisant que j'utilise DEMUL.