-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathps1_forwarder_creator.ahk
49 lines (46 loc) · 1.4 KB
/
ps1_forwarder_creator.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoTrayIcon
#SingleInstance off
system = ps1
versionfile := FileOpen("tools\assets_" system "\version", "r")
coreversion := Format("{:x}",versionfile.ReadUInt())
versionfile.Seek(0x10)
ps1seek := versionfile.ReadUInt()
versionfile.Close()
Version = 1.7.8
bios = psxonpsp660.bin|scph101.bin|scph5501.bin|scph7001.bin|scph1001.bin
bios_name = PS1 Bios
system_name = PS1
system_pc = PS1
publisher_name = Sony
rom_ext := "pbp,chd"
sound = tools\assets_%system%\ps1.wav
banner_size = 170x128
remapping = 0
showcoreoptions = 1
#Include rarch3ds_forwarder_creator_gui.ahk
#Include rarch3ds_forwarder_creator_functions.ahk
; #Include ps1_forwarder_creator_db.ahk
checkromdependency()
{
global romdir
global romname
global fileext
If FileExist(romdir "\" romname ".sbi")
Return, "Single"
If fileext = pbp
{
pbp := FileOpen(romdir "\" romname "." fileext, "r", "UTF-8")
pbp.Seek(0x10000)
multidisc := pbp.Read(10)
If (FileExist(romdir "\" romname "_1.sbi") && multidisc = "PSTITLEIMG")
Return, "Multi"
}
}
cps1or2()
{
Return
}