mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
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
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.
23 lines
595 B
C++
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
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|