1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 11:26:11 +00:00

Fix fwrite call

This commit is contained in:
jugeeya 2020-06-15 15:27:41 -07:00 committed by GitHub
parent 889299eca6
commit 2b2a2eb440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ mod training;
use crate::common::*;
use skyline::libc::{fclose, fopen, fwrite, mkdir, remove, access};
use skyline::libc::{c_void, fclose, fopen, fwrite, mkdir, remove, access};
use skyline::nro::{self, NroInfo};
fn nro_main(nro: &NroInfo<'_>) {
@ -55,7 +55,7 @@ pub fn main() {
);
if !f.is_null() {
fwrite(c_str!(buffer), 1, buffer.len(), f);
fwrite(c_str!(buffer) as *const c_void, 1, buffer.len(), f);
fclose(f);
}
}