Thread: yuzu (Switch Emulator) - Module

Page 3 of 3 FirstFirst 123
Results 41 to 43 of 43
  1. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #41
    Member
    MainSecondary
    Join Date
    Jul 2015
    Posts
    55
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site
    Quote Originally Posted by gamesmame View Post
    I dont find the attachment... please make a upload or make a code here, your attachment dont appears here
    Attached Files Attached Files
     

  2. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #42
    Member
    MainSecondary
    Join Date
    Aug 2014
    Posts
    63
    I dont know Why i dont can make download "Attached Files" :-P please create a RAW CODE here and i make a copy and i put in my arquive... thx
     

  3. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #43
    Member
    MainSecondary
    Join Date
    Jul 2015
    Posts
    55
    Code:
    MEmu := "yuzu"
    MEmuV := "20180203-1a8f5bf"
    MURL := ["https://github.com/yuzu-emu/yuzu"]
    MAuthor := ["djvj","bleasby","tonesmalone"]
    MVersion := "1.0"
    MCRC := ""
    iCRC := ""
    MID := ""
    MSystem := ["Nintendo Switch"]
    ;----------------------------------------------------------------------------
    ; Notes:
    ; GitHub: https://github.com/yuzu-emu/yuzu
    ; 
    ; Set the emulator exe to 'yuzu.exe'
    ; Use 'nso' extension for homebrew roms
    ;----------------------------------------------------------------------------
    StartModule()
    BezelGUI()
    FadeInStart()
    
    primaryExe := new Emulator(emuPath . "\" . executable)					; instantiate emulator executable object
    primaryWindowClassName := "Qt5QWindowIcon"
    emuPrimaryWindow := new Window(new WindowTitle("yuzu",primaryWindowClassName))	; instantiate primary emulator window object
    emuConsoleWindow := new Window(new WindowTitle(,"ConsoleWindowClass"))
    
    Fullscreen := moduleIni.Read("Settings", "Fullscreen","true",,1)
    
    YuzuIni := new IniFile(emuPath . "\user\config\qt-config.ini")
    YuzuIni.CheckFile("Could not find Yuzu's ini file. Please run Yuzu manually first and make sure that you use the module recommended emulator version.")
    
    ; Disabling the emu exit confirmation
    confirmClose := YuzuIni.Read("UI", "confirmClose")
    If (confirmClose = "true")
    	YuzuIni.Write("false", "UI", "confirmClose")
    
    ; Setting the game to launch on one window. 
    singleWindowMode := YuzuIni.Read("UI", "singleWindowMode")
    If (singleWindowMode = "false")
    	YuzuIni.Write("true", "UI", "singleWindowMode")
    YuzuIni.Write("true", "UI", "fullscreen")
    	
    BezelStart()
    
    hideEmuObj := Object(emuConsoleWindow,0,emuPrimaryWindow,1)
    
    7z(romPath, romName, romExtension, SevenZExtractPath)
    
    HideAppStart(hideEmuObj,hideEmu)
    primaryExe.Run("""" . romPath . "\" . romName . romExtension . """")
    
    ; Waiting for main emu window
    emuPrimaryWindow.Wait()
    emuPrimaryWindow.WaitActive()
    
    ; Hiding yuzu console window
    emuConsoleWindow.Set("Transparent",0)
    
    ; Waiting for game to load
    TimeOut := 3000
    StartTime := A_TickCount
    Loop, {
    	WinGet, IDList, List, ahk_class %primaryWindowClassName% ; get a list of all windows which match this windowTitle
    	Loop, % IDList ; IDList set to number of matches found
    	{	id := IDList%A_Index%
    		ControlGet, OutputVar, Hwnd,, Qt5QWindowOwnDCIcon1, ahk_id %id%
    		If !ErrorLevel
    		{	gameWindowID := id
    			Break
    		}
    	}
    	If (TimeOut && A_TickCount - StartTime > TimeOut)
    		Break
    }
    ; Saving id of extra emulator window to be hidden
    WinGet, IDList, List, ahk_class %primaryWindowClassName% ; Get a list of all windows which match this windowTitle
    Loop, % IDList ; IDList set to number of matches found
    {	id := IDList%A_Index%
    	If !(id = gameWindowID) {
    		launchWindowID := id
    		launchWindow := new Window(new WindowTitle(,,,launchWindowID))
    		Break
    	}
    }
    
    ; Hiding extra emulator window
    If (launchWindowID)  {
    	launchWindow.Hide()
    }
    
    ; Waiting for game window to be active if it is not
    gameWindow := new Window(new WindowTitle(,,,gameWindowID))
    gameWindow.WaitActive()
    
    
    
    BezelDraw()
    HideAppEnd(hideEmuObj,hideEmu)
    FadeInExit()
    primaryExe.Process("WaitClose")
    7zCleanUp()
    BezelExit()
    FadeOutExit()
    ExitModule()
    
    CloseProcess:
    	FadeOutStart()
    	If (launchWindowID)
    		launchWindow.Close()
    	Else
    		gameWindow.Close()
    Return
    
    BezelLabel:
    	disableHideBorder := "true"
    	disableHideTitleBar := "true"
    	disableHideToggleMenu := "true"
    Return
     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •