shithub: cstory

Download patch

ref: 5d970e860c14bf4081ec93eb181d60f24c7b6cc3
parent: 35d3d20d44734c64e97996e9f9027accfebce89f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Oct 15 10:28:46 EDT 2020

Cleanup

--- a/src/Backends/Audio/3DS.cpp
+++ b/src/Backends/Audio/3DS.cpp
@@ -37,14 +37,14 @@
 
 static LightLock organya_mutex;
 
-static Thread audio_thread;
-static bool audio_thread_die;
+static Thread organya_thread;
+static bool organya_thread_die;
 
 static void OrganyaThread(void *user_data)
 {
 	(void)user_data;
 
-	while (!audio_thread_die)
+	while (!organya_thread_die)
 	{
 		LightLock_Lock(&organya_mutex);
 
@@ -105,8 +105,8 @@
 
 	priority = CLAMP(priority - 1, 0x18, 0x3F);
 
-	audio_thread_die = false;
-	audio_thread = threadCreate(OrganyaThread, NULL, 32 * 1024, priority, -1, false);
+	organya_thread_die = false;
+	organya_thread = threadCreate(OrganyaThread, NULL, 32 * 1024, priority, -1, false);
 
 	return true;
 }
@@ -113,9 +113,9 @@
 
 void AudioBackend_Deinit(void)
 {
-	audio_thread_die = true;
-	threadJoin(audio_thread, UINT64_MAX);
-	threadFree(audio_thread);
+	organya_thread_die = true;
+	threadJoin(organya_thread, UINT64_MAX);
+	threadFree(organya_thread);
 
 	ndspExit();
 }