Thread: yuzu (Switch Emulator) - Module

Page 3 of 3 FirstFirst 123
Results 41 to 54 of 54
  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
     

  4. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #44
    Senior Member Dime333's Avatar
    MainSecondary
    Join Date
    May 2014
    Posts
    556
    Here's an updated version of the module. It's based on the one mdog1978 posted earlier so a big thank you to anyone that has worked on it before me. The code is not clean or pretty but it does work. I know stuff could have been done better but I'm not so great with AHK and this is how I got it to work. It has all the options that I needed to get my games to work and it also has per game configuration. Here's a screenshot:

    yuzu.png

    Edit: I forgot to mention that this version only works if yuzu is not in portable mode. I guess you could make it work in portable mode by changing this line:

    YuzuIni := new IniFile(A_AppData . "\yuzu\config\qt-config.ini")

    to this:

    YuzuIni := new IniFile(emuPath . "\user\config\qt-config.ini")
    Attached Files Attached Files
    Last edited by Dime333 ; 05-19-2019 at 04:09 PM.
     

  5. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #45
    Junior Member
    MainSecondary
    Join Date
    May 2015
    Posts
    29
    Is anyone else having issues with Yuzu not closing when in fullscreen?

    The fade screen comes up and stays there for me because yuzu is still running fullscreen behind it. If i manually close down RL then push esc, yuzu will go to windowed mode and then i can use ctrl+q to close yuzu.

    Anyone got any ideas??
     

  6. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #46
    Senior Member Dime333's Avatar
    MainSecondary
    Join Date
    May 2014
    Posts
    556
    Quote Originally Posted by Nikeymikey View Post
    Is anyone else having issues with Yuzu not closing when in fullscreen?

    The fade screen comes up and stays there for me because yuzu is still running fullscreen behind it. If i manually close down RL then push esc, yuzu will go to windowed mode and then i can use ctrl+q to close yuzu.

    Anyone got any ideas??
    No clue. Sorry. It closes fine for me. Fullscreen or not.
     

  7. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #47
    Junior Member
    MainSecondary
    Join Date
    May 2015
    Posts
    29
    Quote Originally Posted by Dime333 View Post
    No clue. Sorry. It closes fine for me. Fullscreen or not.
    Can you tell me which version of yuzu you are using please? Im on the latest canary version, i dont know if thats why im having issues. Also i dont suppose you could screen shot your RL yuzu settings pages could you?

    Im tearing my hair out with this and seem to be the only one having the problem
     

  8. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #48
    Senior Member Dime333's Avatar
    MainSecondary
    Join Date
    May 2014
    Posts
    556
    Quote Originally Posted by Nikeymikey View Post
    Can you tell me which version of yuzu you are using please? Im on the latest canary version, i dont know if thats why im having issues. Also i dont suppose you could screen shot your RL yuzu settings pages could you?

    Im tearing my hair out with this and seem to be the only one having the problem
    I'm also on the latest canary version (2323). I update very often and have had no issues with any version. See post 44 for a screenshot of my settings. I cen't reproduce your issue no matter what settings I use. Have you tried without fade? Does anything at all happen then?
     

  9. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #49
    Junior Member
    MainSecondary
    Join Date
    May 2015
    Posts
    29
    Quote Originally Posted by Dime333 View Post
    I'm also on the latest canary version (2323). I update very often and have had no issues with any version. See post 44 for a screenshot of my settings. I cen't reproduce your issue no matter what settings I use. Have you tried without fade? Does anything at all happen then?

    Ive tried without fade and still it doesnt close!!!! Ill take a check on your settings now and see if i can see anything there that stands out.

    EDIT: Those settings are the same as mine... @dime333 Could you screenshot your RL Nintendo Switch platform General Settings screen please??
    Last edited by Nikeymikey ; 05-28-2019 at 06:10 PM.
     

  10. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #50
    Senior Member Dime333's Avatar
    MainSecondary
    Join Date
    May 2014
    Posts
    556
    Quote Originally Posted by Nikeymikey View Post
    Ive tried without fade and still it doesnt close!!!! Ill take a check on your settings now and see if i can see anything there that stands out.

    EDIT: Those settings are the same as mine... @dime333 Could you screenshot your RL Nintendo Switch platform General Settings screen please??
    Sure. I'll try to remember to do that tonight. Could you just make a quick test and disable fade and just set the exit emulator key in RL to just a simple keypress. Q for example. Does that make your pc do anything or does it behave as if you didn't do anything at all when trying to exit yuzu? Is there any difference if yuzu is in fullscreen or not when you try to do that?
     

  11. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #51
    Senior Member tonesmalone's Avatar
    MainSecondary
    Join Date
    Jun 2014
    Posts
    724
    The issue isnít any of these things. Itís a module / emulator version mismatch. Settings in RLUI will not impact closing the emulator.


    Sent from my iPhone using Tapatalk Pro
     

  12. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #52
    Junior Member
    MainSecondary
    Join Date
    May 2015
    Posts
    29
    Quote Originally Posted by tonesmalone View Post
    The issue isn’t any of these things. It’s a module / emulator version mismatch. Settings in RLUI will not impact closing the emulator.


    Sent from my iPhone using Tapatalk Pro
    Nope, just tracked down the old version from March that is stated in the module, still the same issue. Made no difference whatsoever. However it seems that maybe i am not the only one with this issue, some peeps earlier in the thread reported the same thing.

    Ive tried every version of the module in this thread, various versions of yuzu, its the same resut every time. Fade screen stays put and yuzu continues to run fullscreen behind it.

    EDIT: I FIXED IT!!!! By removing the following section from the module it now closes, messy but it works!!

    ; 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")
    }


    Ill stick with it until one of you AHK wizards works out why it closes without issues for some and not for others
    Last edited by Nikeymikey ; 05-29-2019 at 06:14 PM.
     

  13. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #53
    Senior Member Dime333's Avatar
    MainSecondary
    Join Date
    May 2014
    Posts
    556
    Quote Originally Posted by Nikeymikey View Post
    Nope, just tracked down the old version from March that is stated in the module, still the same issue. Made no difference whatsoever. However it seems that maybe i am not the only one with this issue, some peeps earlier in the thread reported the same thing.

    Ive tried every version of the module in this thread, various versions of yuzu, its the same resut every time. Fade screen stays put and yuzu continues to run fullscreen behind it.

    EDIT: I FIXED IT!!!! By removing the following section from the module it now closes, messy but it works!!

    ; 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")
    }


    Ill stick with it until one of you AHK wizards works out why it closes without issues for some and not for others
    That's great. Very strange, but great
     

  14. Collapse Details
    Re: yuzu (Switch Emulator) - Module 
    #54
    Senior Member Dime333's Avatar
    MainSecondary
    Join Date
    May 2014
    Posts
    556
    Here's a new version of the module. It has the option to disable disk shader cache.
    Attached Files Attached Files
     

Posting Permissions

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