Skip to content

Commit

Permalink
hoshino: A couple fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
entriphy committed Jul 18, 2024
1 parent 9243809 commit 1331d01
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set_target_properties(PS2_CRT0 PROPERTIES OUTPUT_NAME "crt0.o")
set(EXECUTABLES)

# C files
set(SUBDIRS abe harada hato hoshino kazuya nakano okanoyo taka take okanoyo/debug vtusr hoshino/kit vtusr/taro okanoyo/linux)
set(SUBDIRS abe harada hato hoshino kazuya nakano okanoyo taka take okanoyo/debug vtusr hoshino/kit hoshino/take vtusr/taro okanoyo/linux)
foreach (SUBDIR IN LISTS SUBDIRS)
file(GLOB files src/${SUBDIR}/*.c)
foreach (file ${files})
Expand Down
20 changes: 11 additions & 9 deletions src/hoshino/h_sound.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#include "h_sound.h"
#include "h_rpc.h"
#include "h_gamesnd.h"
#include "h_menu.h"
#include "h_str.h"
#include "h_util.h"
#include "h_cdvd.h"
#include <eetypes.h>
#include <libsdr.h>
#include "hoshino/h_sound.h"
#include "hoshino/h_rpc.h"
#include "hoshino/h_gamesnd.h"
#include "hoshino/h_menu.h"
#include "hoshino/h_str.h"
#include "hoshino/h_util.h"
#include "hoshino/h_cdvd.h"
#include "hoshino/h_file.h"
#include "okanoyo/okio.h"
#include "h_file.h"

EFXSE efdm[1] = {
{4, 0.1f, 0, 0, 1, 0.05f, 0.0f, 0, 0}
Expand Down Expand Up @@ -716,7 +718,7 @@ void hSndPkSetPitch(s32 voice, s32 pitch) {
*sD->Pk++ = pitch >> 8;
}

void hSndPkSetPalPitch(s32 voice) {
void hSndPkPalPitch(s32 voice) {
sD->PkNum++;
*sD->Pk++ = SNDCMD_PALPITCH;
*sD->Pk++ = voice;
Expand Down
16 changes: 9 additions & 7 deletions src/hoshino/h_str.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#include "h_str.h"
#include "h_sound.h"
#include "h_cdvd.h"
#include "h_game.h"
#include "h_rpc.h"
#include "h_menu.h"
#include "h_test.h"
#include <eetypes.h>
#include <libsdr.h>
#include "hoshino/h_str.h"
#include "hoshino/h_sound.h"
#include "hoshino/h_cdvd.h"
#include "hoshino/h_game.h"
#include "hoshino/h_rpc.h"
#include "hoshino/h_menu.h"
#include "hoshino/h_test.h"

KLTABLE *KlTable = NULL; // ?
PPTTABLE *PptTable = NULL;
Expand Down
5 changes: 5 additions & 0 deletions src/hoshino/take/t_vu0work.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "hoshino/take/t_vu0work.h"

void TransVu0Prog() {
// Empty function
}
6 changes: 6 additions & 0 deletions src/hoshino/take/t_vu0work.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef TAKE_VU0WORK_H
#define TAKE_VU0WORK_H

extern void TransVu0Prog();

#endif

0 comments on commit 1331d01

Please sign in to comment.