mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
fix some uses of m_ in structs
This commit is contained in:
parent
6456a3fcc5
commit
9e3e9ed856
2 changed files with 4 additions and 4 deletions
loader/src
|
@ -241,7 +241,7 @@ void Loader::scheduleOnModLoad(Mod* mod, ScheduledFunction func) {
|
|||
}
|
||||
|
||||
void Loader::updateModResources(Mod* mod) {
|
||||
if (!mod->m_info.m_spritesheets.size()) {
|
||||
if (!mod->m_info.spritesheets.size()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -250,7 +250,7 @@ void Loader::updateModResources(Mod* mod) {
|
|||
log::debug("Adding resources for {}", mod->getID());
|
||||
|
||||
// add spritesheets
|
||||
for (auto const& sheet : mod->m_info.m_spritesheets) {
|
||||
for (auto const& sheet : mod->m_info.spritesheets) {
|
||||
log::debug("Adding sheet {}", sheet);
|
||||
auto png = sheet + ".png";
|
||||
auto plist = sheet + ".plist";
|
||||
|
@ -260,7 +260,7 @@ void Loader::updateModResources(Mod* mod) {
|
|||
plist == std::string(ccfu->fullPathForFilename(plist.c_str(), false))) {
|
||||
log::warn(
|
||||
"The resource dir of \"{}\" is missing \"{}\" png and/or plist files",
|
||||
mod->m_info.m_id, sheet
|
||||
mod->m_info.id, sheet
|
||||
);
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -123,7 +123,7 @@ static auto $_ = listenForIPC("loader-info", [](IPCEvent* event) -> nlohmann::js
|
|||
static auto $_ = listenForIPC("list-mods", [](IPCEvent* event) -> nlohmann::json {
|
||||
std::vector<nlohmann::json> res;
|
||||
|
||||
auto args = event->getMessageData();
|
||||
auto args = event->messageData;
|
||||
JsonChecker checker(args);
|
||||
auto root = checker.root("").obj();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue