Skip to content

Commit

Permalink
asdas
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Apr 14, 2024
1 parent 5ec0ea8 commit f09d248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions _Headers/Header1.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include <iostream>
#include <string>
#include "SimpleIni.h"
std::string FilePathFromModFolder(std::string fname);
GJGameLevel* processOutLevelByConfig(int id, GJGameLevel* pGJGameLevel);
std::string saveToMainLevel(int id, GJGameLevel* pGJGameLevel);
Expand Down
7 changes: 2 additions & 5 deletions _Src/controllers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ using namespace geode::prelude;

#include "Header1.hpp"

#include "SimpleIni.h"

#include <Geode/modify/LevelSelectLayer.hpp>

void WriteProcMem(uintptr_t address, ByteVector const& data) {
for (auto catgirl : Mod::get()->getPatches()) {
if (catgirl and catgirl->getAddress() == address) {
Expand Down Expand Up @@ -102,7 +98,8 @@ void UpdatePagesSetup() {
//.text:003EBDA4 BNE loc_3EBD88
//.text : 003EBDA6 MOV.W R10, #3
//WriteProcMem(geode::base::get() + 0x3ebda2, { 0xba, 0xf1, (uint8_t)cmp_amount });
WriteProcMem(geode::addresser::getNonVirtual(geode::modifier::AsStaticFunction_init<LevelSelectLayer, bool>()) + 0x2e2, { 0xba, 0xf1, (uint8_t)cmp_amount });
auto addr = geode::addresser::getNonVirtual(geode::modifier::Resolve<int>::func(&LevelSelectLayer::init)) + 0x2e2;
WriteProcMem(addr, { 0xba, 0xf1, (uint8_t)cmp_amount });
#endif
}

Expand Down

0 comments on commit f09d248

Please sign in to comment.