global game scripts (charts/)

This commit is contained in:
Yoshman29
2022-11-12 02:26:58 +01:00
parent 8cbd09111c
commit 7b3eff8dd2
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
1281
1283
+8 -5
View File
@@ -285,11 +285,14 @@ class PlayState extends MusicBeatState
// case "":
// ADD YOUR HARDCODED SCRIPTS HERE!
default:
var content = Paths.getFolderContent('data/charts/${SONG.song}/', false, true, !fromMods);
for(file in content) {
var ext = Path.extension(file).toLowerCase();
if (Script.scriptExtensions.contains(ext)) {
scripts.add(Script.create(file));
for(content in [
Paths.getFolderContent('data/charts/${SONG.song}/', false, true, !fromMods),
Paths.getFolderContent('data/charts/', false, true, !fromMods)]) {
for(file in content) {
var ext = Path.extension(file).toLowerCase();
if (Script.scriptExtensions.contains(ext)) {
scripts.add(Script.create(file));
}
}
}
}
-1
View File
@@ -104,7 +104,6 @@ class AudioFixClient : public IMMNotificationClient {
EDataFlow flow, ERole role,
LPCWSTR pwstrDeviceId)
{
std::cout << "fuck";
::funkin::_hx_system::Main_obj::audioDisconnected = true;
return S_OK;
};