pastebin - collaborative debugging tool
rovema.kpaste.net RSS

Difference between
modified post 9b662306 by Anonymous on Thu 23rd Sep 2021 12:16
original post f9cae1 by Anonymous on Wed 22nd Sep 2021 15:53
Download diff
Show old version | new version | both versions

    
11
Index: Rds/CoRds/FormatListExport.cpp
22
===================================================================
33
--- Rds/CoRds/FormatListExport.cpp	(revision 9291)
44
+++ Rds/CoRds/FormatListExport.cpp	(working copy)
5-
@@ -144,8 +144,29 @@
5+
@@ -144,8 +144,32 @@
66
                                                   formatListsDirectoryLocation );
77
88
         const auto* formatListDirParent = formatListsDir->getParent();
99
-        const auto path = formatListDirParent? formatListDirParent->getNodePath( &rds ) : "";
1010
+        auto path = formatListDirParent? formatListDirParent->getNodePath( &rds ) : "";
1111
1312
+	T_NodeID flttid1 = 0;
1413
+	rds.nodeExists(formatListsDirectoryLocation, "FormatListTitleTextID1", flttid1, 0);
1514
+	if (flttid1 != 0)
1615
+	{
1716
+		T_Bool	success = false;
1817
+		T_Int32	path_textid;
1918
+		std::string path_textid_str;
2019
+
2120
+		rds.getInt32(flttid1, NULL, success, path_textid, nullptr);
2221
+		if (success)
2322
+		{
2423
+			path_textid_str = langResolver.getText(path_textid);
2524
+			path = path_textid_str;
2625
+		}
2726
+		else
2827
+		{
29-
+			std::cerr << "getFormatLists(flttid1=" << flttid1 << ", NULL, success=" << success << ", path_textid=" << path_textid << "): rds.getInt32() failed." <<std::endl;
28+
+			std::cerr << "getFormatLists("
29+
+				"flttid1=" << flttid1 <<
3033
+		}
3134
+	}
32-
+#endif
35+
+
3336
         if( !formatListsDir->isDirectory() )
3437
             continue;
3538
3639
Index: Rds/CoRds/LanguageResolver.h
3740
===================================================================
3841
--- Rds/CoRds/LanguageResolver.h	(revision 9291)
3942
+++ Rds/CoRds/LanguageResolver.h	(working copy)
40-
@@ -66,6 +66,20 @@
43+
@@ -60,12 +60,26 @@
4244
     }
45+
             catch( const std::exception& ex )
4353
4454
+    std::string getText( const T_Int32 textIdNumeric ) const
4555
+    {
4656
+	try
4757
+	{
4858
+		return m_textSource->getText(textIdNumeric, m_currentLangCode.c_str());
4959
+	}
5060
+	catch( const std::exception& ex )
5161
+	{
52-
+		std::cerr << "Unable to convert textIdNumeric '" << textIdNumeric << "': " << ex.what() << std::endl;
62+
+		std::cerr << __func__ << ": Unable to convert textIdNumeric " << textIdNumeric << ": " << ex.what() << std::endl;
5363
+	}
5464
+
55-
+	return std::string("not found");
65+
+	return(C_Language::defaultText);
5666
+    }
5767
+
5868
     const std::string getLangugeCode()
5969
     {
6070
         if( ! m_currentLangCode.empty())
6171

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at