1
0
mirror of https://github.com/areteruhiro/LIME-beta-hiro.git synced 2025-02-05 21:11:39 +09:00

既読者機能の差し戻し

This commit is contained in:
areteruhiro 2025-02-03 19:55:58 +09:00
parent 62dd2bb1e6
commit 8e0d69bdfe

View File

@ -77,10 +77,11 @@ public class RingTone implements IHook {
ringtoneDir.mkdirs(); // ディレクトリが存在しない場合は作成
}
File destFileA = new File(ringtoneDir, resourceNameA + ".wav");
int resourceIdA = moduleContext.getResources().getIdentifier(resourceName, "raw", "io.github.hiro.lime");
// リソースをストリームとして読み込みファイルに書き込む
if (!destFileA.exists()) {
try (InputStream in = moduleContext.getResources().openRawResource(resourceId);
try (InputStream in = moduleContext.getResources().openRawResource(resourceIdA);
OutputStream out = new FileOutputStream(destFileA)) {
byte[] buffer = new byte[1024];
int length;