Advertisement
djvj

Untitled

Jul 20th, 2015
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. MEmu = PPSSPP
  2. MEmuV = v0.9.5
  3. MURL = http://www.ppsspp.org/
  4. MAuthor = djvj
  5. MVersion = 2.0.3
  6. MCRC = B3ADF265
  7. iCRC = 86DE2C7A
  8. MID = 635038268916444338
  9. MSystem = "Sony PSP","Sony PlayStation Minis"
  10. ;----------------------------------------------------------------------------
  11. ; Notes:
  12. ; CLI options: http://forums.ppsspp.org/showthread.php?tid=339&pid=17117#pid17117
  13. ; Compatibility List: http://forums.ppsspp.org/showthread.php?tid=1473
  14. ;----------------------------------------------------------------------------
  15. StartModule()
  16. BezelGUI()
  17. FadeInStart()
  18.  
  19. settingsFile := modulePath . "\" . moduleName . ".ini"
  20. Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
  21. bezelSleep := IniReadCheck(settingsFile, "Settings", "bezelSleep","1500",,1) ; in miliseconds, if you are using the bezel view and your screen does not fit correctly in the bezel, try to increase this value.
  22.  
  23. BezelStart()
  24. 7z(romPath, romName, romExtension, 7zExtractPath)
  25.  
  26. ppssppINI := CheckFile(emuPath . "\memstick\PSP\System\ppsspp.ini")
  27. iniRead, currentFullScreen, %ppssppINI%, Graphics, FullScreen
  28.  
  29. ; Setting Fullscreen setting in ini if it doesn't match what user wants above
  30. If ( Fullscreen != "true" And currentFullScreen = "True" )
  31. IniWrite, False, %ppssppINI%, Graphics, FullScreen
  32. Else If ( Fullscreen = "true" And currentFullScreen = "False" )
  33. IniWrite, True, %ppssppINI%, Graphics, FullScreen
  34.  
  35. Run(executable . " """ . romPath . "\" . romName . romExtension . """", emupath)
  36.  
  37. WinActivate, PPSSPP ahk_class PPSSPPWnd
  38. WinWaitActive("PPSSPP ahk_class PPSSPPWnd")
  39.  
  40. If bezelPath
  41. Sleep, %bezelSleep%
  42.  
  43. BezelDraw()
  44. FadeInExit()
  45. Process("WaitClose", executable)
  46. 7zCleanUp()
  47. BezelExit()
  48. FadeOutExit()
  49. ExitModule()
  50.  
  51.  
  52. RestoreEmu:
  53. If (Fullscreen = "true"){
  54. PostMessage, 0x111, 00154,,,PPSSPP ahk_class PPSSPPWnd ; Toggle Fullscreen
  55. PostMessage, 0x111, 00154,,,PPSSPP ahk_class PPSSPPWnd ; Toggle Fullscreen
  56. }
  57. Return
  58.  
  59. CloseProcess:
  60. FadeOutStart()
  61. WinClose("PPSSPP ahk_class PPSSPPWnd")
  62. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement