Skip to content

Commit

Permalink
renamed repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarklord committed Feb 13, 2020
1 parent afc1f15 commit b9a7ae5
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 48 deletions.
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ bld/
[Oo]bj/

# Intermidate Building Things
BetterCells/[Dd]ebug - Disk/
BetterCells/[Dd]ebug - Steam Patched/
BetterCells/[Dd]ebug - Steam/
BetterCells/[Rr]elease - Disk/
BetterCells/[Rr]elease - Steam Patched/
BetterCells/[Rr]elease - Steam/
CellStagePartsAPI/[Dd]ebug/
CellStagePartsAPI/[Rr]elease/

# Visual Studio 2015 cache/options directory
.vs/
Expand Down
2 changes: 1 addition & 1 deletion BetterCells.sln → CellStagePartsAPI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29728.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BetterCells", "BetterCells\BetterCells.vcxproj", "{07FC5B61-B575-4207-B464-AFAE6AF3FC19}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CellStagePartsAPI", "CellStagePartsAPI\CellStagePartsAPI.vcxproj", "{07FC5B61-B575-4207-B464-AFAE6AF3FC19}"
ProjectSection(ProjectDependencies) = postProject
{F057451A-1413-4D68-AF56-1BF529933420} = {F057451A-1413-4D68-AF56-1BF529933420}
EndProjectSection
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/****************************************************************************
* Copyright (C) 2018, 2019 Zarklord
*
* This file is part of BetterCells.
* This file is part of CellStagePartsAPI.
*
* BetterCells is free software: you can redistribute it and/or modify
* CellStagePartsAPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
Expand All @@ -14,15 +14,15 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BetterCells. If not, see <http://www.gnu.org/licenses/>.
* along with CellStagePartsAPI. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

#include "stdafx.h"
#include "BetterCells.h"
#include "CellStagePartsAPI.h"
#include <Spore\Hash.h>
#include <Spore\Properties.h>

namespace BetterCells {
namespace CellStagePartsAPI {
eastl::vector<CellPartListKey> partlist{};
eastl::list<uint32_t> idList{};
int partListSize;
Expand Down Expand Up @@ -74,10 +74,10 @@ namespace BetterCells {
}

constexpr auto CELLPARTSGROUPID = 0x40616000;
void BetterCells::EnterCellEditor_detour::DETOUR(uint32_t* CellDataList) {
void CellStagePartsAPI::EnterCellEditor_detour::DETOUR(uint32_t* CellDataList) {
uint32_t* ClassPtr;
__volatile __asm mov ClassPtr, EDI; //the this* is stored in EDI, pull it out before it gets clobbered
if (!BetterCells::wasConfiged) {
if (!CellStagePartsAPI::wasConfiged) {
//restore the this* to EDI before calling the original function
__volatile __asm mov EDI, ClassPtr;
return original_function(CellDataList);
Expand All @@ -86,7 +86,7 @@ void BetterCells::EnterCellEditor_detour::DETOUR(uint32_t* CellDataList) {
CALL(Address(ModAPI::ChooseAddress(0x5976E0, 0x597A20)), void, Args(uint32_t*), Args(ClassPtr));
CALL(Address(ModAPI::ChooseAddress(0x599100, 0x599440)), void, Args(uint32_t*, int, int, int), Args(ClassPtr, 0, 0, CELLPARTSGROUPID));
*((byte*)ClassPtr + 0xC) = 0;
for (auto i : BetterCells::partlist) {
for (auto i : CellStagePartsAPI::partlist) {
CALL(Address(ModAPI::ChooseAddress(0x598A70, 0x598DB0)), void, Args(uint32_t*, int, int, int, unsigned int, int, int, int, int, int), Args(ClassPtr, i.partinstanceID, 0, 0, 0, 0, 0, 0, 0, 0));
uint32_t isUnlockedValue = CellDataList[i.unlockID];
if (isUnlockedValue == 1) {
Expand All @@ -97,24 +97,24 @@ void BetterCells::EnterCellEditor_detour::DETOUR(uint32_t* CellDataList) {
}
}
CALL(Address(ModAPI::ChooseAddress(0x594010, 0x5942E0)), void, Args(uint32_t*), Args(ClassPtr));
for (auto i : BetterCells::partlist) {
for (auto i : CellStagePartsAPI::partlist) {
uint32_t isUnlockedValue = CellDataList[i.unlockID];
if (isUnlockedValue == 2) {
CALL(Address(ModAPI::ChooseAddress(0x596A60, 0x596DA0)), void, Args(uint32_t*, int, int, int), Args(ClassPtr, i.partinstanceID, CELLPARTSGROUPID, 0));
}
}
}

void BetterCells::LeaveCellEditor_detour::DETOUR() {
void CellStagePartsAPI::LeaveCellEditor_detour::DETOUR() {
uint32_t* ClassPtr;
__volatile __asm mov ClassPtr, EAX; //the this* is stored in EAX, pull it out before it gets clobbered
if (!BetterCells::wasConfiged) {
if (!CellStagePartsAPI::wasConfiged) {
//restore the this* to EAX before calling the original function
__volatile __asm mov EAX, ClassPtr;
return original_function();
}
//2 means display the "new" part effect, 1 just means unlocked.
for (auto i : BetterCells::idList) {
for (auto i : CellStagePartsAPI::idList) {
if (ClassPtr[i] == 2) ClassPtr[i] = 1;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/****************************************************************************
* Copyright (C) 2018, 2019 Zarklord
*
* This file is part of BetterCells.
* This file is part of CellStagePartsAPI.
*
* BetterCells is free software: you can redistribute it and/or modify
* CellStagePartsAPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
Expand All @@ -14,7 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BetterCells. If not, see <http://www.gnu.org/licenses/>.
* along with CellStagePartsAPI. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

#pragma once
Expand All @@ -23,7 +23,7 @@
#include <EASTL\list.h>
#include <Spore\ModAPI.h>

namespace BetterCells {
namespace CellStagePartsAPI {
struct CellPartListKey {
uint32_t unlockID;
uint32_t partinstanceID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
<PropertyGroup Label="Globals">
<ProjectGuid>{07FC5B61-B575-4207-B464-AFAE6AF3FC19}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>BetterCells</RootNamespace>
<RootNamespace>CellStagePlusAPI</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>CellStagePartsAPI</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -99,12 +100,12 @@
<Text Include="ReadMe.txt" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="BetterCells.h" />
<ClInclude Include="CellStagePartsAPI.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="BetterCells.cpp" />
<ClCompile Include="CellStagePartsAPI.cpp" />
<ClCompile Include="dllmain.cpp">
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
<Filter Include="BetterCells">
<UniqueIdentifier>{3880d018-2395-4502-abfe-4b83e0817aab}</UniqueIdentifier>
</Filter>
<Filter Include="Internal">
<UniqueIdentifier>{d62ad12d-69d8-4933-8342-03043c9adc22}</UniqueIdentifier>
</Filter>
<Filter Include="CellStagePartsAPI">
<UniqueIdentifier>{3880d018-2395-4502-abfe-4b83e0817aab}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="targetver.h">
Expand All @@ -19,19 +19,19 @@
<ClInclude Include="stdafx.h">
<Filter>Internal</Filter>
</ClInclude>
<ClInclude Include="BetterCells.h">
<Filter>BetterCells</Filter>
<ClInclude Include="CellStagePartsAPI.h">
<Filter>CellStagePartsAPI</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp">
<Filter>BetterCells</Filter>
<Filter>CellStagePartsAPI</Filter>
</ClCompile>
<ClCompile Include="stdafx.cpp">
<Filter>Internal</Filter>
</ClCompile>
<ClCompile Include="BetterCells.cpp">
<Filter>BetterCells</Filter>
<ClCompile Include="CellStagePartsAPI.cpp">
<Filter>CellStagePartsAPI</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions BetterCells/ReadMe.txt → CellStagePartsAPI/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
========================================================================
DYNAMIC LINK LIBRARY : BetterCells Project Overview
DYNAMIC LINK LIBRARY : CellStagePartsAPI Project Overview
========================================================================

AppWizard has created this BetterCells DLL for you.
AppWizard has created this CellStagePartsAPI DLL for you.

This file contains a summary of what you will find in each of the files that
make up your BetterCells application.
make up your CellStagePartsAPI application.


BetterCells.vcxproj
CellStagePartsAPI.vcxproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.

BetterCells.vcxproj.filters
CellStagePartsAPI.vcxproj.filters
This is the filters file for VC++ projects generated using an Application Wizard.
It contains information about the association between the files in your project
and the filters. This association is used in the IDE to show grouping of files with
Expand All @@ -26,7 +26,7 @@ Other standard files:

StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named BetterCells.pch and a precompiled types file named StdAfx.obj.
named CellStagePartsAPI.pch and a precompiled types file named StdAfx.obj.

/////////////////////////////////////////////////////////////////////////////
Other notes:
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions BetterCells/dllmain.cpp → CellStagePartsAPI/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/****************************************************************************
* Copyright (C) 2018, 2019 Zarklord
*
* This file is part of BetterCells.
* This file is part of CellStagePartsAPI.
*
* BetterCells is free software: you can redistribute it and/or modify
* CellStagePartsAPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
Expand All @@ -14,12 +14,12 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BetterCells. If not, see <http://www.gnu.org/licenses/>.
* along with CellStagePartsAPI. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include "BetterCells.h"
#include "CellStagePartsAPI.h"

void Initialize()
{
Expand All @@ -30,7 +30,7 @@ void Initialize()
// - Add new game modes
// - Add new space tools
// - Change materials
BetterCells::Initialize();
CellStagePartsAPI::Initialize();
}

void Dispose()
Expand All @@ -42,7 +42,7 @@ void AttachDetours()
{
// Call the attach() method on any detours you want to add
// For example: cViewer_SetRenderType_detour::attach(GetAddress(cViewer, SetRenderType));
BetterCells::AttachDetours();
CellStagePartsAPI::AttachDetours();
}

// Generally, you don't need to touch any code here
Expand Down
2 changes: 1 addition & 1 deletion BetterCells/stdafx.cpp → CellStagePartsAPI/stdafx.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// stdafx.cpp : source file that includes just the standard includes
// BetterCells.pch will be the pre-compiled header
// CellStagePartsAPI.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

BetterCells Copyright (C) 2018 Zarklord
CellStagePartsAPI Copyright (C) 2018 Zarklord
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down

0 comments on commit b9a7ae5

Please sign in to comment.