Skip to content

Commit

Permalink
update videos
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolka9144 committed Nov 11, 2024
1 parent d5dbab1 commit 9c8ff4f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
7 changes: 4 additions & 3 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@
<define name="LUA_ALLOWED" if="desktop" />
<define name="ACHIEVEMENTS_ALLOWED" />
<define name="VIDEOS_ALLOWED" if="desktop" unless="32bits"/>
<define name="PSYCH_WATERMARKS"/> <!-- DELETE THIS TO REMOVE WATERMARKS/DEV NAMES ON TITLE SCREEN -->

<define name="TITLE_SCREEN_EASTER_EGG" if="officialBuild"/> <!-- DELETE THE if="officialBuild" for enabling this on an unofficial build -->
<define name="CHECK_FOR_UPDATES" if="desktop"/>

<define name="CRASH_HANDLER" if="desktop" unless="debug" />

<!-- <define name="ALLOW_BENCHMARKING"/> -->
Expand All @@ -62,8 +64,7 @@
<assets path="assets/secrets" rename="assets" exclude="*.mp3" unless="web"/>
</section>

<!-- DONT ENABLE THIS -->
<define name="CHECK_FOR_UPDATES" if="desktop officialBuild"/>


<!-- <define name="PRELOAD_ALL" /> -->
<define name="PRELOAD_ALL" unless="web" />
Expand Down
Binary file not shown.
Binary file removed assets/preload/videos/commercials/erectSamplers.mp4
Binary file not shown.
Binary file modified assets/preload/videos/commercials/kickstarterTrailer.mp4
Binary file not shown.
6 changes: 1 addition & 5 deletions source/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,7 @@ class Paths
public static function readDirectory(directory:String):Array<String>
{
#if MODS_ALLOWED
var dirs:Array<String> = [];
for(dir in FileSystem.readDirectory(directory)){
dirs.push(directory+"/"+dir);
}
return dirs;
return FileSystem.readDirectory(directory);
#else
var dirs:Array<String> = [];
for(dir in Assets.list().filter(folder -> folder.startsWith(directory)))
Expand Down
9 changes: 7 additions & 2 deletions source/mikolka/vslice/freeplay/pslice/BPMCache.hx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ class BPMCache {
return 0;
}
var chartFiles = Paths.readDirectory(sngDataPath);
#if MODS_ALLOWED
chartFiles = chartFiles.filter(s -> s.toLowerCase().startsWith(fileSngName) && s.endsWith(".json"));
var chosenChartToScrap = sngDataPath+"/"+chartFiles[0];
#else
var regexSongName = fileSngName.replace("(","\\(").replace(")","\\)");
chartFiles = chartFiles.filter(s -> new EReg('\\/$regexSongName\\/$regexSongName.*\\.json',"").match(s));
//s.toLowerCase().startsWith(fileSngName) && s.endsWith(".json"));

var chosenChartToScrap = chartFiles[0];
#end



if(exists(chosenChartToScrap)){
var bpmFinder = ~/"bpm": *([0-9]+)/g; //TODO fix this regex
Expand Down

0 comments on commit 9c8ff4f

Please sign in to comment.