dressupgeekout / lunapurpura

Reimplementation of Purple Moon's games from the 1990s (WIP) - NOTE: ScummVM port in progress
https://dressupgeekout.github.io/lunapurpura/
BSD 2-Clause "Simplified" License
8 stars 1 forks source link

Need to store only the CLU's basename #13

Closed dressupgeekout closed 4 years ago

dressupgeekout commented 4 years ago

We store the CLU's name in the CLU structure. Whether or not that's actually the right thing to do in the first place, we're definitely doing one thing wrong right now: We take the first 16 characters of the path by which we referred to the CLU, which might include slashes from a full path:

RESOURCE/_IDGLo   # stops after 16 chars

Instead, we should be storing only the basename:

_IDGlobal.CLU
dressupgeekout commented 4 years ago

Actually, forget it, there's no need to store the CLU's filename into the CLU structure.