ソースを参照

path
fast: skip get datetime

HOME 4 年 前
コミット
6d4a690eee

+ 2 - 1
SongBrowserPlugin/DataAccess/SongBrowserModel.cs

@@ -130,7 +130,8 @@ namespace SongBrowser
                 // SongLoader should filter duplicates but in case of failure we don't want to crash
                 if (!_cachedLastWriteTimes.ContainsKey(level.Value.levelID) || customSongDirChanged)
                 {
-                    double lastWriteTime = GetSongUserDate(level.Value);
+                    //TODO: Too slow here, try use parallel and Win32 API for fast
+                    double lastWriteTime = 0; //GetSongUserDate(level.Value); 
                     _cachedLastWriteTimes[level.Value.levelID] = lastWriteTime;
                 }
             }

+ 1 - 3
SongBrowserPlugin/SongBrowser.csproj

@@ -7,9 +7,7 @@
         <Nullable>enable</Nullable>
         <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
         <RootNamespace>SongBrowser</RootNamespace>
-        <LocalRefsDir Condition="Exists('..\Refs')">..\Refs</LocalRefsDir>
-        <BeatSaberDir>$(LocalRefsDir)</BeatSaberDir>
-        <AppOutputBase>$(MSBuildProjectDirectory)\</AppOutputBase>
+	    <AppOutputBase>$(MSBuildProjectDirectory)\</AppOutputBase>
     </PropertyGroup>
 
     <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">