From: <chr...@us...> - 2007-11-08 09:54:39
|
Revision: 1036 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1036&view=rev Author: chreekar Date: 2007-11-08 01:54:38 -0800 (Thu, 08 Nov 2007) Log Message: ----------- Removed the if(!File.exists(dbfile))File.create(dbfile), I think it was preventing SQLite from opening the DB the first time it was run Modified Paths: -------------- trunk/plugins/MyEmulators/myEmulators/DB.cs trunk/plugins/MyEmulators/output.rar Modified: trunk/plugins/MyEmulators/myEmulators/DB.cs =================================================================== --- trunk/plugins/MyEmulators/myEmulators/DB.cs 2007-11-07 18:51:29 UTC (rev 1035) +++ trunk/plugins/MyEmulators/myEmulators/DB.cs 2007-11-08 09:54:38 UTC (rev 1036) @@ -38,13 +38,7 @@ public static void launch() { - //String path = System.Reflection.Assembly.GetExecutingAssembly().Location; - //path = new FileInfo(path).Directory.Parent.Parent.FullName + @"\database\" + dbName; - String path = Options.getMainFolder() + @"\database\" + dbName; - if (!File.Exists(path)) - { - File.Create(path); - } + String path = Options.getMainFolder() + @"\database\" + dbName; sqlDB = new SQLiteClient(path); createDBs(); try Modified: trunk/plugins/MyEmulators/output.rar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |