Browse code

Updating in_2sf to use a newish version of DeSmuME, 0.9.9 from SVN. Somewhat cleaned up as well, but not everything because it's a pain in the ass.

Naram Qashat authored on 2013/04/18 17:22:55
Showing 1 changed files
... ...
@@ -15,44 +15,8 @@
15 15
 	along with the this software.  If not, see <http://www.gnu.org/licenses/>.
16 16
 */
17 17
 
18
-//#include <string>
19
-
20 18
 #include "slot1.h"
21 19
 
22
-//extern SLOT1INTERFACE slot1None;
23 20
 extern SLOT1INTERFACE slot1Retail;
24
-//extern SLOT1INTERFACE slot1R4;
25
-
26
-SLOT1INTERFACE slot1List[NDS_SLOT1_COUNT] = {
27
-		//slot1None,
28
-		slot1Retail,
29
-		//slot1R4
30
-};
31
-
32
-SLOT1INTERFACE	slot1_device = slot1Retail;			//default for frontends that dont even configure this
33
-//uint8_t				slot1_device_type = NDS_SLOT1_RETAIL;
34
-
35
-/*bool slot1Init()
36
-{
37
-	return slot1_device.init();
38
-}*/
39
-
40
-/*void slot1Close()
41
-{
42
-	slot1_device.close();
43
-}*/
44
-
45
-/*void slot1Reset()
46
-{
47
-	slot1_device.reset();
48
-}*/
49 21
 
50
-/*bool slot1Change(NDS_SLOT1_TYPE changeToType)
51
-{
52
-	printf("slot1Change to: %d\n", changeToType);
53
-	if (changeToType > NDS_SLOT1_COUNT || changeToType < 0) return false;
54
-	slot1_device.close();
55
-	slot1_device_type = changeToType;
56
-	slot1_device = slot1List[slot1_device_type];
57
-	return slot1_device.init();
58
-}*/
22
+SLOT1INTERFACE slot1_device = slot1Retail; // default for frontends that dont even configure this
Browse code

Import actual code.

Naram Qashat authored on 2013/03/26 02:41:19
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
1
+/*
2
+	Copyright (C) 2010-2011 DeSmuME team
3
+
4
+	This file is free software: you can redistribute it and/or modify
5
+	it under the terms of the GNU General Public License as published by
6
+	the Free Software Foundation, either version 2 of the License, or
7
+	(at your option) any later version.
8
+
9
+	This file is distributed in the hope that it will be useful,
10
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+	GNU General Public License for more details.
13
+
14
+	You should have received a copy of the GNU General Public License
15
+	along with the this software.  If not, see <http://www.gnu.org/licenses/>.
16
+*/
17
+
18
+//#include <string>
19
+
20
+#include "slot1.h"
21
+
22
+//extern SLOT1INTERFACE slot1None;
23
+extern SLOT1INTERFACE slot1Retail;
24
+//extern SLOT1INTERFACE slot1R4;
25
+
26
+SLOT1INTERFACE slot1List[NDS_SLOT1_COUNT] = {
27
+		//slot1None,
28
+		slot1Retail,
29
+		//slot1R4
30
+};
31
+
32
+SLOT1INTERFACE	slot1_device = slot1Retail;			//default for frontends that dont even configure this
33
+//uint8_t				slot1_device_type = NDS_SLOT1_RETAIL;
34
+
35
+/*bool slot1Init()
36
+{
37
+	return slot1_device.init();
38
+}*/
39
+
40
+/*void slot1Close()
41
+{
42
+	slot1_device.close();
43
+}*/
44
+
45
+/*void slot1Reset()
46
+{
47
+	slot1_device.reset();
48
+}*/
49
+
50
+/*bool slot1Change(NDS_SLOT1_TYPE changeToType)
51
+{
52
+	printf("slot1Change to: %d\n", changeToType);
53
+	if (changeToType > NDS_SLOT1_COUNT || changeToType < 0) return false;
54
+	slot1_device.close();
55
+	slot1_device_type = changeToType;
56
+	slot1_device = slot1List[slot1_device_type];
57
+	return slot1_device.init();
58
+}*/