Anonymous avatar Anonymous committed 8850625

- fixed config path for windows.

Comments (0)

Files changed (4)

 - create debian package
 
 Feature Requests:
+- use treeview as alternative to notebook tabs.
 - show highlight notifications in tray (DevGet)
 - whois in userlist context menu (DevGet)
 - multiple server pages (Zhila)

src/Engine/AssemblyInfo.cs

  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
+using System;
 using System.Reflection;
 using System.Runtime.CompilerServices;
 
 // change them to the information which is associated with the assembly
 // you compile.
 
+[assembly: CLSCompliant(true)]
+[assembly: ComVisible(false)]
+
 [assembly: AssemblyTitle("smuxi - engine")]
 [assembly: AssemblyDescription("Smart MUltipleXed Irc")]
 [assembly: AssemblyConfiguration("")]

src/Engine/Config.cs

         public Config()
         {
 #if CONFIG_NINI
-            _ConfigPath = Path.Combine(Environment.GetEnvironmentVariable("HOME"),
-                ".config/smuxi");
+            _ConfigPath = Path.Combine(Environment.GetFolderPath(
+                Environment.SpecialFolder.ApplicationData), "smuxi");
+            
             if (!Directory.Exists(_ConfigPath)) {
                 Directory.CreateDirectory(_ConfigPath);
             }
             
-            _IniFilename = _ConfigPath+"/smuxi-engine.ini";
+            _IniFilename = Path.Combine(_ConfigPath, "smuxi-engine.ini");
             if (!File.Exists(_IniFilename)) {
 #if LOG4NET
                 Logger.Config.Debug("creating file: "+_IniFilename);
 #endif
         }
         
+#elif CONFIG_NINI
         private object _Parse(string data)
         {
-#if CONFIG_GCONF
-            return data;
-#elif CONFIG_NINI
             // since INI files are plain text, all data will be string,
             // must convert here when possible (via guessing)
-            object obj = data;
             try {
-                int number = Int32.Parse((string)obj);
+                int number = Int32.Parse(data);
                 return number;
             } catch (FormatException) {
             }
 
             try {
-                bool boolean = Boolean.Parse((string)obj);
+                bool boolean = Boolean.Parse(data);
                 return boolean;
             } catch (FormatException) {
             }
 
             // no convert worked, let's leave it as string
-            return obj;
-#endif
+            return data;
         }
         
 #if CONFIG_NINI

src/Engine/UserConfig.cs

  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
+using System;
+
 namespace Meebey.Smuxi.Engine
 {
     public class UserConfig : PermanentRemoteObject
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.