OPZ: fix panning effect

This commit is contained in:
tildearrow 2023-02-25 14:39:48 -05:00
commit bcd62fc46d
6 changed files with 15 additions and 7 deletions

View file

@ -780,6 +780,8 @@ endif()
if(ANDROID AND NOT TERMUX)
add_library(furnace SHARED ${USED_SOURCES})
elseif(WIN32)
add_executable(furnace WIN32 ${USED_SOURCES})
else()
add_executable(furnace ${USED_SOURCES})
endif()

View file

@ -1481,6 +1481,7 @@ void DivEngine::createNewFromDefaults() {
bool oldVol=getConfInt("configVersion",DIV_ENGINE_VERSION)<135;
if (preset.empty()) {
// try loading old preset
logD("trying to load old preset");
preset=decodeSysDesc(getConfString("initialSys",""));
oldVol=false;
}
@ -4468,6 +4469,7 @@ bool DivEngine::init() {
bool oldVol=getConfInt("configVersion",DIV_ENGINE_VERSION)<135;
if (preset.empty()) {
// try loading old preset
logD("trying to load old preset");
preset=decodeSysDesc(getConfString("initialSys",""));
oldVol=false;
}

View file

@ -47,8 +47,8 @@
#define BUSY_BEGIN_SOFT softLocked=true; isBusy.lock();
#define BUSY_END isBusy.unlock(); softLocked=false;
#define DIV_VERSION "0.6pre4"
#define DIV_ENGINE_VERSION 143
#define DIV_VERSION "0.6pre4-hotfix"
#define DIV_ENGINE_VERSION 144
// for imports
#define DIV_VERSION_MOD 0xff01
#define DIV_VERSION_FC 0xff02

View file

@ -34,6 +34,7 @@ const char* aboutLine[]={
"",
"-- program --",
"tildearrow",
"A M 4 N (intro tune)",
"akumanatt",
"cam900",
"djtuBIG-MaliceX",

View file

@ -2758,6 +2758,7 @@ void FurnaceGUI::syncSettings() {
settings.initialSys.set(fmt::sprintf("pan%d",i),newPan);
}
e->setConf("initialSys2",settings.initialSys.toBase64());
e->setConf("configVersion",DIV_ENGINE_VERSION);
}
}

View file

@ -342,12 +342,14 @@ void reportError(String what) {
// TODO: CoInitializeEx on Windows?
// TODO: add crash log
int main(int argc, char** argv) {
// Windows console thing - thanks MarioKart7z!
// Windows console thing - thanks dj.tuBIG/MaliceX
#ifdef _WIN32
DWORD winPID;
HWND winConsole=GetConsoleWindow();
GetWindowThreadProcessId(winConsole,&winPID);
if (GetCurrentProcessId()==winPID) FreeConsole();
if (AttachConsole(ATTACH_PARENT_PROCESS)) {
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
freopen("CONIN$", "r", stdin);
}
#endif
initLog();