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:
parent
889299eca6
commit
2b2a2eb440
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue