Browse code

Cleanup a few comments and strings.

Naram Qashat authored on 2021/03/20 20:25:12
Showing 8 changed files
... ...
@@ -211,7 +211,7 @@ bool XSFPlayer_2SF::Load()
211 211
 	if (NDS_Init())
212 212
 		return false;
213 213
 
214
-	static const int BUFFERSIZE = DESMUME_SAMPLE_RATE / 59.837; //truncates to 737, the traditional value, for 44100
214
+	static const int BUFFERSIZE = DESMUME_SAMPLE_RATE / 59.837; // truncates to 737, the traditional value, for 44100
215 215
 	SPU_ChangeSoundCore(SNDIFID_2SF, BUFFERSIZE);
216 216
 
217 217
 	execute = false;
... ...
@@ -13,9 +13,6 @@
13 13
 #include "INFOEntry.h"
14 14
 #include "common.h"
15 15
 
16
-/*
17
- * The size has been left out of this structure as it is unused by this player.
18
- */
19 16
 struct SWAR
20 17
 {
21 18
 	std::string filename;
... ...
@@ -20,9 +20,6 @@ struct SYMBRecord
20 20
 	void Read(PseudoFile &file, uint32_t startOffset);
21 21
 };
22 22
 
23
-/*
24
- * The size has been left out of this structure as it is unused by this player.
25
- */
26 23
 struct SYMBSection
27 24
 {
28 25
 	SYMBRecord SEQrecord;
... ...
@@ -17,7 +17,6 @@
17 17
 /*
18 18
  * Pseudo-file data structure
19 19
  */
20
-
21 20
 struct PseudoFile
22 21
 {
23 22
 	std::vector<uint8_t> *data;
... ...
@@ -90,8 +89,8 @@ template<typename T> inline T ReadLE(const uint8_t *arr)
90 89
 }
91 90
 
92 91
 /*
93
- * The following function is used to convert an integer into a hexidecimal
94
- * string, the length being determined by the size of the integer.  8-bit
92
+ * The following function is used to convert an integer into a hexadecimal
93
+ * string, the length being determined by the size of the integer. 8-bit
95 94
  * integers are in the format of 0x00, 16-bit integers are in the format of
96 95
  * 0x0000, and so on.
97 96
  */
... ...
@@ -313,7 +313,7 @@ void DialogTemplate::AutoSize()
313 313
 		if (valid && control->controlType == GROUP_CONTROL)
314 314
 		{
315 315
 			dynamic_cast<DialogGroup *>(control.get())->CalculatePositions(false);
316
-			// Techically step 2, but calculate the size of the group
316
+			// Technically step 2, but calculate the size of the group
317 317
 			dynamic_cast<DialogGroup *>(control.get())->CalculateSize();
318 318
 			if (control->rect.size.width > maxGroupWidth)
319 319
 				maxGroupWidth = control->rect.size.width;
... ...
@@ -155,8 +155,8 @@ void XSFConfig::GenerateDialogs()
155 155
 		WithRelativePositionToParent(RelativePosition::FROM_TOPLEFT, Point<short>(6, 11)).IsLeftJustified());
156 156
 	this->configDialog.AddEditBoxControl(DialogEditBoxBuilder().WithSize(150, 14).InGroup(L"Title Format").WithRelativePositionToSibling(RelativePosition::FROM_BOTTOMLEFT, Point<short>(0, 4)).IsLeftJustified().
157 157
 		WithAutoHScroll().WithBorder().WithTabStop().WithID(idTitleFormat));
158
-	this->configDialog.AddLabelControl(DialogLabelBuilder(L"Names between percent symbols (e.g. %game%, %title%) will be replaced with the respective value from the file's tags.  Using square brackets around any "
159
-			L"items will cause them to only be displayed if there was a replacement done (e.g. [%disc%.] will display 01. if disc was in the tags as 01, but will display nothing if disc was not in the tags).  Square "
158
+	this->configDialog.AddLabelControl(DialogLabelBuilder(L"Names between percent symbols (e.g. %game%, %title%) will be replaced with the respective value from the file's tags. Using square brackets around any "
159
+			L"items will cause them to only be displayed if there was a replacement done (e.g. [%disc%.] will display 01. if disc was in the tags as 01, but will display nothing if disc was not in the tags). Square "
160 160
 			L"bracket blocks can be nested.").WithSize(150, 72).InGroup(L"Title Format").WithRelativePositionToSibling(RelativePosition::FROM_BOTTOMLEFT, Point<short>(0, 4)).IsLeftJustified());
161 161
 
162 162
 	this->GenerateSpecificDialogs();
... ...
@@ -32,7 +32,7 @@ protected:
32 32
 	XSFPlayer();
33 33
 	XSFPlayer(const XSFPlayer &xSFPLayer);
34 34
 public:
35
-	// These are not defined in XSFPlayer.cpp, they should be defined in your own player's source.  The Create functions should return a pointer to your player's class.
35
+	// These are not defined in XSFPlayer.cpp, they should be defined in your own player's source. The Create functions should return a pointer to your player's class.
36 36
 	static const char *WinampDescription;
37 37
 	static const char *WinampExts;
38 38
 	static XSFPlayer *Create(const std::string &fn);
... ...
@@ -14,14 +14,14 @@
14 14
 #include <cmath>
15 15
 #include "windowsh_wrapper.h"
16 16
 
17
- /*
18
-  * Originally the convert* functions came from the C++ FAQ, Miscellaneous Technical Issues:
19
-  * https://isocpp.org/wiki/faq/misc-technical-issues#convert-string-to-any
20
-  *
21
-  * They have been replaced with a couple functions that use the C++11 std::enable_if
22
-  * construct along with various other type traits constructs to use the proper
23
-  * string conversions.
24
-  */
17
+/*
18
+ * Originally the convert* functions came from the C++ FAQ, Miscellaneous Technical Issues:
19
+ * https://isocpp.org/wiki/faq/misc-technical-issues#convert-string-to-any
20
+ *
21
+ * They have been replaced with a couple functions that use the C++11 std::enable_if
22
+ * construct along with various other type traits constructs to use the proper
23
+ * string conversions.
24
+ */
25 25
 template<typename T, typename S> inline typename std::enable_if_t<!std::is_enum_v<T> &&std::is_arithmetic_v<T>, T> convertTo(const std::basic_string<S> &s)
26 26
 {
27 27
 	if (std::is_integral_v<T>)