mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 15:39:02 -05:00 
			
		
		
		
	Merge pull request #2032 from bunnei/qt-graphics
Qt graphics configure & V-Sync option
This commit is contained in:
		| @@ -72,6 +72,7 @@ struct Values { | ||||
|     bool use_hw_renderer; | ||||
|     bool use_shader_jit; | ||||
|     bool use_scaled_resolution; | ||||
|     bool use_vsync; | ||||
|  | ||||
|     float bg_red; | ||||
|     float bg_green; | ||||
|   | ||||
| @@ -17,6 +17,8 @@ | ||||
|  | ||||
| namespace System { | ||||
|  | ||||
| static bool is_powered_on{ false }; | ||||
|  | ||||
| Result Init(EmuWindow* emu_window) { | ||||
|     Core::Init(); | ||||
|     CoreTiming::Init(); | ||||
| @@ -30,9 +32,15 @@ Result Init(EmuWindow* emu_window) { | ||||
|     AudioCore::Init(); | ||||
|     GDBStub::Init(); | ||||
|  | ||||
|     is_powered_on = true; | ||||
|  | ||||
|     return Result::Success; | ||||
| } | ||||
|  | ||||
| bool IsPoweredOn() { | ||||
|     return is_powered_on; | ||||
| } | ||||
|  | ||||
| void Shutdown() { | ||||
|     GDBStub::Shutdown(); | ||||
|     AudioCore::Shutdown(); | ||||
| @@ -42,6 +50,8 @@ void Shutdown() { | ||||
|     HW::Shutdown(); | ||||
|     CoreTiming::Shutdown(); | ||||
|     Core::Shutdown(); | ||||
|  | ||||
|     is_powered_on = false; | ||||
| } | ||||
|  | ||||
| } // namespace | ||||
|   | ||||
| @@ -16,6 +16,7 @@ enum class Result { | ||||
| }; | ||||
|  | ||||
| Result Init(EmuWindow* emu_window); | ||||
| bool IsPoweredOn(); | ||||
| void Shutdown(); | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bunnei
					bunnei