mirror of
https://github.com/areteruhiro/LIME-beta-hiro.git
synced 2025-02-05 21:11:39 +09:00
既読者機能の差し戻し
This commit is contained in:
parent
62dd2bb1e6
commit
8e0d69bdfe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user