sm64coopdx/data/dynos_misc.cpp
Beckowl 3d458d0212
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Fix inconsistent mapping between sSm64CharMap and str_ascii_to_dialog (#892)
This fixes inconsistent mappings between `sSm64CharMap` and `str_ascii_to_dialog` (used in `smlua_text_utils_dialog_replace`) to make the `text` field of `dialogEntry` consistent

`str_ascii_to_dialog` now also has mappings for the interpunct (`•`) and the double opening (`<<`) and closing (`>>`) quotes, which were missing before.
2025-07-29 11:53:53 +10:00

23 lines
595 B
C++

#include "dynos.cpp.h"
extern "C" {
#include "game/scroll_targets.h"
}
//
// Scroll Targets
//
void DynOS_Add_Scroll_Target(u32 index, const char* name, u32 offset, u32 size) {
for (auto& lvlPair : DynOS_Lvl_GetArray()) {
for (auto& node : lvlPair.second->mVertices) {
if (node->mName.Find(name) >= 0) {
add_vtx_scroll_target(
index,
&node->mData[offset],
(size > 0 && size < node->mSize) ? size : node->mSize,
offset > 0
);
}
}
}
}